diff --git a/arkoala-arkts/arkui/.gitignore b/arkoala-arkts/arkui/.gitignore index 54b541af422959a27a497a9b931febda7e32909e..7fa68fd76029a4334e769c53321ae81e3b07d7b6 100644 --- a/arkoala-arkts/arkui/.gitignore +++ b/arkoala-arkts/arkui/.gitignore @@ -1,3 +1,3 @@ -/generated/ /unmemoized/ /build-recheck/ +/prepared/ diff --git a/arkoala-arkts/arkui/src/component/actionSheet.ets b/arkoala-arkts/arkui/generated/component/actionSheet.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/actionSheet.ets rename to arkoala-arkts/arkui/generated/component/actionSheet.ets index d9cf6a385b555035c160388b7d2544e20b98dfd5..7473c4b7b70136516867d3c1a85c80d03a3f22a7 100644 --- a/arkoala-arkts/arkui/src/component/actionSheet.ets +++ b/arkoala-arkts/arkui/generated/component/actionSheet.ets @@ -23,11 +23,11 @@ import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { VoidCallback, ResourceStr, ResourceColor, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles } from "./units" import { DialogButtonStyle, Color, BorderStyle } from "./enums" import { DialogAlignment } from "./alertDialog" -import { LevelMode, ImmersiveMode, LevelOrder } from "./../generated/ohos.promptAction" +import { LevelMode, ImmersiveMode, LevelOrder } from "./../framework/ohos.promptAction" export interface DismissDialogAction { reason: DismissReason dismiss(): void diff --git a/arkoala-arkts/arkui/src/component/alertDialog.ets b/arkoala-arkts/arkui/generated/component/alertDialog.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/alertDialog.ets rename to arkoala-arkts/arkui/generated/component/alertDialog.ets index 4dad3cd66e7e0440371e2bf348bc03d52ee1dc01..f22d3886d5e087b95d077825bac67ca071b6d3dd 100644 --- a/arkoala-arkts/arkui/src/component/alertDialog.ets +++ b/arkoala-arkts/arkui/generated/component/alertDialog.ets @@ -22,10 +22,10 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { DialogButtonStyle, Color, WordBreak, BorderStyle } from "./enums" import { ResourceStr, ResourceColor, VoidCallback, Offset, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { DismissDialogAction } from "./actionSheet" import { Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, TransitionEffect, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./common" -import { LevelMode, ImmersiveMode, LevelOrder } from "./../generated/ohos.promptAction" +import { LevelMode, ImmersiveMode, LevelOrder } from "./../framework/ohos.promptAction" export enum DialogAlignment { TOP = 0, Top = 0, diff --git a/arkoala-arkts/arkui/src/component/alphabetIndexer.ets b/arkoala-arkts/arkui/generated/component/alphabetIndexer.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/alphabetIndexer.ets rename to arkoala-arkts/arkui/generated/component/alphabetIndexer.ets index 03a3e2d925d9ac656ea401336e87f45eb244fc23..0ed3658ff1d9fb99b6e0379b8926d3fddd461c72 100644 --- a/arkoala-arkts/arkui/src/component/alphabetIndexer.ets +++ b/arkoala-arkts/arkui/generated/component/alphabetIndexer.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { Font_serializer, Position_serializer, ResourceColor, Font, Position, Length } from "./units" import { Bindable_Number_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, BlurStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { int32, int64, float32, unsafeCast } from "@koalaui/common" @@ -25,13 +25,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/animator.ets b/arkoala-arkts/arkui/generated/component/animator.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/animator.ets rename to arkoala-arkts/arkui/generated/component/animator.ets index 3641e7b04f8ba6b07ed175887b3e50d540f8fb9b..b628b93e6b0ceb32ba12abd2bb7f2ea76f192360 100644 --- a/arkoala-arkts/arkui/src/component/animator.ets +++ b/arkoala-arkts/arkui/generated/component/animator.ets @@ -24,13 +24,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { AnimationStatus, FillMode, PlayMode } from "./enums" -import { curves } from "./../generated/ohos.curves" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { curves } from "./../framework/ohos.curves" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class FrictionMotionInternal { public static fromPtr(ptr: KPointer): FrictionMotion { return new FrictionMotion(false, false, false, ptr) diff --git a/arkoala-arkts/arkui/src/component/badge.ets b/arkoala-arkts/arkui/generated/component/badge.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/badge.ets rename to arkoala-arkts/arkui/generated/component/badge.ets index d393b5df2620fe8a0b52e42894eaf1ad0a3d7cea..db9bb52e8c5fdc01e1e7b1ceaabb6708f515c84f 100644 --- a/arkoala-arkts/arkui/src/component/badge.ets +++ b/arkoala-arkts/arkui/generated/component/badge.ets @@ -22,16 +22,16 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, ResourceStr, Length, Position, Position_serializer } from "./units" import { Color, FontWeight } from "./enums" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkBadgePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/blank.ets b/arkoala-arkts/arkui/generated/component/blank.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/blank.ets rename to arkoala-arkts/arkui/generated/component/blank.ets index 171e697be9096ef75600d13e31c93f78dcd53299..f673eeddb52c13305ff41bcf4f4153f7241374fa 100644 --- a/arkoala-arkts/arkui/src/component/blank.ets +++ b/arkoala-arkts/arkui/generated/component/blank.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32 } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -25,13 +25,13 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor } from "./units" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkBlankPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/handwritten/index.ets b/arkoala-arkts/arkui/generated/component/builder.ets similarity index 48% rename from arkoala-arkts/arkui/src/handwritten/index.ets rename to arkoala-arkts/arkui/generated/component/builder.ets index e7008e3837eb7b75763574567d079bd8eedc3f38..43e8735ae5446245ab224b28b97c92895b0c4995 100644 --- a/arkoala-arkts/arkui/src/handwritten/index.ets +++ b/arkoala-arkts/arkui/generated/component/builder.ets @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2025 Huawei Device Co., Ltd. + * 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 @@ -13,17 +13,15 @@ * limitations under the License. */ -export * from "./ArkAnimation" -export * from "./ArkPageTransition" -export * from "./ArkPageTransitionData" -export * from "./AttributeUpdater" -export * from "./TestComponent" -export * from "./Router" -export * from "./ForeignFunctions" -export * from "./resources" -export * from "./component/base" -export * from "./component/builder" -export * from "./component/common" -export * from "./ContentModifierHooks" -export * from "./TestApiHooks" -export * from "./ArkStateStyle" + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { ComponentBuilder } from "@koalaui/builderLambda" +export type CustomBuilder = +@memo +() => void; +export type CustomBuilderT = (t: T) => void; +export type PageMapBuilder = (name: string, param: Object | undefined) => void; diff --git a/arkoala-arkts/arkui/src/component/button.ets b/arkoala-arkts/arkui/generated/component/button.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/button.ets rename to arkoala-arkts/arkui/generated/component/button.ets index e14e9e793e3c2382b88341dc959f6e528209933e..ad37b0e4659853f8a87c9c72185a50ba5c061c49 100644 --- a/arkoala-arkts/arkui/src/component/button.ets +++ b/arkoala-arkts/arkui/generated/component/button.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -25,13 +25,13 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor, Length, ResourceStr, Font, Font_serializer } from "./units" import { Color, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy } from "./enums" -import { ContentModifier, AttributeModifier, hookButtonContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookButtonContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkButtonPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/calendarPicker.ets b/arkoala-arkts/arkui/generated/component/calendarPicker.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/calendarPicker.ets rename to arkoala-arkts/arkui/generated/component/calendarPicker.ets index ff8bbe47b23ac687ebb285ffab353c39437b43d4..ec68b9b5f9c10d657506257d03352d94fef46e64 100644 --- a/arkoala-arkts/arkui/src/component/calendarPicker.ets +++ b/arkoala-arkts/arkui/generated/component/calendarPicker.ets @@ -24,14 +24,14 @@ import { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTe import { Offset_serializer, Offset, Length, VoidCallback, ResourceColor } from "./units" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { Resource, Resource_serializer } from "./../generated/resource" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { Resource, Resource_serializer } from "./../framework/resource" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Color } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class CalendarPickerDialogInternal { public static fromPtr(ptr: KPointer): CalendarPickerDialog { return new CalendarPickerDialog(ptr) diff --git a/arkoala-arkts/arkui/src/component/canvas.ets b/arkoala-arkts/arkui/generated/component/canvas.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/canvas.ets rename to arkoala-arkts/arkui/generated/component/canvas.ets index 30f35819d34dff9063e9c60bba3f6290cabbb0fe..5e5a78ec41a5bbf62a1e4b2889f79ca6b58ab624 100644 --- a/arkoala-arkts/arkui/src/component/canvas.ets +++ b/arkoala-arkts/arkui/generated/component/canvas.ets @@ -21,20 +21,20 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPoin import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { Matrix2D_serializer, Matrix2D, Matrix2DInternal } from "./matrix2d" -import { Size_serializer, Size, LengthMetricsUnit, LengthMetrics_serializer, LengthMetrics, LengthMetricsInternal } from "./../generated/arkui.Graphics" -import { image_PixelMap_serializer, image } from "./../generated/ohos.multimedia.image" +import { Size_serializer, Size, LengthMetricsUnit, LengthMetrics_serializer, LengthMetrics, LengthMetricsInternal } from "./../framework/arkui.Graphics" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" import { ImageAIOptions_serializer, ImageAIOptions, ImageAnalyzerConfig_serializer, ImageAnalyzerConfig } from "./imageCommon" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" -import { FrameNode, FrameNodeInternal } from "./../generated/arkui.FrameNode" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" +import { FrameNode, FrameNodeInternal } from "./../framework/arkui.FrameNode" export class CanvasGradientInternal { public static fromPtr(ptr: KPointer): CanvasGradient { return new CanvasGradient(ptr) diff --git a/arkoala-arkts/arkui/src/component/checkbox.ets b/arkoala-arkts/arkui/generated/component/checkbox.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/checkbox.ets rename to arkoala-arkts/arkui/generated/component/checkbox.ets index 91d638a9960cf8ac409e2f98f6869b947e037a3b..a031205435f73a60eaeb2d5c4d72bb228d9d5a5b 100644 --- a/arkoala-arkts/arkui/src/component/checkbox.ets +++ b/arkoala-arkts/arkui/generated/component/checkbox.ets @@ -18,21 +18,21 @@ import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { MarkStyle_serializer, ResourceColor, MarkStyle } from "./units" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Color, CheckBoxShape } from "./enums" -import { ContentModifier, AttributeModifier, hookCheckBoxContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookCheckBoxContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkCheckboxPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/checkboxgroup.ets b/arkoala-arkts/arkui/generated/component/checkboxgroup.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/checkboxgroup.ets rename to arkoala-arkts/arkui/generated/component/checkboxgroup.ets index 234d6a177480bce5f3dc717c4f9413b00ff6e087..83a7a068137cdfcd0e7f260269fe6a25c787cf6a 100644 --- a/arkoala-arkts/arkui/src/component/checkboxgroup.ets +++ b/arkoala-arkts/arkui/generated/component/checkboxgroup.ets @@ -18,20 +18,20 @@ import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { MarkStyle_serializer, ResourceColor, MarkStyle } from "./units" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Color, CheckBoxShape } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/circle.ets b/arkoala-arkts/arkui/generated/component/circle.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/circle.ets rename to arkoala-arkts/arkui/generated/component/circle.ets index a3fd9bbeeb3774f77a03f34b49b7481c2e83bebf..766aaf696c2bf3d8eec3f49c12fd330709e358d3 100644 --- a/arkoala-arkts/arkui/src/component/circle.ets +++ b/arkoala-arkts/arkui/generated/component/circle.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonShapeMethodModifier, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkCirclePeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/column.ets b/arkoala-arkts/arkui/generated/component/column.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/column.ets rename to arkoala-arkts/arkui/generated/component/column.ets index 16857d8427737a736ece6178ea8a23354f92516b..d349c95856951aa3827369402428275e8f0f4200 100644 --- a/arkoala-arkts/arkui/src/component/column.ets +++ b/arkoala-arkts/arkui/generated/component/column.ets @@ -23,14 +23,14 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { HorizontalAlign, FlexAlign } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkColumnPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/columnSplit.ets b/arkoala-arkts/arkui/generated/component/columnSplit.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/columnSplit.ets rename to arkoala-arkts/arkui/generated/component/columnSplit.ets index 25caf67edcff0b95d4701b3d42f1f8b10981f6b4..48c7e2952dda8d61233f2ecaa72d233b600ee4d1 100644 --- a/arkoala-arkts/arkui/src/component/columnSplit.ets +++ b/arkoala-arkts/arkui/generated/component/columnSplit.ets @@ -22,15 +22,15 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Dimension } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkColumnSplitPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/generated/component/common.ets b/arkoala-arkts/arkui/generated/component/common.ets new file mode 100644 index 0000000000000000000000000000000000000000..7e47a16f8282e22ffe467605c40c40a5efe38de4 --- /dev/null +++ b/arkoala-arkts/arkui/generated/component/common.ets @@ -0,0 +1,33069 @@ +/* + * 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 { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { unsafeCast, int32, int64, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./../CallbackTransformer" +import { unifiedDataChannel_Summary_serializer, unifiedDataChannel } from "./../framework/ohos.data.unifiedDataChannel" +import { DrawContext, DrawContextInternal, LengthMetrics_serializer, LengthMetrics } from "./../framework/arkui.Graphics" +import { KeyType, KeySource, Color, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, FocusDrawLevel, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, InteractionHand, GradientDirection, SharedTransitionEffectType, ArrowPointPosition, Placement, LineCapStyle, LineJoinStyle, BarState, CrownSensitivity, EdgeEffect, TransitionType, TextDecorationType, TextDecorationStyle, PlayMode, HorizontalAlign, VerticalAlign, FontWeight, FontStyle, TouchType, CrownAction, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, ScrollSource, IlluminatedType, AccessibilityHoverType, AxisAction, AxisModel, MouseButton, MouseAction } from "./enums" +import { IntentionCode } from "./../framework/ohos.multimodalInput.intentionCode" +import { Position_serializer, DirectionalEdgesT_serializer, Position, DirectionalEdgesT, ConstraintSizeOptions_serializer, ConstraintSizeOptions, ResourceColor, SizeOptions, SizeOptions_serializer, ChainWeightOptions_serializer, Padding_serializer, LocalizedPadding_serializer, BorderOptions_serializer, EdgeStyles_serializer, EdgeWidths_serializer, LocalizedEdgeWidths_serializer, EdgeColors_serializer, LocalizedEdgeColors_serializer, BorderRadiuses_serializer, LocalizedBorderRadiuses_serializer, OutlineOptions_serializer, EdgeOutlineStyles_serializer, EdgeOutlineWidths_serializer, OutlineRadiuses_serializer, Edges_serializer, LocalizedEdges_serializer, LocalizedPosition_serializer, AccessibilityOptions_serializer, Length, ChainWeightOptions, Padding, LocalizedPadding, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, VoidCallback, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Bias, Font, Bias_serializer, Area_serializer, Font_serializer } from "./units" +import { Resource_serializer, Resource } from "./../framework/resource" +import { TextRange_serializer, TextRange } from "./textCommon" +import { ResizableOptions_serializer, ResizableOptions } from "./image" +import { uiEffect_VisualEffect_serializer, uiEffect_Filter_serializer, uiEffect_BrightnessBlender_serializer, uiEffect } from "./../framework/ohos.graphics.uiEffect" +import { FocusBoxStyle_serializer, FocusBoxStyle, FocusPriority } from "./focus" +import { CircleShape_serializer, EllipseShape_serializer, PathShape_serializer, RectShape_serializer, CircleShape, EllipseShape, PathShape, RectShape } from "./../framework/ohos.arkui.shape" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" +import { Gesture_serializer, GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureRecognizer, GestureType, Gesture, GestureMask, FingerInfo, GestureControl, GestureRecognizerState, EventTargetInfo, GestureHandler, GesturePriority } from "./gesture" +import { ComponentContent_serializer, ComponentContent } from "./../framework/arkui.ComponentContent" +import { StyledString_serializer, StyledString, ImageAttachment, CustomSpan, StyleOptions, StyledStringKey, SpanStyle, StyledStringMarshallCallback, UserDataSpan, StyledStringUnmarshallCallback } from "./styledString" +import { ComponentBase } from "./../ComponentBase" +import { PeerNode } from "./../PeerNode" +import { CustomBuilder } from "./builder" +import { uniformTypeDescriptor } from "./../framework/ohos.data.uniformTypeDescriptor" +import { curves, curves_ICurve_serializer } from "./../framework/ohos.curves" +import { SymbolGlyphModifier, SymbolGlyphModifier_serializer } from "./../framework/arkui.SymbolGlyphModifier" +import { UIContext, UIContext_serializer } from "./../framework/ohos.arkui.UIContext" +import { CallbackKind } from "./../framework/peers/CallbackKind" +import { hookId, hookStateStyleImpl, CustomStyles, ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "#handwritten" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { ComponentBuilder } from "@koalaui/builderLambda" +import { Context } from "./../framework/application.Context" +import { pointer } from "./../framework/ohos.multimodalInput.pointer" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./button" +import { uiObserver } from "./../framework/ohos.arkui.observer" +import { promptAction } from "./../framework/ohos.promptAction" +import { ScrollState } from "./list" +import { Want, Want_serializer } from "./../framework/ohos.app.ability.Want" +import { intl } from "./../framework/ohos.intl" +import { NodeAttach, remember } from "@koalaui/runtime" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" +import { GlobalScope } from "./../framework/GlobalScope" +export interface BaseEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number | undefined + axisVertical?: number | undefined + pressure: number + tiltX: number + tiltY: number + rollAngle?: number | undefined + sourceTool: SourceTool + getModifierKeyState?: ModifierKeyStateGetter | undefined + deviceId?: number | undefined + targetDisplayId?: number | undefined +} +export class BaseEventInternal implements MaterializedBase,BaseEvent { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get target(): EventTarget { + return this.getTarget() + } + set target(target: EventTarget) { + this.setTarget(target) + } + get timestamp(): number { + return this.getTimestamp() + } + set timestamp(timestamp: number) { + this.setTimestamp(timestamp) + } + get source(): SourceType { + return this.getSource() + } + set source(source: SourceType) { + this.setSource(source) + } + get axisHorizontal(): number | undefined { + return this.getAxisHorizontal() + } + set axisHorizontal(axisHorizontal: number | undefined) { + const axisHorizontal_NonNull = (axisHorizontal as number) + this.setAxisHorizontal(axisHorizontal_NonNull) + } + get axisVertical(): number | undefined { + return this.getAxisVertical() + } + set axisVertical(axisVertical: number | undefined) { + const axisVertical_NonNull = (axisVertical as number) + this.setAxisVertical(axisVertical_NonNull) + } + get pressure(): number { + return this.getPressure() + } + set pressure(pressure: number) { + this.setPressure(pressure) + } + get tiltX(): number { + return this.getTiltX() + } + set tiltX(tiltX: number) { + this.setTiltX(tiltX) + } + get tiltY(): number { + return this.getTiltY() + } + set tiltY(tiltY: number) { + this.setTiltY(tiltY) + } + get rollAngle(): number | undefined { + return this.getRollAngle() + } + set rollAngle(rollAngle: number | undefined) { + const rollAngle_NonNull = (rollAngle as number) + this.setRollAngle(rollAngle_NonNull) + } + get sourceTool(): SourceTool { + return this.getSourceTool() + } + set sourceTool(sourceTool: SourceTool) { + this.setSourceTool(sourceTool) + } + get getModifierKeyState(): ModifierKeyStateGetter | undefined { + return this.getGetModifierKeyState() + } + set getModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined) { + const getModifierKeyState_NonNull = (getModifierKeyState as ModifierKeyStateGetter) + this.setGetModifierKeyState(getModifierKeyState_NonNull) + } + get deviceId(): number | undefined { + return this.getDeviceId() + } + set deviceId(deviceId: number | undefined) { + const deviceId_NonNull = (deviceId as number) + this.setDeviceId(deviceId_NonNull) + } + get targetDisplayId(): number | undefined { + return this.getTargetDisplayId() + } + set targetDisplayId(targetDisplayId: number | undefined) { + const targetDisplayId_NonNull = (targetDisplayId as number) + this.setTargetDisplayId(targetDisplayId_NonNull) + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, BaseEventInternal.getFinalizer()) + } + constructor() { + this(BaseEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._BaseEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._BaseEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): BaseEventInternal { + return new BaseEventInternal(ptr) + } + private getTarget(): EventTarget { + return this.getTarget_serialize() + } + private setTarget(target: EventTarget): void { + const target_casted = target as (EventTarget) + this.setTarget_serialize(target_casted) + return + } + private getTimestamp(): number { + return this.getTimestamp_serialize() + } + private setTimestamp(timestamp: number): void { + const timestamp_casted = timestamp as (number) + this.setTimestamp_serialize(timestamp_casted) + return + } + private getSource(): SourceType { + return this.getSource_serialize() + } + private setSource(source: SourceType): void { + const source_casted = source as (SourceType) + this.setSource_serialize(source_casted) + return + } + private getAxisHorizontal(): number | undefined { + return this.getAxisHorizontal_serialize() + } + private setAxisHorizontal(axisHorizontal: number | undefined): void { + const axisHorizontal_casted = axisHorizontal as (number | undefined) + this.setAxisHorizontal_serialize(axisHorizontal_casted) + return + } + private getAxisVertical(): number | undefined { + return this.getAxisVertical_serialize() + } + private setAxisVertical(axisVertical: number | undefined): void { + const axisVertical_casted = axisVertical as (number | undefined) + this.setAxisVertical_serialize(axisVertical_casted) + return + } + private getPressure(): number { + return this.getPressure_serialize() + } + private setPressure(pressure: number): void { + const pressure_casted = pressure as (number) + this.setPressure_serialize(pressure_casted) + return + } + private getTiltX(): number { + return this.getTiltX_serialize() + } + private setTiltX(tiltX: number): void { + const tiltX_casted = tiltX as (number) + this.setTiltX_serialize(tiltX_casted) + return + } + private getTiltY(): number { + return this.getTiltY_serialize() + } + private setTiltY(tiltY: number): void { + const tiltY_casted = tiltY as (number) + this.setTiltY_serialize(tiltY_casted) + return + } + private getRollAngle(): number | undefined { + return this.getRollAngle_serialize() + } + private setRollAngle(rollAngle: number | undefined): void { + const rollAngle_casted = rollAngle as (number | undefined) + this.setRollAngle_serialize(rollAngle_casted) + return + } + private getSourceTool(): SourceTool { + return this.getSourceTool_serialize() + } + private setSourceTool(sourceTool: SourceTool): void { + const sourceTool_casted = sourceTool as (SourceTool) + this.setSourceTool_serialize(sourceTool_casted) + return + } + private getGetModifierKeyState(): ModifierKeyStateGetter | undefined { + return this.getGetModifierKeyState_serialize() + } + private setGetModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined): void { + const getModifierKeyState_casted = getModifierKeyState as (ModifierKeyStateGetter | undefined) + this.setGetModifierKeyState_serialize(getModifierKeyState_casted) + return + } + private getDeviceId(): number | undefined { + return this.getDeviceId_serialize() + } + private setDeviceId(deviceId: number | undefined): void { + const deviceId_casted = deviceId as (number | undefined) + this.setDeviceId_serialize(deviceId_casted) + return + } + private getTargetDisplayId(): number | undefined { + return this.getTargetDisplayId_serialize() + } + private setTargetDisplayId(targetDisplayId: number | undefined): void { + const targetDisplayId_casted = targetDisplayId as (number | undefined) + this.setTargetDisplayId_serialize(targetDisplayId_casted) + return + } + private getTarget_serialize(): EventTarget { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getTarget(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : EventTarget = EventTarget_serializer.read(retvalDeserializer) + return returnResult + } + private setTarget_serialize(target: EventTarget): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + EventTarget_serializer.write(thisSerializer, target) + ArkUIGeneratedNativeModule._BaseEvent_setTarget(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getTimestamp_serialize(): number { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getTimestamp(this.peer!.ptr) + return retval + } + private setTimestamp_serialize(timestamp: number): void { + ArkUIGeneratedNativeModule._BaseEvent_setTimestamp(this.peer!.ptr, timestamp) + } + private getSource_serialize(): SourceType { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getSource(this.peer!.ptr) + return TypeChecker.SourceType_FromNumeric(retval) + } + private setSource_serialize(source: SourceType): void { + ArkUIGeneratedNativeModule._BaseEvent_setSource(this.peer!.ptr, TypeChecker.SourceType_ToNumeric(source)) + } + private getAxisHorizontal_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getAxisHorizontal(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setAxisHorizontal_serialize(axisHorizontal: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (axisHorizontal !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const axisHorizontalTmpValue = axisHorizontal! + thisSerializer.writeNumber(axisHorizontalTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._BaseEvent_setAxisHorizontal(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getAxisVertical_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getAxisVertical(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setAxisVertical_serialize(axisVertical: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (axisVertical !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const axisVerticalTmpValue = axisVertical! + thisSerializer.writeNumber(axisVerticalTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._BaseEvent_setAxisVertical(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getPressure_serialize(): number { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getPressure(this.peer!.ptr) + return retval + } + private setPressure_serialize(pressure: number): void { + ArkUIGeneratedNativeModule._BaseEvent_setPressure(this.peer!.ptr, pressure) + } + private getTiltX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getTiltX(this.peer!.ptr) + return retval + } + private setTiltX_serialize(tiltX: number): void { + ArkUIGeneratedNativeModule._BaseEvent_setTiltX(this.peer!.ptr, tiltX) + } + private getTiltY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getTiltY(this.peer!.ptr) + return retval + } + private setTiltY_serialize(tiltY: number): void { + ArkUIGeneratedNativeModule._BaseEvent_setTiltY(this.peer!.ptr, tiltY) + } + private getRollAngle_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getRollAngle(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setRollAngle_serialize(rollAngle: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (rollAngle !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const rollAngleTmpValue = rollAngle! + thisSerializer.writeNumber(rollAngleTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._BaseEvent_setRollAngle(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getSourceTool_serialize(): SourceTool { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getSourceTool(this.peer!.ptr) + return TypeChecker.SourceTool_FromNumeric(retval) + } + private setSourceTool_serialize(sourceTool: SourceTool): void { + ArkUIGeneratedNativeModule._BaseEvent_setSourceTool(this.peer!.ptr, TypeChecker.SourceTool_ToNumeric(sourceTool)) + } + private getGetModifierKeyState_serialize(): ModifierKeyStateGetter | undefined { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getGetModifierKeyState(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : ModifierKeyStateGetter | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + const buffer_BufResource : CallbackResource = retvalDeserializer.readCallbackResource() + const buffer_BufCall : KPointer = retvalDeserializer.readPointer() + const buffer_BufCallSync : KPointer = retvalDeserializer.readPointer() + buffer = (keys: Array):boolean => { + const buffer_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + buffer_BufArgsSerializer.writeInt32(buffer_BufResource.resourceId); + buffer_BufArgsSerializer.writePointer(buffer_BufCall); + buffer_BufArgsSerializer.writePointer(buffer_BufCallSync); + buffer_BufArgsSerializer.writeInt32((keys.length).toInt()); + for (let keysCounterI = 0; keysCounterI < keys.length; keysCounterI++) { + const keysTmpElement : string = keys[keysCounterI]; + buffer_BufArgsSerializer.writeString(keysTmpElement); + } + let buffer_BufContinuationValue : boolean | undefined; + const buffer_BufContinuationCallback : ((value0: boolean) => void) = (value: boolean):void => { + buffer_BufContinuationValue = value; + } + buffer_BufArgsSerializer.holdAndWriteCallback(buffer_BufContinuationCallback); + InteropNativeModule._CallCallback(-1026503952, buffer_BufArgsSerializer.asBuffer(), buffer_BufArgsSerializer.length()); + buffer_BufArgsSerializer.release(); + return (buffer_BufContinuationValue as boolean); + } + } + const returnResult : ModifierKeyStateGetter | undefined = buffer + return returnResult + } + private setGetModifierKeyState_serialize(getModifierKeyState: ModifierKeyStateGetter | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (getModifierKeyState !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const getModifierKeyStateTmpValue = getModifierKeyState! + thisSerializer.holdAndWriteCallback(getModifierKeyStateTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._BaseEvent_setGetModifierKeyState(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getDeviceId_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getDeviceId(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setDeviceId_serialize(deviceId: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (deviceId !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const deviceIdTmpValue = deviceId! + thisSerializer.writeNumber(deviceIdTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._BaseEvent_setDeviceId(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getTargetDisplayId_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._BaseEvent_getTargetDisplayId(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setTargetDisplayId_serialize(targetDisplayId: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (targetDisplayId !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const targetDisplayIdTmpValue = targetDisplayId! + thisSerializer.writeNumber(targetDisplayIdTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._BaseEvent_setTargetDisplayId(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export class ChildrenMainSizeInternal { + public static fromPtr(ptr: KPointer): ChildrenMainSize { + return new ChildrenMainSize(false, ptr) + } +} +export class ChildrenMainSize implements MaterializedBase { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get childDefaultSize(): number { + return this.getChildDefaultSize() + } + set childDefaultSize(childDefaultSize: number) { + this.setChildDefaultSize(childDefaultSize) + } + constructor(_0: boolean, peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, ChildrenMainSize.getFinalizer()) + } + constructor(childDefaultSize: number) { + this(false, ChildrenMainSize.construct(childDefaultSize)) + } + static construct(childDefaultSize: number): KPointer { + const retval = ArkUIGeneratedNativeModule._ChildrenMainSize_construct(childDefaultSize) + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ChildrenMainSize_getFinalizer() + } + 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 + } + 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) + return + } + private getChildDefaultSize(): number { + return this.getChildDefaultSize_serialize() + } + private setChildDefaultSize(childDefaultSize: number): void { + const childDefaultSize_casted = childDefaultSize as (number) + this.setChildDefaultSize_serialize(childDefaultSize_casted) + return + } + private splice_serialize(start: number, deleteCount?: number, childrenSize?: Array): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (deleteCount !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const deleteCountTmpValue = deleteCount! + thisSerializer.writeNumber(deleteCountTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (childrenSize !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const childrenSizeTmpValue = childrenSize! + thisSerializer.writeInt32((childrenSizeTmpValue.length).toInt()) + for (let childrenSizeTmpValueCounterI = 0; childrenSizeTmpValueCounterI < childrenSizeTmpValue.length; childrenSizeTmpValueCounterI++) { + const childrenSizeTmpValueTmpElement : number = childrenSizeTmpValue[childrenSizeTmpValueCounterI] + thisSerializer.writeNumber(childrenSizeTmpValueTmpElement) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ChildrenMainSize_splice(this.peer!.ptr, start, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private update_serialize(index: number, childSize: number): void { + ArkUIGeneratedNativeModule._ChildrenMainSize_update(this.peer!.ptr, index, childSize) + } + private getChildDefaultSize_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ChildrenMainSize_getChildDefaultSize(this.peer!.ptr) + return retval + } + private setChildDefaultSize_serialize(childDefaultSize: number): void { + ArkUIGeneratedNativeModule._ChildrenMainSize_setChildDefaultSize(this.peer!.ptr, childDefaultSize) + } +} +export interface DismissPopupAction { + reason: DismissReason + dismiss(): void +} +export class DismissPopupActionInternal implements MaterializedBase,DismissPopupAction { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get reason(): DismissReason { + return this.getReason() + } + set reason(reason: DismissReason) { + this.setReason(reason) + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, DismissPopupActionInternal.getFinalizer()) + } + constructor() { + this(DismissPopupActionInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._DismissPopupAction_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._DismissPopupAction_getFinalizer() + } + public static fromPtr(ptr: KPointer): DismissPopupActionInternal { + return new DismissPopupActionInternal(ptr) + } + public dismiss(): void { + this.dismiss_serialize() + return + } + private getReason(): DismissReason { + return this.getReason_serialize() + } + private setReason(reason: DismissReason): void { + const reason_casted = reason as (DismissReason) + this.setReason_serialize(reason_casted) + return + } + private dismiss_serialize(): void { + ArkUIGeneratedNativeModule._DismissPopupAction_dismiss(this.peer!.ptr) + } + private getReason_serialize(): DismissReason { + const retval = ArkUIGeneratedNativeModule._DismissPopupAction_getReason(this.peer!.ptr) + return TypeChecker.DismissReason_FromNumeric(retval) + } + private setReason_serialize(reason: DismissReason): void { + ArkUIGeneratedNativeModule._DismissPopupAction_setReason(this.peer!.ptr, TypeChecker.DismissReason_ToNumeric(reason)) + } +} +export interface DragEvent { + dragBehavior: DragBehavior + useCustomDropAnimation: boolean + getModifierKeyState?: ModifierKeyStateGetter | undefined + getDisplayX(): number + getDisplayY(): number + getWindowX(): number + getWindowY(): number + setData(unifiedData: unifiedDataChannel.UnifiedData): void + getData(): unifiedDataChannel.UnifiedData + getSummary(): unifiedDataChannel.Summary + setResult(dragResult: DragResult): void + getResult(): DragResult + getPreviewRect(): Rectangle + getVelocityX(): number + getVelocityY(): number + getVelocity(): number + executeDropAnimation(customDropAnimation: (() => void)): void + enableInternalDropAnimation(configuration: string): void +} +export class DragEventInternal implements MaterializedBase,DragEvent { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get dragBehavior(): DragBehavior { + return this.getDragBehavior() + } + set dragBehavior(dragBehavior: DragBehavior) { + this.setDragBehavior(dragBehavior) + } + get useCustomDropAnimation(): boolean { + return this.getUseCustomDropAnimation() + } + set useCustomDropAnimation(useCustomDropAnimation: boolean) { + this.setUseCustomDropAnimation(useCustomDropAnimation) + } + get getModifierKeyState(): ModifierKeyStateGetter | undefined { + return this.getGetModifierKeyState() + } + set getModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined) { + const getModifierKeyState_NonNull = (getModifierKeyState as ModifierKeyStateGetter) + this.setGetModifierKeyState(getModifierKeyState_NonNull) + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, DragEventInternal.getFinalizer()) + } + constructor() { + this(DragEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._DragEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._DragEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): DragEventInternal { + return new DragEventInternal(ptr) + } + public getDisplayX(): number { + return this.getDisplayX_serialize() + } + public getDisplayY(): number { + return this.getDisplayY_serialize() + } + public getWindowX(): number { + return this.getWindowX_serialize() + } + public getWindowY(): number { + return this.getWindowY_serialize() + } + public setData(unifiedData: unifiedDataChannel.UnifiedData): void { + const unifiedData_casted = unifiedData as (unifiedDataChannel.UnifiedData) + this.setData_serialize(unifiedData_casted) + return + } + public getData(): unifiedDataChannel.UnifiedData { + return this.getData_serialize() + } + public getSummary(): unifiedDataChannel.Summary { + return this.getSummary_serialize() + } + public setResult(dragResult: DragResult): void { + const dragResult_casted = dragResult as (DragResult) + this.setResult_serialize(dragResult_casted) + return + } + public getResult(): DragResult { + return this.getResult_serialize() + } + public getPreviewRect(): Rectangle { + return this.getPreviewRect_serialize() + } + public getVelocityX(): number { + return this.getVelocityX_serialize() + } + public getVelocityY(): number { + return this.getVelocityY_serialize() + } + public getVelocity(): number { + return this.getVelocity_serialize() + } + public executeDropAnimation(customDropAnimation: (() => void)): void { + const customDropAnimation_casted = customDropAnimation as ((() => void)) + this.executeDropAnimation_serialize(customDropAnimation_casted) + return + } + public enableInternalDropAnimation(configuration: string): void { + const configuration_casted = configuration as (string) + this.enableInternalDropAnimation_serialize(configuration_casted) + return + } + private getDragBehavior(): DragBehavior { + return this.getDragBehavior_serialize() + } + private setDragBehavior(dragBehavior: DragBehavior): void { + const dragBehavior_casted = dragBehavior as (DragBehavior) + this.setDragBehavior_serialize(dragBehavior_casted) + return + } + private getUseCustomDropAnimation(): boolean { + return this.getUseCustomDropAnimation_serialize() + } + private setUseCustomDropAnimation(useCustomDropAnimation: boolean): void { + const useCustomDropAnimation_casted = useCustomDropAnimation as (boolean) + this.setUseCustomDropAnimation_serialize(useCustomDropAnimation_casted) + return + } + private getGetModifierKeyState(): ModifierKeyStateGetter | undefined { + return this.getGetModifierKeyState_serialize() + } + private setGetModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined): void { + const getModifierKeyState_casted = getModifierKeyState as (ModifierKeyStateGetter | undefined) + this.setGetModifierKeyState_serialize(getModifierKeyState_casted) + return + } + private getDisplayX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._DragEvent_getDisplayX(this.peer!.ptr) + return retval + } + private getDisplayY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._DragEvent_getDisplayY(this.peer!.ptr) + return retval + } + private getWindowX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._DragEvent_getWindowX(this.peer!.ptr) + return retval + } + private getWindowY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._DragEvent_getWindowY(this.peer!.ptr) + return retval + } + private setData_serialize(unifiedData: unifiedDataChannel.UnifiedData): void { + ArkUIGeneratedNativeModule._DragEvent_setData(this.peer!.ptr, toPeerPtr(unifiedData)) + } + private getData_serialize(): unifiedDataChannel.UnifiedData { + const retval = ArkUIGeneratedNativeModule._DragEvent_getData(this.peer!.ptr) + const obj : unifiedDataChannel.UnifiedData = unifiedDataChannel.UnifiedDataInternal.fromPtr(retval) + return obj + } + private getSummary_serialize(): unifiedDataChannel.Summary { + const retval = ArkUIGeneratedNativeModule._DragEvent_getSummary(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : unifiedDataChannel.Summary = unifiedDataChannel_Summary_serializer.read(retvalDeserializer) + return returnResult + } + private setResult_serialize(dragResult: DragResult): void { + ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, TypeChecker.DragResult_ToNumeric(dragResult)) + } + private getResult_serialize(): DragResult { + const retval = ArkUIGeneratedNativeModule._DragEvent_getResult(this.peer!.ptr) + return TypeChecker.DragResult_FromNumeric(retval) + } + private getPreviewRect_serialize(): Rectangle { + const retval = ArkUIGeneratedNativeModule._DragEvent_getPreviewRect(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : Rectangle = Rectangle_serializer.read(retvalDeserializer) + return returnResult + } + private getVelocityX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityX(this.peer!.ptr) + return retval + } + private getVelocityY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityY(this.peer!.ptr) + return retval + } + private getVelocity_serialize(): number { + const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocity(this.peer!.ptr) + return retval + } + private executeDropAnimation_serialize(customDropAnimation: (() => void)): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(customDropAnimation) + ArkUIGeneratedNativeModule._DragEvent_executeDropAnimation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private enableInternalDropAnimation_serialize(configuration: string): void { + ArkUIGeneratedNativeModule._DragEvent_enableInternalDropAnimation(this.peer!.ptr, configuration) + } + private getDragBehavior_serialize(): DragBehavior { + const retval = ArkUIGeneratedNativeModule._DragEvent_getDragBehavior(this.peer!.ptr) + return TypeChecker.DragBehavior_FromNumeric(retval) + } + private setDragBehavior_serialize(dragBehavior: DragBehavior): void { + ArkUIGeneratedNativeModule._DragEvent_setDragBehavior(this.peer!.ptr, TypeChecker.DragBehavior_ToNumeric(dragBehavior)) + } + private getUseCustomDropAnimation_serialize(): boolean { + const retval = ArkUIGeneratedNativeModule._DragEvent_getUseCustomDropAnimation(this.peer!.ptr) + return retval + } + private setUseCustomDropAnimation_serialize(useCustomDropAnimation: boolean): void { + ArkUIGeneratedNativeModule._DragEvent_setUseCustomDropAnimation(this.peer!.ptr, useCustomDropAnimation ? 1 : 0) + } + private getGetModifierKeyState_serialize(): ModifierKeyStateGetter | undefined { + const retval = ArkUIGeneratedNativeModule._DragEvent_getGetModifierKeyState(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : ModifierKeyStateGetter | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + const buffer_BufResource : CallbackResource = retvalDeserializer.readCallbackResource() + const buffer_BufCall : KPointer = retvalDeserializer.readPointer() + const buffer_BufCallSync : KPointer = retvalDeserializer.readPointer() + buffer = (keys: Array):boolean => { + const buffer_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + buffer_BufArgsSerializer.writeInt32(buffer_BufResource.resourceId); + buffer_BufArgsSerializer.writePointer(buffer_BufCall); + buffer_BufArgsSerializer.writePointer(buffer_BufCallSync); + buffer_BufArgsSerializer.writeInt32((keys.length).toInt()); + for (let keysCounterI = 0; keysCounterI < keys.length; keysCounterI++) { + const keysTmpElement : string = keys[keysCounterI]; + buffer_BufArgsSerializer.writeString(keysTmpElement); + } + let buffer_BufContinuationValue : boolean | undefined; + const buffer_BufContinuationCallback : ((value0: boolean) => void) = (value: boolean):void => { + buffer_BufContinuationValue = value; + } + buffer_BufArgsSerializer.holdAndWriteCallback(buffer_BufContinuationCallback); + InteropNativeModule._CallCallback(-1026503952, buffer_BufArgsSerializer.asBuffer(), buffer_BufArgsSerializer.length()); + buffer_BufArgsSerializer.release(); + return (buffer_BufContinuationValue as boolean); + } + } + const returnResult : ModifierKeyStateGetter | undefined = buffer + return returnResult + } + private setGetModifierKeyState_serialize(getModifierKeyState: ModifierKeyStateGetter | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (getModifierKeyState !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const getModifierKeyStateTmpValue = getModifierKeyState! + thisSerializer.holdAndWriteCallback(getModifierKeyStateTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._DragEvent_setGetModifierKeyState(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export class DrawModifierInternal { + public static fromPtr(ptr: KPointer): DrawModifier { + return new DrawModifier(ptr) + } +} +export class DrawModifier implements MaterializedBase { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + drawBehind(drawContext: DrawContext): void { + } + get drawBehind_callback(): ((drawContext: DrawContext) => void) { + return this.getDrawBehind_callback() + } + set drawBehind_callback(drawBehind_callback: ((drawContext: DrawContext) => void)) { + this.setDrawBehind_callback(drawBehind_callback) + } + drawContent(drawContext: DrawContext): void { + } + get drawContent_callback(): ((drawContext: DrawContext) => void) { + return this.getDrawContent_callback() + } + set drawContent_callback(drawContent_callback: ((drawContext: DrawContext) => void)) { + this.setDrawContent_callback(drawContent_callback) + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, DrawModifier.getFinalizer()) + } + constructor() { + this(DrawModifier.construct()) + this.drawBehind_callback = this.drawBehind + this.drawContent_callback = this.drawContent + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._DrawModifier_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._DrawModifier_getFinalizer() + } + public invalidate(): void { + this.invalidate_serialize() + return + } + private getDrawBehind_callback(): ((drawContext: DrawContext) => void) { + return this.getDrawBehind_callback_serialize() + } + private setDrawBehind_callback(drawBehind_callback: ((drawContext: DrawContext) => void)): void { + const drawBehind_callback_casted = drawBehind_callback as (((drawContext: DrawContext) => void)) + this.setDrawBehind_callback_serialize(drawBehind_callback_casted) + return + } + private getDrawContent_callback(): ((drawContext: DrawContext) => void) { + return this.getDrawContent_callback_serialize() + } + private setDrawContent_callback(drawContent_callback: ((drawContext: DrawContext) => void)): void { + const drawContent_callback_casted = drawContent_callback as (((drawContext: DrawContext) => void)) + this.setDrawContent_callback_serialize(drawContent_callback_casted) + return + } + private invalidate_serialize(): void { + ArkUIGeneratedNativeModule._DrawModifier_invalidate(this.peer!.ptr) + } + private getDrawBehind_callback_serialize(): ((drawContext: DrawContext) => void) { + const retval = ArkUIGeneratedNativeModule._DrawModifier_getDrawBehind_callback(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setDrawBehind_callback_serialize(drawBehind_callback: ((drawContext: DrawContext) => void)): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(drawBehind_callback) + ArkUIGeneratedNativeModule._DrawModifier_setDrawBehind_callback(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getDrawContent_callback_serialize(): ((drawContext: DrawContext) => void) { + const retval = ArkUIGeneratedNativeModule._DrawModifier_getDrawContent_callback(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setDrawContent_callback_serialize(drawContent_callback: ((drawContext: DrawContext) => void)): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(drawContent_callback) + ArkUIGeneratedNativeModule._DrawModifier_setDrawContent_callback(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface GestureModifier { + applyGesture(event: UIGestureEvent): void +} +export class GestureModifierInternal implements MaterializedBase,GestureModifier { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, GestureModifierInternal.getFinalizer()) + } + constructor() { + this(GestureModifierInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._GestureModifier_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._GestureModifier_getFinalizer() + } + public static fromPtr(ptr: KPointer): GestureModifierInternal { + return new GestureModifierInternal(ptr) + } + public applyGesture(event: UIGestureEvent): void { + const event_casted = event as (UIGestureEvent) + this.applyGesture_serialize(event_casted) + return + } + private applyGesture_serialize(event: UIGestureEvent): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + UIGestureEvent_serializer.write(thisSerializer, event) + ArkUIGeneratedNativeModule._GestureModifier_applyGesture(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface KeyEvent { + type: KeyType + keyCode: number + keyText: string + keySource: KeySource + deviceId: number + metaKey: number + timestamp: number + stopPropagation: (() => void) + intentionCode: IntentionCode + getModifierKeyState?: ModifierKeyStateGetter | undefined + unicode?: number | undefined +} +export class KeyEventInternal implements MaterializedBase,KeyEvent { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get type(): KeyType { + return this.getType() + } + set type(type: KeyType) { + this.setType(type) + } + get keyCode(): number { + return this.getKeyCode() + } + set keyCode(keyCode: number) { + this.setKeyCode(keyCode) + } + get keyText(): string { + return this.getKeyText() + } + set keyText(keyText: string) { + this.setKeyText(keyText) + } + get keySource(): KeySource { + return this.getKeySource() + } + set keySource(keySource: KeySource) { + this.setKeySource(keySource) + } + get deviceId(): number { + return this.getDeviceId() + } + set deviceId(deviceId: number) { + this.setDeviceId(deviceId) + } + get metaKey(): number { + return this.getMetaKey() + } + set metaKey(metaKey: number) { + this.setMetaKey(metaKey) + } + get timestamp(): number { + return this.getTimestamp() + } + set timestamp(timestamp: number) { + this.setTimestamp(timestamp) + } + get stopPropagation(): (() => void) { + return this.getStopPropagation() + } + set stopPropagation(stopPropagation: (() => void)) { + this.setStopPropagation(stopPropagation) + } + get intentionCode(): IntentionCode { + return this.getIntentionCode() + } + set intentionCode(intentionCode: IntentionCode) { + this.setIntentionCode(intentionCode) + } + get getModifierKeyState(): ModifierKeyStateGetter | undefined { + return this.getGetModifierKeyState() + } + set getModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined) { + const getModifierKeyState_NonNull = (getModifierKeyState as ModifierKeyStateGetter) + this.setGetModifierKeyState(getModifierKeyState_NonNull) + } + get unicode(): number | undefined { + return this.getUnicode() + } + set unicode(unicode: number | undefined) { + const unicode_NonNull = (unicode as number) + this.setUnicode(unicode_NonNull) + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, KeyEventInternal.getFinalizer()) + } + constructor() { + this(KeyEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._KeyEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._KeyEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): KeyEventInternal { + return new KeyEventInternal(ptr) + } + private getType(): KeyType { + return this.getType_serialize() + } + private setType(type: KeyType): void { + const type_casted = type as (KeyType) + this.setType_serialize(type_casted) + return + } + private getKeyCode(): number { + return this.getKeyCode_serialize() + } + private setKeyCode(keyCode: number): void { + const keyCode_casted = keyCode as (number) + this.setKeyCode_serialize(keyCode_casted) + return + } + private getKeyText(): string { + return this.getKeyText_serialize() + } + private setKeyText(keyText: string): void { + const keyText_casted = keyText as (string) + this.setKeyText_serialize(keyText_casted) + return + } + private getKeySource(): KeySource { + return this.getKeySource_serialize() + } + private setKeySource(keySource: KeySource): void { + const keySource_casted = keySource as (KeySource) + this.setKeySource_serialize(keySource_casted) + return + } + private getDeviceId(): number { + return this.getDeviceId_serialize() + } + private setDeviceId(deviceId: number): void { + const deviceId_casted = deviceId as (number) + this.setDeviceId_serialize(deviceId_casted) + return + } + private getMetaKey(): number { + return this.getMetaKey_serialize() + } + private setMetaKey(metaKey: number): void { + const metaKey_casted = metaKey as (number) + this.setMetaKey_serialize(metaKey_casted) + return + } + private getTimestamp(): number { + return this.getTimestamp_serialize() + } + private setTimestamp(timestamp: number): void { + const timestamp_casted = timestamp as (number) + 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) + return + } + private getIntentionCode(): IntentionCode { + return this.getIntentionCode_serialize() + } + private setIntentionCode(intentionCode: IntentionCode): void { + const intentionCode_casted = intentionCode as (IntentionCode) + this.setIntentionCode_serialize(intentionCode_casted) + return + } + private getGetModifierKeyState(): ModifierKeyStateGetter | undefined { + return this.getGetModifierKeyState_serialize() + } + private setGetModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined): void { + const getModifierKeyState_casted = getModifierKeyState as (ModifierKeyStateGetter | undefined) + this.setGetModifierKeyState_serialize(getModifierKeyState_casted) + return + } + private getUnicode(): number | undefined { + return this.getUnicode_serialize() + } + private setUnicode(unicode: number | undefined): void { + const unicode_casted = unicode as (number | undefined) + this.setUnicode_serialize(unicode_casted) + return + } + private getType_serialize(): KeyType { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getType(this.peer!.ptr) + return TypeChecker.KeyType_FromNumeric(retval) + } + private setType_serialize(type: KeyType): void { + ArkUIGeneratedNativeModule._KeyEvent_setType(this.peer!.ptr, TypeChecker.KeyType_ToNumeric(type)) + } + private getKeyCode_serialize(): number { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getKeyCode(this.peer!.ptr) + return retval + } + private setKeyCode_serialize(keyCode: number): void { + ArkUIGeneratedNativeModule._KeyEvent_setKeyCode(this.peer!.ptr, keyCode) + } + private getKeyText_serialize(): string { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getKeyText(this.peer!.ptr) + return retval + } + private setKeyText_serialize(keyText: string): void { + ArkUIGeneratedNativeModule._KeyEvent_setKeyText(this.peer!.ptr, keyText) + } + private getKeySource_serialize(): KeySource { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getKeySource(this.peer!.ptr) + return TypeChecker.KeySource_FromNumeric(retval) + } + private setKeySource_serialize(keySource: KeySource): void { + ArkUIGeneratedNativeModule._KeyEvent_setKeySource(this.peer!.ptr, TypeChecker.KeySource_ToNumeric(keySource)) + } + private getDeviceId_serialize(): number { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getDeviceId(this.peer!.ptr) + return retval + } + private setDeviceId_serialize(deviceId: number): void { + ArkUIGeneratedNativeModule._KeyEvent_setDeviceId(this.peer!.ptr, deviceId) + } + private getMetaKey_serialize(): number { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getMetaKey(this.peer!.ptr) + return retval + } + private setMetaKey_serialize(metaKey: number): void { + ArkUIGeneratedNativeModule._KeyEvent_setMetaKey(this.peer!.ptr, metaKey) + } + private getTimestamp_serialize(): number { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getTimestamp(this.peer!.ptr) + return retval + } + 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 : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(stopPropagation) + ArkUIGeneratedNativeModule._KeyEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getIntentionCode_serialize(): IntentionCode { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getIntentionCode(this.peer!.ptr) + return TypeChecker.IntentionCode_FromNumeric(retval) + } + private setIntentionCode_serialize(intentionCode: IntentionCode): void { + ArkUIGeneratedNativeModule._KeyEvent_setIntentionCode(this.peer!.ptr, TypeChecker.IntentionCode_ToNumeric(intentionCode)) + } + private getGetModifierKeyState_serialize(): ModifierKeyStateGetter | undefined { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getGetModifierKeyState(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : ModifierKeyStateGetter | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + const buffer_BufResource : CallbackResource = retvalDeserializer.readCallbackResource() + const buffer_BufCall : KPointer = retvalDeserializer.readPointer() + const buffer_BufCallSync : KPointer = retvalDeserializer.readPointer() + buffer = (keys: Array):boolean => { + const buffer_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + buffer_BufArgsSerializer.writeInt32(buffer_BufResource.resourceId); + buffer_BufArgsSerializer.writePointer(buffer_BufCall); + buffer_BufArgsSerializer.writePointer(buffer_BufCallSync); + buffer_BufArgsSerializer.writeInt32((keys.length).toInt()); + for (let keysCounterI = 0; keysCounterI < keys.length; keysCounterI++) { + const keysTmpElement : string = keys[keysCounterI]; + buffer_BufArgsSerializer.writeString(keysTmpElement); + } + let buffer_BufContinuationValue : boolean | undefined; + const buffer_BufContinuationCallback : ((value0: boolean) => void) = (value: boolean):void => { + buffer_BufContinuationValue = value; + } + buffer_BufArgsSerializer.holdAndWriteCallback(buffer_BufContinuationCallback); + InteropNativeModule._CallCallback(-1026503952, buffer_BufArgsSerializer.asBuffer(), buffer_BufArgsSerializer.length()); + buffer_BufArgsSerializer.release(); + return (buffer_BufContinuationValue as boolean); + } + } + const returnResult : ModifierKeyStateGetter | undefined = buffer + return returnResult + } + private setGetModifierKeyState_serialize(getModifierKeyState: ModifierKeyStateGetter | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (getModifierKeyState !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const getModifierKeyStateTmpValue = getModifierKeyState! + thisSerializer.holdAndWriteCallback(getModifierKeyStateTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._KeyEvent_setGetModifierKeyState(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getUnicode_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getUnicode(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setUnicode_serialize(unicode: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (unicode !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const unicodeTmpValue = unicode! + thisSerializer.writeNumber(unicodeTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._KeyEvent_setUnicode(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface Layoutable { + measureResult: MeasureResult + uniqueId?: number | undefined + layout(position: Position): void + getMargin(): DirectionalEdgesT + getPadding(): DirectionalEdgesT + getBorderWidth(): DirectionalEdgesT +} +export class LayoutableInternal implements MaterializedBase,Layoutable { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get measureResult(): MeasureResult { + return this.getMeasureResult() + } + set measureResult(measureResult: MeasureResult) { + this.setMeasureResult(measureResult) + } + get uniqueId(): number | undefined { + return this.getUniqueId() + } + set uniqueId(uniqueId: number | undefined) { + const uniqueId_NonNull = (uniqueId as number) + this.setUniqueId(uniqueId_NonNull) + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, LayoutableInternal.getFinalizer()) + } + constructor() { + this(LayoutableInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._Layoutable_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._Layoutable_getFinalizer() + } + public static fromPtr(ptr: KPointer): LayoutableInternal { + return new LayoutableInternal(ptr) + } + public layout(position: Position): void { + const position_casted = position as (Position) + this.layout_serialize(position_casted) + return + } + public getMargin(): DirectionalEdgesT { + return this.getMargin_serialize() + } + public getPadding(): DirectionalEdgesT { + return this.getPadding_serialize() + } + public getBorderWidth(): DirectionalEdgesT { + return this.getBorderWidth_serialize() + } + private getMeasureResult(): MeasureResult { + return this.getMeasureResult_serialize() + } + private setMeasureResult(measureResult: MeasureResult): void { + const measureResult_casted = measureResult as (MeasureResult) + this.setMeasureResult_serialize(measureResult_casted) + return + } + private getUniqueId(): number | undefined { + return this.getUniqueId_serialize() + } + private setUniqueId(uniqueId: number | undefined): void { + const uniqueId_casted = uniqueId as (number | undefined) + this.setUniqueId_serialize(uniqueId_casted) + return + } + private layout_serialize(position: Position): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + Position_serializer.write(thisSerializer, position) + ArkUIGeneratedNativeModule._Layoutable_layout(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getMargin_serialize(): DirectionalEdgesT { + const retval = ArkUIGeneratedNativeModule._Layoutable_getMargin(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) + return returnResult + } + private getPadding_serialize(): DirectionalEdgesT { + const retval = ArkUIGeneratedNativeModule._Layoutable_getPadding(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) + return returnResult + } + private getBorderWidth_serialize(): DirectionalEdgesT { + const retval = ArkUIGeneratedNativeModule._Layoutable_getBorderWidth(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) + return returnResult + } + private getMeasureResult_serialize(): MeasureResult { + const retval = ArkUIGeneratedNativeModule._Layoutable_getMeasureResult(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : MeasureResult = MeasureResult_serializer.read(retvalDeserializer) + return returnResult + } + private setMeasureResult_serialize(measureResult: MeasureResult): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + MeasureResult_serializer.write(thisSerializer, measureResult) + ArkUIGeneratedNativeModule._Layoutable_setMeasureResult(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getUniqueId_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._Layoutable_getUniqueId(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setUniqueId_serialize(uniqueId: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (uniqueId !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const uniqueIdTmpValue = uniqueId! + thisSerializer.writeNumber(uniqueIdTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._Layoutable_setUniqueId(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface LayoutChild { + name: string + id: string + position: Position + measure(childConstraint: ConstraintSizeOptions): void +} +export class LayoutChildInternal implements MaterializedBase,LayoutChild { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get name(): string { + return this.getName() + } + set name(name: string) { + this.setName(name) + } + get id(): string { + return this.getId() + } + set id(id: string) { + this.setId(id) + } + get position(): Position { + return this.getPosition() + } + set position(position: Position) { + this.setPosition(position) + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, LayoutChildInternal.getFinalizer()) + } + constructor() { + this(LayoutChildInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._LayoutChild_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._LayoutChild_getFinalizer() + } + public static fromPtr(ptr: KPointer): LayoutChildInternal { + return new LayoutChildInternal(ptr) + } + public measure(childConstraint: ConstraintSizeOptions): void { + const childConstraint_casted = childConstraint as (ConstraintSizeOptions) + this.measure_serialize(childConstraint_casted) + return + } + 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 getId(): string { + return this.getId_serialize() + } + private setId(id: string): void { + const id_casted = id as (string) + this.setId_serialize(id_casted) + return + } + private getPosition(): Position { + return this.getPosition_serialize() + } + private setPosition(position: Position): void { + const position_casted = position as (Position) + this.setPosition_serialize(position_casted) + return + } + private measure_serialize(childConstraint: ConstraintSizeOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + ConstraintSizeOptions_serializer.write(thisSerializer, childConstraint) + ArkUIGeneratedNativeModule._LayoutChild_measure(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getName_serialize(): string { + const retval = ArkUIGeneratedNativeModule._LayoutChild_getName(this.peer!.ptr) + return retval + } + private setName_serialize(name: string): void { + ArkUIGeneratedNativeModule._LayoutChild_setName(this.peer!.ptr, name) + } + private getId_serialize(): string { + const retval = ArkUIGeneratedNativeModule._LayoutChild_getId(this.peer!.ptr) + return retval + } + private setId_serialize(id: string): void { + ArkUIGeneratedNativeModule._LayoutChild_setId(this.peer!.ptr, id) + } + private getPosition_serialize(): Position { + const retval = ArkUIGeneratedNativeModule._LayoutChild_getPosition(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : Position = Position_serializer.read(retvalDeserializer) + return returnResult + } + private setPosition_serialize(position: Position): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + Position_serializer.write(thisSerializer, position) + ArkUIGeneratedNativeModule._LayoutChild_setPosition(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export class LayoutPolicyInternal { + public static fromPtr(ptr: KPointer): LayoutPolicy { + return new LayoutPolicy(ptr) + } +} +export class LayoutPolicy implements MaterializedBase { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static readonly matchParent: LayoutPolicy = LayoutPolicy.getMatchParent() + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, LayoutPolicy.getFinalizer()) + } + constructor() { + this(LayoutPolicy.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._LayoutPolicy_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._LayoutPolicy_getFinalizer() + } + private static getMatchParent_serialize(): LayoutPolicy { + const retval = ArkUIGeneratedNativeModule._LayoutPolicy_getMatchParent() + const obj : LayoutPolicy = LayoutPolicyInternal.fromPtr(retval) + return obj + } + private static getMatchParent(): LayoutPolicy { + return LayoutPolicy.getMatchParent_serialize() + } +} +export interface Measurable { + uniqueId?: number | undefined + measure(constraint: ConstraintSizeOptions): MeasureResult + getMargin(): DirectionalEdgesT + getPadding(): DirectionalEdgesT + getBorderWidth(): DirectionalEdgesT +} +export class MeasurableInternal implements MaterializedBase,Measurable { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get uniqueId(): number | undefined { + return this.getUniqueId() + } + set uniqueId(uniqueId: number | undefined) { + const uniqueId_NonNull = (uniqueId as number) + this.setUniqueId(uniqueId_NonNull) + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, MeasurableInternal.getFinalizer()) + } + constructor() { + this(MeasurableInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._Measurable_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._Measurable_getFinalizer() + } + public static fromPtr(ptr: KPointer): MeasurableInternal { + return new MeasurableInternal(ptr) + } + public measure(constraint: ConstraintSizeOptions): MeasureResult { + const constraint_casted = constraint as (ConstraintSizeOptions) + return this.measure_serialize(constraint_casted) + } + public getMargin(): DirectionalEdgesT { + return this.getMargin_serialize() + } + public getPadding(): DirectionalEdgesT { + return this.getPadding_serialize() + } + public getBorderWidth(): DirectionalEdgesT { + return this.getBorderWidth_serialize() + } + private getUniqueId(): number | undefined { + return this.getUniqueId_serialize() + } + private setUniqueId(uniqueId: number | undefined): void { + const uniqueId_casted = uniqueId as (number | undefined) + this.setUniqueId_serialize(uniqueId_casted) + return + } + private measure_serialize(constraint: ConstraintSizeOptions): MeasureResult { + const thisSerializer : SerializerBase = SerializerBase.hold() + ConstraintSizeOptions_serializer.write(thisSerializer, constraint) + const retval = ArkUIGeneratedNativeModule._Measurable_measure(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : MeasureResult = MeasureResult_serializer.read(retvalDeserializer) + return returnResult + } + private getMargin_serialize(): DirectionalEdgesT { + const retval = ArkUIGeneratedNativeModule._Measurable_getMargin(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) + return returnResult + } + private getPadding_serialize(): DirectionalEdgesT { + const retval = ArkUIGeneratedNativeModule._Measurable_getPadding(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) + return returnResult + } + private getBorderWidth_serialize(): DirectionalEdgesT { + const retval = ArkUIGeneratedNativeModule._Measurable_getBorderWidth(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) + return returnResult + } + private getUniqueId_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._Measurable_getUniqueId(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setUniqueId_serialize(uniqueId: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (uniqueId !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const uniqueIdTmpValue = uniqueId! + thisSerializer.writeNumber(uniqueIdTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._Measurable_setUniqueId(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface PixelMapMock { + release(): void +} +export class PixelMapMockInternal implements MaterializedBase,PixelMapMock { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, PixelMapMockInternal.getFinalizer()) + } + constructor() { + this(PixelMapMockInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._PixelMapMock_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._PixelMapMock_getFinalizer() + } + public static fromPtr(ptr: KPointer): PixelMapMockInternal { + return new PixelMapMockInternal(ptr) + } + public release(): void { + this.release_serialize() + return + } + private release_serialize(): void { + ArkUIGeneratedNativeModule._PixelMapMock_release(this.peer!.ptr) + } +} +export class ProgressMaskInternal { + public static fromPtr(ptr: KPointer): ProgressMask { + return new ProgressMask(false, false, false, ptr) + } +} +export class ProgressMask implements MaterializedBase { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + constructor(_0: boolean, _1: boolean, _2: boolean, peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, ProgressMask.getFinalizer()) + } + constructor(value: number, total: number, color: ResourceColor) { + this(false, false, false, ProgressMask.construct(value, total, color)) + } + static construct(value: number, total: number, color: ResourceColor): KPointer { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (color instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const colorForIdx0 = color as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(colorForIdx0)) + } else if (color instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const colorForIdx1 = color as number + thisSerializer.writeNumber(colorForIdx1) + } else if (color instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const colorForIdx2 = color as string + thisSerializer.writeString(colorForIdx2) + } else if (color instanceof Resource) { + thisSerializer.writeInt8((3).toChar()) + const colorForIdx3 = color as Resource + Resource_serializer.write(thisSerializer, colorForIdx3) + } + const retval = ArkUIGeneratedNativeModule._ProgressMask_construct(value, total, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ProgressMask_getFinalizer() + } + public updateProgress(value: number): void { + const value_casted = value as (number) + this.updateProgress_serialize(value_casted) + return + } + public updateColor(value: ResourceColor): void { + const value_casted = value as (ResourceColor) + this.updateColor_serialize(value_casted) + return + } + public enableBreathingAnimation(value: boolean): void { + const value_casted = value as (boolean) + this.enableBreathingAnimation_serialize(value_casted) + return + } + private updateProgress_serialize(value: number): void { + ArkUIGeneratedNativeModule._ProgressMask_updateProgress(this.peer!.ptr, value) + } + private updateColor_serialize(value: ResourceColor): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const valueForIdx0 = value as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueForIdx0)) + } else if (value instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueForIdx1 = value as number + thisSerializer.writeNumber(valueForIdx1) + } else if (value instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const valueForIdx2 = value as string + thisSerializer.writeString(valueForIdx2) + } else if (value instanceof Resource) { + thisSerializer.writeInt8((3).toChar()) + const valueForIdx3 = value as Resource + Resource_serializer.write(thisSerializer, valueForIdx3) + } + ArkUIGeneratedNativeModule._ProgressMask_updateColor(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private enableBreathingAnimation_serialize(value: boolean): void { + ArkUIGeneratedNativeModule._ProgressMask_enableBreathingAnimation(this.peer!.ptr, value ? 1 : 0) + } +} +export class ScrollResultInternal { + public static fromPtr(ptr: KPointer): ScrollResult { + return new ScrollResult(ptr) + } +} +export class ScrollResult implements MaterializedBase { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get offsetRemain(): number { + return this.getOffsetRemain() + } + set offsetRemain(offsetRemain: number) { + this.setOffsetRemain(offsetRemain) + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, ScrollResult.getFinalizer()) + } + constructor() { + this(ScrollResult.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._ScrollResult_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ScrollResult_getFinalizer() + } + private getOffsetRemain(): number { + return this.getOffsetRemain_serialize() + } + private setOffsetRemain(offsetRemain: number): void { + const offsetRemain_casted = offsetRemain as (number) + this.setOffsetRemain_serialize(offsetRemain_casted) + return + } + private getOffsetRemain_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ScrollResult_getOffsetRemain(this.peer!.ptr) + return retval + } + private setOffsetRemain_serialize(offsetRemain: number): void { + ArkUIGeneratedNativeModule._ScrollResult_setOffsetRemain(this.peer!.ptr, offsetRemain) + } +} +export class TextContentControllerBaseInternal { + public static fromPtr(ptr: KPointer): TextContentControllerBase { + return new TextContentControllerBase(ptr) + } +} +export class TextContentControllerBase implements MaterializedBase { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, TextContentControllerBase.getFinalizer()) + } + constructor() { + this(TextContentControllerBase.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._TextContentControllerBase_getFinalizer() + } + public getCaretOffset(): CaretOffset { + return this.getCaretOffset_serialize() + } + public getTextContentRect(): RectResult { + return this.getTextContentRect_serialize() + } + public getTextContentLineCount(): number { + return this.getTextContentLineCount_serialize() + } + public addText(text: string, textOperationOptions?: TextContentControllerOptions): number { + const text_casted = text as (string) + const textOperationOptions_casted = textOperationOptions as (TextContentControllerOptions | undefined) + return this.addText_serialize(text_casted, textOperationOptions_casted) + } + public deleteText(range?: TextRange): void { + const range_casted = range as (TextRange | undefined) + this.deleteText_serialize(range_casted) + return + } + public getSelection(): TextRange { + return this.getSelection_serialize() + } + public clearPreviewText(): void { + this.clearPreviewText_serialize() + return + } + public getText(range?: TextRange): string { + const range_casted = range as (TextRange | undefined) + return this.getText_serialize(range_casted) + } + private getCaretOffset_serialize(): CaretOffset { + const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : CaretOffset = CaretOffset_serializer.read(retvalDeserializer) + return returnResult + } + private getTextContentRect_serialize(): RectResult { + const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : RectResult = RectResult_serializer.read(retvalDeserializer) + return returnResult + } + private getTextContentLineCount_serialize(): number { + const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) + return retval + } + private addText_serialize(text: string, textOperationOptions?: TextContentControllerOptions): number { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (textOperationOptions !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const textOperationOptionsTmpValue = textOperationOptions! + TextContentControllerOptions_serializer.write(thisSerializer, textOperationOptionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_addText(this.peer!.ptr, text, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + return retval + } + private deleteText_serialize(range?: TextRange): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (range !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const rangeTmpValue = range! + TextRange_serializer.write(thisSerializer, rangeTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextContentControllerBase_deleteText(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getSelection_serialize(): TextRange { + const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getSelection(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : TextRange = TextRange_serializer.read(retvalDeserializer) + return returnResult + } + private clearPreviewText_serialize(): void { + ArkUIGeneratedNativeModule._TextContentControllerBase_clearPreviewText(this.peer!.ptr) + } + private getText_serialize(range?: TextRange): string { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (range !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const rangeTmpValue = range! + TextRange_serializer.write(thisSerializer, rangeTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getText(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + return retval + } +} +export class TransitionEffectInternal { + public static fromPtr(ptr: KPointer): TransitionEffect { + return new TransitionEffect(false, ptr) + } +} +export class TransitionEffect implements MaterializedBase { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static get IDENTITY(): TransitionEffect { + return TransitionEffect.getIDENTITY() + } + static set IDENTITY(IDENTITY: TransitionEffect) { + TransitionEffect.setIDENTITY(IDENTITY) + } + static get OPACITY(): TransitionEffect { + return TransitionEffect.getOPACITY() + } + static set OPACITY(OPACITY: TransitionEffect) { + TransitionEffect.setOPACITY(OPACITY) + } + static get SLIDE(): TransitionEffect { + return TransitionEffect.getSLIDE() + } + static set SLIDE(SLIDE: TransitionEffect) { + TransitionEffect.setSLIDE(SLIDE) + } + static get SLIDE_SWITCH(): TransitionEffect { + return TransitionEffect.getSLIDE_SWITCH() + } + static set SLIDE_SWITCH(SLIDE_SWITCH: TransitionEffect) { + TransitionEffect.setSLIDE_SWITCH(SLIDE_SWITCH) + } + constructor(_0: boolean, peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, TransitionEffect.getFinalizer()) + } + constructor(type: string) { + this(false, TransitionEffect.construct0(type)) + } + constructor(effect: number) { + this(false, TransitionEffect.construct1(effect)) + } + constructor(effect: TransitionEdge) { + this(false, TransitionEffect.construct2(effect)) + } + constructor(effect: TranslateOptions) { + this(false, TransitionEffect.construct3(effect)) + } + constructor(effect: RotateOptions) { + this(false, TransitionEffect.construct4(effect)) + } + constructor(effect: ScaleOptions) { + this(false, TransitionEffect.construct5(effect)) + } + constructor(effect: AsymmetricTransitionOption) { + this(false, TransitionEffect.construct6(effect)) + } + static construct0(type: string): KPointer { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct0(type) + return retval + } + static construct1(effect: number): KPointer { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct1(effect) + return retval + } + static construct2(effect: TransitionEdge): KPointer { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct2(TypeChecker.TransitionEdge_ToNumeric(effect)) + return retval + } + static construct3(effect: TranslateOptions): KPointer { + const thisSerializer : SerializerBase = SerializerBase.hold() + TranslateOptions_serializer.write(thisSerializer, effect) + const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct3(thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + return retval + } + static construct4(effect: RotateOptions): KPointer { + const thisSerializer : SerializerBase = SerializerBase.hold() + RotateOptions_serializer.write(thisSerializer, effect) + const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct4(thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + return retval + } + static construct5(effect: ScaleOptions): KPointer { + const thisSerializer : SerializerBase = SerializerBase.hold() + ScaleOptions_serializer.write(thisSerializer, effect) + const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct5(thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + return retval + } + static construct6(effect: AsymmetricTransitionOption): KPointer { + const thisSerializer : SerializerBase = SerializerBase.hold() + AsymmetricTransitionOption_serializer.write(thisSerializer, effect) + const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct6(thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._TransitionEffect_getFinalizer() + } + private static translate_serialize(options: TranslateOptions): TransitionEffect { + const thisSerializer : SerializerBase = SerializerBase.hold() + TranslateOptions_serializer.write(thisSerializer, options) + const retval = ArkUIGeneratedNativeModule._TransitionEffect_translate(thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static rotate_serialize(options: RotateOptions): TransitionEffect { + const thisSerializer : SerializerBase = SerializerBase.hold() + RotateOptions_serializer.write(thisSerializer, options) + const retval = ArkUIGeneratedNativeModule._TransitionEffect_rotate(thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static scale_serialize(options: ScaleOptions): TransitionEffect { + const thisSerializer : SerializerBase = SerializerBase.hold() + ScaleOptions_serializer.write(thisSerializer, options) + const retval = ArkUIGeneratedNativeModule._TransitionEffect_scale(thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static opacity_serialize(alpha: number): TransitionEffect { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_opacity(alpha) + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static move_serialize(edge: TransitionEdge): TransitionEffect { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_move(TypeChecker.TransitionEdge_ToNumeric(edge)) + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static asymmetric_serialize(appear: TransitionEffect, disappear: TransitionEffect): TransitionEffect { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_asymmetric(toPeerPtr(appear), toPeerPtr(disappear)) + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static getIDENTITY_serialize(): TransitionEffect { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_getIDENTITY() + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static setIDENTITY_serialize(IDENTITY: TransitionEffect): void { + ArkUIGeneratedNativeModule._TransitionEffect_setIDENTITY(toPeerPtr(IDENTITY)) + } + private static getOPACITY_serialize(): TransitionEffect { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_getOPACITY() + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static setOPACITY_serialize(OPACITY: TransitionEffect): void { + ArkUIGeneratedNativeModule._TransitionEffect_setOPACITY(toPeerPtr(OPACITY)) + } + private static getSLIDE_serialize(): TransitionEffect { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_getSLIDE() + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static setSLIDE_serialize(SLIDE: TransitionEffect): void { + ArkUIGeneratedNativeModule._TransitionEffect_setSLIDE(toPeerPtr(SLIDE)) + } + private static getSLIDE_SWITCH_serialize(): TransitionEffect { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_getSLIDE_SWITCH() + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private static setSLIDE_SWITCH_serialize(SLIDE_SWITCH: TransitionEffect): void { + ArkUIGeneratedNativeModule._TransitionEffect_setSLIDE_SWITCH(toPeerPtr(SLIDE_SWITCH)) + } + public static translate(options: TranslateOptions): TransitionEffect { + const options_casted = options as (TranslateOptions) + return TransitionEffect.translate_serialize(options_casted) + } + public static rotate(options: RotateOptions): TransitionEffect { + const options_casted = options as (RotateOptions) + return TransitionEffect.rotate_serialize(options_casted) + } + public static scale(options: ScaleOptions): TransitionEffect { + const options_casted = options as (ScaleOptions) + return TransitionEffect.scale_serialize(options_casted) + } + public static opacity(alpha: number): TransitionEffect { + const alpha_casted = alpha as (number) + return TransitionEffect.opacity_serialize(alpha_casted) + } + public static move(edge: TransitionEdge): TransitionEffect { + const edge_casted = edge as (TransitionEdge) + return TransitionEffect.move_serialize(edge_casted) + } + 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) + } + public animation(value: AnimateParam): TransitionEffect { + const value_casted = value as (AnimateParam) + return this.animation_serialize(value_casted) + } + public combine(transitionEffect: TransitionEffect): TransitionEffect { + const transitionEffect_casted = transitionEffect as (TransitionEffect) + return this.combine_serialize(transitionEffect_casted) + } + private static getIDENTITY(): TransitionEffect { + return TransitionEffect.getIDENTITY_serialize() + } + private static setIDENTITY(IDENTITY: TransitionEffect): void { + const IDENTITY_casted = IDENTITY as (TransitionEffect) + TransitionEffect.setIDENTITY_serialize(IDENTITY_casted) + return + } + private static getOPACITY(): TransitionEffect { + return TransitionEffect.getOPACITY_serialize() + } + private static setOPACITY(OPACITY: TransitionEffect): void { + const OPACITY_casted = OPACITY as (TransitionEffect) + TransitionEffect.setOPACITY_serialize(OPACITY_casted) + return + } + private static getSLIDE(): TransitionEffect { + return TransitionEffect.getSLIDE_serialize() + } + private static setSLIDE(SLIDE: TransitionEffect): void { + const SLIDE_casted = SLIDE as (TransitionEffect) + TransitionEffect.setSLIDE_serialize(SLIDE_casted) + return + } + private static getSLIDE_SWITCH(): TransitionEffect { + return TransitionEffect.getSLIDE_SWITCH_serialize() + } + private static setSLIDE_SWITCH(SLIDE_SWITCH: TransitionEffect): void { + const SLIDE_SWITCH_casted = SLIDE_SWITCH as (TransitionEffect) + TransitionEffect.setSLIDE_SWITCH_serialize(SLIDE_SWITCH_casted) + return + } + private animation_serialize(value: AnimateParam): TransitionEffect { + const thisSerializer : SerializerBase = SerializerBase.hold() + AnimateParam_serializer.write(thisSerializer, value) + const retval = ArkUIGeneratedNativeModule._TransitionEffect_animation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } + private combine_serialize(transitionEffect: TransitionEffect): TransitionEffect { + const retval = ArkUIGeneratedNativeModule._TransitionEffect_combine(this.peer!.ptr, toPeerPtr(transitionEffect)) + const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) + return obj + } +} +export interface UICommonEvent { + setOnClick(callback_: ((event: ClickEvent) => void) | undefined): void + setOnTouch(callback_: ((event: TouchEvent) => void) | undefined): void + setOnAppear(callback_: (() => void) | undefined): void + setOnDisappear(callback_: (() => void) | undefined): void + setOnKeyEvent(callback_: ((event: KeyEvent) => void) | undefined): void + setOnFocus(callback_: (() => void) | undefined): void + setOnBlur(callback_: (() => void) | undefined): void + setOnHover(callback_: HoverCallback | undefined): void + setOnMouse(callback_: ((event: MouseEvent) => void) | undefined): void + setOnSizeChange(callback_: SizeChangeCallback | undefined): void + setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event: VisibleAreaChangeCallback | undefined): void +} +export class UICommonEventInternal implements MaterializedBase,UICommonEvent { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, UICommonEventInternal.getFinalizer()) + } + constructor() { + this(UICommonEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._UICommonEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._UICommonEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): UICommonEventInternal { + return new UICommonEventInternal(ptr) + } + public setOnClick(callback_: ((event: ClickEvent) => void) | undefined): void { + const callback__casted = callback_ as (((event: ClickEvent) => void) | undefined) + this.setOnClick_serialize(callback__casted) + return + } + public setOnTouch(callback_: ((event: TouchEvent) => void) | undefined): void { + const callback__casted = callback_ as (((event: TouchEvent) => void) | undefined) + this.setOnTouch_serialize(callback__casted) + return + } + public setOnAppear(callback_: (() => void) | undefined): void { + const callback__casted = callback_ as ((() => void) | undefined) + this.setOnAppear_serialize(callback__casted) + return + } + public setOnDisappear(callback_: (() => void) | undefined): void { + const callback__casted = callback_ as ((() => void) | undefined) + this.setOnDisappear_serialize(callback__casted) + return + } + public setOnKeyEvent(callback_: ((event: KeyEvent) => void) | undefined): void { + const callback__casted = callback_ as (((event: KeyEvent) => void) | undefined) + this.setOnKeyEvent_serialize(callback__casted) + return + } + public setOnFocus(callback_: (() => void) | undefined): void { + const callback__casted = callback_ as ((() => void) | undefined) + this.setOnFocus_serialize(callback__casted) + return + } + public setOnBlur(callback_: (() => void) | undefined): void { + const callback__casted = callback_ as ((() => void) | undefined) + this.setOnBlur_serialize(callback__casted) + return + } + public setOnHover(callback_: HoverCallback | undefined): void { + const callback__casted = callback_ as (HoverCallback | undefined) + this.setOnHover_serialize(callback__casted) + return + } + public setOnMouse(callback_: ((event: MouseEvent) => void) | undefined): void { + const callback__casted = callback_ as (((event: MouseEvent) => void) | undefined) + this.setOnMouse_serialize(callback__casted) + return + } + public setOnSizeChange(callback_: SizeChangeCallback | undefined): void { + const callback__casted = callback_ as (SizeChangeCallback | undefined) + this.setOnSizeChange_serialize(callback__casted) + return + } + public setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event: VisibleAreaChangeCallback | undefined): void { + const options_casted = options as (VisibleAreaEventOptions) + const event_casted = event as (VisibleAreaChangeCallback | undefined) + this.setOnVisibleAreaApproximateChange_serialize(options_casted, event_casted) + return + } + private setOnClick_serialize(callback_: ((event: ClickEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnClick(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnTouch_serialize(callback_: ((event: TouchEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnTouch(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnAppear_serialize(callback_: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnAppear(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnDisappear_serialize(callback_: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnDisappear(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnKeyEvent_serialize(callback_: ((event: KeyEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnKeyEvent(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnFocus_serialize(callback_: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnFocus(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnBlur_serialize(callback_: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnBlur(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnHover_serialize(callback_: HoverCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnHover(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnMouse_serialize(callback_: ((event: MouseEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnMouse(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnSizeChange_serialize(callback_: SizeChangeCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnSizeChange(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private setOnVisibleAreaApproximateChange_serialize(options: VisibleAreaEventOptions, event: VisibleAreaChangeCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + VisibleAreaEventOptions_serializer.write(thisSerializer, options) + if (event !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const eventTmpValue = event! + thisSerializer.holdAndWriteCallback(eventTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._UICommonEvent_setOnVisibleAreaApproximateChange(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export class ArkCommonMethodPeer extends PeerNode { + protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { + super(peerPtr, id, name, flags) + } + public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonMethodPeer { + const peerId = PeerNode.nextId() + const _peerPtr = ArkUIGeneratedNativeModule._CommonMethod_construct(peerId, flags) + const _peer = new ArkCommonMethodPeer(_peerPtr, peerId, "CommonMethod", flags) + component?.setPeer(_peer) + return _peer + } + setWidthAttribute(value: Length | LayoutPolicy | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Length) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Length + if (valueTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string + thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) + } else if (valueTmpValueForIdx0 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number + thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) + } else if (valueTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) + } + } else if (valueTmpValue instanceof LayoutPolicy) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as LayoutPolicy + LayoutPolicy_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setHeightAttribute(value: Length | LayoutPolicy | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Length) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Length + if (valueTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string + thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) + } else if (valueTmpValueForIdx0 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number + thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) + } else if (valueTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) + } + } else if (valueTmpValue instanceof LayoutPolicy) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as LayoutPolicy + LayoutPolicy_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setHeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDrawModifierAttribute(value: DrawModifier | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + DrawModifier_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setDrawModifier(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setResponseRegionAttribute(value: Array | Rectangle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (TypeChecker.isArray_Rectangle(valueTmpValue)) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Array + thisSerializer.writeInt32((valueTmpValueForIdx0.length).toInt()) + for (let valueTmpValueForIdx0CounterI = 0; valueTmpValueForIdx0CounterI < valueTmpValueForIdx0.length; valueTmpValueForIdx0CounterI++) { + const valueTmpValueForIdx0TmpElement : Rectangle = valueTmpValueForIdx0[valueTmpValueForIdx0CounterI] + Rectangle_serializer.write(thisSerializer, valueTmpValueForIdx0TmpElement) + } + } else if (valueTmpValue instanceof Rectangle) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Rectangle + Rectangle_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setResponseRegion(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMouseResponseRegionAttribute(value: Array | Rectangle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (TypeChecker.isArray_Rectangle(valueTmpValue)) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Array + thisSerializer.writeInt32((valueTmpValueForIdx0.length).toInt()) + for (let valueTmpValueForIdx0CounterI = 0; valueTmpValueForIdx0CounterI < valueTmpValueForIdx0.length; valueTmpValueForIdx0CounterI++) { + const valueTmpValueForIdx0TmpElement : Rectangle = valueTmpValueForIdx0[valueTmpValueForIdx0CounterI] + Rectangle_serializer.write(thisSerializer, valueTmpValueForIdx0TmpElement) + } + } else if (valueTmpValue instanceof Rectangle) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Rectangle + Rectangle_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setMouseResponseRegion(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSizeAttribute(value: SizeOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + SizeOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setConstraintSizeAttribute(value: ConstraintSizeOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + ConstraintSizeOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setConstraintSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setHitTestBehaviorAttribute(value: HitTestMode | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as HitTestMode) + thisSerializer.writeInt32(TypeChecker.HitTestMode_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setHitTestBehavior(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnChildTouchTestAttribute(value: ((value: Array) => TouchResult) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnChildTouchTest(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLayoutWeightAttribute(value: number | string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setLayoutWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setChainWeightAttribute(value: ChainWeightOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + ChainWeightOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setChainWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPaddingAttribute(value: Padding | Length | LocalizedPadding | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Padding) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Padding + Padding_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof Length) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Length + if (valueTmpValueForIdx1 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx1ForIdx0 = valueTmpValueForIdx1 as string + thisSerializer.writeString(valueTmpValueForIdx1ForIdx0) + } else if (valueTmpValueForIdx1 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1ForIdx1 = valueTmpValueForIdx1 as number + thisSerializer.writeNumber(valueTmpValueForIdx1ForIdx1) + } else if (valueTmpValueForIdx1 instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx1ForIdx2 = valueTmpValueForIdx1 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx1ForIdx2) + } + } else if (valueTmpValue instanceof LocalizedPadding) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as LocalizedPadding + LocalizedPadding_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setPadding(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSafeAreaPaddingAttribute(value: Padding | LengthMetrics | LocalizedPadding | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Padding) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Padding + Padding_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof LengthMetrics) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as LengthMetrics + LengthMetrics_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof LocalizedPadding) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as LocalizedPadding + LocalizedPadding_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setSafeAreaPadding(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMarginAttribute(value: Padding | Length | LocalizedPadding | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Padding) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Padding + Padding_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof Length) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Length + if (valueTmpValueForIdx1 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx1ForIdx0 = valueTmpValueForIdx1 as string + thisSerializer.writeString(valueTmpValueForIdx1ForIdx0) + } else if (valueTmpValueForIdx1 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1ForIdx1 = valueTmpValueForIdx1 as number + thisSerializer.writeNumber(valueTmpValueForIdx1ForIdx1) + } else if (valueTmpValueForIdx1 instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx1ForIdx2 = valueTmpValueForIdx1 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx1ForIdx2) + } + } else if (valueTmpValue instanceof LocalizedPadding) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as LocalizedPadding + LocalizedPadding_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setMargin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundColorAttribute(value: ResourceColor | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) + } else if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx1) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx2) + } else if (valueTmpValue instanceof Resource) { + thisSerializer.writeInt8((3).toChar()) + const valueTmpValueForIdx3 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx3) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPixelRoundAttribute(value: PixelRoundPolicy | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + PixelRoundPolicy_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setPixelRound(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundImageSizeAttribute(value: SizeOptions | ImageSize | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof SizeOptions) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as SizeOptions + SizeOptions_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof ImageSize) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as ImageSize + thisSerializer.writeInt32(TypeChecker.ImageSize_ToNumeric(valueTmpValueForIdx1)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImageSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundImagePositionAttribute(value: Position | Alignment | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Position) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Position + Position_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof Alignment) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Alignment + thisSerializer.writeInt32(TypeChecker.Alignment_ToNumeric(valueTmpValueForIdx1)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImagePosition(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundEffect0Attribute(value: BackgroundEffectOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + BackgroundEffectOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundEffect0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundImageResizableAttribute(value: ResizableOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + ResizableOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImageResizable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setForegroundEffectAttribute(value: ForegroundEffectOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + ForegroundEffectOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setForegroundEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setVisualEffectAttribute(value: uiEffect.VisualEffect | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + uiEffect_VisualEffect_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setVisualEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundFilterAttribute(value: uiEffect.Filter | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + uiEffect_Filter_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setForegroundFilterAttribute(value: uiEffect.Filter | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + uiEffect_Filter_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setForegroundFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCompositingFilterAttribute(value: uiEffect.Filter | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + uiEffect_Filter_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setCompositingFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOpacityAttribute(value: number | Resource | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof Resource) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOpacity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBorderAttribute(value: BorderOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + BorderOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBorder(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBorderStyleAttribute(value: BorderStyle | EdgeStyles | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof BorderStyle) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as BorderStyle + thisSerializer.writeInt32(TypeChecker.BorderStyle_ToNumeric(valueTmpValueForIdx0)) + } else if (valueTmpValue instanceof EdgeStyles) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as EdgeStyles + EdgeStyles_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBorderStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBorderWidthAttribute(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Length) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Length + if (valueTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string + thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) + } else if (valueTmpValueForIdx0 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number + thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) + } else if (valueTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) + } + } else if (valueTmpValue instanceof EdgeWidths) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as EdgeWidths + EdgeWidths_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof LocalizedEdgeWidths) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdgeWidths + LocalizedEdgeWidths_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBorderWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBorderColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof ResourceColor) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as ResourceColor + if (valueTmpValueForIdx0 instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0ForIdx0)) + } else if (valueTmpValueForIdx0 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number + thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) + } else if (valueTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as string + thisSerializer.writeString(valueTmpValueForIdx0ForIdx2) + } else if (valueTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((3).toChar()) + const valueTmpValueForIdx0ForIdx3 = valueTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx3) + } + } else if (valueTmpValue instanceof EdgeColors) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as EdgeColors + EdgeColors_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof LocalizedEdgeColors) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdgeColors + LocalizedEdgeColors_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBorderColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBorderRadiusAttribute(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Length) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Length + if (valueTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string + thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) + } else if (valueTmpValueForIdx0 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number + thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) + } else if (valueTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) + } + } else if (valueTmpValue instanceof BorderRadiuses) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as BorderRadiuses + BorderRadiuses_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof LocalizedBorderRadiuses) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as LocalizedBorderRadiuses + LocalizedBorderRadiuses_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBorderRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBorderImageAttribute(value: BorderImageOption | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + BorderImageOption_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBorderImage(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOutlineAttribute(value: OutlineOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + OutlineOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOutline(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOutlineStyleAttribute(value: OutlineStyle | EdgeOutlineStyles | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof OutlineStyle) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as OutlineStyle + thisSerializer.writeInt32(TypeChecker.OutlineStyle_ToNumeric(valueTmpValueForIdx0)) + } else if (valueTmpValue instanceof EdgeOutlineStyles) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as EdgeOutlineStyles + EdgeOutlineStyles_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOutlineStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOutlineWidthAttribute(value: Dimension | EdgeOutlineWidths | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Dimension) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Dimension + if (valueTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string + thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) + } else if (valueTmpValueForIdx0 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number + thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) + } else if (valueTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) + } + } else if (valueTmpValue instanceof EdgeOutlineWidths) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as EdgeOutlineWidths + EdgeOutlineWidths_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOutlineWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOutlineColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof ResourceColor) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as ResourceColor + if (valueTmpValueForIdx0 instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0ForIdx0)) + } else if (valueTmpValueForIdx0 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number + thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) + } else if (valueTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as string + thisSerializer.writeString(valueTmpValueForIdx0ForIdx2) + } else if (valueTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((3).toChar()) + const valueTmpValueForIdx0ForIdx3 = valueTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx3) + } + } else if (valueTmpValue instanceof EdgeColors) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as EdgeColors + EdgeColors_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof LocalizedEdgeColors) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdgeColors + LocalizedEdgeColors_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOutlineColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOutlineRadiusAttribute(value: Dimension | OutlineRadiuses | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Dimension) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Dimension + if (valueTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string + thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) + } else if (valueTmpValueForIdx0 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number + thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) + } else if (valueTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) + } + } else if (valueTmpValue instanceof OutlineRadiuses) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as OutlineRadiuses + OutlineRadiuses_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOutlineRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setForegroundColorAttribute(value: ResourceColor | ColoringStrategy | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof ResourceColor) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as ResourceColor + if (valueTmpValueForIdx0 instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0ForIdx0)) + } else if (valueTmpValueForIdx0 instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number + thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) + } else if (valueTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as string + thisSerializer.writeString(valueTmpValueForIdx0ForIdx2) + } else if (valueTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((3).toChar()) + const valueTmpValueForIdx0ForIdx3 = valueTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx3) + } + } else if (valueTmpValue instanceof ColoringStrategy) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as ColoringStrategy + thisSerializer.writeInt32(TypeChecker.ColoringStrategy_ToNumeric(valueTmpValueForIdx1)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setForegroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnClick0Attribute(value: ((event: ClickEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnClick0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnHoverAttribute(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnHover(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnHoverMoveAttribute(value: ((value0: HoverEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnHoverMove(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnAccessibilityHoverAttribute(value: AccessibilityCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnAccessibilityHover(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setHoverEffectAttribute(value: HoverEffect | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as HoverEffect) + thisSerializer.writeInt32(TypeChecker.HoverEffect_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setHoverEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnMouseAttribute(value: ((event: MouseEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnMouse(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnTouchAttribute(value: ((event: TouchEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnTouch(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnKeyEventAttribute(value: ((event: KeyEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnKeyEvent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDigitalCrownAttribute(value: ((value0: CrownEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDigitalCrown(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnKeyPreImeAttribute(value: ((value0: KeyEvent) => boolean) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnKeyPreIme(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnKeyEventDispatchAttribute(value: ((value0: KeyEvent) => boolean) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnKeyEventDispatch(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnFocusAxisEventAttribute(value: ((value0: FocusAxisEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnFocusAxisEvent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnAxisEventAttribute(value: ((value0: AxisEvent) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnAxisEvent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFocusableAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setFocusable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setNextFocusAttribute(value: FocusMovement | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + FocusMovement_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setNextFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTabStopAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setTabStop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnFocusAttribute(value: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnBlurAttribute(value: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTabIndexAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setTabIndex(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDefaultFocusAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setDefaultFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setGroupDefaultFocusAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setGroupDefaultFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFocusOnTouchAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setFocusOnTouch(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFocusBoxAttribute(value: FocusBoxStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + FocusBoxStyle_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setFocusBox(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAnimationAttribute(value: AnimateParam | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + AnimateParam_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAnimation(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTransition0Attribute(value: TransitionEffect | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + TransitionEffect_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setTransition0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMotionBlurAttribute(value: MotionBlurOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + MotionBlurOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setMotionBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBrightnessAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBrightness(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setContrastAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setContrast(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setGrayscaleAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setGrayscale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setColorBlendAttribute(value: Color | string | Resource | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx1) + } else if (valueTmpValue instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setColorBlend(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSaturateAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setSaturate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSepiaAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setSepia(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setInvertAttribute(value: number | InvertOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof InvertOptions) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as InvertOptions + InvertOptions_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setInvert(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setHueRotateAttribute(value: number | string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setHueRotate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setUseShadowBatchingAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setUseShadowBatching(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setUseEffect0Attribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setUseEffect0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setRenderGroupAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setRenderGroup(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFreezeAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setFreeze(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTranslateAttribute(value: TranslateOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + TranslateOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setTranslate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setScaleAttribute(value: ScaleOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + ScaleOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setRotateAttribute(value: RotateOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + RotateOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setRotate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTransformAttribute(value: Object | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteObject(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setTransform(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnAppearAttribute(value: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnAppear(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDisAppearAttribute(value: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDisAppear(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnAttachAttribute(value: VoidCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnAttach(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDetachAttribute(value: VoidCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDetach(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnAreaChangeAttribute(value: ((oldValue: Area,newValue: Area) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnAreaChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setVisibilityAttribute(value: Visibility | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as Visibility) + thisSerializer.writeInt32(TypeChecker.Visibility_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setVisibility(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFlexGrowAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setFlexGrow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFlexShrinkAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setFlexShrink(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFlexBasisAttribute(value: number | string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setFlexBasis(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAlignSelfAttribute(value: ItemAlign | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as ItemAlign) + thisSerializer.writeInt32(TypeChecker.ItemAlign_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAlignSelf(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDisplayPriorityAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setDisplayPriority(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setZIndexAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setZIndex(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDirectionAttribute(value: Direction | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as Direction) + thisSerializer.writeInt32(TypeChecker.Direction_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setDirection(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAlignAttribute(value: Alignment | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as Alignment) + thisSerializer.writeInt32(TypeChecker.Alignment_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAlign(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPositionAttribute(value: Position | Edges | LocalizedEdges | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Position) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Position + Position_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof Edges) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Edges + Edges_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof LocalizedEdges) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdges + LocalizedEdges_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setPosition(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMarkAnchorAttribute(value: Position | LocalizedPosition | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Position) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Position + Position_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof LocalizedPosition) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as LocalizedPosition + LocalizedPosition_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setMarkAnchor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOffsetAttribute(value: Position | Edges | LocalizedEdges | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Position) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Position + Position_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof Edges) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Edges + Edges_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof LocalizedEdges) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdges + LocalizedEdges_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOffset(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnabledAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setEnabled(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAlignRules0Attribute(value: AlignRuleOption | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + AlignRuleOption_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAlignRules0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAlignRules1Attribute(value: LocalizedAlignRuleOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + LocalizedAlignRuleOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAlignRules1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAspectRatioAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAspectRatio(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setClickEffectAttribute(value: ClickEffect | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + ClickEffect_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setClickEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDragStartAttribute(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDragStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDragEnterAttribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDragEnter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDragMoveAttribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDragMove(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDragLeaveAttribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDragLeave(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDrop0Attribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDrop0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDragEndAttribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDragEnd(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAllowDropAttribute(value: Array | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeInt32((valueTmpValue.length).toInt()) + for (let valueTmpValueCounterI = 0; valueTmpValueCounterI < valueTmpValue.length; valueTmpValueCounterI++) { + const valueTmpValueTmpElement : uniformTypeDescriptor.UniformDataType = valueTmpValue[valueTmpValueCounterI] + thisSerializer.writeInt32(TypeChecker.uniformTypeDescriptor_UniformDataType_ToNumeric(valueTmpValueTmpElement)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAllowDrop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDraggableAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setDraggable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDragPreview0Attribute(value: CustomBuilder | DragItemInfo | string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof CustomBuilder) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as CustomBuilder + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueTmpValueForIdx0)) + } else if (valueTmpValue instanceof DragItemInfo) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as DragItemInfo + DragItemInfo_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setDragPreview0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnPreDragAttribute(value: ((value0: PreDragStatus) => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnPreDrag(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLinearGradientAttribute(value: LinearGradientOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + LinearGradientOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setLinearGradient(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSweepGradientAttribute(value: SweepGradientOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + SweepGradientOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setSweepGradient(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setRadialGradientAttribute(value: RadialGradientOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + RadialGradientOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setRadialGradient(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMotionPathAttribute(value: MotionPathOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + MotionPathOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setMotionPath(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setShadowAttribute(value: ShadowOptions | ShadowStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof ShadowOptions) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as ShadowOptions + ShadowOptions_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof ShadowStyle) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as ShadowStyle + thisSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueTmpValueForIdx1)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setShadow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setClipAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setClip(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setClipShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof CircleShape) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as CircleShape + CircleShape_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof EllipseShape) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as EllipseShape + EllipseShape_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof PathShape) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as PathShape + PathShape_serializer.write(thisSerializer, valueTmpValueForIdx2) + } else if (valueTmpValue instanceof RectShape) { + thisSerializer.writeInt8((3).toChar()) + const valueTmpValueForIdx3 = valueTmpValue as RectShape + RectShape_serializer.write(thisSerializer, valueTmpValueForIdx3) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setClipShape(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaskAttribute(value: ProgressMask | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + ProgressMask_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setMask(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaskShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof CircleShape) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as CircleShape + CircleShape_serializer.write(thisSerializer, valueTmpValueForIdx0) + } else if (valueTmpValue instanceof EllipseShape) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as EllipseShape + EllipseShape_serializer.write(thisSerializer, valueTmpValueForIdx1) + } else if (valueTmpValue instanceof PathShape) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as PathShape + PathShape_serializer.write(thisSerializer, valueTmpValueForIdx2) + } else if (valueTmpValue instanceof RectShape) { + thisSerializer.writeInt8((3).toChar()) + const valueTmpValueForIdx3 = valueTmpValue as RectShape + RectShape_serializer.write(thisSerializer, valueTmpValueForIdx3) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setMaskShape(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setKeyAttribute(value: string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeString(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setKey(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setIdAttribute(value: string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeString(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setGeometryTransition0Attribute(value: string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeString(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setGeometryTransition0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setRestoreIdAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setRestoreId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSphericalEffectAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setSphericalEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLightUpEffectAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setLightUpEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPixelStretchEffectAttribute(value: PixelStretchEffectOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + PixelStretchEffectOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setPixelStretchEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityGroup0Attribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityGroup0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityText0Attribute(value: string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeString(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityText0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityNextFocusIdAttribute(value: string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeString(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityNextFocusId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityDefaultFocusAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityDefaultFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityUseSamePageAttribute(value: AccessibilitySamePageMode | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as AccessibilitySamePageMode) + thisSerializer.writeInt32(TypeChecker.AccessibilitySamePageMode_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityUseSamePage(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityScrollTriggerableAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityScrollTriggerable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityText1Attribute(value: Resource | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + Resource_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityText1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityRoleAttribute(value: AccessibilityRoleType | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as AccessibilityRoleType) + thisSerializer.writeInt32(TypeChecker.AccessibilityRoleType_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityRole(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnAccessibilityFocusAttribute(value: AccessibilityFocusCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnAccessibilityFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityTextHintAttribute(value: string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeString(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityTextHint(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityDescription0Attribute(value: string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeString(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityDescription0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityDescription1Attribute(value: Resource | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + Resource_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityDescription1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityLevelAttribute(value: string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeString(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityLevel(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityVirtualNodeAttribute(value: CustomBuilder | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityVirtualNode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityCheckedAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityChecked(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilitySelectedAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilitySelected(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setObscuredAttribute(value: Array | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeInt32((valueTmpValue.length).toInt()) + for (let valueTmpValueCounterI = 0; valueTmpValueCounterI < valueTmpValue.length; valueTmpValueCounterI++) { + const valueTmpValueTmpElement : ObscuredReasons = valueTmpValue[valueTmpValueCounterI] + thisSerializer.writeInt32(TypeChecker.ObscuredReasons_ToNumeric(valueTmpValueTmpElement)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setObscured(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setReuseIdAttribute(value: string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeString(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setReuseId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setReuseAttribute(value: ReuseOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + ReuseOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setReuse(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setRenderFitAttribute(value: RenderFit | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as RenderFit) + thisSerializer.writeInt32(TypeChecker.RenderFit_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setRenderFit(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setGestureModifierAttribute(value: GestureModifier | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + GestureModifier_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setGestureModifier(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundBrightnessAttribute(value: BackgroundBrightnessOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + BackgroundBrightnessOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundBrightness(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnGestureJudgeBeginAttribute(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnGestureJudgeBegin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnGestureRecognizerJudgeBegin0Attribute(value: GestureRecognizerJudgeBeginCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnGestureRecognizerJudgeBegin0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setShouldBuiltInRecognizerParallelWithAttribute(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setShouldBuiltInRecognizerParallelWith(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMonopolizeEventsAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setMonopolizeEvents(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnTouchInterceptAttribute(value: ((value0: TouchEvent) => HitTestMode) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnTouchIntercept(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnSizeChangeAttribute(value: SizeChangeCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnSizeChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityFocusDrawLevelAttribute(value: FocusDrawLevel | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as FocusDrawLevel) + thisSerializer.writeInt32(TypeChecker.FocusDrawLevel_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityFocusDrawLevel(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCustomPropertyAttribute(name: string, value: CustomProperty): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteObject(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setCustomProperty(this.peer.ptr, name, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setExpandSafeAreaAttribute(types?: Array, edges?: Array): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (types !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const typesTmpValue = types! + thisSerializer.writeInt32((typesTmpValue.length).toInt()) + for (let typesTmpValueCounterI = 0; typesTmpValueCounterI < typesTmpValue.length; typesTmpValueCounterI++) { + const typesTmpValueTmpElement : SafeAreaType = typesTmpValue[typesTmpValueCounterI] + thisSerializer.writeInt32(TypeChecker.SafeAreaType_ToNumeric(typesTmpValueTmpElement)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (edges !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const edgesTmpValue = edges! + thisSerializer.writeInt32((edgesTmpValue.length).toInt()) + for (let edgesTmpValueCounterI = 0; edgesTmpValueCounterI < edgesTmpValue.length; edgesTmpValueCounterI++) { + const edgesTmpValueTmpElement : SafeAreaEdge = edgesTmpValue[edgesTmpValueCounterI] + thisSerializer.writeInt32(TypeChecker.SafeAreaEdge_ToNumeric(edgesTmpValueTmpElement)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setExpandSafeArea(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundAttribute(builder: CustomBuilder | undefined, options?: BackgroundOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (builder !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const builderTmpValue = builder! + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builderTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + BackgroundOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackground(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundImage0Attribute(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (src !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const srcTmpValue = src! + if (srcTmpValue instanceof ResourceStr) { + thisSerializer.writeInt8((0).toChar()) + const srcTmpValueForIdx0 = srcTmpValue as ResourceStr + if (srcTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const srcTmpValueForIdx0ForIdx0 = srcTmpValueForIdx0 as string + thisSerializer.writeString(srcTmpValueForIdx0ForIdx0) + } else if (srcTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((1).toChar()) + const srcTmpValueForIdx0ForIdx1 = srcTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, srcTmpValueForIdx0ForIdx1) + } + } else if (srcTmpValue instanceof image.PixelMap) { + thisSerializer.writeInt8((1).toChar()) + const srcTmpValueForIdx1 = srcTmpValue as image.PixelMap + image_PixelMap_serializer.write(thisSerializer, srcTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (repeat !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const repeatTmpValue = (repeat as ImageRepeat) + thisSerializer.writeInt32(TypeChecker.ImageRepeat_ToNumeric(repeatTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImage0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundImage1Attribute(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (src !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const srcTmpValue = src! + if (srcTmpValue instanceof ResourceStr) { + thisSerializer.writeInt8((0).toChar()) + const srcTmpValueForIdx0 = srcTmpValue as ResourceStr + if (srcTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const srcTmpValueForIdx0ForIdx0 = srcTmpValueForIdx0 as string + thisSerializer.writeString(srcTmpValueForIdx0ForIdx0) + } else if (srcTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((1).toChar()) + const srcTmpValueForIdx0ForIdx1 = srcTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, srcTmpValueForIdx0ForIdx1) + } + } else if (srcTmpValue instanceof image.PixelMap) { + thisSerializer.writeInt8((1).toChar()) + const srcTmpValueForIdx1 = srcTmpValue as image.PixelMap + image_PixelMap_serializer.write(thisSerializer, srcTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + BackgroundImageOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImage1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundBlurStyleAttribute(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (style !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const styleTmpValue = (style as BlurStyle) + thisSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(styleTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + BackgroundBlurStyleOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (sysOptions !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const sysOptionsTmpValue = sysOptions! + SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundBlurStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackgroundEffect1Attribute(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + BackgroundEffectOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (sysOptions !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const sysOptionsTmpValue = sysOptions! + SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackgroundEffect1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setForegroundBlurStyleAttribute(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (style !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const styleTmpValue = (style as BlurStyle) + thisSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(styleTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + ForegroundBlurStyleOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (sysOptions !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const sysOptionsTmpValue = sysOptions! + SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setForegroundBlurStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnClick1Attribute(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (event !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const eventTmpValue = event! + thisSerializer.holdAndWriteCallback(eventTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (distanceThreshold !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const distanceThresholdTmpValue = distanceThreshold! + thisSerializer.writeNumber(distanceThresholdTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnClick1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFocusScopeIdAttribute(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (id !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const idTmpValue = id! + thisSerializer.writeString(idTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (isGroup !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const isGroupTmpValue = isGroup! + thisSerializer.writeBoolean(isGroupTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (arrowStepOut !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const arrowStepOutTmpValue = arrowStepOut! + thisSerializer.writeBoolean(arrowStepOutTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setFocusScopeId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFocusScopePriorityAttribute(scopeId: string | undefined, priority?: FocusPriority): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (scopeId !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const scopeIdTmpValue = scopeId! + thisSerializer.writeString(scopeIdTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (priority !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const priorityTmpValue = (priority as FocusPriority) + thisSerializer.writeInt32(TypeChecker.FocusPriority_ToNumeric(priorityTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setFocusScopePriority(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTransition1Attribute(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (effect !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const effectTmpValue = effect! + TransitionEffect_serializer.write(thisSerializer, effectTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (onFinish !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const onFinishTmpValue = onFinish! + thisSerializer.holdAndWriteCallback(onFinishTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setTransition1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setGestureAttribute(gesture: GestureType | undefined, mask?: GestureMask): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (gesture !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const gestureTmpValue = gesture! + if (gestureTmpValue instanceof Gesture) { + thisSerializer.writeInt8((0).toChar()) + const gestureTmpValueForIdx0 = gestureTmpValue as Gesture + Gesture_serializer.write(thisSerializer, gestureTmpValueForIdx0) + } else if (gestureTmpValue instanceof object) { + thisSerializer.writeInt8((1).toChar()) + const gestureTmpValueForIdx1 = gestureTmpValue as object + thisSerializer.writeCustomObject("object", gestureTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (mask !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const maskTmpValue = (mask as GestureMask) + thisSerializer.writeInt32(TypeChecker.GestureMask_ToNumeric(maskTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setGesture(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPriorityGestureAttribute(gesture: GestureType | undefined, mask?: GestureMask): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (gesture !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const gestureTmpValue = gesture! + if (gestureTmpValue instanceof Gesture) { + thisSerializer.writeInt8((0).toChar()) + const gestureTmpValueForIdx0 = gestureTmpValue as Gesture + Gesture_serializer.write(thisSerializer, gestureTmpValueForIdx0) + } else if (gestureTmpValue instanceof object) { + thisSerializer.writeInt8((1).toChar()) + const gestureTmpValueForIdx1 = gestureTmpValue as object + thisSerializer.writeCustomObject("object", gestureTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (mask !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const maskTmpValue = (mask as GestureMask) + thisSerializer.writeInt32(TypeChecker.GestureMask_ToNumeric(maskTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setPriorityGesture(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setParallelGestureAttribute(gesture: GestureType | undefined, mask?: GestureMask): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (gesture !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const gestureTmpValue = gesture! + if (gestureTmpValue instanceof Gesture) { + thisSerializer.writeInt8((0).toChar()) + const gestureTmpValueForIdx0 = gestureTmpValue as Gesture + Gesture_serializer.write(thisSerializer, gestureTmpValueForIdx0) + } else if (gestureTmpValue instanceof object) { + thisSerializer.writeInt8((1).toChar()) + const gestureTmpValueForIdx1 = gestureTmpValue as object + thisSerializer.writeCustomObject("object", gestureTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (mask !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const maskTmpValue = (mask as GestureMask) + thisSerializer.writeInt32(TypeChecker.GestureMask_ToNumeric(maskTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setParallelGesture(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBlurAttribute(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (blurRadius !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const blurRadiusTmpValue = blurRadius! + thisSerializer.writeNumber(blurRadiusTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + BlurOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (sysOptions !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const sysOptionsTmpValue = sysOptions! + SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLinearGradientBlurAttribute(value: number | undefined, options: LinearGradientBlurOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + LinearGradientBlurOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setLinearGradientBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSystemBarEffectAttribute(): void { + ArkUIGeneratedNativeModule._CommonMethod_setSystemBarEffect(this.peer.ptr) + } + setUseEffect1Attribute(useEffect: boolean | undefined, effectType: EffectType | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (useEffect !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const useEffectTmpValue = useEffect! + thisSerializer.writeBoolean(useEffectTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (effectType !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const effectTypeTmpValue = (effectType as EffectType) + thisSerializer.writeInt32(TypeChecker.EffectType_ToNumeric(effectTypeTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setUseEffect1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackdropBlurAttribute(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (radius !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const radiusTmpValue = radius! + thisSerializer.writeNumber(radiusTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + BlurOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (sysOptions !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const sysOptionsTmpValue = sysOptions! + SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBackdropBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSharedTransitionAttribute(id: string | undefined, options?: sharedTransitionOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (id !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const idTmpValue = id! + thisSerializer.writeString(idTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + sharedTransitionOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setSharedTransition(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setChainModeAttribute(direction: Axis | undefined, style: ChainStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (direction !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const directionTmpValue = (direction as Axis) + thisSerializer.writeInt32(TypeChecker.Axis_ToNumeric(directionTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (style !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const styleTmpValue = (style as ChainStyle) + thisSerializer.writeInt32(TypeChecker.ChainStyle_ToNumeric(styleTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setChainMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDrop1Attribute(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (eventCallback !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const eventCallbackTmpValue = eventCallback! + thisSerializer.holdAndWriteCallback(eventCallbackTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (dropOptions !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const dropOptionsTmpValue = dropOptions! + DropOptions_serializer.write(thisSerializer, dropOptionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnDrop1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDragPreview1Attribute(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (preview !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const previewTmpValue = preview! + if (previewTmpValue instanceof CustomBuilder) { + thisSerializer.writeInt8((0).toChar()) + const previewTmpValueForIdx0 = previewTmpValue as CustomBuilder + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(previewTmpValueForIdx0)) + } else if (previewTmpValue instanceof DragItemInfo) { + thisSerializer.writeInt8((1).toChar()) + const previewTmpValueForIdx1 = previewTmpValue as DragItemInfo + DragItemInfo_serializer.write(thisSerializer, previewTmpValueForIdx1) + } else if (previewTmpValue instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const previewTmpValueForIdx2 = previewTmpValue as string + thisSerializer.writeString(previewTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (config !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const configTmpValue = config! + PreviewConfiguration_serializer.write(thisSerializer, configTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setDragPreview1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDragPreviewOptionsAttribute(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + DragPreviewOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + DragInteractionOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setDragPreviewOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOverlayAttribute(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof CustomBuilder) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as CustomBuilder + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueTmpValueForIdx1)) + } else if (valueTmpValue instanceof ComponentContent) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as ComponentContent + ComponentContent_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + OverlayOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOverlay(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBlendModeAttribute(value: BlendMode | undefined, type?: BlendApplyType): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as BlendMode) + thisSerializer.writeInt32(TypeChecker.BlendMode_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (type !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const typeTmpValue = (type as BlendApplyType) + thisSerializer.writeInt32(TypeChecker.BlendApplyType_ToNumeric(typeTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBlendMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAdvancedBlendModeAttribute(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (effect instanceof BlendMode) { + thisSerializer.writeInt8((0).toChar()) + const effectForIdx0 = effect as BlendMode + thisSerializer.writeInt32(TypeChecker.BlendMode_ToNumeric(effectForIdx0)) + } else if (effect instanceof uiEffect.Blender) { + thisSerializer.writeInt8((1).toChar()) + const effectForIdx1 = effect as uiEffect.Blender + uiEffect_BrightnessBlender_serializer.write(thisSerializer, effectForIdx1) + } + if (type !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const typeTmpValue = (type as BlendApplyType) + thisSerializer.writeInt32(TypeChecker.BlendApplyType_ToNumeric(typeTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAdvancedBlendMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setGeometryTransition1Attribute(id: string | undefined, options?: GeometryTransitionOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (id !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const idTmpValue = id! + thisSerializer.writeString(idTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + GeometryTransitionOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setGeometryTransition1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindTipsAttribute(message: TipsMessageType | undefined, options?: TipsOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (message !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const messageTmpValue = message! + if (messageTmpValue instanceof ResourceStr) { + thisSerializer.writeInt8((0).toChar()) + const messageTmpValueForIdx0 = messageTmpValue as ResourceStr + if (messageTmpValueForIdx0 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const messageTmpValueForIdx0ForIdx0 = messageTmpValueForIdx0 as string + thisSerializer.writeString(messageTmpValueForIdx0ForIdx0) + } else if (messageTmpValueForIdx0 instanceof Resource) { + thisSerializer.writeInt8((1).toChar()) + const messageTmpValueForIdx0ForIdx1 = messageTmpValueForIdx0 as Resource + Resource_serializer.write(thisSerializer, messageTmpValueForIdx0ForIdx1) + } + } else if (messageTmpValue instanceof StyledString) { + thisSerializer.writeInt8((1).toChar()) + const messageTmpValueForIdx1 = messageTmpValue as StyledString + StyledString_serializer.write(thisSerializer, messageTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + TipsOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBindTips(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindPopupAttribute(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (show !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const showTmpValue = show! + thisSerializer.writeBoolean(showTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (popup !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const popupTmpValue = popup! + if (popupTmpValue instanceof PopupOptions) { + thisSerializer.writeInt8((0).toChar()) + const popupTmpValueForIdx0 = popupTmpValue as PopupOptions + PopupOptions_serializer.write(thisSerializer, popupTmpValueForIdx0) + } else if (popupTmpValue instanceof CustomPopupOptions) { + thisSerializer.writeInt8((1).toChar()) + const popupTmpValueForIdx1 = popupTmpValue as CustomPopupOptions + CustomPopupOptions_serializer.write(thisSerializer, popupTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBindPopup(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindMenu0Attribute(content: Array | CustomBuilder | undefined, options?: MenuOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (content !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const contentTmpValue = content! + if (TypeChecker.isArray_MenuElement(contentTmpValue)) { + thisSerializer.writeInt8((0).toChar()) + const contentTmpValueForIdx0 = contentTmpValue as Array + thisSerializer.writeInt32((contentTmpValueForIdx0.length).toInt()) + for (let contentTmpValueForIdx0CounterI = 0; contentTmpValueForIdx0CounterI < contentTmpValueForIdx0.length; contentTmpValueForIdx0CounterI++) { + const contentTmpValueForIdx0TmpElement : MenuElement = contentTmpValueForIdx0[contentTmpValueForIdx0CounterI] + MenuElement_serializer.write(thisSerializer, contentTmpValueForIdx0TmpElement) + } + } else if (contentTmpValue instanceof CustomBuilder) { + thisSerializer.writeInt8((1).toChar()) + const contentTmpValueForIdx1 = contentTmpValue as CustomBuilder + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(contentTmpValueForIdx1)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + MenuOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBindMenu0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindMenu1Attribute(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (isShow !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const isShowTmpValue = isShow! + thisSerializer.writeBoolean(isShowTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (content !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const contentTmpValue = content! + if (TypeChecker.isArray_MenuElement(contentTmpValue)) { + thisSerializer.writeInt8((0).toChar()) + const contentTmpValueForIdx0 = contentTmpValue as Array + thisSerializer.writeInt32((contentTmpValueForIdx0.length).toInt()) + for (let contentTmpValueForIdx0CounterI = 0; contentTmpValueForIdx0CounterI < contentTmpValueForIdx0.length; contentTmpValueForIdx0CounterI++) { + const contentTmpValueForIdx0TmpElement : MenuElement = contentTmpValueForIdx0[contentTmpValueForIdx0CounterI] + MenuElement_serializer.write(thisSerializer, contentTmpValueForIdx0TmpElement) + } + } else if (contentTmpValue instanceof CustomBuilder) { + thisSerializer.writeInt8((1).toChar()) + const contentTmpValueForIdx1 = contentTmpValue as CustomBuilder + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(contentTmpValueForIdx1)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + MenuOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBindMenu1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindContextMenu0Attribute(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (content !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const contentTmpValue = content! + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(contentTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (responseType !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const responseTypeTmpValue = (responseType as ResponseType) + thisSerializer.writeInt32(TypeChecker.ResponseType_ToNumeric(responseTypeTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + ContextMenuOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBindContextMenu0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindContextMenu1Attribute(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (isShown !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const isShownTmpValue = isShown! + thisSerializer.writeBoolean(isShownTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (content !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const contentTmpValue = content! + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(contentTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + ContextMenuOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBindContextMenu1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindContentCover0Attribute(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (isShow !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const isShowTmpValue = isShow! + if (isShowTmpValue instanceof boolean) { + thisSerializer.writeInt8((0).toChar()) + const isShowTmpValueForIdx0 = isShowTmpValue as boolean + thisSerializer.writeBoolean(isShowTmpValueForIdx0) + } else if (isShowTmpValue instanceof Bindable) { + thisSerializer.writeInt8((1).toChar()) + const isShowTmpValueForIdx1 = isShowTmpValue as Bindable + Bindable_Boolean_serializer.write(thisSerializer, isShowTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (builder !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const builderTmpValue = builder! + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builderTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (type !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const typeTmpValue = (type as ModalTransition) + thisSerializer.writeInt32(TypeChecker.ModalTransition_ToNumeric(typeTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBindContentCover0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindContentCover1Attribute(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (isShow !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const isShowTmpValue = isShow! + if (isShowTmpValue instanceof boolean) { + thisSerializer.writeInt8((0).toChar()) + const isShowTmpValueForIdx0 = isShowTmpValue as boolean + thisSerializer.writeBoolean(isShowTmpValueForIdx0) + } else if (isShowTmpValue instanceof Bindable) { + thisSerializer.writeInt8((1).toChar()) + const isShowTmpValueForIdx1 = isShowTmpValue as Bindable + Bindable_Boolean_serializer.write(thisSerializer, isShowTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (builder !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const builderTmpValue = builder! + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builderTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + ContentCoverOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBindContentCover1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindSheetAttribute(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (isShow !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const isShowTmpValue = isShow! + if (isShowTmpValue instanceof boolean) { + thisSerializer.writeInt8((0).toChar()) + const isShowTmpValueForIdx0 = isShowTmpValue as boolean + thisSerializer.writeBoolean(isShowTmpValueForIdx0) + } else if (isShowTmpValue instanceof Bindable) { + thisSerializer.writeInt8((1).toChar()) + const isShowTmpValueForIdx1 = isShowTmpValue as Bindable + Bindable_Boolean_serializer.write(thisSerializer, isShowTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (builder !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const builderTmpValue = builder! + thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builderTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + SheetOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setBindSheet(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnVisibleAreaChangeAttribute(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (ratios !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const ratiosTmpValue = ratios! + thisSerializer.writeInt32((ratiosTmpValue.length).toInt()) + for (let ratiosTmpValueCounterI = 0; ratiosTmpValueCounterI < ratiosTmpValue.length; ratiosTmpValueCounterI++) { + const ratiosTmpValueTmpElement : number = ratiosTmpValue[ratiosTmpValueCounterI] + thisSerializer.writeNumber(ratiosTmpValueTmpElement) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (event !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const eventTmpValue = event! + thisSerializer.holdAndWriteCallback(eventTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnVisibleAreaChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnVisibleAreaApproximateChangeAttribute(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + VisibleAreaEventOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (event !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const eventTmpValue = event! + thisSerializer.holdAndWriteCallback(eventTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnVisibleAreaApproximateChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setKeyboardShortcutAttribute(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof FunctionKey) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as FunctionKey + thisSerializer.writeInt32(TypeChecker.FunctionKey_ToNumeric(valueTmpValueForIdx1)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (keys !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const keysTmpValue = keys! + thisSerializer.writeInt32((keysTmpValue.length).toInt()) + for (let keysTmpValueCounterI = 0; keysTmpValueCounterI < keysTmpValue.length; keysTmpValueCounterI++) { + const keysTmpValueTmpElement : ModifierKey = keysTmpValue[keysTmpValueCounterI] + thisSerializer.writeInt32(TypeChecker.ModifierKey_ToNumeric(keysTmpValueTmpElement)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (action !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const actionTmpValue = action! + thisSerializer.holdAndWriteCallback(actionTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setKeyboardShortcut(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAccessibilityGroup1Attribute(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (isGroup !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const isGroupTmpValue = isGroup! + thisSerializer.writeBoolean(isGroupTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (accessibilityOptions !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const accessibilityOptionsTmpValue = accessibilityOptions! + AccessibilityOptions_serializer.write(thisSerializer, accessibilityOptionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityGroup1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnGestureRecognizerJudgeBegin1Attribute(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (callback_ !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const callback_TmpValue = callback_! + thisSerializer.holdAndWriteCallback(callback_TmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (exposeInnerGesture !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const exposeInnerGestureTmpValue = exposeInnerGesture! + thisSerializer.writeBoolean(exposeInnerGestureTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonMethod_setOnGestureRecognizerJudgeBegin1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { + protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { + super(peerPtr, id, name, flags) + } + public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonShapeMethodPeer { + const peerId = PeerNode.nextId() + const _peerPtr = ArkUIGeneratedNativeModule._CommonShapeMethod_construct(peerId, flags) + const _peer = new ArkCommonShapeMethodPeer(_peerPtr, peerId, "CommonShapeMethod", flags) + component?.setPeer(_peer) + return _peer + } + setStrokeAttribute(value: ResourceColor | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) + } else if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx1) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx2) + } else if (valueTmpValue instanceof Resource) { + thisSerializer.writeInt8((3).toChar()) + const valueTmpValueForIdx3 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx3) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setStroke(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFillAttribute(value: ResourceColor | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) + } else if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx1) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx2) + } else if (valueTmpValue instanceof Resource) { + thisSerializer.writeInt8((3).toChar()) + const valueTmpValueForIdx3 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx3) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setFill(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setStrokeDashOffsetAttribute(value: number | string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeDashOffset(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setStrokeLineCapAttribute(value: LineCapStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as LineCapStyle) + thisSerializer.writeInt32(TypeChecker.LineCapStyle_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeLineCap(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setStrokeLineJoinAttribute(value: LineJoinStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as LineJoinStyle) + thisSerializer.writeInt32(TypeChecker.LineJoinStyle_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeLineJoin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setStrokeMiterLimitAttribute(value: number | string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeMiterLimit(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setStrokeOpacityAttribute(value: number | string | Resource | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx1) + } else if (valueTmpValue instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeOpacity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFillOpacityAttribute(value: number | string | Resource | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx1) + } else if (valueTmpValue instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setFillOpacity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setStrokeWidthAttribute(value: Length | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx1) + } else if (valueTmpValue instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAntiAliasAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setAntiAlias(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setStrokeDashArrayAttribute(value: Array | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeInt32((valueTmpValue.length).toInt()) + for (let valueTmpValueCounterI = 0; valueTmpValueCounterI < valueTmpValue.length; valueTmpValueCounterI++) { + const valueTmpValueTmpElement : Length = valueTmpValue[valueTmpValueCounterI] + if (valueTmpValueTmpElement instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueTmpElementForIdx0 = valueTmpValueTmpElement as string + thisSerializer.writeString(valueTmpValueTmpElementForIdx0) + } else if (valueTmpValueTmpElement instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueTmpElementForIdx1 = valueTmpValueTmpElement as number + thisSerializer.writeNumber(valueTmpValueTmpElementForIdx1) + } else if (valueTmpValueTmpElement instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueTmpElementForIdx2 = valueTmpValueTmpElement as Resource + Resource_serializer.write(thisSerializer, valueTmpValueTmpElementForIdx2) + } + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeDashArray(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { + protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { + super(peerPtr, id, name, flags) + } + public static create(component?: ComponentBase, flags: int32 = 0): ArkScrollableCommonMethodPeer { + const peerId = PeerNode.nextId() + const _peerPtr = ArkUIGeneratedNativeModule._ScrollableCommonMethod_construct(peerId, flags) + const _peer = new ArkScrollableCommonMethodPeer(_peerPtr, peerId, "ScrollableCommonMethod", flags) + component?.setPeer(_peer) + return _peer + } + setScrollBarAttribute(value: BarState | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as BarState) + thisSerializer.writeInt32(TypeChecker.BarState_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setScrollBar(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setScrollBarColorAttribute(value: Color | number | string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof Color) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as Color + thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) + } else if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx1) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setScrollBarColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setScrollBarWidthAttribute(value: number | string | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof string) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as string + thisSerializer.writeString(valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setScrollBarWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setNestedScrollAttribute(value: NestedScrollOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + NestedScrollOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setNestedScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnableScrollInteractionAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setEnableScrollInteraction(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFrictionAttribute(value: number | Resource | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as number + thisSerializer.writeNumber(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof Resource) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setFriction(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnReachStartAttribute(value: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setOnReachStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnReachEndAttribute(value: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setOnReachEnd(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnScrollStartAttribute(value: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setOnScrollStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnScrollStopAttribute(value: (() => void) | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.holdAndWriteCallback(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setOnScrollStop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFlingSpeedLimitAttribute(value: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeNumber(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setFlingSpeedLimit(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setClipContentAttribute(value: ContentClipMode | RectShape | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof ContentClipMode) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as ContentClipMode + thisSerializer.writeInt32(TypeChecker.ContentClipMode_ToNumeric(valueTmpValueForIdx0)) + } else if (valueTmpValue instanceof RectShape) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as RectShape + RectShape_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setClipContent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDigitalCrownSensitivityAttribute(value: CrownSensitivity | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as CrownSensitivity) + thisSerializer.writeInt32(TypeChecker.CrownSensitivity_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setDigitalCrownSensitivity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBackToTopAttribute(value: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setBackToTop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEdgeEffectAttribute(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (edgeEffect !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const edgeEffectTmpValue = (edgeEffect as EdgeEffect) + thisSerializer.writeInt32(TypeChecker.EdgeEffect_ToNumeric(edgeEffectTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + EdgeEffectOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setEdgeEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFadingEdgeAttribute(enabled: boolean | undefined, options?: FadingEdgeOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (enabled !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const enabledTmpValue = enabled! + thisSerializer.writeBoolean(enabledTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + FadingEdgeOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ScrollableCommonMethod_setFadingEdge(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface TransitionOptions { + type?: TransitionType; + opacity?: number; + translate?: TranslateOptions; + scale?: ScaleOptions; + rotate?: RotateOptions; +} +export interface InputCounterOptions { + thresholdPercentage?: number; + highlightBorder?: boolean; +} +export interface TextDecorationOptions { + type: TextDecorationType; + color?: ResourceColor; + style?: TextDecorationStyle; +} +export interface DividerStyle { + strokeWidth: Length; + color?: ResourceColor; + startMargin?: Length; + endMargin?: Length; +} +export type ReuseIdCallback = () => string; +export interface ReuseOptions { + reuseId?: ReuseIdCallback; +} +export { Context } from "./../framework/application.Context" +export interface Configuration { + readonly colorMode: string; + readonly fontScale: number; +} +export interface Rectangle { + x?: Length; + y?: Length; + width?: Length; + height?: Length; +} +export interface ExpectedFrameRateRange { + min: number; + max: number; + expected: number; +} +export enum AccessibilitySamePageMode { + SEMI_SILENT = 0, + FULL_SILENT = 1 +} +export enum AccessibilityRoleType { + ACTION_SHEET = 0, + ALERT_DIALOG = 1, + INDEXER_COMPONENT = 2, + BADGE_COMPONENT = 3, + BLANK = 4, + BUTTON = 5, + BACK_BUTTON = 6, + SHEET_DRAG_BAR = 7, + CALENDAR_PICKER = 8, + CALENDAR = 9, + CANVAS = 10, + CANVAS_GRADIENT = 11, + CANVAS_PATTERN = 12, + CHECKBOX = 13, + CHECKBOX_GROUP = 14, + CIRCLE = 15, + COLUMN_SPLIT = 16, + COLUMN = 17, + CANVAS_RENDERING_CONTEXT_2D = 18, + CHART = 19, + COUNTER = 20, + CONTAINER_MODAL = 21, + DATA_PANEL = 22, + DATE_PICKER = 23, + DIALOG = 24, + DIVIDER = 25, + DRAG_BAR = 26, + EFFECT_COMPONENT = 27, + ELLIPSE = 28, + FLEX = 29, + FLOW_ITEM = 30, + FORM_COMPONENT = 31, + FORM_LINK = 32, + GAUGE = 33, + GRID = 34, + GRID_COL = 35, + GRID_CONTAINER = 36, + GRID_ITEM = 37, + GRID_ROW = 38, + HYPERLINK = 39, + IMAGE = 40, + IMAGE_ANIMATOR = 41, + IMAGE_BITMAP = 42, + IMAGE_DATA = 43, + IMAGE_SPAN = 44, + LABEL = 45, + LINE = 46, + LIST = 47, + LIST_ITEM = 48, + LIST_ITEM_GROUP = 49, + LOADING_PROGRESS = 50, + MARQUEE = 51, + MATRIX2D = 52, + MENU = 53, + MENU_ITEM = 54, + MENU_ITEM_GROUP = 55, + NAV_DESTINATION = 56, + NAV_ROUTER = 57, + NAVIGATION = 58, + NAVIGATION_BAR = 59, + NAVIGATION_MENU = 60, + NAVIGATOR = 61, + OFFSCREEN_CANVAS = 62, + OFFSCREEN_CANVAS_RENDERING_CONTEXT2D = 63, + OPTION = 64, + PANEL = 65, + PAPER_PAGE = 66, + PATH = 67, + PATH2D = 68, + PATTERN_LOCK = 69, + PICKER = 70, + PICKER_VIEW = 71, + PLUGIN_COMPONENT = 72, + POLYGON = 73, + POLYLINE = 74, + POPUP = 75, + PROGRESS = 76, + QRCODE = 77, + RADIO = 78, + RATING = 79, + RECT = 80, + REFRESH = 81, + RELATIVE_CONTAINER = 82, + REMOTE_WINDOW = 83, + RICH_EDITOR = 84, + RICH_TEXT = 85, + ROLE_PAGER = 86, + ROW = 87, + ROW_SPLIT = 88, + SCROLL = 89, + SCROLL_BAR = 90, + SEARCH = 91, + SEARCH_FIELD = 92, + SELECT = 93, + SHAPE = 94, + SIDEBAR_CONTAINER = 95, + SLIDER = 96, + SPAN = 97, + STACK = 98, + STEPPER = 99, + STEPPER_ITEM = 100, + SWIPER = 101, + SWIPER_INDICATOR = 102, + SWITCH = 103, + SYMBOL_GLYPH = 104, + TAB_CONTENT = 105, + TAB_BAR = 106, + TABS = 107, + TEXT = 108, + TEXT_CLOCK = 109, + TEXT_ENTRY = 110, + TEXT_INPUT = 111, + TEXT_PICKER = 112, + TEXT_TIMER = 113, + TEXT_AREA = 114, + TEXT_FIELD = 115, + TIME_PICKER = 116, + TITLE_BAR = 117, + TOGGLER = 118, + UI_EXTENSION_COMPONENT = 119, + VIDEO = 120, + WATER_FLOW = 121, + WEB = 122, + XCOMPONENT = 123, + ROLE_NONE = 124 +} +export type AccessibilityFocusCallback = (isFocus: boolean) => void; +export enum FinishCallbackType { + REMOVED = 0, + LOGICALLY = 1 +} +export enum TouchTestStrategy { + DEFAULT = 0, + FORWARD_COMPETITION = 1, + FORWARD = 2 +} +export interface AnimateParam { + duration?: number; + tempo?: number; + curve?: curves.Curve | string | curves.ICurve; + delay?: number; + iterations?: number; + playMode?: PlayMode; + onFinish?: (() => void); + finishCallbackType?: FinishCallbackType; + expectedFrameRateRange?: ExpectedFrameRateRange; +} +export type ICurve = curves.ICurve; +export interface MotionPathOptions { + path: string; + from?: number; + to?: number; + rotatable?: boolean; +} +export interface sharedTransitionOptions { + duration?: number; + curve?: curves.Curve | string | curves.ICurve; + delay?: number; + motionPath?: MotionPathOptions; + zIndex?: number; + type?: SharedTransitionEffectType; +} +export interface GeometryTransitionOptions { + follow?: boolean; + hierarchyStrategy?: TransitionHierarchyStrategy; +} +export interface LinearGradientOptions { + angle?: number | string; + direction?: GradientDirection; + colors: Array<[ ResourceColor, number ]>; + repeating?: boolean; +} +export enum TransitionHierarchyStrategy { + NONE = 0, + ADAPTIVE = 1 +} +export interface SweepGradientOptions { + center: [ Length, Length ]; + start?: number | string; + end?: number | string; + rotation?: number | string; + colors: Array<[ ResourceColor, number ]>; + repeating?: boolean; +} +export interface RadialGradientOptions { + center: [ Length, Length ]; + radius: Length; + colors: Array<[ ResourceColor, number ]>; + repeating?: boolean; +} +export interface TranslateOptions { + x?: number | string; + y?: number | string; + z?: number | string; +} +export interface ScaleOptions { + x?: number; + y?: number; + z?: number; + centerX?: number | string; + centerY?: number | string; +} +export interface AlignRuleParam { + anchor: string; + align: T; +} +export interface AlignRuleOption { + _stub: int32; +} +export interface LocalizedHorizontalAlignParam { + anchor: string; + align: HorizontalAlign; +} +export interface LocalizedVerticalAlignParam { + anchor: string; + align: VerticalAlign; +} +export interface LocalizedAlignRuleOptions { + start?: LocalizedHorizontalAlignParam; + end?: LocalizedHorizontalAlignParam; + middle?: LocalizedHorizontalAlignParam; + top?: LocalizedVerticalAlignParam; + bottom?: LocalizedVerticalAlignParam; + center?: LocalizedVerticalAlignParam; + bias?: Bias; +} +export enum ChainStyle { + SPREAD = 0, + SPREAD_INSIDE = 1, + PACKED = 2 +} +export interface RotateOptions { + x?: number; + y?: number; + z?: number; + centerX?: number | string; + centerY?: number | string; + centerZ?: number; + perspective?: number; + angle: number | string; +} +export enum TransitionEdge { + TOP = 0, + BOTTOM = 1, + START = 2, + END = 3 +} +export interface AsymmetricTransitionOption { + appear: TransitionEffect; + disappear: TransitionEffect; +} +export interface ItemDragInfo { + x: number; + y: number; +} +export enum EffectType { + DEFAULT = 0, + WINDOW_EFFECT = 1 +} +export enum PreDragStatus { + ACTION_DETECTING_STATUS = 0, + 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, + PREPARING_FOR_DRAG_DETECTION = 7 +} +export interface DragItemInfo { + pixelMap?: image.PixelMap; + builder?: CustomBuilder; + extraInfo?: string; +} +export type PointerStyle = pointer.PointerStyle; +export interface EventTarget { + area: Area; + id?: string; +} +export enum SourceType { + UNKNOWN = 0, + Unknown = 0, + MOUSE = 1, + Mouse = 1, + TOUCH_SCREEN = 2, + TouchScreen = 2 +} +export enum SourceTool { + UNKNOWN = 0, + Unknown = 0, + FINGER = 1, + Finger = 1, + PEN = 2, + Pen = 2, + MOUSE = 3, + TOUCHPAD = 4, + JOYSTICK = 5 +} +export enum RepeatMode { + REPEAT = 0, + Repeat = 0, + STRETCH = 1, + Stretch = 1, + ROUND = 2, + Round = 2, + SPACE = 3, + Space = 3 +} +export enum BlurStyle { + THIN = 0, + Thin = 0, + REGULAR = 1, + Regular = 1, + THICK = 2, + Thick = 2, + 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 = 0, + ALWAYS_ACTIVE = 1, + ALWAYS_INACTIVE = 2 +} +export enum ThemeColorMode { + SYSTEM = 0, + LIGHT = 1, + DARK = 2 +} +export enum AdaptiveColor { + DEFAULT = 0, + AVERAGE = 1 +} +export enum ModalTransition { + DEFAULT = 0, + NONE = 1, + ALPHA = 2 +} +export interface BackgroundBlurStyleOptions extends BlurStyleOptions { + policy?: BlurStyleActivePolicy; + inactiveColor?: ResourceColor; +} +export interface ForegroundBlurStyleOptions extends BlurStyleOptions { +} +export interface BlurOptions { + grayscale: [ number, number ]; +} +export interface SystemAdaptiveOptions { + disableSystemAdaptation?: boolean; +} +export interface BlurStyleOptions { + colorMode?: ThemeColorMode; + adaptiveColor?: AdaptiveColor; + scale?: number; + blurOptions?: BlurOptions; +} +export interface BackgroundEffectOptions { + radius: number; + saturation?: number; + brightness?: number; + color?: ResourceColor; + adaptiveColor?: AdaptiveColor; + blurOptions?: BlurOptions; + policy?: BlurStyleActivePolicy; + inactiveColor?: ResourceColor; +} +export interface ForegroundEffectOptions { + radius: number; +} +export interface PickerTextStyle { + color?: ResourceColor; + font?: Font; +} +export interface PickerDialogButtonStyle { + type?: ButtonType; + style?: ButtonStyleMode; + role?: ButtonRole; + fontSize?: Length; + fontColor?: ResourceColor; + fontWeight?: FontWeight | number | string; + fontStyle?: FontStyle; + fontFamily?: Resource | string; + backgroundColor?: ResourceColor; + borderRadius?: Length | BorderRadiuses; + primary?: boolean; +} +export enum ShadowType { + COLOR = 0, + BLUR = 1 +} +export interface ShadowOptions { + radius: number | Resource; + type?: ShadowType; + color?: Color | string | Resource | ColoringStrategy; + offsetX?: number | Resource; + offsetY?: number | Resource; + fill?: boolean; +} +export enum ShadowStyle { + OUTER_DEFAULT_XS = 0, + OUTER_DEFAULT_SM = 1, + OUTER_DEFAULT_MD = 2, + OUTER_DEFAULT_LG = 3, + OUTER_FLOATING_SM = 4, + OUTER_FLOATING_MD = 5 +} +export interface MultiShadowOptions { + radius?: number | Resource; + offsetX?: number | Resource; + offsetY?: number | Resource; +} +export enum SafeAreaType { + SYSTEM = 0, + CUTOUT = 1, + KEYBOARD = 2 +} +export enum SafeAreaEdge { + TOP = 0, + BOTTOM = 1, + START = 2, + END = 3 +} +export enum LayoutSafeAreaType { + SYSTEM = 0 +} +export enum LayoutSafeAreaEdge { + TOP = 0, + BOTTOM = 1 +} +export enum SheetSize { + MEDIUM = 0, + LARGE = 1, + FIT_CONTENT = 2 +} +export type ModifierKeyStateGetter = (keys: Array) => boolean; +export interface BorderImageOption { + slice?: Length | EdgeWidths | LocalizedEdgeWidths; + repeat?: RepeatMode; + source?: string | Resource | LinearGradientOptions; + width?: Length | EdgeWidths | LocalizedEdgeWidths; + outset?: Length | EdgeWidths | LocalizedEdgeWidths; + fill?: boolean; +} +export interface TouchObject { + type: TouchType; + id: number; + displayX: number; + displayY: number; + windowX: number; + windowY: number; + x: number; + y: number; + hand?: InteractionHand; + pressedTime?: number; + pressure?: number; + width?: number; + height?: number; +} +export interface HistoricalPoint { + touchObject: TouchObject; + size: number; + force: number; + timestamp: number; +} +export type SizeChangeCallback = (oldValue: SizeOptions, newValue: SizeOptions) => void; +export type GestureRecognizerJudgeBeginCallback = (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array) => GestureJudgeResult; +export type ShouldBuiltInRecognizerParallelWithCallback = (current: GestureRecognizer, others: Array) => GestureRecognizer; +export type TransitionFinishCallback = (transitionIn: boolean) => void; +export type PixelMap = image.PixelMap; +export enum DragBehavior { + COPY = 0, + MOVE = 1 +} +export type UnifiedData = unifiedDataChannel.UnifiedData; +export type Summary = unifiedDataChannel.Summary; +export type UniformDataType = uniformTypeDescriptor.UniformDataType; +export enum DragResult { + DRAG_SUCCESSFUL = 0, + DRAG_FAILED = 1, + DRAG_CANCELED = 2, + DROP_ENABLED = 3, + DROP_DISABLED = 4 +} +export enum BlendMode { + NONE = 0, + 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 = 0, + OFFSCREEN = 1 +} +export type OnDragEventCallback = (event: DragEvent, extraParams?: string) => void; +export interface DropOptions { + disableDataPrefetch?: boolean; +} +export interface CrownEvent { + timestamp: number; + angularVelocity: number; + degree: number; + action: CrownAction; + stopPropagation: (() => void); +} +export interface BindOptions { + backgroundColor?: ResourceColor; + onAppear?: (() => void); + onDisappear?: (() => void); + onWillAppear?: (() => void); + onWillDisappear?: (() => void); +} +export interface DismissContentCoverAction { + dismiss: VoidCallback; + reason: DismissReason; +} +export interface ContentCoverOptions extends BindOptions { + modalTransition?: ModalTransition; + onWillDismiss?: ((value0: DismissContentCoverAction) => void); + transition?: TransitionEffect; +} +export interface SheetTitleOptions { + title: ResourceStr; + subtitle?: ResourceStr; +} +export enum SheetType { + BOTTOM = 0, + CENTER = 1, + POPUP = 2 +} +export enum SheetMode { + OVERLAY = 0, + EMBEDDED = 1 +} +export enum ScrollSizeMode { + FOLLOW_DETENT = 0, + CONTINUOUS = 1 +} +export enum SheetKeyboardAvoidMode { + NONE = 0, + TRANSLATE_AND_RESIZE = 1, + RESIZE_ONLY = 2, + TRANSLATE_AND_SCROLL = 3 +} +export interface SheetDismiss { + dismiss: VoidCallback; +} +export interface DismissSheetAction { + dismiss: VoidCallback; + reason: DismissReason; +} +export interface SpringBackAction { + springBack: VoidCallback; +} +export type SingleLengthDetent = [ + SheetSize | Length +] +export type DoubleLengthDetents = [ + SheetSize | Length, + SheetSize | Length | undefined +] +export type TripleLengthDetents = [ + SheetSize | Length, + SheetSize | Length | undefined, + SheetSize | Length | undefined +] +export interface SheetOptions extends BindOptions { + height?: SheetSize | Length; + dragBar?: boolean; + maskColor?: ResourceColor; + detents?: TripleLengthDetents; + blurStyle?: BlurStyle; + showClose?: boolean | Resource; + preferType?: SheetType; + title?: SheetTitleOptions | CustomBuilder; + shouldDismiss?: ((sheetDismiss: SheetDismiss) => void); + onWillDismiss?: ((value0: DismissSheetAction) => void); + onWillSpringBackWhenDismiss?: ((value0: SpringBackAction) => void); + enableOutsideInteractive?: boolean; + width?: Dimension; + borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths; + borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors; + borderStyle?: BorderStyle | EdgeStyles; + shadow?: ShadowOptions | ShadowStyle; + onHeightDidChange?: ((value0: number) => void); + mode?: SheetMode; + scrollSizeMode?: ScrollSizeMode; + onDetentsDidChange?: ((value0: number) => void); + onWidthDidChange?: ((value0: number) => void); + onTypeDidChange?: ((value0: SheetType) => void); + uiContext?: UIContext; + keyboardAvoidMode?: SheetKeyboardAvoidMode; + enableHoverMode?: boolean; + hoverModeArea?: HoverModeAreaType; + offset?: Position; + effectEdge?: number; + radius?: LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses; + detentSelection?: SheetSize | Length; + showInSubWindow?: boolean; + placement?: Placement; + placementOnTarget?: boolean; +} +export interface StateStyles { + normal?: CustomStyles; + pressed?: CustomStyles; + disabled?: CustomStyles; + focused?: CustomStyles; + clicked?: CustomStyles; + selected?: CustomStyles; +} +export interface PopupMessageOptions { + textColor?: ResourceColor; + font?: Font; +} +export enum DismissReason { + PRESS_BACK = 0, + TOUCH_OUTSIDE = 1, + CLOSE_BUTTON = 2, + SLIDE_DOWN = 3 +} +export interface PopupStateChangeParam { + isVisible: boolean; +} +export type PopupStateChangeCallback = (event: PopupStateChangeParam) => void; +export interface PopupMaskType { + color: ResourceColor; +} +export interface PopupCommonOptions { + placement?: Placement; + popupColor?: ResourceColor; + enableArrow?: boolean; + autoCancel?: boolean; + onStateChange?: PopupStateChangeCallback; + arrowOffset?: Length; + showInSubWindow?: boolean; + mask?: boolean | PopupMaskType; + targetSpace?: Length; + offset?: Position; + width?: Dimension; + arrowPointPosition?: ArrowPointPosition; + arrowWidth?: Dimension; + arrowHeight?: Dimension; + radius?: Dimension; + shadow?: ShadowOptions | ShadowStyle; + backgroundBlurStyle?: BlurStyle; + focusable?: boolean; + transition?: TransitionEffect; + onWillDismiss?: boolean | ((value0: DismissPopupAction) => void); + enableHoverMode?: boolean; + followTransformOfTarget?: boolean; +} +export interface TipsOptions { + appearingTime?: number; + disappearingTime?: number; + appearingTimeWithContinuousOperation?: number; + disappearingTimeWithContinuousOperation?: number; + enableArrow?: boolean; + arrowPointPosition?: ArrowPointPosition; + arrowWidth?: Dimension; + arrowHeight?: Dimension; +} +export interface PopupButton { + value: string; + action: VoidCallback; +} +export interface PopupOptions { + message: string; + placement?: Placement; + primaryButton?: PopupButton; + secondaryButton?: PopupButton; + onStateChange?: PopupStateChangeCallback; + arrowOffset?: Length; + showInSubWindow?: boolean; + mask?: boolean | PopupMaskType; + messageOptions?: PopupMessageOptions; + targetSpace?: Length; + enableArrow?: boolean; + offset?: Position; + popupColor?: Color | string | Resource | number; + autoCancel?: boolean; + width?: Dimension; + arrowPointPosition?: ArrowPointPosition; + arrowWidth?: Dimension; + arrowHeight?: Dimension; + radius?: Dimension; + shadow?: ShadowOptions | ShadowStyle; + backgroundBlurStyle?: BlurStyle; + transition?: TransitionEffect; + onWillDismiss?: boolean | ((value0: DismissPopupAction) => void); + enableHoverMode?: boolean; + followTransformOfTarget?: boolean; + keyboardAvoidMode?: KeyboardAvoidMode; +} +export interface CustomPopupOptions { + builder: CustomBuilder; + placement?: Placement; + popupColor?: Color | string | Resource | number; + enableArrow?: boolean; + autoCancel?: boolean; + onStateChange?: PopupStateChangeCallback; + arrowOffset?: Length; + showInSubWindow?: boolean; + mask?: boolean | PopupMaskType; + targetSpace?: Length; + offset?: Position; + width?: Dimension; + arrowPointPosition?: ArrowPointPosition; + arrowWidth?: Dimension; + arrowHeight?: Dimension; + radius?: Dimension; + shadow?: ShadowOptions | ShadowStyle; + backgroundBlurStyle?: BlurStyle; + focusable?: boolean; + transition?: TransitionEffect; + onWillDismiss?: boolean | ((value0: DismissPopupAction) => void); + enableHoverMode?: boolean; + followTransformOfTarget?: boolean; + keyboardAvoidMode?: KeyboardAvoidMode; +} +export enum MenuPreviewMode { + NONE = 0, + IMAGE = 1 +} +export type AnimationNumberRange = [ + number, + number +] +export interface ContextMenuAnimationOptions { + scale?: AnimationNumberRange; + transition?: TransitionEffect; + hoverScale?: AnimationNumberRange; +} +export type BorderRadiusType = Length | BorderRadiuses | LocalizedBorderRadiuses; +export enum HapticFeedbackMode { + DISABLED = 0, + ENABLED = 1, + AUTO = 2 +} +export interface ContextMenuOptions { + offset?: Position; + placement?: Placement; + enableArrow?: boolean; + arrowOffset?: Length; + preview?: MenuPreviewMode | CustomBuilder; + previewBorderRadius?: BorderRadiusType; + borderRadius?: Length | BorderRadiuses | LocalizedBorderRadiuses; + onAppear?: (() => void); + onDisappear?: (() => void); + aboutToAppear?: (() => void); + aboutToDisappear?: (() => void); + layoutRegionMargin?: Padding; + previewAnimationOptions?: ContextMenuAnimationOptions; + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + backgroundBlurStyleOptions?: BackgroundBlurStyleOptions; + backgroundEffect?: BackgroundEffectOptions; + transition?: TransitionEffect; + enableHoverMode?: boolean; + outlineColor?: ResourceColor | EdgeColors; + outlineWidth?: Dimension | EdgeOutlineWidths; + hapticFeedbackMode?: HapticFeedbackMode; +} +export interface MenuOptions extends ContextMenuOptions { + title?: ResourceStr; + showInSubWindow?: boolean; +} +export interface TouchTestInfo { + windowX: number; + windowY: number; + parentX: number; + parentY: number; + x: number; + y: number; + rect: RectResult; + id: string; +} +export interface TouchResult { + strategy: TouchTestStrategy; + id?: string | undefined; +} +export interface PixelStretchEffectOptions { + top?: Length; + bottom?: Length; + left?: Length; + right?: Length; +} +export interface ClickEffect { + level: ClickEffectLevel; + scale?: number; +} +export interface FadingEdgeOptions { + fadingEdgeLength?: LengthMetrics; +} +export interface NestedScrollOptions { + scrollForward: NestedScrollMode; + scrollBackward: NestedScrollMode; +} +export interface MenuElement { + value: ResourceStr; + icon?: ResourceStr; + symbolIcon?: SymbolGlyphModifier; + enabled?: boolean; + action: (() => void); +} +export interface CommonConfiguration { + enabled: boolean; + contentModifier: ContentModifier; +} +export enum OutlineStyle { + SOLID = 0, + DASHED = 1, + DOTTED = 2 +} +export enum DragPreviewMode { + AUTO = 1, + DISABLE_SCALE = 2, + ENABLE_DEFAULT_SHADOW = 3, + ENABLE_DEFAULT_RADIUS = 4, + ENABLE_DRAG_ITEM_GRAY_EFFECT = 5, + ENABLE_MULTI_TILE_EFFECT = 6, + ENABLE_TOUCH_POINT_CALCULATION_BASED_ON_FINAL_PREVIEW = 7 +} +export enum DraggingSizeChangeEffect { + DEFAULT = 0, + SIZE_TRANSITION = 1, + SIZE_CONTENT_TRANSITION = 2 +} +export enum MenuPolicy { + DEFAULT = 0, + HIDE = 1, + SHOW = 2 +} +export interface DragPreviewOptions { + mode?: DragPreviewMode | Array; + numberBadge?: boolean | number; + sizeChangeEffect?: DraggingSizeChangeEffect; +} +export interface DragInteractionOptions { + isMultiSelectionEnabled?: boolean; + defaultAnimationBeforeLifting?: boolean; + enableEdgeAutoScroll?: boolean; + enableHapticFeedback?: boolean; + isLiftingDisabled?: boolean; +} +export interface PreviewConfiguration { + onlyForLifting?: boolean; + delayCreating?: boolean; +} +export interface InvertOptions { + low: number; + high: number; + threshold: number; + thresholdRange: number; +} +export type TipsMessageType = ResourceStr | StyledString; +export interface BackgroundImageOptions { + syncLoad?: boolean; + repeat?: ImageRepeat; +} +export interface BackgroundOptions { + align?: Alignment; +} +export type CustomProperty = Object | undefined; +export interface CommonMethod { + width(value: Length | LayoutPolicy | undefined): this { + throw new Error("Unimplemented method width") + } + height(value: Length | LayoutPolicy | undefined): this { + throw new Error("Unimplemented method height") + } + drawModifier(value: DrawModifier | undefined): this { + throw new Error("Unimplemented method drawModifier") + } + responseRegion(value: Array | Rectangle | undefined): this { + throw new Error("Unimplemented method responseRegion") + } + mouseResponseRegion(value: Array | Rectangle | undefined): this { + throw new Error("Unimplemented method mouseResponseRegion") + } + size(value: SizeOptions | undefined): this { + throw new Error("Unimplemented method size") + } + constraintSize(value: ConstraintSizeOptions | undefined): this { + throw new Error("Unimplemented method constraintSize") + } + hitTestBehavior(value: HitTestMode | undefined): this { + throw new Error("Unimplemented method hitTestBehavior") + } + onChildTouchTest(value: ((value: Array) => TouchResult) | undefined): this { + throw new Error("Unimplemented method onChildTouchTest") + } + layoutWeight(value: number | string | undefined): this { + throw new Error("Unimplemented method layoutWeight") + } + chainWeight(value: ChainWeightOptions | undefined): this { + throw new Error("Unimplemented method chainWeight") + } + padding(value: Padding | Length | LocalizedPadding | undefined): this { + throw new Error("Unimplemented method padding") + } + safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding | undefined): this { + throw new Error("Unimplemented method safeAreaPadding") + } + margin(value: Padding | Length | LocalizedPadding | undefined): this { + throw new Error("Unimplemented method margin") + } + backgroundColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method backgroundColor") + } + pixelRound(value: PixelRoundPolicy | undefined): this { + throw new Error("Unimplemented method pixelRound") + } + backgroundImageSize(value: SizeOptions | ImageSize | undefined): this { + throw new Error("Unimplemented method backgroundImageSize") + } + backgroundImagePosition(value: Position | Alignment | undefined): this { + throw new Error("Unimplemented method backgroundImagePosition") + } + backgroundEffect(value: BackgroundEffectOptions | undefined): this { + throw new Error("Unimplemented method backgroundEffect") + } + backgroundImageResizable(value: ResizableOptions | undefined): this { + throw new Error("Unimplemented method backgroundImageResizable") + } + foregroundEffect(value: ForegroundEffectOptions | undefined): this { + throw new Error("Unimplemented method foregroundEffect") + } + visualEffect(value: uiEffect.VisualEffect | undefined): this { + throw new Error("Unimplemented method visualEffect") + } + backgroundFilter(value: uiEffect.Filter | undefined): this { + throw new Error("Unimplemented method backgroundFilter") + } + foregroundFilter(value: uiEffect.Filter | undefined): this { + throw new Error("Unimplemented method foregroundFilter") + } + compositingFilter(value: uiEffect.Filter | undefined): this { + throw new Error("Unimplemented method compositingFilter") + } + opacity(value: number | Resource | undefined): this { + throw new Error("Unimplemented method opacity") + } + border(value: BorderOptions | undefined): this { + throw new Error("Unimplemented method border") + } + borderStyle(value: BorderStyle | EdgeStyles | undefined): this { + throw new Error("Unimplemented method borderStyle") + } + borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): this { + throw new Error("Unimplemented method borderWidth") + } + borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { + throw new Error("Unimplemented method borderColor") + } + borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): this { + throw new Error("Unimplemented method borderRadius") + } + borderImage(value: BorderImageOption | undefined): this { + throw new Error("Unimplemented method borderImage") + } + outline(value: OutlineOptions | undefined): this { + throw new Error("Unimplemented method outline") + } + outlineStyle(value: OutlineStyle | EdgeOutlineStyles | undefined): this { + throw new Error("Unimplemented method outlineStyle") + } + outlineWidth(value: Dimension | EdgeOutlineWidths | undefined): this { + throw new Error("Unimplemented method outlineWidth") + } + outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { + throw new Error("Unimplemented method outlineColor") + } + outlineRadius(value: Dimension | OutlineRadiuses | undefined): this { + throw new Error("Unimplemented method outlineRadius") + } + foregroundColor(value: ResourceColor | ColoringStrategy | undefined): this { + throw new Error("Unimplemented method foregroundColor") + } + onClick(value: ((event: ClickEvent) => void) | undefined): this { + throw new Error("Unimplemented method onClick") + } + onHover(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): this { + throw new Error("Unimplemented method onHover") + } + onHoverMove(value: ((value0: HoverEvent) => void) | undefined): this { + throw new Error("Unimplemented method onHoverMove") + } + onAccessibilityHover(value: AccessibilityCallback | undefined): this { + throw new Error("Unimplemented method onAccessibilityHover") + } + hoverEffect(value: HoverEffect | undefined): this { + throw new Error("Unimplemented method hoverEffect") + } + onMouse(value: ((event: MouseEvent) => void) | undefined): this { + throw new Error("Unimplemented method onMouse") + } + onTouch(value: ((event: TouchEvent) => void) | undefined): this { + throw new Error("Unimplemented method onTouch") + } + onKeyEvent(value: ((event: KeyEvent) => void) | undefined): this { + throw new Error("Unimplemented method onKeyEvent") + } + onDigitalCrown(value: ((value0: CrownEvent) => void) | undefined): this { + throw new Error("Unimplemented method onDigitalCrown") + } + onKeyPreIme(value: ((value0: KeyEvent) => boolean) | undefined): this { + throw new Error("Unimplemented method onKeyPreIme") + } + onKeyEventDispatch(value: ((value0: KeyEvent) => boolean) | undefined): this { + throw new Error("Unimplemented method onKeyEventDispatch") + } + onFocusAxisEvent(value: ((value0: FocusAxisEvent) => void) | undefined): this { + throw new Error("Unimplemented method onFocusAxisEvent") + } + onAxisEvent(value: ((value0: AxisEvent) => void) | undefined): this { + throw new Error("Unimplemented method onAxisEvent") + } + focusable(value: boolean | undefined): this { + throw new Error("Unimplemented method focusable") + } + nextFocus(value: FocusMovement | undefined): this { + throw new Error("Unimplemented method nextFocus") + } + tabStop(value: boolean | undefined): this { + throw new Error("Unimplemented method tabStop") + } + onFocus(value: (() => void) | undefined): this { + throw new Error("Unimplemented method onFocus") + } + onBlur(value: (() => void) | undefined): this { + throw new Error("Unimplemented method onBlur") + } + tabIndex(value: number | undefined): this { + throw new Error("Unimplemented method tabIndex") + } + defaultFocus(value: boolean | undefined): this { + throw new Error("Unimplemented method defaultFocus") + } + groupDefaultFocus(value: boolean | undefined): this { + throw new Error("Unimplemented method groupDefaultFocus") + } + focusOnTouch(value: boolean | undefined): this { + throw new Error("Unimplemented method focusOnTouch") + } + focusBox(value: FocusBoxStyle | undefined): this { + throw new Error("Unimplemented method focusBox") + } + animation(value: AnimateParam | undefined): this { + throw new Error("Unimplemented method animation") + } + transition(value: TransitionEffect | undefined): this { + throw new Error("Unimplemented method transition") + } + motionBlur(value: MotionBlurOptions | undefined): this { + throw new Error("Unimplemented method motionBlur") + } + brightness(value: number | undefined): this { + throw new Error("Unimplemented method brightness") + } + contrast(value: number | undefined): this { + throw new Error("Unimplemented method contrast") + } + grayscale(value: number | undefined): this { + throw new Error("Unimplemented method grayscale") + } + colorBlend(value: Color | string | Resource | undefined): this { + throw new Error("Unimplemented method colorBlend") + } + saturate(value: number | undefined): this { + throw new Error("Unimplemented method saturate") + } + sepia(value: number | undefined): this { + throw new Error("Unimplemented method sepia") + } + invert(value: number | InvertOptions | undefined): this { + throw new Error("Unimplemented method invert") + } + hueRotate(value: number | string | undefined): this { + throw new Error("Unimplemented method hueRotate") + } + useShadowBatching(value: boolean | undefined): this { + throw new Error("Unimplemented method useShadowBatching") + } + useEffect(value: boolean | undefined): this { + throw new Error("Unimplemented method useEffect") + } + renderGroup(value: boolean | undefined): this { + throw new Error("Unimplemented method renderGroup") + } + freeze(value: boolean | undefined): this { + throw new Error("Unimplemented method freeze") + } + translate(value: TranslateOptions | undefined): this { + throw new Error("Unimplemented method translate") + } + scale(value: ScaleOptions | undefined): this { + throw new Error("Unimplemented method scale") + } + rotate(value: RotateOptions | undefined): this { + throw new Error("Unimplemented method rotate") + } + transform(value: Object | undefined): this { + throw new Error("Unimplemented method transform") + } + onAppear(value: (() => void) | undefined): this { + throw new Error("Unimplemented method onAppear") + } + onDisAppear(value: (() => void) | undefined): this { + throw new Error("Unimplemented method onDisAppear") + } + onAttach(value: VoidCallback | undefined): this { + throw new Error("Unimplemented method onAttach") + } + onDetach(value: VoidCallback | undefined): this { + throw new Error("Unimplemented method onDetach") + } + onAreaChange(value: ((oldValue: Area,newValue: Area) => void) | undefined): this { + throw new Error("Unimplemented method onAreaChange") + } + visibility(value: Visibility | undefined): this { + throw new Error("Unimplemented method visibility") + } + flexGrow(value: number | undefined): this { + throw new Error("Unimplemented method flexGrow") + } + flexShrink(value: number | undefined): this { + throw new Error("Unimplemented method flexShrink") + } + flexBasis(value: number | string | undefined): this { + throw new Error("Unimplemented method flexBasis") + } + alignSelf(value: ItemAlign | undefined): this { + throw new Error("Unimplemented method alignSelf") + } + displayPriority(value: number | undefined): this { + throw new Error("Unimplemented method displayPriority") + } + zIndex(value: number | undefined): this { + throw new Error("Unimplemented method zIndex") + } + direction(value: Direction | undefined): this { + throw new Error("Unimplemented method direction") + } + align(value: Alignment | undefined): this { + throw new Error("Unimplemented method align") + } + position(value: Position | Edges | LocalizedEdges | undefined): this { + throw new Error("Unimplemented method position") + } + markAnchor(value: Position | LocalizedPosition | undefined): this { + throw new Error("Unimplemented method markAnchor") + } + offset(value: Position | Edges | LocalizedEdges | undefined): this { + throw new Error("Unimplemented method offset") + } + enabled(value: boolean | undefined): this { + throw new Error("Unimplemented method enabled") + } + alignRules(value: AlignRuleOption | undefined): this { + throw new Error("Unimplemented method alignRules") + } + alignRules(value: LocalizedAlignRuleOptions | undefined): this { + throw new Error("Unimplemented method alignRules") + } + aspectRatio(value: number | undefined): this { + throw new Error("Unimplemented method aspectRatio") + } + clickEffect(value: ClickEffect | undefined): this { + throw new Error("Unimplemented method clickEffect") + } + onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): this { + throw new Error("Unimplemented method onDragStart") + } + onDragEnter(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + throw new Error("Unimplemented method onDragEnter") + } + onDragMove(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + throw new Error("Unimplemented method onDragMove") + } + onDragLeave(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + throw new Error("Unimplemented method onDragLeave") + } + onDrop(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + throw new Error("Unimplemented method onDrop") + } + onDragEnd(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + throw new Error("Unimplemented method onDragEnd") + } + allowDrop(value: Array | undefined): this { + throw new Error("Unimplemented method allowDrop") + } + draggable(value: boolean | undefined): this { + throw new Error("Unimplemented method draggable") + } + dragPreview(value: CustomBuilder | DragItemInfo | string | undefined): this { + throw new Error("Unimplemented method dragPreview") + } + onPreDrag(value: ((value0: PreDragStatus) => void) | undefined): this { + throw new Error("Unimplemented method onPreDrag") + } + linearGradient(value: LinearGradientOptions | undefined): this { + throw new Error("Unimplemented method linearGradient") + } + sweepGradient(value: SweepGradientOptions | undefined): this { + throw new Error("Unimplemented method sweepGradient") + } + radialGradient(value: RadialGradientOptions | undefined): this { + throw new Error("Unimplemented method radialGradient") + } + motionPath(value: MotionPathOptions | undefined): this { + throw new Error("Unimplemented method motionPath") + } + shadow(value: ShadowOptions | ShadowStyle | undefined): this { + throw new Error("Unimplemented method shadow") + } + clip(value: boolean | undefined): this { + throw new Error("Unimplemented method clip") + } + clipShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { + throw new Error("Unimplemented method clipShape") + } + mask(value: ProgressMask | undefined): this { + throw new Error("Unimplemented method mask") + } + maskShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { + throw new Error("Unimplemented method maskShape") + } + key(value: string | undefined): this { + throw new Error("Unimplemented method key") + } + id(value: string | undefined): this { + throw new Error("Unimplemented method id") + } + geometryTransition(value: string | undefined): this { + throw new Error("Unimplemented method geometryTransition") + } + stateStyles(value: StateStyles | undefined): this { + throw new Error("Unimplemented method stateStyles") + } + restoreId(value: number | undefined): this { + throw new Error("Unimplemented method restoreId") + } + sphericalEffect(value: number | undefined): this { + throw new Error("Unimplemented method sphericalEffect") + } + lightUpEffect(value: number | undefined): this { + throw new Error("Unimplemented method lightUpEffect") + } + pixelStretchEffect(value: PixelStretchEffectOptions | undefined): this { + throw new Error("Unimplemented method pixelStretchEffect") + } + accessibilityGroup(value: boolean | undefined): this { + throw new Error("Unimplemented method accessibilityGroup") + } + accessibilityText(value: string | undefined): this { + throw new Error("Unimplemented method accessibilityText") + } + accessibilityNextFocusId(value: string | undefined): this { + throw new Error("Unimplemented method accessibilityNextFocusId") + } + accessibilityDefaultFocus(value: boolean | undefined): this { + throw new Error("Unimplemented method accessibilityDefaultFocus") + } + accessibilityUseSamePage(value: AccessibilitySamePageMode | undefined): this { + throw new Error("Unimplemented method accessibilityUseSamePage") + } + accessibilityScrollTriggerable(value: boolean | undefined): this { + throw new Error("Unimplemented method accessibilityScrollTriggerable") + } + accessibilityText(value: Resource | undefined): this { + throw new Error("Unimplemented method accessibilityText") + } + accessibilityRole(value: AccessibilityRoleType | undefined): this { + throw new Error("Unimplemented method accessibilityRole") + } + onAccessibilityFocus(value: AccessibilityFocusCallback | undefined): this { + throw new Error("Unimplemented method onAccessibilityFocus") + } + accessibilityTextHint(value: string | undefined): this { + throw new Error("Unimplemented method accessibilityTextHint") + } + accessibilityDescription(value: string | undefined): this { + throw new Error("Unimplemented method accessibilityDescription") + } + accessibilityDescription(value: Resource | undefined): this { + throw new Error("Unimplemented method accessibilityDescription") + } + accessibilityLevel(value: string | undefined): this { + throw new Error("Unimplemented method accessibilityLevel") + } + accessibilityVirtualNode(value: CustomBuilder | undefined): this { + throw new Error("Unimplemented method accessibilityVirtualNode") + } + accessibilityChecked(value: boolean | undefined): this { + throw new Error("Unimplemented method accessibilityChecked") + } + accessibilitySelected(value: boolean | undefined): this { + throw new Error("Unimplemented method accessibilitySelected") + } + obscured(value: Array | undefined): this { + throw new Error("Unimplemented method obscured") + } + reuseId(value: string | undefined): this { + throw new Error("Unimplemented method reuseId") + } + reuse(value: ReuseOptions | undefined): this { + throw new Error("Unimplemented method reuse") + } + renderFit(value: RenderFit | undefined): this { + throw new Error("Unimplemented method renderFit") + } + gestureModifier(value: GestureModifier | undefined): this { + throw new Error("Unimplemented method gestureModifier") + } + backgroundBrightness(value: BackgroundBrightnessOptions | undefined): this { + throw new Error("Unimplemented method backgroundBrightness") + } + onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): this { + throw new Error("Unimplemented method onGestureJudgeBegin") + } + onGestureRecognizerJudgeBegin(value: GestureRecognizerJudgeBeginCallback | undefined): this { + throw new Error("Unimplemented method onGestureRecognizerJudgeBegin") + } + shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): this { + throw new Error("Unimplemented method shouldBuiltInRecognizerParallelWith") + } + monopolizeEvents(value: boolean | undefined): this { + throw new Error("Unimplemented method monopolizeEvents") + } + onTouchIntercept(value: ((value0: TouchEvent) => HitTestMode) | undefined): this { + throw new Error("Unimplemented method onTouchIntercept") + } + onSizeChange(value: SizeChangeCallback | undefined): this { + throw new Error("Unimplemented method onSizeChange") + } + accessibilityFocusDrawLevel(value: FocusDrawLevel | undefined): this { + throw new Error("Unimplemented method accessibilityFocusDrawLevel") + } + customProperty(name: string, value: CustomProperty): this { + throw new Error("Unimplemented method customProperty") + } + expandSafeArea(types?: Array, edges?: Array): this { + throw new Error("Unimplemented method expandSafeArea") + } + background(builder: CustomBuilder | undefined, options?: BackgroundOptions): this { + throw new Error("Unimplemented method background") + } + backgroundImage(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): this { + throw new Error("Unimplemented method backgroundImage") + } + backgroundImage(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): this { + throw new Error("Unimplemented method backgroundImage") + } + backgroundBlurStyle(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { + throw new Error("Unimplemented method backgroundBlurStyle") + } + backgroundEffect(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): this { + throw new Error("Unimplemented method backgroundEffect") + } + foregroundBlurStyle(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { + throw new Error("Unimplemented method foregroundBlurStyle") + } + onClick(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): this { + throw new Error("Unimplemented method onClick") + } + focusScopeId(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): this { + throw new Error("Unimplemented method focusScopeId") + } + focusScopePriority(scopeId: string | undefined, priority?: FocusPriority): this { + throw new Error("Unimplemented method focusScopePriority") + } + transition(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): this { + throw new Error("Unimplemented method transition") + } + gesture(gesture: GestureType | undefined, mask?: GestureMask): this { + throw new Error("Unimplemented method gesture") + } + priorityGesture(gesture: GestureType | undefined, mask?: GestureMask): this { + throw new Error("Unimplemented method priorityGesture") + } + parallelGesture(gesture: GestureType | undefined, mask?: GestureMask): this { + throw new Error("Unimplemented method parallelGesture") + } + blur(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { + throw new Error("Unimplemented method blur") + } + linearGradientBlur(value: number | undefined, options: LinearGradientBlurOptions | undefined): this { + throw new Error("Unimplemented method linearGradientBlur") + } + systemBarEffect(): this { + throw new Error("Unimplemented method systemBarEffect") + } + useEffect(useEffect: boolean | undefined, effectType: EffectType | undefined): this { + throw new Error("Unimplemented method useEffect") + } + backdropBlur(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { + throw new Error("Unimplemented method backdropBlur") + } + sharedTransition(id: string | undefined, options?: sharedTransitionOptions): this { + throw new Error("Unimplemented method sharedTransition") + } + chainMode(direction: Axis | undefined, style: ChainStyle | undefined): this { + throw new Error("Unimplemented method chainMode") + } + onDrop(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): this { + throw new Error("Unimplemented method onDrop") + } + dragPreview(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): this { + throw new Error("Unimplemented method dragPreview") + } + dragPreviewOptions(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): this { + throw new Error("Unimplemented method dragPreviewOptions") + } + overlay(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): this { + throw new Error("Unimplemented method overlay") + } + blendMode(value: BlendMode | undefined, type?: BlendApplyType): this { + throw new Error("Unimplemented method blendMode") + } + advancedBlendMode(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): this { + throw new Error("Unimplemented method advancedBlendMode") + } + geometryTransition(id: string | undefined, options?: GeometryTransitionOptions): this { + throw new Error("Unimplemented method geometryTransition") + } + bindTips(message: TipsMessageType | undefined, options?: TipsOptions): this { + throw new Error("Unimplemented method bindTips") + } + bindPopup(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): this { + throw new Error("Unimplemented method bindPopup") + } + bindMenu(content: Array | CustomBuilder | undefined, options?: MenuOptions): this { + throw new Error("Unimplemented method bindMenu") + } + bindMenu(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): this { + throw new Error("Unimplemented method bindMenu") + } + bindContextMenu(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): this { + throw new Error("Unimplemented method bindContextMenu") + } + bindContextMenu(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): this { + throw new Error("Unimplemented method bindContextMenu") + } + bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): this { + throw new Error("Unimplemented method bindContentCover") + } + bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): this { + throw new Error("Unimplemented method bindContentCover") + } + bindSheet(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): this { + throw new Error("Unimplemented method bindSheet") + } + onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this { + throw new Error("Unimplemented method onVisibleAreaChange") + } + onVisibleAreaApproximateChange(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): this { + throw new Error("Unimplemented method onVisibleAreaApproximateChange") + } + keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): this { + throw new Error("Unimplemented method keyboardShortcut") + } + accessibilityGroup(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): this { + throw new Error("Unimplemented method accessibilityGroup") + } + onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): this { + throw new Error("Unimplemented method onGestureRecognizerJudgeBegin") + } + attributeModifier(value: AttributeModifier | undefined): this { + throw new Error("Unimplemented method attributeModifier") + } +} +export class ArkCommonMethodStyle implements CommonMethod { + width_value?: Length | LayoutPolicy | undefined + height_value?: Length | LayoutPolicy | undefined + drawModifier_value?: DrawModifier | undefined + responseRegion_value?: Array | Rectangle | undefined + mouseResponseRegion_value?: Array | Rectangle | undefined + size_value?: SizeOptions | undefined + constraintSize_value?: ConstraintSizeOptions | undefined + hitTestBehavior_value?: HitTestMode | undefined + onChildTouchTest_value?: ((value: Array) => TouchResult) | undefined + layoutWeight_value?: number | string | undefined + chainWeight_value?: ChainWeightOptions | undefined + padding_value?: Padding | Length | LocalizedPadding | undefined + safeAreaPadding_value?: Padding | LengthMetrics | LocalizedPadding | undefined + margin_value?: Padding | Length | LocalizedPadding | undefined + backgroundColor_value?: ResourceColor | undefined + pixelRound_value?: PixelRoundPolicy | undefined + backgroundImageSize_value?: SizeOptions | ImageSize | undefined + backgroundImagePosition_value?: Position | Alignment | undefined + backgroundEffect_value?: BackgroundEffectOptions | undefined + backgroundImageResizable_value?: ResizableOptions | undefined + foregroundEffect_value?: ForegroundEffectOptions | undefined + visualEffect_value?: uiEffect.VisualEffect | undefined + backgroundFilter_value?: uiEffect.Filter | undefined + foregroundFilter_value?: uiEffect.Filter | undefined + compositingFilter_value?: uiEffect.Filter | undefined + opacity_value?: number | Resource | undefined + border_value?: BorderOptions | undefined + borderStyle_value?: BorderStyle | EdgeStyles | undefined + borderWidth_value?: Length | EdgeWidths | LocalizedEdgeWidths | undefined + borderColor_value?: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined + borderRadius_value?: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined + borderImage_value?: BorderImageOption | undefined + outline_value?: OutlineOptions | undefined + outlineStyle_value?: OutlineStyle | EdgeOutlineStyles | undefined + outlineWidth_value?: Dimension | EdgeOutlineWidths | undefined + outlineColor_value?: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined + outlineRadius_value?: Dimension | OutlineRadiuses | undefined + foregroundColor_value?: ResourceColor | ColoringStrategy | undefined + onClick_value?: ((event: ClickEvent) => void) | undefined + onHover_value?: ((isHover: boolean,event: HoverEvent) => void) | undefined + onHoverMove_value?: ((value0: HoverEvent) => void) | undefined + onAccessibilityHover_value?: AccessibilityCallback | undefined + hoverEffect_value?: HoverEffect | undefined + onMouse_value?: ((event: MouseEvent) => void) | undefined + onTouch_value?: ((event: TouchEvent) => void) | undefined + onKeyEvent_value?: ((event: KeyEvent) => void) | undefined + onDigitalCrown_value?: ((value0: CrownEvent) => void) | undefined + onKeyPreIme_value?: ((value0: KeyEvent) => boolean) | undefined + onKeyEventDispatch_value?: ((value0: KeyEvent) => boolean) | undefined + onFocusAxisEvent_value?: ((value0: FocusAxisEvent) => void) | undefined + onAxisEvent_value?: ((value0: AxisEvent) => void) | undefined + focusable_value?: boolean | undefined + nextFocus_value?: FocusMovement | undefined + tabStop_value?: boolean | undefined + onFocus_value?: (() => void) | undefined + onBlur_value?: (() => void) | undefined + tabIndex_value?: number | undefined + defaultFocus_value?: boolean | undefined + groupDefaultFocus_value?: boolean | undefined + focusOnTouch_value?: boolean | undefined + focusBox_value?: FocusBoxStyle | undefined + animation_value?: AnimateParam | undefined + transition_value?: TransitionEffect | undefined + motionBlur_value?: MotionBlurOptions | undefined + brightness_value?: number | undefined + contrast_value?: number | undefined + grayscale_value?: number | undefined + colorBlend_value?: Color | string | Resource | undefined + saturate_value?: number | undefined + sepia_value?: number | undefined + invert_value?: number | InvertOptions | undefined + hueRotate_value?: number | string | undefined + useShadowBatching_value?: boolean | undefined + useEffect_value?: boolean | undefined + renderGroup_value?: boolean | undefined + freeze_value?: boolean | undefined + translate_value?: TranslateOptions | undefined + scale_value?: ScaleOptions | undefined + rotate_value?: RotateOptions | undefined + transform_value?: Object | undefined + onAppear_value?: (() => void) | undefined + onDisAppear_value?: (() => void) | undefined + onAttach_value?: VoidCallback | undefined + onDetach_value?: VoidCallback | undefined + onAreaChange_value?: ((oldValue: Area,newValue: Area) => void) | undefined + visibility_value?: Visibility | undefined + flexGrow_value?: number | undefined + flexShrink_value?: number | undefined + flexBasis_value?: number | string | undefined + alignSelf_value?: ItemAlign | undefined + displayPriority_value?: number | undefined + zIndex_value?: number | undefined + direction_value?: Direction | undefined + align_value?: Alignment | undefined + position_value?: Position | Edges | LocalizedEdges | undefined + markAnchor_value?: Position | LocalizedPosition | undefined + offset_value?: Position | Edges | LocalizedEdges | undefined + enabled_value?: boolean | undefined + alignRules_value?: AlignRuleOption | undefined + aspectRatio_value?: number | undefined + clickEffect_value?: ClickEffect | undefined + onDragStart_value?: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined + onDragEnter_value?: ((event: DragEvent,extraParams?: string) => void) | undefined + onDragMove_value?: ((event: DragEvent,extraParams?: string) => void) | undefined + onDragLeave_value?: ((event: DragEvent,extraParams?: string) => void) | undefined + onDrop_value?: ((event: DragEvent,extraParams?: string) => void) | undefined + onDragEnd_value?: ((event: DragEvent,extraParams?: string) => void) | undefined + allowDrop_value?: Array | undefined + draggable_value?: boolean | undefined + dragPreview_value?: CustomBuilder | DragItemInfo | string | undefined + onPreDrag_value?: ((value0: PreDragStatus) => void) | undefined + linearGradient_value?: LinearGradientOptions | undefined + sweepGradient_value?: SweepGradientOptions | undefined + radialGradient_value?: RadialGradientOptions | undefined + motionPath_value?: MotionPathOptions | undefined + shadow_value?: ShadowOptions | ShadowStyle | undefined + clip_value?: boolean | undefined + clipShape_value?: CircleShape | EllipseShape | PathShape | RectShape | undefined + mask_value?: ProgressMask | undefined + maskShape_value?: CircleShape | EllipseShape | PathShape | RectShape | undefined + key_value?: string | undefined + id_value?: string | undefined + geometryTransition_value?: string | undefined + stateStyles_value?: StateStyles | undefined + restoreId_value?: number | undefined + sphericalEffect_value?: number | undefined + lightUpEffect_value?: number | undefined + pixelStretchEffect_value?: PixelStretchEffectOptions | undefined + accessibilityGroup_value?: boolean | undefined + accessibilityText_value?: string | undefined + accessibilityNextFocusId_value?: string | undefined + accessibilityDefaultFocus_value?: boolean | undefined + accessibilityUseSamePage_value?: AccessibilitySamePageMode | undefined + accessibilityScrollTriggerable_value?: boolean | undefined + accessibilityRole_value?: AccessibilityRoleType | undefined + onAccessibilityFocus_value?: AccessibilityFocusCallback | undefined + accessibilityTextHint_value?: string | undefined + accessibilityDescription_value?: string | undefined + accessibilityLevel_value?: string | undefined + accessibilityVirtualNode_value?: CustomBuilder | undefined + accessibilityChecked_value?: boolean | undefined + accessibilitySelected_value?: boolean | undefined + obscured_value?: Array | undefined + reuseId_value?: string | undefined + reuse_value?: ReuseOptions | undefined + renderFit_value?: RenderFit | undefined + gestureModifier_value?: GestureModifier | undefined + backgroundBrightness_value?: BackgroundBrightnessOptions | undefined + onGestureJudgeBegin_value?: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined + onGestureRecognizerJudgeBegin_value?: GestureRecognizerJudgeBeginCallback | undefined + shouldBuiltInRecognizerParallelWith_value?: ShouldBuiltInRecognizerParallelWithCallback | undefined + monopolizeEvents_value?: boolean | undefined + onTouchIntercept_value?: ((value0: TouchEvent) => HitTestMode) | undefined + onSizeChange_value?: SizeChangeCallback | undefined + accessibilityFocusDrawLevel_value?: FocusDrawLevel | undefined + public width(value: Length | LayoutPolicy | undefined): this { + return this + } + public height(value: Length | LayoutPolicy | undefined): this { + return this + } + public drawModifier(value: DrawModifier | undefined): this { + return this + } + public responseRegion(value: Array | Rectangle | undefined): this { + return this + } + public mouseResponseRegion(value: Array | Rectangle | undefined): this { + return this + } + public size(value: SizeOptions | undefined): this { + return this + } + public constraintSize(value: ConstraintSizeOptions | undefined): this { + return this + } + public hitTestBehavior(value: HitTestMode | undefined): this { + return this + } + public onChildTouchTest(value: ((value: Array) => TouchResult) | undefined): this { + return this + } + public layoutWeight(value: number | string | undefined): this { + return this + } + public chainWeight(value: ChainWeightOptions | undefined): this { + return this + } + public padding(value: Padding | Length | LocalizedPadding | undefined): this { + return this + } + public safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding | undefined): this { + return this + } + public margin(value: Padding | Length | LocalizedPadding | undefined): this { + return this + } + public backgroundColor(value: ResourceColor | undefined): this { + return this + } + public pixelRound(value: PixelRoundPolicy | undefined): this { + return this + } + public backgroundImageSize(value: SizeOptions | ImageSize | undefined): this { + return this + } + public backgroundImagePosition(value: Position | Alignment | undefined): this { + return this + } + public backgroundEffect(value: BackgroundEffectOptions | undefined): this { + return this + } + public backgroundImageResizable(value: ResizableOptions | undefined): this { + return this + } + public foregroundEffect(value: ForegroundEffectOptions | undefined): this { + return this + } + public visualEffect(value: uiEffect.VisualEffect | undefined): this { + return this + } + public backgroundFilter(value: uiEffect.Filter | undefined): this { + return this + } + public foregroundFilter(value: uiEffect.Filter | undefined): this { + return this + } + public compositingFilter(value: uiEffect.Filter | undefined): this { + return this + } + public opacity(value: number | Resource | undefined): this { + return this + } + public border(value: BorderOptions | undefined): this { + return this + } + public borderStyle(value: BorderStyle | EdgeStyles | undefined): this { + return this + } + public borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): this { + return this + } + public borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { + return this + } + public borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): this { + return this + } + public borderImage(value: BorderImageOption | undefined): this { + return this + } + public outline(value: OutlineOptions | undefined): this { + return this + } + public outlineStyle(value: OutlineStyle | EdgeOutlineStyles | undefined): this { + return this + } + public outlineWidth(value: Dimension | EdgeOutlineWidths | undefined): this { + return this + } + public outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { + return this + } + public outlineRadius(value: Dimension | OutlineRadiuses | undefined): this { + return this + } + public foregroundColor(value: ResourceColor | ColoringStrategy | undefined): this { + return this + } + public onClick(value: ((event: ClickEvent) => void) | undefined): this { + return this + } + public onHover(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): this { + return this + } + public onHoverMove(value: ((value0: HoverEvent) => void) | undefined): this { + return this + } + public onAccessibilityHover(value: AccessibilityCallback | undefined): this { + return this + } + public hoverEffect(value: HoverEffect | undefined): this { + return this + } + public onMouse(value: ((event: MouseEvent) => void) | undefined): this { + return this + } + public onTouch(value: ((event: TouchEvent) => void) | undefined): this { + return this + } + public onKeyEvent(value: ((event: KeyEvent) => void) | undefined): this { + return this + } + public onDigitalCrown(value: ((value0: CrownEvent) => void) | undefined): this { + return this + } + public onKeyPreIme(value: ((value0: KeyEvent) => boolean) | undefined): this { + return this + } + public onKeyEventDispatch(value: ((value0: KeyEvent) => boolean) | undefined): this { + return this + } + public onFocusAxisEvent(value: ((value0: FocusAxisEvent) => void) | undefined): this { + return this + } + public onAxisEvent(value: ((value0: AxisEvent) => void) | undefined): this { + return this + } + public focusable(value: boolean | undefined): this { + return this + } + public nextFocus(value: FocusMovement | undefined): this { + return this + } + public tabStop(value: boolean | undefined): this { + return this + } + public onFocus(value: (() => void) | undefined): this { + return this + } + public onBlur(value: (() => void) | undefined): this { + return this + } + public tabIndex(value: number | undefined): this { + return this + } + public defaultFocus(value: boolean | undefined): this { + return this + } + public groupDefaultFocus(value: boolean | undefined): this { + return this + } + public focusOnTouch(value: boolean | undefined): this { + return this + } + public focusBox(value: FocusBoxStyle | undefined): this { + return this + } + public animation(value: AnimateParam | undefined): this { + return this + } + public transition(value: TransitionEffect | undefined): this { + return this + } + public motionBlur(value: MotionBlurOptions | undefined): this { + return this + } + public brightness(value: number | undefined): this { + return this + } + public contrast(value: number | undefined): this { + return this + } + public grayscale(value: number | undefined): this { + return this + } + public colorBlend(value: Color | string | Resource | undefined): this { + return this + } + public saturate(value: number | undefined): this { + return this + } + public sepia(value: number | undefined): this { + return this + } + public invert(value: number | InvertOptions | undefined): this { + return this + } + public hueRotate(value: number | string | undefined): this { + return this + } + public useShadowBatching(value: boolean | undefined): this { + return this + } + public useEffect(value: boolean | undefined): this { + return this + } + public renderGroup(value: boolean | undefined): this { + return this + } + public freeze(value: boolean | undefined): this { + return this + } + public translate(value: TranslateOptions | undefined): this { + return this + } + public scale(value: ScaleOptions | undefined): this { + return this + } + public rotate(value: RotateOptions | undefined): this { + return this + } + public transform(value: Object | undefined): this { + return this + } + public onAppear(value: (() => void) | undefined): this { + return this + } + public onDisAppear(value: (() => void) | undefined): this { + return this + } + public onAttach(value: VoidCallback | undefined): this { + return this + } + public onDetach(value: VoidCallback | undefined): this { + return this + } + public onAreaChange(value: ((oldValue: Area,newValue: Area) => void) | undefined): this { + return this + } + public visibility(value: Visibility | undefined): this { + return this + } + public flexGrow(value: number | undefined): this { + return this + } + public flexShrink(value: number | undefined): this { + return this + } + public flexBasis(value: number | string | undefined): this { + return this + } + public alignSelf(value: ItemAlign | undefined): this { + return this + } + public displayPriority(value: number | undefined): this { + return this + } + public zIndex(value: number | undefined): this { + return this + } + public direction(value: Direction | undefined): this { + return this + } + public align(value: Alignment | undefined): this { + return this + } + public position(value: Position | Edges | LocalizedEdges | undefined): this { + return this + } + public markAnchor(value: Position | LocalizedPosition | undefined): this { + return this + } + public offset(value: Position | Edges | LocalizedEdges | undefined): this { + return this + } + public enabled(value: boolean | undefined): this { + return this + } + public alignRules(value: AlignRuleOption | undefined): this { + return this + } + public alignRules(value: LocalizedAlignRuleOptions | undefined): this { + return this + } + public aspectRatio(value: number | undefined): this { + return this + } + public clickEffect(value: ClickEffect | undefined): this { + return this + } + public onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): this { + return this + } + public onDragEnter(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + return this + } + public onDragMove(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + return this + } + public onDragLeave(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + return this + } + public onDrop(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + return this + } + public onDragEnd(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + return this + } + public allowDrop(value: Array | undefined): this { + return this + } + public draggable(value: boolean | undefined): this { + return this + } + public dragPreview(value: CustomBuilder | DragItemInfo | string | undefined): this { + return this + } + public onPreDrag(value: ((value0: PreDragStatus) => void) | undefined): this { + return this + } + public linearGradient(value: LinearGradientOptions | undefined): this { + return this + } + public sweepGradient(value: SweepGradientOptions | undefined): this { + return this + } + public radialGradient(value: RadialGradientOptions | undefined): this { + return this + } + public motionPath(value: MotionPathOptions | undefined): this { + return this + } + public shadow(value: ShadowOptions | ShadowStyle | undefined): this { + return this + } + public clip(value: boolean | undefined): this { + return this + } + public clipShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { + return this + } + public mask(value: ProgressMask | undefined): this { + return this + } + public maskShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { + return this + } + public key(value: string | undefined): this { + return this + } + public id(value: string | undefined): this { + return this + } + public geometryTransition(value: string | undefined): this { + return this + } + public stateStyles(value: StateStyles | undefined): this { + return this + } + public restoreId(value: number | undefined): this { + return this + } + public sphericalEffect(value: number | undefined): this { + return this + } + public lightUpEffect(value: number | undefined): this { + return this + } + public pixelStretchEffect(value: PixelStretchEffectOptions | undefined): this { + return this + } + public accessibilityGroup(value: boolean | undefined): this { + return this + } + public accessibilityText(value: string | undefined): this { + return this + } + public accessibilityNextFocusId(value: string | undefined): this { + return this + } + public accessibilityDefaultFocus(value: boolean | undefined): this { + return this + } + public accessibilityUseSamePage(value: AccessibilitySamePageMode | undefined): this { + return this + } + public accessibilityScrollTriggerable(value: boolean | undefined): this { + return this + } + public accessibilityText(value: Resource | undefined): this { + return this + } + public accessibilityRole(value: AccessibilityRoleType | undefined): this { + return this + } + public onAccessibilityFocus(value: AccessibilityFocusCallback | undefined): this { + return this + } + public accessibilityTextHint(value: string | undefined): this { + return this + } + public accessibilityDescription(value: string | undefined): this { + return this + } + public accessibilityDescription(value: Resource | undefined): this { + return this + } + public accessibilityLevel(value: string | undefined): this { + return this + } + public accessibilityVirtualNode(value: CustomBuilder | undefined): this { + return this + } + public accessibilityChecked(value: boolean | undefined): this { + return this + } + public accessibilitySelected(value: boolean | undefined): this { + return this + } + public obscured(value: Array | undefined): this { + return this + } + public reuseId(value: string | undefined): this { + return this + } + public reuse(value: ReuseOptions | undefined): this { + return this + } + public renderFit(value: RenderFit | undefined): this { + return this + } + public gestureModifier(value: GestureModifier | undefined): this { + return this + } + public backgroundBrightness(value: BackgroundBrightnessOptions | undefined): this { + return this + } + public onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): this { + return this + } + public onGestureRecognizerJudgeBegin(value: GestureRecognizerJudgeBeginCallback | undefined): this { + return this + } + public shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): this { + return this + } + public monopolizeEvents(value: boolean | undefined): this { + return this + } + public onTouchIntercept(value: ((value0: TouchEvent) => HitTestMode) | undefined): this { + return this + } + public onSizeChange(value: SizeChangeCallback | undefined): this { + return this + } + public accessibilityFocusDrawLevel(value: FocusDrawLevel | undefined): this { + return this + } + public customProperty(name: string, value: CustomProperty): this { + return this + } + public expandSafeArea(types?: Array, edges?: Array): this { + return this + } + public background(builder: CustomBuilder | undefined, options?: BackgroundOptions): this { + return this + } + public backgroundImage(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): this { + return this + } + public backgroundImage(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): this { + return this + } + public backgroundBlurStyle(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { + return this + } + public backgroundEffect(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): this { + return this + } + public foregroundBlurStyle(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { + return this + } + public onClick(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): this { + return this + } + public focusScopeId(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): this { + return this + } + public focusScopePriority(scopeId: string | undefined, priority?: FocusPriority): this { + return this + } + public transition(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): this { + return this + } + public gesture(gesture: GestureType | undefined, mask?: GestureMask): this { + return this + } + public priorityGesture(gesture: GestureType | undefined, mask?: GestureMask): this { + return this + } + public parallelGesture(gesture: GestureType | undefined, mask?: GestureMask): this { + return this + } + public blur(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { + return this + } + public linearGradientBlur(value: number | undefined, options: LinearGradientBlurOptions | undefined): this { + return this + } + public systemBarEffect(): this { + return this + } + public useEffect(useEffect: boolean | undefined, effectType: EffectType | undefined): this { + return this + } + public backdropBlur(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { + return this + } + public sharedTransition(id: string | undefined, options?: sharedTransitionOptions): this { + return this + } + public chainMode(direction: Axis | undefined, style: ChainStyle | undefined): this { + return this + } + public onDrop(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): this { + return this + } + public dragPreview(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): this { + return this + } + public dragPreviewOptions(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): this { + return this + } + public overlay(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): this { + return this + } + public blendMode(value: BlendMode | undefined, type?: BlendApplyType): this { + return this + } + public advancedBlendMode(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): this { + return this + } + public geometryTransition(id: string | undefined, options?: GeometryTransitionOptions): this { + return this + } + public bindTips(message: TipsMessageType | undefined, options?: TipsOptions): this { + return this + } + public bindPopup(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): this { + return this + } + public bindMenu(content: Array | CustomBuilder | undefined, options?: MenuOptions): this { + return this + } + public bindMenu(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): this { + return this + } + public bindContextMenu(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): this { + return this + } + public bindContextMenu(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): this { + return this + } + public bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): this { + return this + } + public bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): this { + return this + } + public bindSheet(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): this { + return this + } + public onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this { + return this + } + public onVisibleAreaApproximateChange(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): this { + return this + } + public keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): this { + return this + } + public accessibilityGroup(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): this { + return this + } + public onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): this { + return this + } + public attributeModifier(value: AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} +export type CommonAttribute = CommonMethod; +export interface OverlayOptions { + align?: Alignment; + offset?: OverlayOffset; +} +export interface OverlayOffset { + x?: number; + y?: number; +} +export type FractionStop = [ + number, + number +] +export interface CommonShapeMethod extends CommonMethod { + stroke(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method stroke") + } + fill(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method fill") + } + strokeDashOffset(value: number | string | undefined): this { + throw new Error("Unimplemented method strokeDashOffset") + } + strokeLineCap(value: LineCapStyle | undefined): this { + throw new Error("Unimplemented method strokeLineCap") + } + strokeLineJoin(value: LineJoinStyle | undefined): this { + throw new Error("Unimplemented method strokeLineJoin") + } + strokeMiterLimit(value: number | string | undefined): this { + throw new Error("Unimplemented method strokeMiterLimit") + } + strokeOpacity(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method strokeOpacity") + } + fillOpacity(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method fillOpacity") + } + strokeWidth(value: Length | undefined): this { + throw new Error("Unimplemented method strokeWidth") + } + antiAlias(value: boolean | undefined): this { + throw new Error("Unimplemented method antiAlias") + } + strokeDashArray(value: Array | undefined): this { + throw new Error("Unimplemented method strokeDashArray") + } + attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Unimplemented method attributeModifier") + } +} +export class ArkCommonShapeMethodStyle extends ArkCommonMethodStyle implements CommonShapeMethod { + stroke_value?: ResourceColor | undefined + fill_value?: ResourceColor | undefined + strokeDashOffset_value?: number | string | undefined + strokeLineCap_value?: LineCapStyle | undefined + strokeLineJoin_value?: LineJoinStyle | undefined + strokeMiterLimit_value?: number | string | undefined + strokeOpacity_value?: number | string | Resource | undefined + fillOpacity_value?: number | string | Resource | undefined + strokeWidth_value?: Length | undefined + antiAlias_value?: boolean | undefined + strokeDashArray_value?: Array | undefined + public stroke(value: ResourceColor | undefined): this { + return this + } + public fill(value: ResourceColor | undefined): this { + return this + } + public strokeDashOffset(value: number | string | undefined): this { + return this + } + public strokeLineCap(value: LineCapStyle | undefined): this { + return this + } + public strokeLineJoin(value: LineJoinStyle | undefined): this { + return this + } + public strokeMiterLimit(value: number | string | undefined): this { + return this + } + public strokeOpacity(value: number | string | Resource | undefined): this { + return this + } + public fillOpacity(value: number | string | Resource | undefined): this { + return this + } + public strokeWidth(value: Length | undefined): this { + return this + } + public antiAlias(value: boolean | undefined): this { + return this + } + public strokeDashArray(value: Array | undefined): this { + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} +export interface PixelRoundPolicy { + start?: PixelRoundCalcPolicy; + top?: PixelRoundCalcPolicy; + end?: PixelRoundCalcPolicy; + bottom?: PixelRoundCalcPolicy; +} +export interface LinearGradientBlurOptions { + fractionStops: Array; + direction: GradientDirection; +} +export interface MotionBlurAnchor { + x: number; + y: number; +} +export interface MotionBlurOptions { + radius: number; + anchor: MotionBlurAnchor; +} +export interface GeometryInfo extends SizeResult { + borderWidth: EdgeWidths; + margin: Padding; + padding: Padding; +} +export interface SizeResult { + width: number; + height: number; +} +export interface MeasureResult extends SizeResult { +} +export type NavDestinationInfo = uiObserver.NavDestinationInfo; +export type NavigationInfo = uiObserver.NavigationInfo; +export type RouterPageInfo = uiObserver.RouterPageInfo; +export { UIContext } from "./../framework/ohos.arkui.UIContext" +export { DrawContext } from "./../framework/arkui.Graphics" +export type VisualEffect = uiEffect.VisualEffect; +export type Filter = uiEffect.Filter; +export type Blender = uiEffect.Blender; +export type PromptActionDialogController = promptAction.DialogController; +export interface RectResult { + x: number; + y: number; + width: number; + height: number; +} +export interface CaretOffset { + index: number; + x: number; + y: number; +} +export interface TextContentControllerOptions { + offset?: number; +} +export enum ContentClipMode { + CONTENT_ONLY = 0, + BOUNDARY = 1, + SAFE_AREA = 2 +} +export interface ScrollableCommonMethod extends CommonMethod { + scrollBar(value: BarState | undefined): this { + throw new Error("Unimplemented method scrollBar") + } + scrollBarColor(value: Color | number | string | undefined): this { + throw new Error("Unimplemented method scrollBarColor") + } + scrollBarWidth(value: number | string | undefined): this { + throw new Error("Unimplemented method scrollBarWidth") + } + nestedScroll(value: NestedScrollOptions | undefined): this { + throw new Error("Unimplemented method nestedScroll") + } + enableScrollInteraction(value: boolean | undefined): this { + throw new Error("Unimplemented method enableScrollInteraction") + } + friction(value: number | Resource | undefined): this { + throw new Error("Unimplemented method friction") + } + onReachStart(value: (() => void) | undefined): this { + throw new Error("Unimplemented method onReachStart") + } + onReachEnd(value: (() => void) | undefined): this { + throw new Error("Unimplemented method onReachEnd") + } + onScrollStart(value: (() => void) | undefined): this { + throw new Error("Unimplemented method onScrollStart") + } + onScrollStop(value: (() => void) | undefined): this { + throw new Error("Unimplemented method onScrollStop") + } + flingSpeedLimit(value: number | undefined): this { + throw new Error("Unimplemented method flingSpeedLimit") + } + clipContent(value: ContentClipMode | RectShape | undefined): this { + throw new Error("Unimplemented method clipContent") + } + digitalCrownSensitivity(value: CrownSensitivity | undefined): this { + throw new Error("Unimplemented method digitalCrownSensitivity") + } + backToTop(value: boolean | undefined): this { + throw new Error("Unimplemented method backToTop") + } + edgeEffect(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): this { + throw new Error("Unimplemented method edgeEffect") + } + fadingEdge(enabled: boolean | undefined, options?: FadingEdgeOptions): this { + throw new Error("Unimplemented method fadingEdge") + } + attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Unimplemented method attributeModifier") + } +} +export class ArkScrollableCommonMethodStyle extends ArkCommonMethodStyle implements ScrollableCommonMethod { + public scrollBar(value: BarState | undefined): this { + return this + } + public scrollBarColor(value: Color | number | string | undefined): this { + return this + } + public scrollBarWidth(value: number | string | undefined): this { + return this + } + public nestedScroll(value: NestedScrollOptions | undefined): this { + return this + } + public enableScrollInteraction(value: boolean | undefined): this { + return this + } + public friction(value: number | Resource | undefined): this { + return this + } + public onReachStart(value: (() => void) | undefined): this { + return this + } + public onReachEnd(value: (() => void) | undefined): this { + return this + } + public onScrollStart(value: (() => void) | undefined): this { + return this + } + public onScrollStop(value: (() => void) | undefined): this { + return this + } + public flingSpeedLimit(value: number | undefined): this { + return this + } + public clipContent(value: ContentClipMode | RectShape | undefined): this { + return this + } + public digitalCrownSensitivity(value: CrownSensitivity | undefined): this { + return this + } + public backToTop(value: boolean | undefined): this { + return this + } + public edgeEffect(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): this { + return this + } + public fadingEdge(enabled: boolean | undefined, options?: FadingEdgeOptions): this { + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} +export type OnWillScrollCallback = (scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource) => ScrollResult | undefined; +export type OnScrollCallback = (scrollOffset: number, scrollState: ScrollState) => void; +export type OnItemDragStartCallback = (event: ItemDragInfo, itemIndex: number) => CustomBuilder | undefined; +export type OnMoveHandler = (from: number, to: number) => void; +export interface ItemDragEventHandler { + onLongPress?: ((value0: number) => void); + onDragStart?: ((value0: number) => void); + onMoveThrough?: OnMoveHandler; + onDrop?: ((value0: number) => void); +} +export interface DynamicNode { +} +export interface EdgeEffectOptions { + alwaysEnabled: boolean; + effectEdge?: number; +} +export enum EffectEdge { + START = 1, + END = 2 +} +export interface BackgroundBrightnessOptions { + rate: number; + lightUpDegree: number; +} +export interface PointLightStyle { + lightSource?: LightSource; + illuminated?: IlluminatedType; + bloom?: number; +} +export interface LightSource { + positionX: Dimension; + positionY: Dimension; + intensity: number; + color?: ResourceColor; +} +export interface KeyframeAnimateParam { + delay?: number; + iterations?: number; + onFinish?: (() => void); + expectedFrameRateRange?: ExpectedFrameRateRange; +} +export interface KeyframeState { + duration: number; + curve?: curves.Curve | string | curves.ICurve; + event: (() => void); +} +export type Callback = (data: T) => V; +export type HoverCallback = (isHover: boolean, event: HoverEvent) => void; +export type AccessibilityCallback = (isHover: boolean, event: AccessibilityHoverEvent) => void; +export interface VisibleAreaEventOptions { + ratios: Array; + expectedUpdateInterval?: number; +} +export type VisibleAreaChangeCallback = (isExpanding: boolean, currentRatio: number) => void; +export interface UIGestureEvent { +} +export interface SelectionOptions { + menuPolicy?: MenuPolicy; +} +export interface FocusMovement { + forward?: string; + backward?: string; + up?: string; + down?: string; + left?: string; + right?: string; +} +export enum KeyboardAvoidMode { + DEFAULT = 0, + NONE = 1 +} +export enum HoverModeAreaType { + TOP_SCREEN = 0, + BOTTOM_SCREEN = 1 +} +export interface DateRange { + start?: Date; + end?: Date; +} +export interface TerminationInfo { + code: number; + want?: Want; +} +export type DateTimeOptions = intl.DateTimeOptions; +export interface Bindable { + readonly value: T; + readonly onChange: ((value0: T) => void); +} +export class ArkCommonMethodComponent extends ComponentBase implements CommonMethod { + getPeer(): ArkCommonMethodPeer { + return (this.peer as ArkCommonMethodPeer) + } + public width(value: Length | LayoutPolicy | undefined): this { + if (this.checkPriority("width")) { + const value_casted = value as (Length | LayoutPolicy | undefined) + this.getPeer()?.setWidthAttribute(value_casted) + return this + } + return this + } + public height(value: Length | LayoutPolicy | undefined): this { + if (this.checkPriority("height")) { + const value_casted = value as (Length | LayoutPolicy | undefined) + this.getPeer()?.setHeightAttribute(value_casted) + return this + } + return this + } + public drawModifier(value: DrawModifier | undefined): this { + if (this.checkPriority("drawModifier")) { + const value_casted = value as (DrawModifier | undefined) + this.getPeer()?.setDrawModifierAttribute(value_casted) + return this + } + return this + } + public responseRegion(value: Array | Rectangle | undefined): this { + if (this.checkPriority("responseRegion")) { + const value_casted = value as (Array | Rectangle | undefined) + this.getPeer()?.setResponseRegionAttribute(value_casted) + return this + } + return this + } + public mouseResponseRegion(value: Array | Rectangle | undefined): this { + if (this.checkPriority("mouseResponseRegion")) { + const value_casted = value as (Array | Rectangle | undefined) + this.getPeer()?.setMouseResponseRegionAttribute(value_casted) + return this + } + return this + } + public size(value: SizeOptions | undefined): this { + if (this.checkPriority("size")) { + const value_casted = value as (SizeOptions | undefined) + this.getPeer()?.setSizeAttribute(value_casted) + return this + } + return this + } + public constraintSize(value: ConstraintSizeOptions | undefined): this { + if (this.checkPriority("constraintSize")) { + const value_casted = value as (ConstraintSizeOptions | undefined) + this.getPeer()?.setConstraintSizeAttribute(value_casted) + return this + } + return this + } + public hitTestBehavior(value: HitTestMode | undefined): this { + if (this.checkPriority("hitTestBehavior")) { + const value_casted = value as (HitTestMode | undefined) + this.getPeer()?.setHitTestBehaviorAttribute(value_casted) + return this + } + return this + } + public onChildTouchTest(value: ((value: Array) => TouchResult) | undefined): this { + if (this.checkPriority("onChildTouchTest")) { + const value_casted = value as (((value: Array) => TouchResult) | undefined) + this.getPeer()?.setOnChildTouchTestAttribute(value_casted) + return this + } + return this + } + public layoutWeight(value: number | string | undefined): this { + if (this.checkPriority("layoutWeight")) { + const value_casted = value as (number | string | undefined) + this.getPeer()?.setLayoutWeightAttribute(value_casted) + return this + } + return this + } + public chainWeight(value: ChainWeightOptions | undefined): this { + if (this.checkPriority("chainWeight")) { + const value_casted = value as (ChainWeightOptions | undefined) + this.getPeer()?.setChainWeightAttribute(value_casted) + return this + } + return this + } + public padding(value: Padding | Length | LocalizedPadding | undefined): this { + if (this.checkPriority("padding")) { + const value_casted = value as (Padding | Length | LocalizedPadding | undefined) + this.getPeer()?.setPaddingAttribute(value_casted) + return this + } + return this + } + public safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding | undefined): this { + if (this.checkPriority("safeAreaPadding")) { + const value_casted = value as (Padding | LengthMetrics | LocalizedPadding | undefined) + this.getPeer()?.setSafeAreaPaddingAttribute(value_casted) + return this + } + return this + } + public margin(value: Padding | Length | LocalizedPadding | undefined): this { + if (this.checkPriority("margin")) { + const value_casted = value as (Padding | Length | LocalizedPadding | undefined) + this.getPeer()?.setMarginAttribute(value_casted) + return this + } + return this + } + public backgroundColor(value: ResourceColor | undefined): this { + if (this.checkPriority("backgroundColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setBackgroundColorAttribute(value_casted) + return this + } + return this + } + public pixelRound(value: PixelRoundPolicy | undefined): this { + if (this.checkPriority("pixelRound")) { + const value_casted = value as (PixelRoundPolicy | undefined) + this.getPeer()?.setPixelRoundAttribute(value_casted) + return this + } + return this + } + public backgroundImageSize(value: SizeOptions | ImageSize | undefined): this { + if (this.checkPriority("backgroundImageSize")) { + const value_casted = value as (SizeOptions | ImageSize | undefined) + this.getPeer()?.setBackgroundImageSizeAttribute(value_casted) + return this + } + return this + } + public backgroundImagePosition(value: Position | Alignment | undefined): this { + if (this.checkPriority("backgroundImagePosition")) { + const value_casted = value as (Position | Alignment | undefined) + this.getPeer()?.setBackgroundImagePositionAttribute(value_casted) + return this + } + return this + } + public backgroundEffect(value: BackgroundEffectOptions | undefined): this { + if (this.checkPriority("backgroundEffect")) { + const value_casted = value as (BackgroundEffectOptions | undefined) + this.getPeer()?.setBackgroundEffect0Attribute(value_casted) + return this + } + return this + } + public backgroundImageResizable(value: ResizableOptions | undefined): this { + if (this.checkPriority("backgroundImageResizable")) { + const value_casted = value as (ResizableOptions | undefined) + this.getPeer()?.setBackgroundImageResizableAttribute(value_casted) + return this + } + return this + } + public foregroundEffect(value: ForegroundEffectOptions | undefined): this { + if (this.checkPriority("foregroundEffect")) { + const value_casted = value as (ForegroundEffectOptions | undefined) + this.getPeer()?.setForegroundEffectAttribute(value_casted) + return this + } + return this + } + public visualEffect(value: uiEffect.VisualEffect | undefined): this { + if (this.checkPriority("visualEffect")) { + const value_casted = value as (uiEffect.VisualEffect | undefined) + this.getPeer()?.setVisualEffectAttribute(value_casted) + return this + } + return this + } + public backgroundFilter(value: uiEffect.Filter | undefined): this { + if (this.checkPriority("backgroundFilter")) { + const value_casted = value as (uiEffect.Filter | undefined) + this.getPeer()?.setBackgroundFilterAttribute(value_casted) + return this + } + return this + } + public foregroundFilter(value: uiEffect.Filter | undefined): this { + if (this.checkPriority("foregroundFilter")) { + const value_casted = value as (uiEffect.Filter | undefined) + this.getPeer()?.setForegroundFilterAttribute(value_casted) + return this + } + return this + } + public compositingFilter(value: uiEffect.Filter | undefined): this { + if (this.checkPriority("compositingFilter")) { + const value_casted = value as (uiEffect.Filter | undefined) + this.getPeer()?.setCompositingFilterAttribute(value_casted) + return this + } + return this + } + public opacity(value: number | Resource | undefined): this { + if (this.checkPriority("opacity")) { + const value_casted = value as (number | Resource | undefined) + this.getPeer()?.setOpacityAttribute(value_casted) + return this + } + return this + } + public border(value: BorderOptions | undefined): this { + if (this.checkPriority("border")) { + const value_casted = value as (BorderOptions | undefined) + this.getPeer()?.setBorderAttribute(value_casted) + return this + } + return this + } + public borderStyle(value: BorderStyle | EdgeStyles | undefined): this { + if (this.checkPriority("borderStyle")) { + const value_casted = value as (BorderStyle | EdgeStyles | undefined) + this.getPeer()?.setBorderStyleAttribute(value_casted) + return this + } + return this + } + public borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): this { + if (this.checkPriority("borderWidth")) { + const value_casted = value as (Length | EdgeWidths | LocalizedEdgeWidths | undefined) + this.getPeer()?.setBorderWidthAttribute(value_casted) + return this + } + return this + } + public borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { + if (this.checkPriority("borderColor")) { + const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors | undefined) + this.getPeer()?.setBorderColorAttribute(value_casted) + return this + } + return this + } + public borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): this { + if (this.checkPriority("borderRadius")) { + const value_casted = value as (Length | BorderRadiuses | LocalizedBorderRadiuses | undefined) + this.getPeer()?.setBorderRadiusAttribute(value_casted) + return this + } + return this + } + public borderImage(value: BorderImageOption | undefined): this { + if (this.checkPriority("borderImage")) { + const value_casted = value as (BorderImageOption | undefined) + this.getPeer()?.setBorderImageAttribute(value_casted) + return this + } + return this + } + public outline(value: OutlineOptions | undefined): this { + if (this.checkPriority("outline")) { + const value_casted = value as (OutlineOptions | undefined) + this.getPeer()?.setOutlineAttribute(value_casted) + return this + } + return this + } + public outlineStyle(value: OutlineStyle | EdgeOutlineStyles | undefined): this { + if (this.checkPriority("outlineStyle")) { + const value_casted = value as (OutlineStyle | EdgeOutlineStyles | undefined) + this.getPeer()?.setOutlineStyleAttribute(value_casted) + return this + } + return this + } + public outlineWidth(value: Dimension | EdgeOutlineWidths | undefined): this { + if (this.checkPriority("outlineWidth")) { + const value_casted = value as (Dimension | EdgeOutlineWidths | undefined) + this.getPeer()?.setOutlineWidthAttribute(value_casted) + return this + } + return this + } + public outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { + if (this.checkPriority("outlineColor")) { + const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors | undefined) + this.getPeer()?.setOutlineColorAttribute(value_casted) + return this + } + return this + } + public outlineRadius(value: Dimension | OutlineRadiuses | undefined): this { + if (this.checkPriority("outlineRadius")) { + const value_casted = value as (Dimension | OutlineRadiuses | undefined) + this.getPeer()?.setOutlineRadiusAttribute(value_casted) + return this + } + return this + } + public foregroundColor(value: ResourceColor | ColoringStrategy | undefined): this { + if (this.checkPriority("foregroundColor")) { + const value_casted = value as (ResourceColor | ColoringStrategy | undefined) + this.getPeer()?.setForegroundColorAttribute(value_casted) + return this + } + return this + } + public onClick(value: ((event: ClickEvent) => void) | undefined): this { + if (this.checkPriority("onClick")) { + const value_casted = value as (((event: ClickEvent) => void) | undefined) + this.getPeer()?.setOnClick0Attribute(value_casted) + return this + } + return this + } + public onHover(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): this { + if (this.checkPriority("onHover")) { + const value_casted = value as (((isHover: boolean,event: HoverEvent) => void) | undefined) + this.getPeer()?.setOnHoverAttribute(value_casted) + return this + } + return this + } + public onHoverMove(value: ((value0: HoverEvent) => void) | undefined): this { + if (this.checkPriority("onHoverMove")) { + const value_casted = value as (((value0: HoverEvent) => void) | undefined) + this.getPeer()?.setOnHoverMoveAttribute(value_casted) + return this + } + return this + } + public onAccessibilityHover(value: AccessibilityCallback | undefined): this { + if (this.checkPriority("onAccessibilityHover")) { + const value_casted = value as (AccessibilityCallback | undefined) + this.getPeer()?.setOnAccessibilityHoverAttribute(value_casted) + return this + } + return this + } + public hoverEffect(value: HoverEffect | undefined): this { + if (this.checkPriority("hoverEffect")) { + const value_casted = value as (HoverEffect | undefined) + this.getPeer()?.setHoverEffectAttribute(value_casted) + return this + } + return this + } + public onMouse(value: ((event: MouseEvent) => void) | undefined): this { + if (this.checkPriority("onMouse")) { + const value_casted = value as (((event: MouseEvent) => void) | undefined) + this.getPeer()?.setOnMouseAttribute(value_casted) + return this + } + return this + } + public onTouch(value: ((event: TouchEvent) => void) | undefined): this { + if (this.checkPriority("onTouch")) { + const value_casted = value as (((event: TouchEvent) => void) | undefined) + this.getPeer()?.setOnTouchAttribute(value_casted) + return this + } + return this + } + public onKeyEvent(value: ((event: KeyEvent) => void) | undefined): this { + if (this.checkPriority("onKeyEvent")) { + const value_casted = value as (((event: KeyEvent) => void) | undefined) + this.getPeer()?.setOnKeyEventAttribute(value_casted) + return this + } + return this + } + public onDigitalCrown(value: ((value0: CrownEvent) => void) | undefined): this { + if (this.checkPriority("onDigitalCrown")) { + const value_casted = value as (((value0: CrownEvent) => void) | undefined) + this.getPeer()?.setOnDigitalCrownAttribute(value_casted) + return this + } + return this + } + public onKeyPreIme(value: ((value0: KeyEvent) => boolean) | undefined): this { + if (this.checkPriority("onKeyPreIme")) { + const value_casted = value as (((value0: KeyEvent) => boolean) | undefined) + this.getPeer()?.setOnKeyPreImeAttribute(value_casted) + return this + } + return this + } + public onKeyEventDispatch(value: ((value0: KeyEvent) => boolean) | undefined): this { + if (this.checkPriority("onKeyEventDispatch")) { + const value_casted = value as (((value0: KeyEvent) => boolean) | undefined) + this.getPeer()?.setOnKeyEventDispatchAttribute(value_casted) + return this + } + return this + } + public onFocusAxisEvent(value: ((value0: FocusAxisEvent) => void) | undefined): this { + if (this.checkPriority("onFocusAxisEvent")) { + const value_casted = value as (((value0: FocusAxisEvent) => void) | undefined) + this.getPeer()?.setOnFocusAxisEventAttribute(value_casted) + return this + } + return this + } + public onAxisEvent(value: ((value0: AxisEvent) => void) | undefined): this { + if (this.checkPriority("onAxisEvent")) { + const value_casted = value as (((value0: AxisEvent) => void) | undefined) + this.getPeer()?.setOnAxisEventAttribute(value_casted) + return this + } + return this + } + public focusable(value: boolean | undefined): this { + if (this.checkPriority("focusable")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setFocusableAttribute(value_casted) + return this + } + return this + } + public nextFocus(value: FocusMovement | undefined): this { + if (this.checkPriority("nextFocus")) { + const value_casted = value as (FocusMovement | undefined) + this.getPeer()?.setNextFocusAttribute(value_casted) + return this + } + return this + } + public tabStop(value: boolean | undefined): this { + if (this.checkPriority("tabStop")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setTabStopAttribute(value_casted) + return this + } + return this + } + public onFocus(value: (() => void) | undefined): this { + if (this.checkPriority("onFocus")) { + const value_casted = value as ((() => void) | undefined) + this.getPeer()?.setOnFocusAttribute(value_casted) + return this + } + return this + } + public onBlur(value: (() => void) | undefined): this { + if (this.checkPriority("onBlur")) { + const value_casted = value as ((() => void) | undefined) + this.getPeer()?.setOnBlurAttribute(value_casted) + return this + } + return this + } + public tabIndex(value: number | undefined): this { + if (this.checkPriority("tabIndex")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setTabIndexAttribute(value_casted) + return this + } + return this + } + public defaultFocus(value: boolean | undefined): this { + if (this.checkPriority("defaultFocus")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setDefaultFocusAttribute(value_casted) + return this + } + return this + } + public groupDefaultFocus(value: boolean | undefined): this { + if (this.checkPriority("groupDefaultFocus")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setGroupDefaultFocusAttribute(value_casted) + return this + } + return this + } + public focusOnTouch(value: boolean | undefined): this { + if (this.checkPriority("focusOnTouch")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setFocusOnTouchAttribute(value_casted) + return this + } + return this + } + public focusBox(value: FocusBoxStyle | undefined): this { + if (this.checkPriority("focusBox")) { + const value_casted = value as (FocusBoxStyle | undefined) + this.getPeer()?.setFocusBoxAttribute(value_casted) + return this + } + return this + } + public animation(value: AnimateParam | undefined): this { + if (this.checkPriority("animation")) { + const value_casted = value as (AnimateParam | undefined) + this.getPeer()?.setAnimationAttribute(value_casted) + return this + } + return this + } + public transition(value: TransitionEffect | undefined): this { + if (this.checkPriority("transition")) { + const value_casted = value as (TransitionEffect | undefined) + this.getPeer()?.setTransition0Attribute(value_casted) + return this + } + return this + } + public motionBlur(value: MotionBlurOptions | undefined): this { + if (this.checkPriority("motionBlur")) { + const value_casted = value as (MotionBlurOptions | undefined) + this.getPeer()?.setMotionBlurAttribute(value_casted) + return this + } + return this + } + public brightness(value: number | undefined): this { + if (this.checkPriority("brightness")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setBrightnessAttribute(value_casted) + return this + } + return this + } + public contrast(value: number | undefined): this { + if (this.checkPriority("contrast")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setContrastAttribute(value_casted) + return this + } + return this + } + public grayscale(value: number | undefined): this { + if (this.checkPriority("grayscale")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setGrayscaleAttribute(value_casted) + return this + } + return this + } + public colorBlend(value: Color | string | Resource | undefined): this { + if (this.checkPriority("colorBlend")) { + const value_casted = value as (Color | string | Resource | undefined) + this.getPeer()?.setColorBlendAttribute(value_casted) + return this + } + return this + } + public saturate(value: number | undefined): this { + if (this.checkPriority("saturate")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setSaturateAttribute(value_casted) + return this + } + return this + } + public sepia(value: number | undefined): this { + if (this.checkPriority("sepia")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setSepiaAttribute(value_casted) + return this + } + return this + } + public invert(value: number | InvertOptions | undefined): this { + if (this.checkPriority("invert")) { + const value_casted = value as (number | InvertOptions | undefined) + this.getPeer()?.setInvertAttribute(value_casted) + return this + } + return this + } + public hueRotate(value: number | string | undefined): this { + if (this.checkPriority("hueRotate")) { + const value_casted = value as (number | string | undefined) + this.getPeer()?.setHueRotateAttribute(value_casted) + return this + } + return this + } + public useShadowBatching(value: boolean | undefined): this { + if (this.checkPriority("useShadowBatching")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setUseShadowBatchingAttribute(value_casted) + return this + } + return this + } + public useEffect(value: boolean | undefined): this { + if (this.checkPriority("useEffect")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setUseEffect0Attribute(value_casted) + return this + } + return this + } + public renderGroup(value: boolean | undefined): this { + if (this.checkPriority("renderGroup")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setRenderGroupAttribute(value_casted) + return this + } + return this + } + public freeze(value: boolean | undefined): this { + if (this.checkPriority("freeze")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setFreezeAttribute(value_casted) + return this + } + return this + } + public translate(value: TranslateOptions | undefined): this { + if (this.checkPriority("translate")) { + const value_casted = value as (TranslateOptions | undefined) + this.getPeer()?.setTranslateAttribute(value_casted) + return this + } + return this + } + public scale(value: ScaleOptions | undefined): this { + if (this.checkPriority("scale")) { + const value_casted = value as (ScaleOptions | undefined) + this.getPeer()?.setScaleAttribute(value_casted) + return this + } + return this + } + public rotate(value: RotateOptions | undefined): this { + if (this.checkPriority("rotate")) { + const value_casted = value as (RotateOptions | undefined) + this.getPeer()?.setRotateAttribute(value_casted) + return this + } + return this + } + public transform(value: Object | undefined): this { + if (this.checkPriority("transform")) { + const value_casted = value as (Object | undefined) + this.getPeer()?.setTransformAttribute(value_casted) + return this + } + return this + } + public onAppear(value: (() => void) | undefined): this { + if (this.checkPriority("onAppear")) { + const value_casted = value as ((() => void) | undefined) + this.getPeer()?.setOnAppearAttribute(value_casted) + return this + } + return this + } + public onDisAppear(value: (() => void) | undefined): this { + if (this.checkPriority("onDisAppear")) { + const value_casted = value as ((() => void) | undefined) + this.getPeer()?.setOnDisAppearAttribute(value_casted) + return this + } + return this + } + public onAttach(value: VoidCallback | undefined): this { + if (this.checkPriority("onAttach")) { + const value_casted = value as (VoidCallback | undefined) + this.getPeer()?.setOnAttachAttribute(value_casted) + return this + } + return this + } + public onDetach(value: VoidCallback | undefined): this { + if (this.checkPriority("onDetach")) { + const value_casted = value as (VoidCallback | undefined) + this.getPeer()?.setOnDetachAttribute(value_casted) + return this + } + return this + } + public onAreaChange(value: ((oldValue: Area,newValue: Area) => void) | undefined): this { + if (this.checkPriority("onAreaChange")) { + const value_casted = value as (((oldValue: Area,newValue: Area) => void) | undefined) + this.getPeer()?.setOnAreaChangeAttribute(value_casted) + return this + } + return this + } + public visibility(value: Visibility | undefined): this { + if (this.checkPriority("visibility")) { + const value_casted = value as (Visibility | undefined) + this.getPeer()?.setVisibilityAttribute(value_casted) + return this + } + return this + } + public flexGrow(value: number | undefined): this { + if (this.checkPriority("flexGrow")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setFlexGrowAttribute(value_casted) + return this + } + return this + } + public flexShrink(value: number | undefined): this { + if (this.checkPriority("flexShrink")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setFlexShrinkAttribute(value_casted) + return this + } + return this + } + public flexBasis(value: number | string | undefined): this { + if (this.checkPriority("flexBasis")) { + const value_casted = value as (number | string | undefined) + this.getPeer()?.setFlexBasisAttribute(value_casted) + return this + } + return this + } + public alignSelf(value: ItemAlign | undefined): this { + if (this.checkPriority("alignSelf")) { + const value_casted = value as (ItemAlign | undefined) + this.getPeer()?.setAlignSelfAttribute(value_casted) + return this + } + return this + } + public displayPriority(value: number | undefined): this { + if (this.checkPriority("displayPriority")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setDisplayPriorityAttribute(value_casted) + return this + } + return this + } + public zIndex(value: number | undefined): this { + if (this.checkPriority("zIndex")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setZIndexAttribute(value_casted) + return this + } + return this + } + public direction(value: Direction | undefined): this { + if (this.checkPriority("direction")) { + const value_casted = value as (Direction | undefined) + this.getPeer()?.setDirectionAttribute(value_casted) + return this + } + return this + } + public align(value: Alignment | undefined): this { + if (this.checkPriority("align")) { + const value_casted = value as (Alignment | undefined) + this.getPeer()?.setAlignAttribute(value_casted) + return this + } + return this + } + public position(value: Position | Edges | LocalizedEdges | undefined): this { + if (this.checkPriority("position")) { + const value_casted = value as (Position | Edges | LocalizedEdges | undefined) + this.getPeer()?.setPositionAttribute(value_casted) + return this + } + return this + } + public markAnchor(value: Position | LocalizedPosition | undefined): this { + if (this.checkPriority("markAnchor")) { + const value_casted = value as (Position | LocalizedPosition | undefined) + this.getPeer()?.setMarkAnchorAttribute(value_casted) + return this + } + return this + } + public offset(value: Position | Edges | LocalizedEdges | undefined): this { + if (this.checkPriority("offset")) { + const value_casted = value as (Position | Edges | LocalizedEdges | undefined) + this.getPeer()?.setOffsetAttribute(value_casted) + return this + } + return this + } + public enabled(value: boolean | undefined): this { + if (this.checkPriority("enabled")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEnabledAttribute(value_casted) + return this + } + return this + } + public alignRules(value: AlignRuleOption | undefined): this { + if (this.checkPriority("alignRules")) { + const value_casted = value as (AlignRuleOption | undefined) + this.getPeer()?.setAlignRules0Attribute(value_casted) + return this + } + return this + } + public alignRules(value: LocalizedAlignRuleOptions | undefined): this { + if (this.checkPriority("alignRules")) { + const value_casted = value as (LocalizedAlignRuleOptions | undefined) + this.getPeer()?.setAlignRules1Attribute(value_casted) + return this + } + return this + } + public aspectRatio(value: number | undefined): this { + if (this.checkPriority("aspectRatio")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setAspectRatioAttribute(value_casted) + return this + } + return this + } + public clickEffect(value: ClickEffect | undefined): this { + if (this.checkPriority("clickEffect")) { + const value_casted = value as (ClickEffect | undefined) + this.getPeer()?.setClickEffectAttribute(value_casted) + return this + } + return this + } + public onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): this { + if (this.checkPriority("onDragStart")) { + const value_casted = value as (((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined) + this.getPeer()?.setOnDragStartAttribute(value_casted) + return this + } + return this + } + public onDragEnter(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (this.checkPriority("onDragEnter")) { + const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) + this.getPeer()?.setOnDragEnterAttribute(value_casted) + return this + } + return this + } + public onDragMove(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (this.checkPriority("onDragMove")) { + const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) + this.getPeer()?.setOnDragMoveAttribute(value_casted) + return this + } + return this + } + public onDragLeave(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (this.checkPriority("onDragLeave")) { + const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) + this.getPeer()?.setOnDragLeaveAttribute(value_casted) + return this + } + return this + } + public onDrop(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (this.checkPriority("onDrop")) { + const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) + this.getPeer()?.setOnDrop0Attribute(value_casted) + return this + } + return this + } + public onDragEnd(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (this.checkPriority("onDragEnd")) { + const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) + this.getPeer()?.setOnDragEndAttribute(value_casted) + return this + } + return this + } + public allowDrop(value: Array | undefined): this { + if (this.checkPriority("allowDrop")) { + const value_casted = value as (Array | undefined) + this.getPeer()?.setAllowDropAttribute(value_casted) + return this + } + return this + } + public draggable(value: boolean | undefined): this { + if (this.checkPriority("draggable")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setDraggableAttribute(value_casted) + return this + } + return this + } + public dragPreview(value: CustomBuilder | DragItemInfo | string | undefined): this { + if (this.checkPriority("dragPreview")) { + const value_casted = value as (CustomBuilder | DragItemInfo | string | undefined) + this.getPeer()?.setDragPreview0Attribute(value_casted) + return this + } + return this + } + public onPreDrag(value: ((value0: PreDragStatus) => void) | undefined): this { + if (this.checkPriority("onPreDrag")) { + const value_casted = value as (((value0: PreDragStatus) => void) | undefined) + this.getPeer()?.setOnPreDragAttribute(value_casted) + return this + } + return this + } + public linearGradient(value: LinearGradientOptions | undefined): this { + if (this.checkPriority("linearGradient")) { + const value_casted = value as (LinearGradientOptions | undefined) + this.getPeer()?.setLinearGradientAttribute(value_casted) + return this + } + return this + } + public sweepGradient(value: SweepGradientOptions | undefined): this { + if (this.checkPriority("sweepGradient")) { + const value_casted = value as (SweepGradientOptions | undefined) + this.getPeer()?.setSweepGradientAttribute(value_casted) + return this + } + return this + } + public radialGradient(value: RadialGradientOptions | undefined): this { + if (this.checkPriority("radialGradient")) { + const value_casted = value as (RadialGradientOptions | undefined) + this.getPeer()?.setRadialGradientAttribute(value_casted) + return this + } + return this + } + public motionPath(value: MotionPathOptions | undefined): this { + if (this.checkPriority("motionPath")) { + const value_casted = value as (MotionPathOptions | undefined) + this.getPeer()?.setMotionPathAttribute(value_casted) + return this + } + return this + } + public shadow(value: ShadowOptions | ShadowStyle | undefined): this { + if (this.checkPriority("shadow")) { + const value_casted = value as (ShadowOptions | ShadowStyle | undefined) + this.getPeer()?.setShadowAttribute(value_casted) + return this + } + return this + } + public clip(value: boolean | undefined): this { + if (this.checkPriority("clip")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setClipAttribute(value_casted) + return this + } + return this + } + public clipShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { + if (this.checkPriority("clipShape")) { + const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape | undefined) + this.getPeer()?.setClipShapeAttribute(value_casted) + return this + } + return this + } + public mask(value: ProgressMask | undefined): this { + if (this.checkPriority("mask")) { + const value_casted = value as (ProgressMask | undefined) + this.getPeer()?.setMaskAttribute(value_casted) + return this + } + return this + } + public maskShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { + if (this.checkPriority("maskShape")) { + const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape | undefined) + this.getPeer()?.setMaskShapeAttribute(value_casted) + return this + } + return this + } + public key(value: string | undefined): this { + if (this.checkPriority("key")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setKeyAttribute(value_casted) + return this + } + return this + } + public id(value: string | undefined): this { + if (this.checkPriority("id")) { + hookId(this, value) + const value_casted = value as (string | undefined) + this.getPeer()?.setIdAttribute(value_casted) + return this + } + return this + } + public geometryTransition(value: string | undefined): this { + if (this.checkPriority("geometryTransition")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setGeometryTransition0Attribute(value_casted) + return this + } + return this + } + public stateStyles(value: StateStyles | undefined): this { + if (this.checkPriority("stateStyles")) { + hookStateStyleImpl(this, value) + } + return this + } + public restoreId(value: number | undefined): this { + if (this.checkPriority("restoreId")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setRestoreIdAttribute(value_casted) + return this + } + return this + } + public sphericalEffect(value: number | undefined): this { + if (this.checkPriority("sphericalEffect")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setSphericalEffectAttribute(value_casted) + return this + } + return this + } + public lightUpEffect(value: number | undefined): this { + if (this.checkPriority("lightUpEffect")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setLightUpEffectAttribute(value_casted) + return this + } + return this + } + public pixelStretchEffect(value: PixelStretchEffectOptions | undefined): this { + if (this.checkPriority("pixelStretchEffect")) { + const value_casted = value as (PixelStretchEffectOptions | undefined) + this.getPeer()?.setPixelStretchEffectAttribute(value_casted) + return this + } + return this + } + public accessibilityGroup(value: boolean | undefined): this { + if (this.checkPriority("accessibilityGroup")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setAccessibilityGroup0Attribute(value_casted) + return this + } + return this + } + public accessibilityText(value: string | undefined): this { + if (this.checkPriority("accessibilityText")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setAccessibilityText0Attribute(value_casted) + return this + } + return this + } + public accessibilityNextFocusId(value: string | undefined): this { + if (this.checkPriority("accessibilityNextFocusId")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setAccessibilityNextFocusIdAttribute(value_casted) + return this + } + return this + } + public accessibilityDefaultFocus(value: boolean | undefined): this { + if (this.checkPriority("accessibilityDefaultFocus")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setAccessibilityDefaultFocusAttribute(value_casted) + return this + } + return this + } + public accessibilityUseSamePage(value: AccessibilitySamePageMode | undefined): this { + if (this.checkPriority("accessibilityUseSamePage")) { + const value_casted = value as (AccessibilitySamePageMode | undefined) + this.getPeer()?.setAccessibilityUseSamePageAttribute(value_casted) + return this + } + return this + } + public accessibilityScrollTriggerable(value: boolean | undefined): this { + if (this.checkPriority("accessibilityScrollTriggerable")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setAccessibilityScrollTriggerableAttribute(value_casted) + return this + } + return this + } + public accessibilityText(value: Resource | undefined): this { + if (this.checkPriority("accessibilityText")) { + const value_casted = value as (Resource | undefined) + this.getPeer()?.setAccessibilityText1Attribute(value_casted) + return this + } + return this + } + public accessibilityRole(value: AccessibilityRoleType | undefined): this { + if (this.checkPriority("accessibilityRole")) { + const value_casted = value as (AccessibilityRoleType | undefined) + this.getPeer()?.setAccessibilityRoleAttribute(value_casted) + return this + } + return this + } + public onAccessibilityFocus(value: AccessibilityFocusCallback | undefined): this { + if (this.checkPriority("onAccessibilityFocus")) { + const value_casted = value as (AccessibilityFocusCallback | undefined) + this.getPeer()?.setOnAccessibilityFocusAttribute(value_casted) + return this + } + return this + } + public accessibilityTextHint(value: string | undefined): this { + if (this.checkPriority("accessibilityTextHint")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setAccessibilityTextHintAttribute(value_casted) + return this + } + return this + } + public accessibilityDescription(value: string | undefined): this { + if (this.checkPriority("accessibilityDescription")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setAccessibilityDescription0Attribute(value_casted) + return this + } + return this + } + public accessibilityDescription(value: Resource | undefined): this { + if (this.checkPriority("accessibilityDescription")) { + const value_casted = value as (Resource | undefined) + this.getPeer()?.setAccessibilityDescription1Attribute(value_casted) + return this + } + return this + } + public accessibilityLevel(value: string | undefined): this { + if (this.checkPriority("accessibilityLevel")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setAccessibilityLevelAttribute(value_casted) + return this + } + return this + } + public accessibilityVirtualNode(value: CustomBuilder | undefined): this { + if (this.checkPriority("accessibilityVirtualNode")) { + const value_casted = value as (CustomBuilder | undefined) + this.getPeer()?.setAccessibilityVirtualNodeAttribute(value_casted) + return this + } + return this + } + public accessibilityChecked(value: boolean | undefined): this { + if (this.checkPriority("accessibilityChecked")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setAccessibilityCheckedAttribute(value_casted) + return this + } + return this + } + public accessibilitySelected(value: boolean | undefined): this { + if (this.checkPriority("accessibilitySelected")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setAccessibilitySelectedAttribute(value_casted) + return this + } + return this + } + public obscured(value: Array | undefined): this { + if (this.checkPriority("obscured")) { + const value_casted = value as (Array | undefined) + this.getPeer()?.setObscuredAttribute(value_casted) + return this + } + return this + } + public reuseId(value: string | undefined): this { + if (this.checkPriority("reuseId")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setReuseIdAttribute(value_casted) + return this + } + return this + } + public reuse(value: ReuseOptions | undefined): this { + if (this.checkPriority("reuse")) { + const value_casted = value as (ReuseOptions | undefined) + this.getPeer()?.setReuseAttribute(value_casted) + return this + } + return this + } + public renderFit(value: RenderFit | undefined): this { + if (this.checkPriority("renderFit")) { + const value_casted = value as (RenderFit | undefined) + this.getPeer()?.setRenderFitAttribute(value_casted) + return this + } + return this + } + public gestureModifier(value: GestureModifier | undefined): this { + if (this.checkPriority("gestureModifier")) { + const value_casted = value as (GestureModifier | undefined) + this.getPeer()?.setGestureModifierAttribute(value_casted) + return this + } + return this + } + public backgroundBrightness(value: BackgroundBrightnessOptions | undefined): this { + if (this.checkPriority("backgroundBrightness")) { + const value_casted = value as (BackgroundBrightnessOptions | undefined) + this.getPeer()?.setBackgroundBrightnessAttribute(value_casted) + return this + } + return this + } + public onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): this { + if (this.checkPriority("onGestureJudgeBegin")) { + const value_casted = value as (((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined) + this.getPeer()?.setOnGestureJudgeBeginAttribute(value_casted) + return this + } + return this + } + public onGestureRecognizerJudgeBegin(value: GestureRecognizerJudgeBeginCallback | undefined): this { + if (this.checkPriority("onGestureRecognizerJudgeBegin")) { + const value_casted = value as (GestureRecognizerJudgeBeginCallback | undefined) + this.getPeer()?.setOnGestureRecognizerJudgeBegin0Attribute(value_casted) + return this + } + return this + } + public shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): this { + if (this.checkPriority("shouldBuiltInRecognizerParallelWith")) { + const value_casted = value as (ShouldBuiltInRecognizerParallelWithCallback | undefined) + this.getPeer()?.setShouldBuiltInRecognizerParallelWithAttribute(value_casted) + return this + } + return this + } + public monopolizeEvents(value: boolean | undefined): this { + if (this.checkPriority("monopolizeEvents")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setMonopolizeEventsAttribute(value_casted) + return this + } + return this + } + public onTouchIntercept(value: ((value0: TouchEvent) => HitTestMode) | undefined): this { + if (this.checkPriority("onTouchIntercept")) { + const value_casted = value as (((value0: TouchEvent) => HitTestMode) | undefined) + this.getPeer()?.setOnTouchInterceptAttribute(value_casted) + return this + } + return this + } + public onSizeChange(value: SizeChangeCallback | undefined): this { + if (this.checkPriority("onSizeChange")) { + const value_casted = value as (SizeChangeCallback | undefined) + this.getPeer()?.setOnSizeChangeAttribute(value_casted) + return this + } + return this + } + public accessibilityFocusDrawLevel(value: FocusDrawLevel | undefined): this { + if (this.checkPriority("accessibilityFocusDrawLevel")) { + const value_casted = value as (FocusDrawLevel | undefined) + this.getPeer()?.setAccessibilityFocusDrawLevelAttribute(value_casted) + return this + } + return this + } + public customProperty(name: string, value: CustomProperty): this { + if (this.checkPriority("customProperty")) { + const name_casted = name as (string) + const value_casted = value as (CustomProperty) + this.getPeer()?.setCustomPropertyAttribute(name_casted, value_casted) + return this + } + return 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) + this.getPeer()?.setExpandSafeAreaAttribute(types_casted, edges_casted) + return this + } + return this + } + public background(builder: CustomBuilder | undefined, options?: BackgroundOptions): this { + if (this.checkPriority("background")) { + const builder_casted = builder as (CustomBuilder | undefined) + const options_casted = options as (BackgroundOptions | undefined) + this.getPeer()?.setBackgroundAttribute(builder_casted, options_casted) + return this + } + return this + } + public backgroundImage(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): this { + if (this.checkPriority("backgroundImage")) { + const src_casted = src as (ResourceStr | image.PixelMap | undefined) + const repeat_casted = repeat as (ImageRepeat | undefined) + this.getPeer()?.setBackgroundImage0Attribute(src_casted, repeat_casted) + return this + } + return this + } + public backgroundImage(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): this { + if (this.checkPriority("backgroundImage")) { + const src_casted = src as (ResourceStr | image.PixelMap | undefined) + const options_casted = options as (BackgroundImageOptions | undefined) + this.getPeer()?.setBackgroundImage1Attribute(src_casted, options_casted) + return this + } + return this + } + public backgroundBlurStyle(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { + if (this.checkPriority("backgroundBlurStyle")) { + const style_casted = style as (BlurStyle | undefined) + const options_casted = options as (BackgroundBlurStyleOptions | undefined) + const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) + this.getPeer()?.setBackgroundBlurStyleAttribute(style_casted, options_casted, sysOptions_casted) + return this + } + return this + } + public backgroundEffect(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): this { + if (this.checkPriority("backgroundEffect")) { + const options_casted = options as (BackgroundEffectOptions | undefined) + const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) + this.getPeer()?.setBackgroundEffect1Attribute(options_casted, sysOptions_casted) + return this + } + return this + } + public foregroundBlurStyle(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { + if (this.checkPriority("foregroundBlurStyle")) { + const style_casted = style as (BlurStyle | undefined) + const options_casted = options as (ForegroundBlurStyleOptions | undefined) + const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) + this.getPeer()?.setForegroundBlurStyleAttribute(style_casted, options_casted, sysOptions_casted) + return this + } + return this + } + public onClick(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): this { + if (this.checkPriority("onClick")) { + const event_casted = event as (((event: ClickEvent) => void) | undefined) + const distanceThreshold_casted = distanceThreshold as (number | undefined) + this.getPeer()?.setOnClick1Attribute(event_casted, distanceThreshold_casted) + return this + } + return this + } + public focusScopeId(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): this { + if (this.checkPriority("focusScopeId")) { + const id_casted = id as (string | undefined) + const isGroup_casted = isGroup as (boolean | undefined) + const arrowStepOut_casted = arrowStepOut as (boolean | undefined) + this.getPeer()?.setFocusScopeIdAttribute(id_casted, isGroup_casted, arrowStepOut_casted) + return this + } + return this + } + public focusScopePriority(scopeId: string | undefined, priority?: FocusPriority): this { + if (this.checkPriority("focusScopePriority")) { + const scopeId_casted = scopeId as (string | undefined) + const priority_casted = priority as (FocusPriority | undefined) + this.getPeer()?.setFocusScopePriorityAttribute(scopeId_casted, priority_casted) + return this + } + return this + } + public transition(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): this { + if (this.checkPriority("transition")) { + const effect_casted = effect as (TransitionEffect | undefined) + const onFinish_casted = onFinish as (TransitionFinishCallback | undefined) + this.getPeer()?.setTransition1Attribute(effect_casted, onFinish_casted) + return this + } + return this + } + public gesture(gesture: GestureType | undefined, mask?: GestureMask): this { + if (this.checkPriority("gesture")) { + const gesture_casted = gesture as (GestureType | undefined) + const mask_casted = mask as (GestureMask | undefined) + this.getPeer()?.setGestureAttribute(gesture_casted, mask_casted) + return this + } + return this + } + public priorityGesture(gesture: GestureType | undefined, mask?: GestureMask): this { + if (this.checkPriority("priorityGesture")) { + const gesture_casted = gesture as (GestureType | undefined) + const mask_casted = mask as (GestureMask | undefined) + this.getPeer()?.setPriorityGestureAttribute(gesture_casted, mask_casted) + return this + } + return this + } + public parallelGesture(gesture: GestureType | undefined, mask?: GestureMask): this { + if (this.checkPriority("parallelGesture")) { + const gesture_casted = gesture as (GestureType | undefined) + const mask_casted = mask as (GestureMask | undefined) + this.getPeer()?.setParallelGestureAttribute(gesture_casted, mask_casted) + return this + } + return this + } + public blur(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { + if (this.checkPriority("blur")) { + const blurRadius_casted = blurRadius as (number | undefined) + const options_casted = options as (BlurOptions | undefined) + const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) + this.getPeer()?.setBlurAttribute(blurRadius_casted, options_casted, sysOptions_casted) + return this + } + return this + } + public linearGradientBlur(value: number | undefined, options: LinearGradientBlurOptions | undefined): this { + if (this.checkPriority("linearGradientBlur")) { + const value_casted = value as (number | undefined) + const options_casted = options as (LinearGradientBlurOptions | undefined) + this.getPeer()?.setLinearGradientBlurAttribute(value_casted, options_casted) + return this + } + return this + } + public systemBarEffect(): this { + if (this.checkPriority("systemBarEffect")) { + this.getPeer()?.setSystemBarEffectAttribute() + return this + } + return this + } + public useEffect(useEffect: boolean | undefined, effectType: EffectType | undefined): this { + if (this.checkPriority("useEffect")) { + const useEffect_casted = useEffect as (boolean | undefined) + const effectType_casted = effectType as (EffectType | undefined) + this.getPeer()?.setUseEffect1Attribute(useEffect_casted, effectType_casted) + return this + } + return this + } + public backdropBlur(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { + if (this.checkPriority("backdropBlur")) { + const radius_casted = radius as (number | undefined) + const options_casted = options as (BlurOptions | undefined) + const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) + this.getPeer()?.setBackdropBlurAttribute(radius_casted, options_casted, sysOptions_casted) + return this + } + return this + } + public sharedTransition(id: string | undefined, options?: sharedTransitionOptions): this { + if (this.checkPriority("sharedTransition")) { + const id_casted = id as (string | undefined) + const options_casted = options as (sharedTransitionOptions | undefined) + this.getPeer()?.setSharedTransitionAttribute(id_casted, options_casted) + return this + } + return this + } + public chainMode(direction: Axis | undefined, style: ChainStyle | undefined): this { + if (this.checkPriority("chainMode")) { + const direction_casted = direction as (Axis | undefined) + const style_casted = style as (ChainStyle | undefined) + this.getPeer()?.setChainModeAttribute(direction_casted, style_casted) + return this + } + return this + } + public onDrop(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): this { + if (this.checkPriority("onDrop")) { + const eventCallback_casted = eventCallback as (OnDragEventCallback | undefined) + const dropOptions_casted = dropOptions as (DropOptions | undefined) + this.getPeer()?.setOnDrop1Attribute(eventCallback_casted, dropOptions_casted) + return this + } + return this + } + public dragPreview(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): this { + if (this.checkPriority("dragPreview")) { + const preview_casted = preview as (CustomBuilder | DragItemInfo | string | undefined) + const config_casted = config as (PreviewConfiguration | undefined) + this.getPeer()?.setDragPreview1Attribute(preview_casted, config_casted) + return this + } + return this + } + public dragPreviewOptions(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): this { + if (this.checkPriority("dragPreviewOptions")) { + const value_casted = value as (DragPreviewOptions | undefined) + const options_casted = options as (DragInteractionOptions | undefined) + this.getPeer()?.setDragPreviewOptionsAttribute(value_casted, options_casted) + return this + } + return this + } + public overlay(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): this { + if (this.checkPriority("overlay")) { + const value_casted = value as (string | CustomBuilder | ComponentContent | undefined) + const options_casted = options as (OverlayOptions | undefined) + this.getPeer()?.setOverlayAttribute(value_casted, options_casted) + return this + } + return this + } + public blendMode(value: BlendMode | undefined, type?: BlendApplyType): this { + if (this.checkPriority("blendMode")) { + const value_casted = value as (BlendMode | undefined) + const type_casted = type as (BlendApplyType | undefined) + this.getPeer()?.setBlendModeAttribute(value_casted, type_casted) + return this + } + return this + } + public advancedBlendMode(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): this { + if (this.checkPriority("advancedBlendMode")) { + const effect_casted = effect as (BlendMode | uiEffect.Blender) + const type_casted = type as (BlendApplyType | undefined) + this.getPeer()?.setAdvancedBlendModeAttribute(effect_casted, type_casted) + return this + } + return this + } + public geometryTransition(id: string | undefined, options?: GeometryTransitionOptions): this { + if (this.checkPriority("geometryTransition")) { + const id_casted = id as (string | undefined) + const options_casted = options as (GeometryTransitionOptions | undefined) + this.getPeer()?.setGeometryTransition1Attribute(id_casted, options_casted) + return this + } + return this + } + public bindTips(message: TipsMessageType | undefined, options?: TipsOptions): this { + if (this.checkPriority("bindTips")) { + const message_casted = message as (TipsMessageType | undefined) + const options_casted = options as (TipsOptions | undefined) + this.getPeer()?.setBindTipsAttribute(message_casted, options_casted) + return this + } + return this + } + public bindPopup(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): this { + if (this.checkPriority("bindPopup")) { + const show_casted = show as (boolean | undefined) + const popup_casted = popup as (PopupOptions | CustomPopupOptions | undefined) + this.getPeer()?.setBindPopupAttribute(show_casted, popup_casted) + return this + } + return this + } + public bindMenu(content: Array | CustomBuilder | undefined, options?: MenuOptions): this { + if (this.checkPriority("bindMenu")) { + const content_casted = content as (Array | CustomBuilder | undefined) + const options_casted = options as (MenuOptions | undefined) + this.getPeer()?.setBindMenu0Attribute(content_casted, options_casted) + return this + } + return this + } + public bindMenu(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): this { + if (this.checkPriority("bindMenu")) { + const isShow_casted = isShow as (boolean | undefined) + const content_casted = content as (Array | CustomBuilder | undefined) + const options_casted = options as (MenuOptions | undefined) + this.getPeer()?.setBindMenu1Attribute(isShow_casted, content_casted, options_casted) + return this + } + return this + } + public bindContextMenu(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): this { + if (this.checkPriority("bindContextMenu")) { + const content_casted = content as (CustomBuilder | undefined) + const responseType_casted = responseType as (ResponseType | undefined) + const options_casted = options as (ContextMenuOptions | undefined) + this.getPeer()?.setBindContextMenu0Attribute(content_casted, responseType_casted, options_casted) + return this + } + return this + } + public bindContextMenu(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): this { + if (this.checkPriority("bindContextMenu")) { + const isShown_casted = isShown as (boolean | undefined) + const content_casted = content as (CustomBuilder | undefined) + const options_casted = options as (ContextMenuOptions | undefined) + this.getPeer()?.setBindContextMenu1Attribute(isShown_casted, content_casted, options_casted) + return this + } + return this + } + public bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): this { + if (this.checkPriority("bindContentCover")) { + const isShow_casted = isShow as (boolean | Bindable | undefined) + const builder_casted = builder as (CustomBuilder | undefined) + const type_casted = type as (ModalTransition | undefined) + this.getPeer()?.setBindContentCover0Attribute(isShow_casted, builder_casted, type_casted) + return this + } + return this + } + public bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): this { + if (this.checkPriority("bindContentCover")) { + const isShow_casted = isShow as (boolean | Bindable | undefined) + const builder_casted = builder as (CustomBuilder | undefined) + const options_casted = options as (ContentCoverOptions | undefined) + this.getPeer()?.setBindContentCover1Attribute(isShow_casted, builder_casted, options_casted) + return this + } + return this + } + public bindSheet(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): this { + if (this.checkPriority("bindSheet")) { + const isShow_casted = isShow as (boolean | Bindable | undefined) + const builder_casted = builder as (CustomBuilder | undefined) + const options_casted = options as (SheetOptions | undefined) + this.getPeer()?.setBindSheetAttribute(isShow_casted, builder_casted, options_casted) + return this + } + return this + } + public onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this { + if (this.checkPriority("onVisibleAreaChange")) { + const ratios_casted = ratios as (Array | undefined) + const event_casted = event as (VisibleAreaChangeCallback | undefined) + this.getPeer()?.setOnVisibleAreaChangeAttribute(ratios_casted, event_casted) + return this + } + return this + } + public onVisibleAreaApproximateChange(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): this { + if (this.checkPriority("onVisibleAreaApproximateChange")) { + const options_casted = options as (VisibleAreaEventOptions | undefined) + const event_casted = event as (VisibleAreaChangeCallback | undefined) + this.getPeer()?.setOnVisibleAreaApproximateChangeAttribute(options_casted, event_casted) + return this + } + return this + } + public keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): this { + if (this.checkPriority("keyboardShortcut")) { + const value_casted = value as (string | FunctionKey | undefined) + const keys_casted = keys as (Array | undefined) + const action_casted = action as ((() => void) | undefined) + this.getPeer()?.setKeyboardShortcutAttribute(value_casted, keys_casted, action_casted) + return this + } + return this + } + public accessibilityGroup(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): this { + if (this.checkPriority("accessibilityGroup")) { + const isGroup_casted = isGroup as (boolean | undefined) + const accessibilityOptions_casted = accessibilityOptions as (AccessibilityOptions | undefined) + this.getPeer()?.setAccessibilityGroup1Attribute(isGroup_casted, accessibilityOptions_casted) + return this + } + return this + } + public onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): this { + if (this.checkPriority("onGestureRecognizerJudgeBegin")) { + const callback__casted = callback_ as (GestureRecognizerJudgeBeginCallback | undefined) + const exposeInnerGesture_casted = exposeInnerGesture as (boolean | undefined) + this.getPeer()?.setOnGestureRecognizerJudgeBegin1Attribute(callback__casted, exposeInnerGesture_casted) + return this + } + return this + } + public attributeModifier(value: AttributeModifier | undefined): this { + return this + } + public applyAttributesFinish(): void { + // we call this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} +export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent implements CommonShapeMethod { + getPeer(): ArkCommonShapeMethodPeer { + return (this.peer as ArkCommonShapeMethodPeer) + } + public stroke(value: ResourceColor | undefined): this { + if (this.checkPriority("stroke")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setStrokeAttribute(value_casted) + return this + } + return this + } + public fill(value: ResourceColor | undefined): this { + if (this.checkPriority("fill")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setFillAttribute(value_casted) + return this + } + return this + } + public strokeDashOffset(value: number | string | undefined): this { + if (this.checkPriority("strokeDashOffset")) { + const value_casted = value as (number | string | undefined) + this.getPeer()?.setStrokeDashOffsetAttribute(value_casted) + return this + } + return this + } + public strokeLineCap(value: LineCapStyle | undefined): this { + if (this.checkPriority("strokeLineCap")) { + const value_casted = value as (LineCapStyle | undefined) + this.getPeer()?.setStrokeLineCapAttribute(value_casted) + return this + } + return this + } + public strokeLineJoin(value: LineJoinStyle | undefined): this { + if (this.checkPriority("strokeLineJoin")) { + const value_casted = value as (LineJoinStyle | undefined) + this.getPeer()?.setStrokeLineJoinAttribute(value_casted) + return this + } + return this + } + public strokeMiterLimit(value: number | string | undefined): this { + if (this.checkPriority("strokeMiterLimit")) { + const value_casted = value as (number | string | undefined) + this.getPeer()?.setStrokeMiterLimitAttribute(value_casted) + return this + } + return this + } + public strokeOpacity(value: number | string | Resource | undefined): this { + if (this.checkPriority("strokeOpacity")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setStrokeOpacityAttribute(value_casted) + return this + } + return this + } + public fillOpacity(value: number | string | Resource | undefined): this { + if (this.checkPriority("fillOpacity")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setFillOpacityAttribute(value_casted) + return this + } + return this + } + public strokeWidth(value: Length | undefined): this { + if (this.checkPriority("strokeWidth")) { + const value_casted = value as (Length | undefined) + this.getPeer()?.setStrokeWidthAttribute(value_casted) + return this + } + return this + } + public antiAlias(value: boolean | undefined): this { + if (this.checkPriority("antiAlias")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setAntiAliasAttribute(value_casted) + return this + } + return this + } + public strokeDashArray(value: Array | undefined): this { + if (this.checkPriority("strokeDashArray")) { + const value_casted = value as (Array | undefined) + this.getPeer()?.setStrokeDashArrayAttribute(value_casted) + return this + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + return this + } + public applyAttributesFinish(): void { + // we call this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} +export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent implements ScrollableCommonMethod { + getPeer(): ArkScrollableCommonMethodPeer { + return (this.peer as ArkScrollableCommonMethodPeer) + } + public scrollBar(value: BarState | undefined): this { + if (this.checkPriority("scrollBar")) { + const value_casted = value as (BarState | undefined) + this.getPeer()?.setScrollBarAttribute(value_casted) + return this + } + return this + } + public scrollBarColor(value: Color | number | string | undefined): this { + if (this.checkPriority("scrollBarColor")) { + const value_casted = value as (Color | number | string | undefined) + this.getPeer()?.setScrollBarColorAttribute(value_casted) + return this + } + return this + } + public scrollBarWidth(value: number | string | undefined): this { + if (this.checkPriority("scrollBarWidth")) { + const value_casted = value as (number | string | undefined) + this.getPeer()?.setScrollBarWidthAttribute(value_casted) + return this + } + return this + } + public nestedScroll(value: NestedScrollOptions | undefined): this { + if (this.checkPriority("nestedScroll")) { + const value_casted = value as (NestedScrollOptions | undefined) + this.getPeer()?.setNestedScrollAttribute(value_casted) + return this + } + return this + } + public enableScrollInteraction(value: boolean | undefined): this { + if (this.checkPriority("enableScrollInteraction")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEnableScrollInteractionAttribute(value_casted) + return this + } + return this + } + public friction(value: number | Resource | undefined): this { + if (this.checkPriority("friction")) { + const value_casted = value as (number | Resource | undefined) + this.getPeer()?.setFrictionAttribute(value_casted) + return this + } + return this + } + public onReachStart(value: (() => void) | undefined): this { + if (this.checkPriority("onReachStart")) { + const value_casted = value as ((() => void) | undefined) + this.getPeer()?.setOnReachStartAttribute(value_casted) + return this + } + return this + } + public onReachEnd(value: (() => void) | undefined): this { + if (this.checkPriority("onReachEnd")) { + const value_casted = value as ((() => void) | undefined) + this.getPeer()?.setOnReachEndAttribute(value_casted) + return this + } + return this + } + public onScrollStart(value: (() => void) | undefined): this { + if (this.checkPriority("onScrollStart")) { + const value_casted = value as ((() => void) | undefined) + this.getPeer()?.setOnScrollStartAttribute(value_casted) + return this + } + return this + } + public onScrollStop(value: (() => void) | undefined): this { + if (this.checkPriority("onScrollStop")) { + const value_casted = value as ((() => void) | undefined) + this.getPeer()?.setOnScrollStopAttribute(value_casted) + return this + } + return this + } + public flingSpeedLimit(value: number | undefined): this { + if (this.checkPriority("flingSpeedLimit")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setFlingSpeedLimitAttribute(value_casted) + return this + } + return this + } + public clipContent(value: ContentClipMode | RectShape | undefined): this { + if (this.checkPriority("clipContent")) { + const value_casted = value as (ContentClipMode | RectShape | undefined) + this.getPeer()?.setClipContentAttribute(value_casted) + return this + } + return this + } + public digitalCrownSensitivity(value: CrownSensitivity | undefined): this { + if (this.checkPriority("digitalCrownSensitivity")) { + const value_casted = value as (CrownSensitivity | undefined) + this.getPeer()?.setDigitalCrownSensitivityAttribute(value_casted) + return this + } + return this + } + public backToTop(value: boolean | undefined): this { + if (this.checkPriority("backToTop")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setBackToTopAttribute(value_casted) + return this + } + return this + } + public edgeEffect(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): this { + if (this.checkPriority("edgeEffect")) { + const edgeEffect_casted = edgeEffect as (EdgeEffect | undefined) + const options_casted = options as (EdgeEffectOptions | undefined) + this.getPeer()?.setEdgeEffectAttribute(edgeEffect_casted, options_casted) + return this + } + return this + } + public fadingEdge(enabled: boolean | undefined, options?: FadingEdgeOptions): this { + if (this.checkPriority("fadingEdge")) { + const enabled_casted = enabled as (boolean | undefined) + const options_casted = options as (FadingEdgeOptions | undefined) + this.getPeer()?.setFadingEdgeAttribute(enabled_casted, options_casted) + return this + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + return this + } + public applyAttributesFinish(): void { + // we call this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} +export class CommonMethodModifier implements CommonMethod { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + _width_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _width_0_0value?: Length | LayoutPolicy | undefined + _height_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _height_0_0value?: Length | LayoutPolicy | undefined + _drawModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _drawModifier_0_0value?: DrawModifier | undefined + _responseRegion_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _responseRegion_0_0value?: Array | Rectangle | undefined + _mouseResponseRegion_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mouseResponseRegion_0_0value?: Array | Rectangle | undefined + _size_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _size_0_0value?: SizeOptions | undefined + _constraintSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _constraintSize_0_0value?: ConstraintSizeOptions | undefined + _hitTestBehavior_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hitTestBehavior_0_0value?: HitTestMode | undefined + _onChildTouchTest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChildTouchTest_0_0value?: ((value: Array) => TouchResult) | undefined + _layoutWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _layoutWeight_0_0value?: number | string | undefined + _chainWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _chainWeight_0_0value?: ChainWeightOptions | undefined + _padding_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _padding_0_0value?: Padding | Length | LocalizedPadding | undefined + _safeAreaPadding_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _safeAreaPadding_0_0value?: Padding | LengthMetrics | LocalizedPadding | undefined + _margin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _margin_0_0value?: Padding | Length | LocalizedPadding | undefined + _backgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundColor_0_0value?: ResourceColor | undefined + _pixelRound_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pixelRound_0_0value?: PixelRoundPolicy | undefined + _backgroundImageSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundImageSize_0_0value?: SizeOptions | ImageSize | undefined + _backgroundImagePosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundImagePosition_0_0value?: Position | Alignment | undefined + _backgroundEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundEffect_0_0value?: BackgroundEffectOptions | undefined + _backgroundImageResizable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundImageResizable_0_0value?: ResizableOptions | undefined + _foregroundEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _foregroundEffect_0_0value?: ForegroundEffectOptions | undefined + _visualEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _visualEffect_0_0value?: uiEffect.VisualEffect | undefined + _backgroundFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundFilter_0_0value?: uiEffect.Filter | undefined + _foregroundFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _foregroundFilter_0_0value?: uiEffect.Filter | undefined + _compositingFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _compositingFilter_0_0value?: uiEffect.Filter | undefined + _opacity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _opacity_0_0value?: number | Resource | undefined + _border_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _border_0_0value?: BorderOptions | undefined + _borderStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _borderStyle_0_0value?: BorderStyle | EdgeStyles | undefined + _borderWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _borderWidth_0_0value?: Length | EdgeWidths | LocalizedEdgeWidths | undefined + _borderColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _borderColor_0_0value?: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined + _borderRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _borderRadius_0_0value?: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined + _borderImage_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _borderImage_0_0value?: BorderImageOption | undefined + _outline_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _outline_0_0value?: OutlineOptions | undefined + _outlineStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _outlineStyle_0_0value?: OutlineStyle | EdgeOutlineStyles | undefined + _outlineWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _outlineWidth_0_0value?: Dimension | EdgeOutlineWidths | undefined + _outlineColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _outlineColor_0_0value?: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined + _outlineRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _outlineRadius_0_0value?: Dimension | OutlineRadiuses | undefined + _foregroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _foregroundColor_0_0value?: ResourceColor | ColoringStrategy | undefined + _onClick_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onClick_0_0value?: ((event: ClickEvent) => void) | undefined + _onHover_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onHover_0_0value?: ((isHover: boolean,event: HoverEvent) => void) | undefined + _onHoverMove_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onHoverMove_0_0value?: ((value0: HoverEvent) => void) | undefined + _onAccessibilityHover_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAccessibilityHover_0_0value?: AccessibilityCallback | undefined + _hoverEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hoverEffect_0_0value?: HoverEffect | undefined + _onMouse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onMouse_0_0value?: ((event: MouseEvent) => void) | undefined + _onTouch_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTouch_0_0value?: ((event: TouchEvent) => void) | undefined + _onKeyEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onKeyEvent_0_0value?: ((event: KeyEvent) => void) | undefined + _onDigitalCrown_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDigitalCrown_0_0value?: ((value0: CrownEvent) => void) | undefined + _onKeyPreIme_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onKeyPreIme_0_0value?: ((value0: KeyEvent) => boolean) | undefined + _onKeyEventDispatch_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onKeyEventDispatch_0_0value?: ((value0: KeyEvent) => boolean) | undefined + _onFocusAxisEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFocusAxisEvent_0_0value?: ((value0: FocusAxisEvent) => void) | undefined + _onAxisEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAxisEvent_0_0value?: ((value0: AxisEvent) => void) | undefined + _focusable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _focusable_0_0value?: boolean | undefined + _nextFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _nextFocus_0_0value?: FocusMovement | undefined + _tabStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _tabStop_0_0value?: boolean | undefined + _onFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFocus_0_0value?: (() => void) | undefined + _onBlur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onBlur_0_0value?: (() => void) | undefined + _tabIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _tabIndex_0_0value?: number | undefined + _defaultFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _defaultFocus_0_0value?: boolean | undefined + _groupDefaultFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _groupDefaultFocus_0_0value?: boolean | undefined + _focusOnTouch_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _focusOnTouch_0_0value?: boolean | undefined + _focusBox_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _focusBox_0_0value?: FocusBoxStyle | undefined + _animation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _animation_0_0value?: AnimateParam | undefined + _transition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _transition_0_0value?: TransitionEffect | undefined + _motionBlur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _motionBlur_0_0value?: MotionBlurOptions | undefined + _brightness_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _brightness_0_0value?: number | undefined + _contrast_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _contrast_0_0value?: number | undefined + _grayscale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _grayscale_0_0value?: number | undefined + _colorBlend_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _colorBlend_0_0value?: Color | string | Resource | undefined + _saturate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _saturate_0_0value?: number | undefined + _sepia_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sepia_0_0value?: number | undefined + _invert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _invert_0_0value?: number | InvertOptions | undefined + _hueRotate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hueRotate_0_0value?: number | string | undefined + _useShadowBatching_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _useShadowBatching_0_0value?: boolean | undefined + _useEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _useEffect_0_0value?: boolean | undefined + _renderGroup_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _renderGroup_0_0value?: boolean | undefined + _freeze_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _freeze_0_0value?: boolean | undefined + _translate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _translate_0_0value?: TranslateOptions | undefined + _scale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _scale_0_0value?: ScaleOptions | undefined + _rotate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _rotate_0_0value?: RotateOptions | undefined + _transform_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _transform_0_0value?: Object | undefined + _onAppear_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAppear_0_0value?: (() => void) | undefined + _onDisAppear_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDisAppear_0_0value?: (() => void) | undefined + _onAttach_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAttach_0_0value?: VoidCallback | undefined + _onDetach_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDetach_0_0value?: VoidCallback | undefined + _onAreaChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAreaChange_0_0value?: ((oldValue: Area,newValue: Area) => void) | undefined + _visibility_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _visibility_0_0value?: Visibility | undefined + _flexGrow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _flexGrow_0_0value?: number | undefined + _flexShrink_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _flexShrink_0_0value?: number | undefined + _flexBasis_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _flexBasis_0_0value?: number | string | undefined + _alignSelf_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alignSelf_0_0value?: ItemAlign | undefined + _displayPriority_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _displayPriority_0_0value?: number | undefined + _zIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _zIndex_0_0value?: number | undefined + _direction_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _direction_0_0value?: Direction | undefined + _align_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _align_0_0value?: Alignment | undefined + _position_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _position_0_0value?: Position | Edges | LocalizedEdges | undefined + _markAnchor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _markAnchor_0_0value?: Position | LocalizedPosition | undefined + _offset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _offset_0_0value?: Position | Edges | LocalizedEdges | undefined + _enabled_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enabled_0_0value?: boolean | undefined + _alignRules_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alignRules_0_0value?: AlignRuleOption | undefined + _alignRules_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alignRules_1_0value?: LocalizedAlignRuleOptions | undefined + _aspectRatio_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _aspectRatio_0_0value?: number | undefined + _clickEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _clickEffect_0_0value?: ClickEffect | undefined + _onDragStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDragStart_0_0value?: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined + _onDragEnter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDragEnter_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined + _onDragMove_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDragMove_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined + _onDragLeave_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDragLeave_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined + _onDrop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDrop_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined + _onDragEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDragEnd_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined + _allowDrop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _allowDrop_0_0value?: Array | undefined + _draggable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _draggable_0_0value?: boolean | undefined + _dragPreview_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _dragPreview_0_0value?: CustomBuilder | DragItemInfo | string | undefined + _onPreDrag_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPreDrag_0_0value?: ((value0: PreDragStatus) => void) | undefined + _linearGradient_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _linearGradient_0_0value?: LinearGradientOptions | undefined + _sweepGradient_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sweepGradient_0_0value?: SweepGradientOptions | undefined + _radialGradient_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _radialGradient_0_0value?: RadialGradientOptions | undefined + _motionPath_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _motionPath_0_0value?: MotionPathOptions | undefined + _shadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _shadow_0_0value?: ShadowOptions | ShadowStyle | undefined + _clip_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _clip_0_0value?: boolean | undefined + _clipShape_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _clipShape_0_0value?: CircleShape | EllipseShape | PathShape | RectShape | undefined + _mask_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mask_0_0value?: ProgressMask | undefined + _maskShape_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maskShape_0_0value?: CircleShape | EllipseShape | PathShape | RectShape | undefined + _key_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _key_0_0value?: string | undefined + _id_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _id_0_0value?: string | undefined + _geometryTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _geometryTransition_0_0value?: string | undefined + _restoreId_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _restoreId_0_0value?: number | undefined + _sphericalEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sphericalEffect_0_0value?: number | undefined + _lightUpEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _lightUpEffect_0_0value?: number | undefined + _pixelStretchEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pixelStretchEffect_0_0value?: PixelStretchEffectOptions | undefined + _accessibilityGroup_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityGroup_0_0value?: boolean | undefined + _accessibilityText_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityText_0_0value?: string | undefined + _accessibilityNextFocusId_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityNextFocusId_0_0value?: string | undefined + _accessibilityDefaultFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityDefaultFocus_0_0value?: boolean | undefined + _accessibilityUseSamePage_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityUseSamePage_0_0value?: AccessibilitySamePageMode | undefined + _accessibilityScrollTriggerable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityScrollTriggerable_0_0value?: boolean | undefined + _accessibilityText_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityText_1_0value?: Resource | undefined + _accessibilityRole_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityRole_0_0value?: AccessibilityRoleType | undefined + _onAccessibilityFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAccessibilityFocus_0_0value?: AccessibilityFocusCallback | undefined + _accessibilityTextHint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityTextHint_0_0value?: string | undefined + _accessibilityDescription_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityDescription_0_0value?: string | undefined + _accessibilityDescription_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityDescription_1_0value?: Resource | undefined + _accessibilityLevel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityLevel_0_0value?: string | undefined + _accessibilityVirtualNode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityVirtualNode_0_0value?: CustomBuilder | undefined + _accessibilityChecked_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityChecked_0_0value?: boolean | undefined + _accessibilitySelected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilitySelected_0_0value?: boolean | undefined + _obscured_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _obscured_0_0value?: Array | undefined + _reuseId_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _reuseId_0_0value?: string | undefined + _reuse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _reuse_0_0value?: ReuseOptions | undefined + _renderFit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _renderFit_0_0value?: RenderFit | undefined + _gestureModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _gestureModifier_0_0value?: GestureModifier | undefined + _backgroundBrightness_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundBrightness_0_0value?: BackgroundBrightnessOptions | undefined + _onGestureJudgeBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onGestureJudgeBegin_0_0value?: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined + _onGestureRecognizerJudgeBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onGestureRecognizerJudgeBegin_0_0value?: GestureRecognizerJudgeBeginCallback | undefined + _shouldBuiltInRecognizerParallelWith_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _shouldBuiltInRecognizerParallelWith_0_0value?: ShouldBuiltInRecognizerParallelWithCallback | undefined + _monopolizeEvents_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _monopolizeEvents_0_0value?: boolean | undefined + _onTouchIntercept_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTouchIntercept_0_0value?: ((value0: TouchEvent) => HitTestMode) | undefined + _onSizeChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSizeChange_0_0value?: SizeChangeCallback | undefined + _accessibilityFocusDrawLevel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityFocusDrawLevel_0_0value?: FocusDrawLevel | undefined + _customProperty_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _customProperty_0_0value?: string + _customProperty_0_1value?: CustomProperty + _expandSafeArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _expandSafeArea_0_0value?: Array | undefined + _expandSafeArea_0_1value?: Array | undefined + _background_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _background_0_0value?: CustomBuilder | undefined + _background_0_1value?: BackgroundOptions | undefined + _backgroundImage_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundImage_0_0value?: ResourceStr | image.PixelMap | undefined + _backgroundImage_0_1value?: ImageRepeat | undefined + _backgroundImage_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundImage_1_0value?: ResourceStr | image.PixelMap | undefined + _backgroundImage_1_1value?: BackgroundImageOptions | undefined + _backgroundBlurStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundBlurStyle_0_0value?: BlurStyle | undefined + _backgroundBlurStyle_0_1value?: BackgroundBlurStyleOptions | undefined + _backgroundBlurStyle_0_2value?: SystemAdaptiveOptions | undefined + _backgroundEffect_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundEffect_1_0value?: BackgroundEffectOptions | undefined + _backgroundEffect_1_1value?: SystemAdaptiveOptions | undefined + _foregroundBlurStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _foregroundBlurStyle_0_0value?: BlurStyle | undefined + _foregroundBlurStyle_0_1value?: ForegroundBlurStyleOptions | undefined + _foregroundBlurStyle_0_2value?: SystemAdaptiveOptions | undefined + _onClick_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onClick_1_0value?: ((event: ClickEvent) => void) | undefined + _onClick_1_1value?: number | undefined + _focusScopeId_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _focusScopeId_0_0value?: string | undefined + _focusScopeId_0_1value?: boolean | undefined + _focusScopeId_0_2value?: boolean | undefined + _focusScopePriority_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _focusScopePriority_0_0value?: string | undefined + _focusScopePriority_0_1value?: FocusPriority | undefined + _transition_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _transition_1_0value?: TransitionEffect | undefined + _transition_1_1value?: TransitionFinishCallback | undefined + _gesture_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _gesture_0_0value?: GestureType | undefined + _gesture_0_1value?: GestureMask | undefined + _priorityGesture_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _priorityGesture_0_0value?: GestureType | undefined + _priorityGesture_0_1value?: GestureMask | undefined + _parallelGesture_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _parallelGesture_0_0value?: GestureType | undefined + _parallelGesture_0_1value?: GestureMask | undefined + _blur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _blur_0_0value?: number | undefined + _blur_0_1value?: BlurOptions | undefined + _blur_0_2value?: SystemAdaptiveOptions | undefined + _linearGradientBlur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _linearGradientBlur_0_0value?: number | undefined + _linearGradientBlur_0_1value?: LinearGradientBlurOptions | undefined + _systemBarEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _useEffect_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _useEffect_1_0value?: boolean | undefined + _useEffect_1_1value?: EffectType | undefined + _backdropBlur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backdropBlur_0_0value?: number | undefined + _backdropBlur_0_1value?: BlurOptions | undefined + _backdropBlur_0_2value?: SystemAdaptiveOptions | undefined + _sharedTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sharedTransition_0_0value?: string | undefined + _sharedTransition_0_1value?: sharedTransitionOptions | undefined + _chainMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _chainMode_0_0value?: Axis | undefined + _chainMode_0_1value?: ChainStyle | undefined + _onDrop_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDrop_1_0value?: OnDragEventCallback | undefined + _onDrop_1_1value?: DropOptions | undefined + _dragPreview_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _dragPreview_1_0value?: CustomBuilder | DragItemInfo | string | undefined + _dragPreview_1_1value?: PreviewConfiguration | undefined + _dragPreviewOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _dragPreviewOptions_0_0value?: DragPreviewOptions | undefined + _dragPreviewOptions_0_1value?: DragInteractionOptions | undefined + _overlay_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _overlay_0_0value?: string | CustomBuilder | ComponentContent | undefined + _overlay_0_1value?: OverlayOptions | undefined + _blendMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _blendMode_0_0value?: BlendMode | undefined + _blendMode_0_1value?: BlendApplyType | undefined + _advancedBlendMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _advancedBlendMode_0_0value?: BlendMode | uiEffect.Blender + _advancedBlendMode_0_1value?: BlendApplyType | undefined + _geometryTransition_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _geometryTransition_1_0value?: string | undefined + _geometryTransition_1_1value?: GeometryTransitionOptions | undefined + _bindTips_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindTips_0_0value?: TipsMessageType | undefined + _bindTips_0_1value?: TipsOptions | undefined + _bindPopup_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindPopup_0_0value?: boolean | undefined + _bindPopup_0_1value?: PopupOptions | CustomPopupOptions | undefined + _bindMenu_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindMenu_0_0value?: Array | CustomBuilder | undefined + _bindMenu_0_1value?: MenuOptions | undefined + _bindMenu_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindMenu_1_0value?: boolean | undefined + _bindMenu_1_1value?: Array | CustomBuilder | undefined + _bindMenu_1_2value?: MenuOptions | undefined + _bindContextMenu_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindContextMenu_0_0value?: CustomBuilder | undefined + _bindContextMenu_0_1value?: ResponseType | undefined + _bindContextMenu_0_2value?: ContextMenuOptions | undefined + _bindContextMenu_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindContextMenu_1_0value?: boolean | undefined + _bindContextMenu_1_1value?: CustomBuilder | undefined + _bindContextMenu_1_2value?: ContextMenuOptions | undefined + _bindContentCover_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindContentCover_0_0value?: boolean | Bindable | undefined + _bindContentCover_0_1value?: CustomBuilder | undefined + _bindContentCover_0_2value?: ModalTransition | undefined + _bindContentCover_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindContentCover_1_0value?: boolean | Bindable | undefined + _bindContentCover_1_1value?: CustomBuilder | undefined + _bindContentCover_1_2value?: ContentCoverOptions | undefined + _bindSheet_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindSheet_0_0value?: boolean | Bindable | undefined + _bindSheet_0_1value?: CustomBuilder | undefined + _bindSheet_0_2value?: SheetOptions | undefined + _onVisibleAreaChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onVisibleAreaChange_0_0value?: Array | undefined + _onVisibleAreaChange_0_1value?: VisibleAreaChangeCallback | undefined + _onVisibleAreaApproximateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onVisibleAreaApproximateChange_0_0value?: VisibleAreaEventOptions | undefined + _onVisibleAreaApproximateChange_0_1value?: VisibleAreaChangeCallback | undefined + _keyboardShortcut_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _keyboardShortcut_0_0value?: string | FunctionKey | undefined + _keyboardShortcut_0_1value?: Array | undefined + _keyboardShortcut_0_2value?: (() => void) | undefined + _accessibilityGroup_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _accessibilityGroup_1_0value?: boolean | undefined + _accessibilityGroup_1_1value?: AccessibilityOptions | undefined + _onGestureRecognizerJudgeBegin_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onGestureRecognizerJudgeBegin_1_0value?: GestureRecognizerJudgeBeginCallback | undefined + _onGestureRecognizerJudgeBegin_1_1value?: boolean | undefined + applyModifierPatch(peer: ArkCommonMethodPeer): void { + if (this._width_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._width_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setWidthAttribute((this._width_0_0value as Length | LayoutPolicy | undefined)); + this._width_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._width_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._width_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setWidthAttribute((undefined as Length | LayoutPolicy | undefined)); + } + } + } + if (this._height_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._height_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHeightAttribute((this._height_0_0value as Length | LayoutPolicy | undefined)); + this._height_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._height_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._height_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHeightAttribute((undefined as Length | LayoutPolicy | undefined)); + } + } + } + if (this._drawModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._drawModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDrawModifierAttribute((this._drawModifier_0_0value as DrawModifier | undefined)); + this._drawModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._drawModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._drawModifier_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDrawModifierAttribute((undefined as DrawModifier | undefined)); + } + } + } + if (this._responseRegion_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._responseRegion_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setResponseRegionAttribute((this._responseRegion_0_0value as Array | Rectangle | undefined)); + this._responseRegion_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._responseRegion_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._responseRegion_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setResponseRegionAttribute((undefined as Array | Rectangle | undefined)); + } + } + } + if (this._mouseResponseRegion_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mouseResponseRegion_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMouseResponseRegionAttribute((this._mouseResponseRegion_0_0value as Array | Rectangle | undefined)); + this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMouseResponseRegionAttribute((undefined as Array | Rectangle | undefined)); + } + } + } + if (this._size_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._size_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSizeAttribute((this._size_0_0value as SizeOptions | undefined)); + this._size_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._size_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._size_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSizeAttribute((undefined as SizeOptions | undefined)); + } + } + } + if (this._constraintSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._constraintSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setConstraintSizeAttribute((this._constraintSize_0_0value as ConstraintSizeOptions | undefined)); + this._constraintSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._constraintSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._constraintSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setConstraintSizeAttribute((undefined as ConstraintSizeOptions | undefined)); + } + } + } + if (this._hitTestBehavior_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hitTestBehavior_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHitTestBehaviorAttribute((this._hitTestBehavior_0_0value as HitTestMode | undefined)); + this._hitTestBehavior_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hitTestBehavior_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hitTestBehavior_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHitTestBehaviorAttribute((undefined as HitTestMode | undefined)); + } + } + } + if (this._onChildTouchTest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChildTouchTest_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChildTouchTestAttribute((this._onChildTouchTest_0_0value as ((value: Array) => TouchResult) | undefined)); + this._onChildTouchTest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChildTouchTest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChildTouchTest_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChildTouchTestAttribute((undefined as ((value: Array) => TouchResult) | undefined)); + } + } + } + if (this._layoutWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._layoutWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLayoutWeightAttribute((this._layoutWeight_0_0value as number | string | undefined)); + this._layoutWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._layoutWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._layoutWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLayoutWeightAttribute((undefined as number | string | undefined)); + } + } + } + if (this._chainWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._chainWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setChainWeightAttribute((this._chainWeight_0_0value as ChainWeightOptions | undefined)); + this._chainWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._chainWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._chainWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setChainWeightAttribute((undefined as ChainWeightOptions | undefined)); + } + } + } + if (this._padding_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._padding_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPaddingAttribute((this._padding_0_0value as Padding | Length | LocalizedPadding | undefined)); + this._padding_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._padding_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._padding_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPaddingAttribute((undefined as Padding | Length | LocalizedPadding | undefined)); + } + } + } + if (this._safeAreaPadding_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._safeAreaPadding_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSafeAreaPaddingAttribute((this._safeAreaPadding_0_0value as Padding | LengthMetrics | LocalizedPadding | undefined)); + this._safeAreaPadding_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._safeAreaPadding_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._safeAreaPadding_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSafeAreaPaddingAttribute((undefined as Padding | LengthMetrics | LocalizedPadding | undefined)); + } + } + } + if (this._margin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._margin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMarginAttribute((this._margin_0_0value as Padding | Length | LocalizedPadding | undefined)); + this._margin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._margin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._margin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMarginAttribute((undefined as Padding | Length | LocalizedPadding | undefined)); + } + } + } + if (this._backgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundColorAttribute((this._backgroundColor_0_0value as ResourceColor | undefined)); + this._backgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._pixelRound_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pixelRound_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPixelRoundAttribute((this._pixelRound_0_0value as PixelRoundPolicy | undefined)); + this._pixelRound_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pixelRound_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pixelRound_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPixelRoundAttribute((undefined as PixelRoundPolicy | undefined)); + } + } + } + if (this._backgroundImageSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundImageSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundImageSizeAttribute((this._backgroundImageSize_0_0value as SizeOptions | ImageSize | undefined)); + this._backgroundImageSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundImageSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundImageSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundImageSizeAttribute((undefined as SizeOptions | ImageSize | undefined)); + } + } + } + if (this._backgroundImagePosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundImagePosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundImagePositionAttribute((this._backgroundImagePosition_0_0value as Position | Alignment | undefined)); + this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundImagePositionAttribute((undefined as Position | Alignment | undefined)); + } + } + } + if (this._backgroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundEffect0Attribute((this._backgroundEffect_0_0value as BackgroundEffectOptions | undefined)); + this._backgroundEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundEffect0Attribute((undefined as BackgroundEffectOptions | undefined)); + } + } + } + if (this._backgroundImageResizable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundImageResizable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundImageResizableAttribute((this._backgroundImageResizable_0_0value as ResizableOptions | undefined)); + this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundImageResizableAttribute((undefined as ResizableOptions | undefined)); + } + } + } + if (this._foregroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._foregroundEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setForegroundEffectAttribute((this._foregroundEffect_0_0value as ForegroundEffectOptions | undefined)); + this._foregroundEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._foregroundEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._foregroundEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setForegroundEffectAttribute((undefined as ForegroundEffectOptions | undefined)); + } + } + } + if (this._visualEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._visualEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setVisualEffectAttribute((this._visualEffect_0_0value as uiEffect.VisualEffect | undefined)); + this._visualEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._visualEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._visualEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setVisualEffectAttribute((undefined as uiEffect.VisualEffect | undefined)); + } + } + } + if (this._backgroundFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundFilterAttribute((this._backgroundFilter_0_0value as uiEffect.Filter | undefined)); + this._backgroundFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundFilter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundFilterAttribute((undefined as uiEffect.Filter | undefined)); + } + } + } + if (this._foregroundFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._foregroundFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setForegroundFilterAttribute((this._foregroundFilter_0_0value as uiEffect.Filter | undefined)); + this._foregroundFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._foregroundFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._foregroundFilter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setForegroundFilterAttribute((undefined as uiEffect.Filter | undefined)); + } + } + } + if (this._compositingFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._compositingFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCompositingFilterAttribute((this._compositingFilter_0_0value as uiEffect.Filter | undefined)); + this._compositingFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._compositingFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._compositingFilter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCompositingFilterAttribute((undefined as uiEffect.Filter | undefined)); + } + } + } + if (this._opacity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._opacity_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOpacityAttribute((this._opacity_0_0value as number | Resource | undefined)); + this._opacity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._opacity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._opacity_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOpacityAttribute((undefined as number | Resource | undefined)); + } + } + } + if (this._border_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._border_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBorderAttribute((this._border_0_0value as BorderOptions | undefined)); + this._border_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._border_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._border_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBorderAttribute((undefined as BorderOptions | undefined)); + } + } + } + if (this._borderStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._borderStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBorderStyleAttribute((this._borderStyle_0_0value as BorderStyle | EdgeStyles | undefined)); + this._borderStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._borderStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._borderStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBorderStyleAttribute((undefined as BorderStyle | EdgeStyles | undefined)); + } + } + } + if (this._borderWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._borderWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBorderWidthAttribute((this._borderWidth_0_0value as Length | EdgeWidths | LocalizedEdgeWidths | undefined)); + this._borderWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._borderWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._borderWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBorderWidthAttribute((undefined as Length | EdgeWidths | LocalizedEdgeWidths | undefined)); + } + } + } + if (this._borderColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._borderColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBorderColorAttribute((this._borderColor_0_0value as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); + this._borderColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._borderColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._borderColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBorderColorAttribute((undefined as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); + } + } + } + if (this._borderRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._borderRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBorderRadiusAttribute((this._borderRadius_0_0value as Length | BorderRadiuses | LocalizedBorderRadiuses | undefined)); + this._borderRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._borderRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._borderRadius_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBorderRadiusAttribute((undefined as Length | BorderRadiuses | LocalizedBorderRadiuses | undefined)); + } + } + } + if (this._borderImage_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._borderImage_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBorderImageAttribute((this._borderImage_0_0value as BorderImageOption | undefined)); + this._borderImage_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._borderImage_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._borderImage_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBorderImageAttribute((undefined as BorderImageOption | undefined)); + } + } + } + if (this._outline_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._outline_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOutlineAttribute((this._outline_0_0value as OutlineOptions | undefined)); + this._outline_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._outline_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._outline_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOutlineAttribute((undefined as OutlineOptions | undefined)); + } + } + } + if (this._outlineStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._outlineStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOutlineStyleAttribute((this._outlineStyle_0_0value as OutlineStyle | EdgeOutlineStyles | undefined)); + this._outlineStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._outlineStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._outlineStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOutlineStyleAttribute((undefined as OutlineStyle | EdgeOutlineStyles | undefined)); + } + } + } + if (this._outlineWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._outlineWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOutlineWidthAttribute((this._outlineWidth_0_0value as Dimension | EdgeOutlineWidths | undefined)); + this._outlineWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._outlineWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._outlineWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOutlineWidthAttribute((undefined as Dimension | EdgeOutlineWidths | undefined)); + } + } + } + if (this._outlineColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._outlineColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOutlineColorAttribute((this._outlineColor_0_0value as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); + this._outlineColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._outlineColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._outlineColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOutlineColorAttribute((undefined as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); + } + } + } + if (this._outlineRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._outlineRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOutlineRadiusAttribute((this._outlineRadius_0_0value as Dimension | OutlineRadiuses | undefined)); + this._outlineRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._outlineRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._outlineRadius_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOutlineRadiusAttribute((undefined as Dimension | OutlineRadiuses | undefined)); + } + } + } + if (this._foregroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._foregroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setForegroundColorAttribute((this._foregroundColor_0_0value as ResourceColor | ColoringStrategy | undefined)); + this._foregroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._foregroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._foregroundColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setForegroundColorAttribute((undefined as ResourceColor | ColoringStrategy | undefined)); + } + } + } + if (this._onClick_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onClick_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnClick0Attribute((this._onClick_0_0value as ((event: ClickEvent) => void) | undefined)); + this._onClick_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onClick_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onClick_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnClick0Attribute((undefined as ((event: ClickEvent) => void) | undefined)); + } + } + } + if (this._onHover_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onHover_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnHoverAttribute((this._onHover_0_0value as ((isHover: boolean,event: HoverEvent) => void) | undefined)); + this._onHover_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onHover_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onHover_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnHoverAttribute((undefined as ((isHover: boolean,event: HoverEvent) => void) | undefined)); + } + } + } + if (this._onHoverMove_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onHoverMove_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnHoverMoveAttribute((this._onHoverMove_0_0value as ((value0: HoverEvent) => void) | undefined)); + this._onHoverMove_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onHoverMove_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onHoverMove_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnHoverMoveAttribute((undefined as ((value0: HoverEvent) => void) | undefined)); + } + } + } + if (this._onAccessibilityHover_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAccessibilityHover_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAccessibilityHoverAttribute((this._onAccessibilityHover_0_0value as AccessibilityCallback | undefined)); + this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAccessibilityHoverAttribute((undefined as AccessibilityCallback | undefined)); + } + } + } + if (this._hoverEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hoverEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHoverEffectAttribute((this._hoverEffect_0_0value as HoverEffect | undefined)); + this._hoverEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hoverEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hoverEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHoverEffectAttribute((undefined as HoverEffect | undefined)); + } + } + } + if (this._onMouse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onMouse_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnMouseAttribute((this._onMouse_0_0value as ((event: MouseEvent) => void) | undefined)); + this._onMouse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onMouse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onMouse_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnMouseAttribute((undefined as ((event: MouseEvent) => void) | undefined)); + } + } + } + if (this._onTouch_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTouch_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTouchAttribute((this._onTouch_0_0value as ((event: TouchEvent) => void) | undefined)); + this._onTouch_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTouch_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTouch_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTouchAttribute((undefined as ((event: TouchEvent) => void) | undefined)); + } + } + } + if (this._onKeyEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onKeyEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnKeyEventAttribute((this._onKeyEvent_0_0value as ((event: KeyEvent) => void) | undefined)); + this._onKeyEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onKeyEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onKeyEvent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnKeyEventAttribute((undefined as ((event: KeyEvent) => void) | undefined)); + } + } + } + if (this._onDigitalCrown_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDigitalCrown_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDigitalCrownAttribute((this._onDigitalCrown_0_0value as ((value0: CrownEvent) => void) | undefined)); + this._onDigitalCrown_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDigitalCrown_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDigitalCrown_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDigitalCrownAttribute((undefined as ((value0: CrownEvent) => void) | undefined)); + } + } + } + if (this._onKeyPreIme_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onKeyPreIme_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnKeyPreImeAttribute((this._onKeyPreIme_0_0value as ((value0: KeyEvent) => boolean) | undefined)); + this._onKeyPreIme_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onKeyPreIme_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onKeyPreIme_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnKeyPreImeAttribute((undefined as ((value0: KeyEvent) => boolean) | undefined)); + } + } + } + if (this._onKeyEventDispatch_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onKeyEventDispatch_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnKeyEventDispatchAttribute((this._onKeyEventDispatch_0_0value as ((value0: KeyEvent) => boolean) | undefined)); + this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnKeyEventDispatchAttribute((undefined as ((value0: KeyEvent) => boolean) | undefined)); + } + } + } + if (this._onFocusAxisEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFocusAxisEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFocusAxisEventAttribute((this._onFocusAxisEvent_0_0value as ((value0: FocusAxisEvent) => void) | undefined)); + this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFocusAxisEventAttribute((undefined as ((value0: FocusAxisEvent) => void) | undefined)); + } + } + } + if (this._onAxisEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAxisEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAxisEventAttribute((this._onAxisEvent_0_0value as ((value0: AxisEvent) => void) | undefined)); + this._onAxisEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAxisEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAxisEvent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAxisEventAttribute((undefined as ((value0: AxisEvent) => void) | undefined)); + } + } + } + if (this._focusable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._focusable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFocusableAttribute((this._focusable_0_0value as boolean | undefined)); + this._focusable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._focusable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._focusable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFocusableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._nextFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._nextFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNextFocusAttribute((this._nextFocus_0_0value as FocusMovement | undefined)); + this._nextFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._nextFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._nextFocus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setNextFocusAttribute((undefined as FocusMovement | undefined)); + } + } + } + if (this._tabStop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._tabStop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTabStopAttribute((this._tabStop_0_0value as boolean | undefined)); + this._tabStop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._tabStop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._tabStop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTabStopAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFocusAttribute((this._onFocus_0_0value as (() => void) | undefined)); + this._onFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFocus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFocusAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onBlur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onBlur_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnBlurAttribute((this._onBlur_0_0value as (() => void) | undefined)); + this._onBlur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onBlur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onBlur_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnBlurAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._tabIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._tabIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTabIndexAttribute((this._tabIndex_0_0value as number | undefined)); + this._tabIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._tabIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._tabIndex_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTabIndexAttribute((undefined as number | undefined)); + } + } + } + if (this._defaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._defaultFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDefaultFocusAttribute((this._defaultFocus_0_0value as boolean | undefined)); + this._defaultFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._defaultFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._defaultFocus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDefaultFocusAttribute((undefined as boolean | undefined)); + } + } + } + if (this._groupDefaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._groupDefaultFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGroupDefaultFocusAttribute((this._groupDefaultFocus_0_0value as boolean | undefined)); + this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setGroupDefaultFocusAttribute((undefined as boolean | undefined)); + } + } + } + if (this._focusOnTouch_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._focusOnTouch_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFocusOnTouchAttribute((this._focusOnTouch_0_0value as boolean | undefined)); + this._focusOnTouch_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._focusOnTouch_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._focusOnTouch_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFocusOnTouchAttribute((undefined as boolean | undefined)); + } + } + } + if (this._focusBox_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._focusBox_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFocusBoxAttribute((this._focusBox_0_0value as FocusBoxStyle | undefined)); + this._focusBox_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._focusBox_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._focusBox_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFocusBoxAttribute((undefined as FocusBoxStyle | undefined)); + } + } + } + if (this._animation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._animation_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAnimationAttribute((this._animation_0_0value as AnimateParam | undefined)); + this._animation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._animation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._animation_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAnimationAttribute((undefined as AnimateParam | undefined)); + } + } + } + if (this._transition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._transition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTransition0Attribute((this._transition_0_0value as TransitionEffect | undefined)); + this._transition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._transition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._transition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTransition0Attribute((undefined as TransitionEffect | undefined)); + } + } + } + if (this._motionBlur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._motionBlur_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMotionBlurAttribute((this._motionBlur_0_0value as MotionBlurOptions | undefined)); + this._motionBlur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._motionBlur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._motionBlur_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMotionBlurAttribute((undefined as MotionBlurOptions | undefined)); + } + } + } + if (this._brightness_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._brightness_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBrightnessAttribute((this._brightness_0_0value as number | undefined)); + this._brightness_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._brightness_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._brightness_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBrightnessAttribute((undefined as number | undefined)); + } + } + } + if (this._contrast_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._contrast_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setContrastAttribute((this._contrast_0_0value as number | undefined)); + this._contrast_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._contrast_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._contrast_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setContrastAttribute((undefined as number | undefined)); + } + } + } + if (this._grayscale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._grayscale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGrayscaleAttribute((this._grayscale_0_0value as number | undefined)); + this._grayscale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._grayscale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._grayscale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setGrayscaleAttribute((undefined as number | undefined)); + } + } + } + if (this._colorBlend_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._colorBlend_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorBlendAttribute((this._colorBlend_0_0value as Color | string | Resource | undefined)); + this._colorBlend_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._colorBlend_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._colorBlend_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorBlendAttribute((undefined as Color | string | Resource | undefined)); + } + } + } + if (this._saturate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._saturate_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSaturateAttribute((this._saturate_0_0value as number | undefined)); + this._saturate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._saturate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._saturate_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSaturateAttribute((undefined as number | undefined)); + } + } + } + if (this._sepia_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sepia_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSepiaAttribute((this._sepia_0_0value as number | undefined)); + this._sepia_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sepia_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sepia_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSepiaAttribute((undefined as number | undefined)); + } + } + } + if (this._invert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._invert_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setInvertAttribute((this._invert_0_0value as number | InvertOptions | undefined)); + this._invert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._invert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._invert_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setInvertAttribute((undefined as number | InvertOptions | undefined)); + } + } + } + if (this._hueRotate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hueRotate_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHueRotateAttribute((this._hueRotate_0_0value as number | string | undefined)); + this._hueRotate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hueRotate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hueRotate_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHueRotateAttribute((undefined as number | string | undefined)); + } + } + } + if (this._useShadowBatching_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._useShadowBatching_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setUseShadowBatchingAttribute((this._useShadowBatching_0_0value as boolean | undefined)); + this._useShadowBatching_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._useShadowBatching_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._useShadowBatching_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setUseShadowBatchingAttribute((undefined as boolean | undefined)); + } + } + } + if (this._useEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._useEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setUseEffect0Attribute((this._useEffect_0_0value as boolean | undefined)); + this._useEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._useEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._useEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setUseEffect0Attribute((undefined as boolean | undefined)); + } + } + } + if (this._renderGroup_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._renderGroup_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRenderGroupAttribute((this._renderGroup_0_0value as boolean | undefined)); + this._renderGroup_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._renderGroup_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._renderGroup_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRenderGroupAttribute((undefined as boolean | undefined)); + } + } + } + if (this._freeze_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._freeze_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFreezeAttribute((this._freeze_0_0value as boolean | undefined)); + this._freeze_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._freeze_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._freeze_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFreezeAttribute((undefined as boolean | undefined)); + } + } + } + if (this._translate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._translate_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTranslateAttribute((this._translate_0_0value as TranslateOptions | undefined)); + this._translate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._translate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._translate_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTranslateAttribute((undefined as TranslateOptions | undefined)); + } + } + } + if (this._scale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._scale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setScaleAttribute((this._scale_0_0value as ScaleOptions | undefined)); + this._scale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._scale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._scale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setScaleAttribute((undefined as ScaleOptions | undefined)); + } + } + } + if (this._rotate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._rotate_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRotateAttribute((this._rotate_0_0value as RotateOptions | undefined)); + this._rotate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._rotate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._rotate_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRotateAttribute((undefined as RotateOptions | undefined)); + } + } + } + if (this._transform_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._transform_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTransformAttribute((this._transform_0_0value as Object | undefined)); + this._transform_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._transform_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._transform_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTransformAttribute((undefined as Object | undefined)); + } + } + } + if (this._onAppear_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAppear_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAppearAttribute((this._onAppear_0_0value as (() => void) | undefined)); + this._onAppear_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAppear_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAppear_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAppearAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onDisAppear_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDisAppear_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDisAppearAttribute((this._onDisAppear_0_0value as (() => void) | undefined)); + this._onDisAppear_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDisAppear_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDisAppear_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDisAppearAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onAttach_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAttach_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAttachAttribute((this._onAttach_0_0value as VoidCallback | undefined)); + this._onAttach_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAttach_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAttach_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAttachAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onDetach_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDetach_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDetachAttribute((this._onDetach_0_0value as VoidCallback | undefined)); + this._onDetach_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDetach_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDetach_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDetachAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onAreaChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAreaChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAreaChangeAttribute((this._onAreaChange_0_0value as ((oldValue: Area,newValue: Area) => void) | undefined)); + this._onAreaChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAreaChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAreaChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAreaChangeAttribute((undefined as ((oldValue: Area,newValue: Area) => void) | undefined)); + } + } + } + if (this._visibility_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._visibility_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setVisibilityAttribute((this._visibility_0_0value as Visibility | undefined)); + this._visibility_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._visibility_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._visibility_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setVisibilityAttribute((undefined as Visibility | undefined)); + } + } + } + if (this._flexGrow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._flexGrow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFlexGrowAttribute((this._flexGrow_0_0value as number | undefined)); + this._flexGrow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._flexGrow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._flexGrow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFlexGrowAttribute((undefined as number | undefined)); + } + } + } + if (this._flexShrink_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._flexShrink_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFlexShrinkAttribute((this._flexShrink_0_0value as number | undefined)); + this._flexShrink_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._flexShrink_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._flexShrink_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFlexShrinkAttribute((undefined as number | undefined)); + } + } + } + if (this._flexBasis_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._flexBasis_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFlexBasisAttribute((this._flexBasis_0_0value as number | string | undefined)); + this._flexBasis_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._flexBasis_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._flexBasis_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFlexBasisAttribute((undefined as number | string | undefined)); + } + } + } + if (this._alignSelf_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alignSelf_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignSelfAttribute((this._alignSelf_0_0value as ItemAlign | undefined)); + this._alignSelf_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alignSelf_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alignSelf_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignSelfAttribute((undefined as ItemAlign | undefined)); + } + } + } + if (this._displayPriority_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._displayPriority_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDisplayPriorityAttribute((this._displayPriority_0_0value as number | undefined)); + this._displayPriority_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._displayPriority_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._displayPriority_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDisplayPriorityAttribute((undefined as number | undefined)); + } + } + } + if (this._zIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._zIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setZIndexAttribute((this._zIndex_0_0value as number | undefined)); + this._zIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._zIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._zIndex_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setZIndexAttribute((undefined as number | undefined)); + } + } + } + if (this._direction_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._direction_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDirectionAttribute((this._direction_0_0value as Direction | undefined)); + this._direction_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._direction_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._direction_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDirectionAttribute((undefined as Direction | undefined)); + } + } + } + if (this._align_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._align_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignAttribute((this._align_0_0value as Alignment | undefined)); + this._align_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._align_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._align_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignAttribute((undefined as Alignment | undefined)); + } + } + } + if (this._position_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._position_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPositionAttribute((this._position_0_0value as Position | Edges | LocalizedEdges | undefined)); + this._position_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._position_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._position_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPositionAttribute((undefined as Position | Edges | LocalizedEdges | undefined)); + } + } + } + if (this._markAnchor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._markAnchor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMarkAnchorAttribute((this._markAnchor_0_0value as Position | LocalizedPosition | undefined)); + this._markAnchor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._markAnchor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._markAnchor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMarkAnchorAttribute((undefined as Position | LocalizedPosition | undefined)); + } + } + } + if (this._offset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._offset_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOffsetAttribute((this._offset_0_0value as Position | Edges | LocalizedEdges | undefined)); + this._offset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._offset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._offset_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOffsetAttribute((undefined as Position | Edges | LocalizedEdges | undefined)); + } + } + } + if (this._enabled_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enabled_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnabledAttribute((this._enabled_0_0value as boolean | undefined)); + this._enabled_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enabled_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enabled_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnabledAttribute((undefined as boolean | undefined)); + } + } + } + if (this._alignRules_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alignRules_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignRules0Attribute((this._alignRules_0_0value as AlignRuleOption | undefined)); + this._alignRules_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alignRules_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alignRules_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignRules0Attribute((undefined as AlignRuleOption | undefined)); + } + } + } + if (this._alignRules_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alignRules_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignRules1Attribute((this._alignRules_1_0value as LocalizedAlignRuleOptions | undefined)); + this._alignRules_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alignRules_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alignRules_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignRules1Attribute((undefined as LocalizedAlignRuleOptions | undefined)); + } + } + } + if (this._aspectRatio_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._aspectRatio_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAspectRatioAttribute((this._aspectRatio_0_0value as number | undefined)); + this._aspectRatio_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._aspectRatio_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._aspectRatio_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAspectRatioAttribute((undefined as number | undefined)); + } + } + } + if (this._clickEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._clickEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setClickEffectAttribute((this._clickEffect_0_0value as ClickEffect | undefined)); + this._clickEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._clickEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._clickEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setClickEffectAttribute((undefined as ClickEffect | undefined)); + } + } + } + if (this._onDragStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDragStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDragStartAttribute((this._onDragStart_0_0value as ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined)); + this._onDragStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDragStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDragStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDragStartAttribute((undefined as ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined)); + } + } + } + if (this._onDragEnter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDragEnter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDragEnterAttribute((this._onDragEnter_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); + this._onDragEnter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDragEnter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDragEnter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDragEnterAttribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (this._onDragMove_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDragMove_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDragMoveAttribute((this._onDragMove_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); + this._onDragMove_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDragMove_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDragMove_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDragMoveAttribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (this._onDragLeave_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDragLeave_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDragLeaveAttribute((this._onDragLeave_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); + this._onDragLeave_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDragLeave_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDragLeave_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDragLeaveAttribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (this._onDrop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDrop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDrop0Attribute((this._onDrop_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); + this._onDrop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDrop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDrop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDrop0Attribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (this._onDragEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDragEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDragEndAttribute((this._onDragEnd_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); + this._onDragEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDragEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDragEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDragEndAttribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (this._allowDrop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._allowDrop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAllowDropAttribute((this._allowDrop_0_0value as Array | undefined)); + this._allowDrop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._allowDrop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._allowDrop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAllowDropAttribute((undefined as Array | undefined)); + } + } + } + if (this._draggable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._draggable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDraggableAttribute((this._draggable_0_0value as boolean | undefined)); + this._draggable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._draggable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._draggable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDraggableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._dragPreview_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._dragPreview_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDragPreview0Attribute((this._dragPreview_0_0value as CustomBuilder | DragItemInfo | string | undefined)); + this._dragPreview_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._dragPreview_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._dragPreview_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDragPreview0Attribute((undefined as CustomBuilder | DragItemInfo | string | undefined)); + } + } + } + if (this._onPreDrag_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPreDrag_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPreDragAttribute((this._onPreDrag_0_0value as ((value0: PreDragStatus) => void) | undefined)); + this._onPreDrag_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPreDrag_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPreDrag_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPreDragAttribute((undefined as ((value0: PreDragStatus) => void) | undefined)); + } + } + } + if (this._linearGradient_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._linearGradient_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLinearGradientAttribute((this._linearGradient_0_0value as LinearGradientOptions | undefined)); + this._linearGradient_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._linearGradient_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._linearGradient_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLinearGradientAttribute((undefined as LinearGradientOptions | undefined)); + } + } + } + if (this._sweepGradient_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sweepGradient_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSweepGradientAttribute((this._sweepGradient_0_0value as SweepGradientOptions | undefined)); + this._sweepGradient_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sweepGradient_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sweepGradient_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSweepGradientAttribute((undefined as SweepGradientOptions | undefined)); + } + } + } + if (this._radialGradient_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._radialGradient_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRadialGradientAttribute((this._radialGradient_0_0value as RadialGradientOptions | undefined)); + this._radialGradient_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._radialGradient_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._radialGradient_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRadialGradientAttribute((undefined as RadialGradientOptions | undefined)); + } + } + } + if (this._motionPath_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._motionPath_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMotionPathAttribute((this._motionPath_0_0value as MotionPathOptions | undefined)); + this._motionPath_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._motionPath_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._motionPath_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMotionPathAttribute((undefined as MotionPathOptions | undefined)); + } + } + } + if (this._shadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._shadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShadowAttribute((this._shadow_0_0value as ShadowOptions | ShadowStyle | undefined)); + this._shadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._shadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._shadow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShadowAttribute((undefined as ShadowOptions | ShadowStyle | undefined)); + } + } + } + if (this._clip_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._clip_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setClipAttribute((this._clip_0_0value as boolean | undefined)); + this._clip_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._clip_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._clip_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setClipAttribute((undefined as boolean | undefined)); + } + } + } + if (this._clipShape_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._clipShape_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setClipShapeAttribute((this._clipShape_0_0value as CircleShape | EllipseShape | PathShape | RectShape | undefined)); + this._clipShape_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._clipShape_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._clipShape_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setClipShapeAttribute((undefined as CircleShape | EllipseShape | PathShape | RectShape | undefined)); + } + } + } + if (this._mask_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mask_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaskAttribute((this._mask_0_0value as ProgressMask | undefined)); + this._mask_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mask_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mask_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaskAttribute((undefined as ProgressMask | undefined)); + } + } + } + if (this._maskShape_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maskShape_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaskShapeAttribute((this._maskShape_0_0value as CircleShape | EllipseShape | PathShape | RectShape | undefined)); + this._maskShape_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maskShape_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maskShape_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaskShapeAttribute((undefined as CircleShape | EllipseShape | PathShape | RectShape | undefined)); + } + } + } + if (this._key_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._key_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setKeyAttribute((this._key_0_0value as string | undefined)); + this._key_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._key_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._key_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setKeyAttribute((undefined as string | undefined)); + } + } + } + if (this._id_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._id_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIdAttribute((this._id_0_0value as string | undefined)); + this._id_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._id_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._id_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIdAttribute((undefined as string | undefined)); + } + } + } + if (this._geometryTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._geometryTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGeometryTransition0Attribute((this._geometryTransition_0_0value as string | undefined)); + this._geometryTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._geometryTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._geometryTransition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setGeometryTransition0Attribute((undefined as string | undefined)); + } + } + } + if (this._restoreId_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._restoreId_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRestoreIdAttribute((this._restoreId_0_0value as number | undefined)); + this._restoreId_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._restoreId_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._restoreId_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRestoreIdAttribute((undefined as number | undefined)); + } + } + } + if (this._sphericalEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sphericalEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSphericalEffectAttribute((this._sphericalEffect_0_0value as number | undefined)); + this._sphericalEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sphericalEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sphericalEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSphericalEffectAttribute((undefined as number | undefined)); + } + } + } + if (this._lightUpEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._lightUpEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLightUpEffectAttribute((this._lightUpEffect_0_0value as number | undefined)); + this._lightUpEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._lightUpEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._lightUpEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLightUpEffectAttribute((undefined as number | undefined)); + } + } + } + if (this._pixelStretchEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pixelStretchEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPixelStretchEffectAttribute((this._pixelStretchEffect_0_0value as PixelStretchEffectOptions | undefined)); + this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPixelStretchEffectAttribute((undefined as PixelStretchEffectOptions | undefined)); + } + } + } + if (this._accessibilityGroup_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityGroup_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityGroup0Attribute((this._accessibilityGroup_0_0value as boolean | undefined)); + this._accessibilityGroup_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityGroup_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityGroup_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityGroup0Attribute((undefined as boolean | undefined)); + } + } + } + if (this._accessibilityText_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityText_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityText0Attribute((this._accessibilityText_0_0value as string | undefined)); + this._accessibilityText_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityText_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityText_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityText0Attribute((undefined as string | undefined)); + } + } + } + if (this._accessibilityNextFocusId_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityNextFocusId_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityNextFocusIdAttribute((this._accessibilityNextFocusId_0_0value as string | undefined)); + this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityNextFocusIdAttribute((undefined as string | undefined)); + } + } + } + if (this._accessibilityDefaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityDefaultFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityDefaultFocusAttribute((this._accessibilityDefaultFocus_0_0value as boolean | undefined)); + this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityDefaultFocusAttribute((undefined as boolean | undefined)); + } + } + } + if (this._accessibilityUseSamePage_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityUseSamePage_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityUseSamePageAttribute((this._accessibilityUseSamePage_0_0value as AccessibilitySamePageMode | undefined)); + this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityUseSamePageAttribute((undefined as AccessibilitySamePageMode | undefined)); + } + } + } + if (this._accessibilityScrollTriggerable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityScrollTriggerable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityScrollTriggerableAttribute((this._accessibilityScrollTriggerable_0_0value as boolean | undefined)); + this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityScrollTriggerableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._accessibilityText_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityText_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityText1Attribute((this._accessibilityText_1_0value as Resource | undefined)); + this._accessibilityText_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityText_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityText_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityText1Attribute((undefined as Resource | undefined)); + } + } + } + if (this._accessibilityRole_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityRole_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityRoleAttribute((this._accessibilityRole_0_0value as AccessibilityRoleType | undefined)); + this._accessibilityRole_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityRole_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityRole_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityRoleAttribute((undefined as AccessibilityRoleType | undefined)); + } + } + } + if (this._onAccessibilityFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAccessibilityFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAccessibilityFocusAttribute((this._onAccessibilityFocus_0_0value as AccessibilityFocusCallback | undefined)); + this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAccessibilityFocusAttribute((undefined as AccessibilityFocusCallback | undefined)); + } + } + } + if (this._accessibilityTextHint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityTextHint_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityTextHintAttribute((this._accessibilityTextHint_0_0value as string | undefined)); + this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityTextHintAttribute((undefined as string | undefined)); + } + } + } + if (this._accessibilityDescription_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityDescription_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityDescription0Attribute((this._accessibilityDescription_0_0value as string | undefined)); + this._accessibilityDescription_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityDescription_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityDescription_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityDescription0Attribute((undefined as string | undefined)); + } + } + } + if (this._accessibilityDescription_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityDescription_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityDescription1Attribute((this._accessibilityDescription_1_0value as Resource | undefined)); + this._accessibilityDescription_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityDescription_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityDescription_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityDescription1Attribute((undefined as Resource | undefined)); + } + } + } + if (this._accessibilityLevel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityLevel_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityLevelAttribute((this._accessibilityLevel_0_0value as string | undefined)); + this._accessibilityLevel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityLevel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityLevel_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityLevelAttribute((undefined as string | undefined)); + } + } + } + if (this._accessibilityVirtualNode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityVirtualNode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityVirtualNodeAttribute((this._accessibilityVirtualNode_0_0value as CustomBuilder | undefined)); + this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityVirtualNodeAttribute((undefined as CustomBuilder | undefined)); + } + } + } + if (this._accessibilityChecked_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityChecked_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityCheckedAttribute((this._accessibilityChecked_0_0value as boolean | undefined)); + this._accessibilityChecked_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityChecked_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityChecked_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityCheckedAttribute((undefined as boolean | undefined)); + } + } + } + if (this._accessibilitySelected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilitySelected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilitySelectedAttribute((this._accessibilitySelected_0_0value as boolean | undefined)); + this._accessibilitySelected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilitySelected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilitySelected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilitySelectedAttribute((undefined as boolean | undefined)); + } + } + } + if (this._obscured_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._obscured_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setObscuredAttribute((this._obscured_0_0value as Array | undefined)); + this._obscured_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._obscured_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._obscured_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setObscuredAttribute((undefined as Array | undefined)); + } + } + } + if (this._reuseId_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._reuseId_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setReuseIdAttribute((this._reuseId_0_0value as string | undefined)); + this._reuseId_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._reuseId_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._reuseId_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setReuseIdAttribute((undefined as string | undefined)); + } + } + } + if (this._reuse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._reuse_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setReuseAttribute((this._reuse_0_0value as ReuseOptions | undefined)); + this._reuse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._reuse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._reuse_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setReuseAttribute((undefined as ReuseOptions | undefined)); + } + } + } + if (this._renderFit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._renderFit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRenderFitAttribute((this._renderFit_0_0value as RenderFit | undefined)); + this._renderFit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._renderFit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._renderFit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRenderFitAttribute((undefined as RenderFit | undefined)); + } + } + } + if (this._gestureModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._gestureModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGestureModifierAttribute((this._gestureModifier_0_0value as GestureModifier | undefined)); + this._gestureModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._gestureModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._gestureModifier_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setGestureModifierAttribute((undefined as GestureModifier | undefined)); + } + } + } + if (this._backgroundBrightness_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundBrightness_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundBrightnessAttribute((this._backgroundBrightness_0_0value as BackgroundBrightnessOptions | undefined)); + this._backgroundBrightness_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundBrightness_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundBrightness_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundBrightnessAttribute((undefined as BackgroundBrightnessOptions | undefined)); + } + } + } + if (this._onGestureJudgeBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onGestureJudgeBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnGestureJudgeBeginAttribute((this._onGestureJudgeBegin_0_0value as ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined)); + this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnGestureJudgeBeginAttribute((undefined as ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined)); + } + } + } + if (this._onGestureRecognizerJudgeBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onGestureRecognizerJudgeBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnGestureRecognizerJudgeBegin0Attribute((this._onGestureRecognizerJudgeBegin_0_0value as GestureRecognizerJudgeBeginCallback | undefined)); + this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnGestureRecognizerJudgeBegin0Attribute((undefined as GestureRecognizerJudgeBeginCallback | undefined)); + } + } + } + if (this._shouldBuiltInRecognizerParallelWith_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._shouldBuiltInRecognizerParallelWith_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShouldBuiltInRecognizerParallelWithAttribute((this._shouldBuiltInRecognizerParallelWith_0_0value as ShouldBuiltInRecognizerParallelWithCallback | undefined)); + this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShouldBuiltInRecognizerParallelWithAttribute((undefined as ShouldBuiltInRecognizerParallelWithCallback | undefined)); + } + } + } + if (this._monopolizeEvents_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._monopolizeEvents_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMonopolizeEventsAttribute((this._monopolizeEvents_0_0value as boolean | undefined)); + this._monopolizeEvents_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._monopolizeEvents_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._monopolizeEvents_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMonopolizeEventsAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onTouchIntercept_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTouchIntercept_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTouchInterceptAttribute((this._onTouchIntercept_0_0value as ((value0: TouchEvent) => HitTestMode) | undefined)); + this._onTouchIntercept_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTouchIntercept_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTouchIntercept_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTouchInterceptAttribute((undefined as ((value0: TouchEvent) => HitTestMode) | undefined)); + } + } + } + if (this._onSizeChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSizeChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSizeChangeAttribute((this._onSizeChange_0_0value as SizeChangeCallback | undefined)); + this._onSizeChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSizeChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSizeChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSizeChangeAttribute((undefined as SizeChangeCallback | undefined)); + } + } + } + if (this._accessibilityFocusDrawLevel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityFocusDrawLevel_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityFocusDrawLevelAttribute((this._accessibilityFocusDrawLevel_0_0value as FocusDrawLevel | undefined)); + this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityFocusDrawLevelAttribute((undefined as FocusDrawLevel | undefined)); + } + } + } + if (this._expandSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._expandSafeArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setExpandSafeAreaAttribute((this._expandSafeArea_0_0value as Array | undefined), (this._expandSafeArea_0_1value as Array | undefined)); + this._expandSafeArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._expandSafeArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._expandSafeArea_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setExpandSafeAreaAttribute((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); + } + } + } + if (this._background_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._background_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundAttribute((this._background_0_0value as CustomBuilder | undefined), (this._background_0_1value as BackgroundOptions | undefined)); + this._background_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._background_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._background_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundAttribute((undefined as CustomBuilder | undefined), (undefined as BackgroundOptions | undefined | undefined)); + } + } + } + if (this._backgroundImage_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundImage_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundImage0Attribute((this._backgroundImage_0_0value as ResourceStr | image.PixelMap | undefined), (this._backgroundImage_0_1value as ImageRepeat | undefined)); + this._backgroundImage_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundImage_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundImage_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundImage0Attribute((undefined as ResourceStr | image.PixelMap | undefined), (undefined as ImageRepeat | undefined | undefined)); + } + } + } + if (this._backgroundImage_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundImage_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundImage1Attribute((this._backgroundImage_1_0value as ResourceStr | image.PixelMap | undefined), (this._backgroundImage_1_1value as BackgroundImageOptions | undefined)); + this._backgroundImage_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundImage_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundImage_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundImage1Attribute((undefined as ResourceStr | image.PixelMap | undefined), (undefined as BackgroundImageOptions | undefined | undefined)); + } + } + } + if (this._backgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundBlurStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundBlurStyleAttribute((this._backgroundBlurStyle_0_0value as BlurStyle | undefined), (this._backgroundBlurStyle_0_1value as BackgroundBlurStyleOptions | undefined), (this._backgroundBlurStyle_0_2value as SystemAdaptiveOptions | undefined)); + this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundBlurStyleAttribute((undefined as BlurStyle | undefined), (undefined as BackgroundBlurStyleOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (this._backgroundEffect_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backgroundEffect_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackgroundEffect1Attribute((this._backgroundEffect_1_0value as BackgroundEffectOptions | undefined), (this._backgroundEffect_1_1value as SystemAdaptiveOptions | undefined)); + this._backgroundEffect_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backgroundEffect_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backgroundEffect_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackgroundEffect1Attribute((undefined as BackgroundEffectOptions | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (this._foregroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._foregroundBlurStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setForegroundBlurStyleAttribute((this._foregroundBlurStyle_0_0value as BlurStyle | undefined), (this._foregroundBlurStyle_0_1value as ForegroundBlurStyleOptions | undefined), (this._foregroundBlurStyle_0_2value as SystemAdaptiveOptions | undefined)); + this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setForegroundBlurStyleAttribute((undefined as BlurStyle | undefined), (undefined as ForegroundBlurStyleOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (this._onClick_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onClick_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnClick1Attribute((this._onClick_1_0value as ((event: ClickEvent) => void) | undefined), (this._onClick_1_1value as number | undefined)); + this._onClick_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onClick_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onClick_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnClick1Attribute((undefined as ((event: ClickEvent) => void) | undefined), (undefined as number | undefined)); + } + } + } + if (this._focusScopeId_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._focusScopeId_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFocusScopeIdAttribute((this._focusScopeId_0_0value as string | undefined), (this._focusScopeId_0_1value as boolean | undefined), (this._focusScopeId_0_2value as boolean | undefined)); + this._focusScopeId_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._focusScopeId_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._focusScopeId_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFocusScopeIdAttribute((undefined as string | undefined), (undefined as boolean | undefined | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (this._focusScopePriority_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._focusScopePriority_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFocusScopePriorityAttribute((this._focusScopePriority_0_0value as string | undefined), (this._focusScopePriority_0_1value as FocusPriority | undefined)); + this._focusScopePriority_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._focusScopePriority_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._focusScopePriority_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFocusScopePriorityAttribute((undefined as string | undefined), (undefined as FocusPriority | undefined | undefined)); + } + } + } + if (this._transition_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._transition_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTransition1Attribute((this._transition_1_0value as TransitionEffect | undefined), (this._transition_1_1value as TransitionFinishCallback | undefined)); + this._transition_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._transition_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._transition_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setTransition1Attribute((undefined as TransitionEffect | undefined), (undefined as TransitionFinishCallback | undefined)); + } + } + } + if (this._gesture_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._gesture_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGestureAttribute((this._gesture_0_0value as GestureType | undefined), (this._gesture_0_1value as GestureMask | undefined)); + this._gesture_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._gesture_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._gesture_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setGestureAttribute((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); + } + } + } + if (this._priorityGesture_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._priorityGesture_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPriorityGestureAttribute((this._priorityGesture_0_0value as GestureType | undefined), (this._priorityGesture_0_1value as GestureMask | undefined)); + this._priorityGesture_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._priorityGesture_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._priorityGesture_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPriorityGestureAttribute((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); + } + } + } + if (this._parallelGesture_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._parallelGesture_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setParallelGestureAttribute((this._parallelGesture_0_0value as GestureType | undefined), (this._parallelGesture_0_1value as GestureMask | undefined)); + this._parallelGesture_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._parallelGesture_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._parallelGesture_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setParallelGestureAttribute((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); + } + } + } + if (this._blur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._blur_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBlurAttribute((this._blur_0_0value as number | undefined), (this._blur_0_1value as BlurOptions | undefined), (this._blur_0_2value as SystemAdaptiveOptions | undefined)); + this._blur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._blur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._blur_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBlurAttribute((undefined as number | undefined), (undefined as BlurOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (this._linearGradientBlur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._linearGradientBlur_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLinearGradientBlurAttribute((this._linearGradientBlur_0_0value as number | undefined), (this._linearGradientBlur_0_1value as LinearGradientBlurOptions | undefined)); + this._linearGradientBlur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._linearGradientBlur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._linearGradientBlur_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLinearGradientBlurAttribute((undefined as number | undefined), (undefined as LinearGradientBlurOptions | undefined)); + } + } + } + if (this._systemBarEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._systemBarEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSystemBarEffectAttribute(); + this._systemBarEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._systemBarEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._systemBarEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSystemBarEffectAttribute(); + } + } + } + if (this._useEffect_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._useEffect_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setUseEffect1Attribute((this._useEffect_1_0value as boolean | undefined), (this._useEffect_1_1value as EffectType | undefined)); + this._useEffect_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._useEffect_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._useEffect_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setUseEffect1Attribute((undefined as boolean | undefined), (undefined as EffectType | undefined)); + } + } + } + if (this._backdropBlur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backdropBlur_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackdropBlurAttribute((this._backdropBlur_0_0value as number | undefined), (this._backdropBlur_0_1value as BlurOptions | undefined), (this._backdropBlur_0_2value as SystemAdaptiveOptions | undefined)); + this._backdropBlur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backdropBlur_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backdropBlur_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackdropBlurAttribute((undefined as number | undefined), (undefined as BlurOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (this._sharedTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sharedTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSharedTransitionAttribute((this._sharedTransition_0_0value as string | undefined), (this._sharedTransition_0_1value as sharedTransitionOptions | undefined)); + this._sharedTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sharedTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sharedTransition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSharedTransitionAttribute((undefined as string | undefined), (undefined as sharedTransitionOptions | undefined | undefined)); + } + } + } + if (this._chainMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._chainMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setChainModeAttribute((this._chainMode_0_0value as Axis | undefined), (this._chainMode_0_1value as ChainStyle | undefined)); + this._chainMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._chainMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._chainMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setChainModeAttribute((undefined as Axis | undefined), (undefined as ChainStyle | undefined)); + } + } + } + if (this._onDrop_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDrop_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDrop1Attribute((this._onDrop_1_0value as OnDragEventCallback | undefined), (this._onDrop_1_1value as DropOptions | undefined)); + this._onDrop_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDrop_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDrop_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDrop1Attribute((undefined as OnDragEventCallback | undefined), (undefined as DropOptions | undefined | undefined)); + } + } + } + if (this._dragPreview_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._dragPreview_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDragPreview1Attribute((this._dragPreview_1_0value as CustomBuilder | DragItemInfo | string | undefined), (this._dragPreview_1_1value as PreviewConfiguration | undefined)); + this._dragPreview_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._dragPreview_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._dragPreview_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setDragPreview1Attribute((undefined as CustomBuilder | DragItemInfo | string | undefined), (undefined as PreviewConfiguration | undefined | undefined)); + } + } + } + if (this._dragPreviewOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._dragPreviewOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDragPreviewOptionsAttribute((this._dragPreviewOptions_0_0value as DragPreviewOptions | undefined), (this._dragPreviewOptions_0_1value as DragInteractionOptions | undefined)); + this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDragPreviewOptionsAttribute((undefined as DragPreviewOptions | undefined), (undefined as DragInteractionOptions | undefined | undefined)); + } + } + } + if (this._overlay_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._overlay_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOverlayAttribute((this._overlay_0_0value as string | CustomBuilder | ComponentContent | undefined), (this._overlay_0_1value as OverlayOptions | undefined)); + this._overlay_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._overlay_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._overlay_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOverlayAttribute((undefined as string | CustomBuilder | ComponentContent | undefined), (undefined as OverlayOptions | undefined | undefined)); + } + } + } + if (this._blendMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._blendMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBlendModeAttribute((this._blendMode_0_0value as BlendMode | undefined), (this._blendMode_0_1value as BlendApplyType | undefined)); + this._blendMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._blendMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._blendMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBlendModeAttribute((undefined as BlendMode | undefined), (undefined as BlendApplyType | undefined | undefined)); + } + } + } + if (this._geometryTransition_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._geometryTransition_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGeometryTransition1Attribute((this._geometryTransition_1_0value as string | undefined), (this._geometryTransition_1_1value as GeometryTransitionOptions | undefined)); + this._geometryTransition_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._geometryTransition_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._geometryTransition_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setGeometryTransition1Attribute((undefined as string | undefined), (undefined as GeometryTransitionOptions | undefined | undefined)); + } + } + } + if (this._bindTips_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindTips_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindTipsAttribute((this._bindTips_0_0value as TipsMessageType | undefined), (this._bindTips_0_1value as TipsOptions | undefined)); + this._bindTips_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindTips_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindTips_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindTipsAttribute((undefined as TipsMessageType | undefined), (undefined as TipsOptions | undefined | undefined)); + } + } + } + if (this._bindPopup_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindPopup_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindPopupAttribute((this._bindPopup_0_0value as boolean | undefined), (this._bindPopup_0_1value as PopupOptions | CustomPopupOptions | undefined)); + this._bindPopup_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindPopup_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindPopup_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindPopupAttribute((undefined as boolean | undefined), (undefined as PopupOptions | CustomPopupOptions | undefined)); + } + } + } + if (this._bindMenu_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindMenu_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindMenu0Attribute((this._bindMenu_0_0value as Array | CustomBuilder | undefined), (this._bindMenu_0_1value as MenuOptions | undefined)); + this._bindMenu_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindMenu_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindMenu_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindMenu0Attribute((undefined as Array | CustomBuilder | undefined), (undefined as MenuOptions | undefined | undefined)); + } + } + } + if (this._bindMenu_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindMenu_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindMenu1Attribute((this._bindMenu_1_0value as boolean | undefined), (this._bindMenu_1_1value as Array | CustomBuilder | undefined), (this._bindMenu_1_2value as MenuOptions | undefined)); + this._bindMenu_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindMenu_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindMenu_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindMenu1Attribute((undefined as boolean | undefined), (undefined as Array | CustomBuilder | undefined), (undefined as MenuOptions | undefined | undefined)); + } + } + } + if (this._bindContextMenu_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindContextMenu_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindContextMenu0Attribute((this._bindContextMenu_0_0value as CustomBuilder | undefined), (this._bindContextMenu_0_1value as ResponseType | undefined), (this._bindContextMenu_0_2value as ContextMenuOptions | undefined)); + this._bindContextMenu_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindContextMenu_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindContextMenu_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindContextMenu0Attribute((undefined as CustomBuilder | undefined), (undefined as ResponseType | undefined), (undefined as ContextMenuOptions | undefined | undefined)); + } + } + } + if (this._bindContextMenu_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindContextMenu_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindContextMenu1Attribute((this._bindContextMenu_1_0value as boolean | undefined), (this._bindContextMenu_1_1value as CustomBuilder | undefined), (this._bindContextMenu_1_2value as ContextMenuOptions | undefined)); + this._bindContextMenu_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindContextMenu_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindContextMenu_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindContextMenu1Attribute((undefined as boolean | undefined), (undefined as CustomBuilder | undefined), (undefined as ContextMenuOptions | undefined | undefined)); + } + } + } + if (this._bindContentCover_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindContentCover_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindContentCover0Attribute((this._bindContentCover_0_0value as boolean | Bindable | undefined), (this._bindContentCover_0_1value as CustomBuilder | undefined), (this._bindContentCover_0_2value as ModalTransition | undefined)); + this._bindContentCover_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindContentCover_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindContentCover_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindContentCover0Attribute((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as ModalTransition | undefined | undefined)); + } + } + } + if (this._bindContentCover_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindContentCover_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindContentCover1Attribute((this._bindContentCover_1_0value as boolean | Bindable | undefined), (this._bindContentCover_1_1value as CustomBuilder | undefined), (this._bindContentCover_1_2value as ContentCoverOptions | undefined)); + this._bindContentCover_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindContentCover_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindContentCover_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindContentCover1Attribute((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as ContentCoverOptions | undefined | undefined)); + } + } + } + if (this._bindSheet_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindSheet_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindSheetAttribute((this._bindSheet_0_0value as boolean | Bindable | undefined), (this._bindSheet_0_1value as CustomBuilder | undefined), (this._bindSheet_0_2value as SheetOptions | undefined)); + this._bindSheet_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindSheet_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindSheet_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindSheetAttribute((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as SheetOptions | undefined | undefined)); + } + } + } + if (this._onVisibleAreaChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onVisibleAreaChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnVisibleAreaChangeAttribute((this._onVisibleAreaChange_0_0value as Array | undefined), (this._onVisibleAreaChange_0_1value as VisibleAreaChangeCallback | undefined)); + this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnVisibleAreaChangeAttribute((undefined as Array | undefined), (undefined as VisibleAreaChangeCallback | undefined)); + } + } + } + if (this._onVisibleAreaApproximateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onVisibleAreaApproximateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnVisibleAreaApproximateChangeAttribute((this._onVisibleAreaApproximateChange_0_0value as VisibleAreaEventOptions | undefined), (this._onVisibleAreaApproximateChange_0_1value as VisibleAreaChangeCallback | undefined)); + this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnVisibleAreaApproximateChangeAttribute((undefined as VisibleAreaEventOptions | undefined), (undefined as VisibleAreaChangeCallback | undefined)); + } + } + } + if (this._keyboardShortcut_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._keyboardShortcut_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setKeyboardShortcutAttribute((this._keyboardShortcut_0_0value as string | FunctionKey | undefined), (this._keyboardShortcut_0_1value as Array | undefined), (this._keyboardShortcut_0_2value as (() => void) | undefined)); + this._keyboardShortcut_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._keyboardShortcut_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._keyboardShortcut_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setKeyboardShortcutAttribute((undefined as string | FunctionKey | undefined), (undefined as Array | undefined), (undefined as (() => void) | undefined | undefined)); + } + } + } + if (this._accessibilityGroup_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._accessibilityGroup_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAccessibilityGroup1Attribute((this._accessibilityGroup_1_0value as boolean | undefined), (this._accessibilityGroup_1_1value as AccessibilityOptions | undefined)); + this._accessibilityGroup_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._accessibilityGroup_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._accessibilityGroup_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setAccessibilityGroup1Attribute((undefined as boolean | undefined), (undefined as AccessibilityOptions | undefined)); + } + } + } + if (this._onGestureRecognizerJudgeBegin_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onGestureRecognizerJudgeBegin_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnGestureRecognizerJudgeBegin1Attribute((this._onGestureRecognizerJudgeBegin_1_0value as GestureRecognizerJudgeBeginCallback | undefined), (this._onGestureRecognizerJudgeBegin_1_1value as boolean | undefined)); + this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnGestureRecognizerJudgeBegin1Attribute((undefined as GestureRecognizerJudgeBeginCallback | undefined), (undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: CommonMethodModifier): void { + if (modifier._width_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._width_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.width(modifier._width_0_0value); + break; + } + default: { + this.width((undefined as Length | LayoutPolicy | undefined)); + } + } + } + if (modifier._height_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._height_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.height(modifier._height_0_0value); + break; + } + default: { + this.height((undefined as Length | LayoutPolicy | undefined)); + } + } + } + if (modifier._drawModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._drawModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.drawModifier(modifier._drawModifier_0_0value); + break; + } + default: { + this.drawModifier((undefined as DrawModifier | undefined)); + } + } + } + if (modifier._responseRegion_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._responseRegion_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.responseRegion(modifier._responseRegion_0_0value); + break; + } + default: { + this.responseRegion((undefined as Array | Rectangle | undefined)); + } + } + } + if (modifier._mouseResponseRegion_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mouseResponseRegion_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mouseResponseRegion(modifier._mouseResponseRegion_0_0value); + break; + } + default: { + this.mouseResponseRegion((undefined as Array | Rectangle | undefined)); + } + } + } + if (modifier._size_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._size_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.size(modifier._size_0_0value); + break; + } + default: { + this.size((undefined as SizeOptions | undefined)); + } + } + } + if (modifier._constraintSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._constraintSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.constraintSize(modifier._constraintSize_0_0value); + break; + } + default: { + this.constraintSize((undefined as ConstraintSizeOptions | undefined)); + } + } + } + if (modifier._hitTestBehavior_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hitTestBehavior_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hitTestBehavior(modifier._hitTestBehavior_0_0value); + break; + } + default: { + this.hitTestBehavior((undefined as HitTestMode | undefined)); + } + } + } + if (modifier._onChildTouchTest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChildTouchTest_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChildTouchTest(modifier._onChildTouchTest_0_0value); + break; + } + default: { + this.onChildTouchTest((undefined as ((value: Array) => TouchResult) | undefined)); + } + } + } + if (modifier._layoutWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._layoutWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.layoutWeight(modifier._layoutWeight_0_0value); + break; + } + default: { + this.layoutWeight((undefined as number | string | undefined)); + } + } + } + if (modifier._chainWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._chainWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.chainWeight(modifier._chainWeight_0_0value); + break; + } + default: { + this.chainWeight((undefined as ChainWeightOptions | undefined)); + } + } + } + if (modifier._padding_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._padding_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.padding(modifier._padding_0_0value); + break; + } + default: { + this.padding((undefined as Padding | Length | LocalizedPadding | undefined)); + } + } + } + if (modifier._safeAreaPadding_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._safeAreaPadding_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.safeAreaPadding(modifier._safeAreaPadding_0_0value); + break; + } + default: { + this.safeAreaPadding((undefined as Padding | LengthMetrics | LocalizedPadding | undefined)); + } + } + } + if (modifier._margin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._margin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.margin(modifier._margin_0_0value); + break; + } + default: { + this.margin((undefined as Padding | Length | LocalizedPadding | undefined)); + } + } + } + if (modifier._backgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundColor(modifier._backgroundColor_0_0value); + break; + } + default: { + this.backgroundColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._pixelRound_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pixelRound_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pixelRound(modifier._pixelRound_0_0value); + break; + } + default: { + this.pixelRound((undefined as PixelRoundPolicy | undefined)); + } + } + } + if (modifier._backgroundImageSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundImageSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImageSize(modifier._backgroundImageSize_0_0value); + break; + } + default: { + this.backgroundImageSize((undefined as SizeOptions | ImageSize | undefined)); + } + } + } + if (modifier._backgroundImagePosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundImagePosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImagePosition(modifier._backgroundImagePosition_0_0value); + break; + } + default: { + this.backgroundImagePosition((undefined as Position | Alignment | undefined)); + } + } + } + if (modifier._backgroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundEffect(modifier._backgroundEffect_0_0value); + break; + } + default: { + this.backgroundEffect((undefined as BackgroundEffectOptions | undefined)); + } + } + } + if (modifier._backgroundImageResizable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundImageResizable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImageResizable(modifier._backgroundImageResizable_0_0value); + break; + } + default: { + this.backgroundImageResizable((undefined as ResizableOptions | undefined)); + } + } + } + if (modifier._foregroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._foregroundEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.foregroundEffect(modifier._foregroundEffect_0_0value); + break; + } + default: { + this.foregroundEffect((undefined as ForegroundEffectOptions | undefined)); + } + } + } + if (modifier._visualEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._visualEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.visualEffect(modifier._visualEffect_0_0value); + break; + } + default: { + this.visualEffect((undefined as uiEffect.VisualEffect | undefined)); + } + } + } + if (modifier._backgroundFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundFilter(modifier._backgroundFilter_0_0value); + break; + } + default: { + this.backgroundFilter((undefined as uiEffect.Filter | undefined)); + } + } + } + if (modifier._foregroundFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._foregroundFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.foregroundFilter(modifier._foregroundFilter_0_0value); + break; + } + default: { + this.foregroundFilter((undefined as uiEffect.Filter | undefined)); + } + } + } + if (modifier._compositingFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._compositingFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.compositingFilter(modifier._compositingFilter_0_0value); + break; + } + default: { + this.compositingFilter((undefined as uiEffect.Filter | undefined)); + } + } + } + if (modifier._opacity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._opacity_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.opacity(modifier._opacity_0_0value); + break; + } + default: { + this.opacity((undefined as number | Resource | undefined)); + } + } + } + if (modifier._border_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._border_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.border(modifier._border_0_0value); + break; + } + default: { + this.border((undefined as BorderOptions | undefined)); + } + } + } + if (modifier._borderStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._borderStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.borderStyle(modifier._borderStyle_0_0value); + break; + } + default: { + this.borderStyle((undefined as BorderStyle | EdgeStyles | undefined)); + } + } + } + if (modifier._borderWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._borderWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.borderWidth(modifier._borderWidth_0_0value); + break; + } + default: { + this.borderWidth((undefined as Length | EdgeWidths | LocalizedEdgeWidths | undefined)); + } + } + } + if (modifier._borderColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._borderColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.borderColor(modifier._borderColor_0_0value); + break; + } + default: { + this.borderColor((undefined as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); + } + } + } + if (modifier._borderRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._borderRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.borderRadius(modifier._borderRadius_0_0value); + break; + } + default: { + this.borderRadius((undefined as Length | BorderRadiuses | LocalizedBorderRadiuses | undefined)); + } + } + } + if (modifier._borderImage_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._borderImage_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.borderImage(modifier._borderImage_0_0value); + break; + } + default: { + this.borderImage((undefined as BorderImageOption | undefined)); + } + } + } + if (modifier._outline_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._outline_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.outline(modifier._outline_0_0value); + break; + } + default: { + this.outline((undefined as OutlineOptions | undefined)); + } + } + } + if (modifier._outlineStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._outlineStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.outlineStyle(modifier._outlineStyle_0_0value); + break; + } + default: { + this.outlineStyle((undefined as OutlineStyle | EdgeOutlineStyles | undefined)); + } + } + } + if (modifier._outlineWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._outlineWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.outlineWidth(modifier._outlineWidth_0_0value); + break; + } + default: { + this.outlineWidth((undefined as Dimension | EdgeOutlineWidths | undefined)); + } + } + } + if (modifier._outlineColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._outlineColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.outlineColor(modifier._outlineColor_0_0value); + break; + } + default: { + this.outlineColor((undefined as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); + } + } + } + if (modifier._outlineRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._outlineRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.outlineRadius(modifier._outlineRadius_0_0value); + break; + } + default: { + this.outlineRadius((undefined as Dimension | OutlineRadiuses | undefined)); + } + } + } + if (modifier._foregroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._foregroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.foregroundColor(modifier._foregroundColor_0_0value); + break; + } + default: { + this.foregroundColor((undefined as ResourceColor | ColoringStrategy | undefined)); + } + } + } + if (modifier._onClick_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onClick_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onClick(modifier._onClick_0_0value); + break; + } + default: { + this.onClick((undefined as ((event: ClickEvent) => void) | undefined)); + } + } + } + if (modifier._onHover_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onHover_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onHover(modifier._onHover_0_0value); + break; + } + default: { + this.onHover((undefined as ((isHover: boolean,event: HoverEvent) => void) | undefined)); + } + } + } + if (modifier._onHoverMove_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onHoverMove_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onHoverMove(modifier._onHoverMove_0_0value); + break; + } + default: { + this.onHoverMove((undefined as ((value0: HoverEvent) => void) | undefined)); + } + } + } + if (modifier._onAccessibilityHover_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAccessibilityHover_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAccessibilityHover(modifier._onAccessibilityHover_0_0value); + break; + } + default: { + this.onAccessibilityHover((undefined as AccessibilityCallback | undefined)); + } + } + } + if (modifier._hoverEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hoverEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hoverEffect(modifier._hoverEffect_0_0value); + break; + } + default: { + this.hoverEffect((undefined as HoverEffect | undefined)); + } + } + } + if (modifier._onMouse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onMouse_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onMouse(modifier._onMouse_0_0value); + break; + } + default: { + this.onMouse((undefined as ((event: MouseEvent) => void) | undefined)); + } + } + } + if (modifier._onTouch_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTouch_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTouch(modifier._onTouch_0_0value); + break; + } + default: { + this.onTouch((undefined as ((event: TouchEvent) => void) | undefined)); + } + } + } + if (modifier._onKeyEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onKeyEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onKeyEvent(modifier._onKeyEvent_0_0value); + break; + } + default: { + this.onKeyEvent((undefined as ((event: KeyEvent) => void) | undefined)); + } + } + } + if (modifier._onDigitalCrown_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDigitalCrown_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDigitalCrown(modifier._onDigitalCrown_0_0value); + break; + } + default: { + this.onDigitalCrown((undefined as ((value0: CrownEvent) => void) | undefined)); + } + } + } + if (modifier._onKeyPreIme_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onKeyPreIme_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onKeyPreIme(modifier._onKeyPreIme_0_0value); + break; + } + default: { + this.onKeyPreIme((undefined as ((value0: KeyEvent) => boolean) | undefined)); + } + } + } + if (modifier._onKeyEventDispatch_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onKeyEventDispatch_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onKeyEventDispatch(modifier._onKeyEventDispatch_0_0value); + break; + } + default: { + this.onKeyEventDispatch((undefined as ((value0: KeyEvent) => boolean) | undefined)); + } + } + } + if (modifier._onFocusAxisEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFocusAxisEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFocusAxisEvent(modifier._onFocusAxisEvent_0_0value); + break; + } + default: { + this.onFocusAxisEvent((undefined as ((value0: FocusAxisEvent) => void) | undefined)); + } + } + } + if (modifier._onAxisEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAxisEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAxisEvent(modifier._onAxisEvent_0_0value); + break; + } + default: { + this.onAxisEvent((undefined as ((value0: AxisEvent) => void) | undefined)); + } + } + } + if (modifier._focusable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._focusable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusable(modifier._focusable_0_0value); + break; + } + default: { + this.focusable((undefined as boolean | undefined)); + } + } + } + if (modifier._nextFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._nextFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.nextFocus(modifier._nextFocus_0_0value); + break; + } + default: { + this.nextFocus((undefined as FocusMovement | undefined)); + } + } + } + if (modifier._tabStop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._tabStop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.tabStop(modifier._tabStop_0_0value); + break; + } + default: { + this.tabStop((undefined as boolean | undefined)); + } + } + } + if (modifier._onFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFocus(modifier._onFocus_0_0value); + break; + } + default: { + this.onFocus((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onBlur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onBlur_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onBlur(modifier._onBlur_0_0value); + break; + } + default: { + this.onBlur((undefined as (() => void) | undefined)); + } + } + } + if (modifier._tabIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._tabIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.tabIndex(modifier._tabIndex_0_0value); + break; + } + default: { + this.tabIndex((undefined as number | undefined)); + } + } + } + if (modifier._defaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._defaultFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.defaultFocus(modifier._defaultFocus_0_0value); + break; + } + default: { + this.defaultFocus((undefined as boolean | undefined)); + } + } + } + if (modifier._groupDefaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._groupDefaultFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.groupDefaultFocus(modifier._groupDefaultFocus_0_0value); + break; + } + default: { + this.groupDefaultFocus((undefined as boolean | undefined)); + } + } + } + if (modifier._focusOnTouch_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._focusOnTouch_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusOnTouch(modifier._focusOnTouch_0_0value); + break; + } + default: { + this.focusOnTouch((undefined as boolean | undefined)); + } + } + } + if (modifier._focusBox_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._focusBox_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusBox(modifier._focusBox_0_0value); + break; + } + default: { + this.focusBox((undefined as FocusBoxStyle | undefined)); + } + } + } + if (modifier._animation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._animation_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.animation(modifier._animation_0_0value); + break; + } + default: { + this.animation((undefined as AnimateParam | undefined)); + } + } + } + if (modifier._transition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._transition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.transition(modifier._transition_0_0value); + break; + } + default: { + this.transition((undefined as TransitionEffect | undefined)); + } + } + } + if (modifier._motionBlur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._motionBlur_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.motionBlur(modifier._motionBlur_0_0value); + break; + } + default: { + this.motionBlur((undefined as MotionBlurOptions | undefined)); + } + } + } + if (modifier._brightness_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._brightness_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.brightness(modifier._brightness_0_0value); + break; + } + default: { + this.brightness((undefined as number | undefined)); + } + } + } + if (modifier._contrast_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._contrast_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.contrast(modifier._contrast_0_0value); + break; + } + default: { + this.contrast((undefined as number | undefined)); + } + } + } + if (modifier._grayscale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._grayscale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.grayscale(modifier._grayscale_0_0value); + break; + } + default: { + this.grayscale((undefined as number | undefined)); + } + } + } + if (modifier._colorBlend_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._colorBlend_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.colorBlend(modifier._colorBlend_0_0value); + break; + } + default: { + this.colorBlend((undefined as Color | string | Resource | undefined)); + } + } + } + if (modifier._saturate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._saturate_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.saturate(modifier._saturate_0_0value); + break; + } + default: { + this.saturate((undefined as number | undefined)); + } + } + } + if (modifier._sepia_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sepia_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sepia(modifier._sepia_0_0value); + break; + } + default: { + this.sepia((undefined as number | undefined)); + } + } + } + if (modifier._invert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._invert_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.invert(modifier._invert_0_0value); + break; + } + default: { + this.invert((undefined as number | InvertOptions | undefined)); + } + } + } + if (modifier._hueRotate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hueRotate_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hueRotate(modifier._hueRotate_0_0value); + break; + } + default: { + this.hueRotate((undefined as number | string | undefined)); + } + } + } + if (modifier._useShadowBatching_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._useShadowBatching_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.useShadowBatching(modifier._useShadowBatching_0_0value); + break; + } + default: { + this.useShadowBatching((undefined as boolean | undefined)); + } + } + } + if (modifier._useEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._useEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.useEffect(modifier._useEffect_0_0value); + break; + } + default: { + this.useEffect((undefined as boolean | undefined)); + } + } + } + if (modifier._renderGroup_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._renderGroup_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.renderGroup(modifier._renderGroup_0_0value); + break; + } + default: { + this.renderGroup((undefined as boolean | undefined)); + } + } + } + if (modifier._freeze_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._freeze_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.freeze(modifier._freeze_0_0value); + break; + } + default: { + this.freeze((undefined as boolean | undefined)); + } + } + } + if (modifier._translate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._translate_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.translate(modifier._translate_0_0value); + break; + } + default: { + this.translate((undefined as TranslateOptions | undefined)); + } + } + } + if (modifier._scale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._scale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.scale(modifier._scale_0_0value); + break; + } + default: { + this.scale((undefined as ScaleOptions | undefined)); + } + } + } + if (modifier._rotate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._rotate_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.rotate(modifier._rotate_0_0value); + break; + } + default: { + this.rotate((undefined as RotateOptions | undefined)); + } + } + } + if (modifier._transform_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._transform_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.transform(modifier._transform_0_0value); + break; + } + default: { + this.transform((undefined as Object | undefined)); + } + } + } + if (modifier._onAppear_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAppear_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAppear(modifier._onAppear_0_0value); + break; + } + default: { + this.onAppear((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onDisAppear_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDisAppear_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDisAppear(modifier._onDisAppear_0_0value); + break; + } + default: { + this.onDisAppear((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onAttach_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAttach_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAttach(modifier._onAttach_0_0value); + break; + } + default: { + this.onAttach((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onDetach_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDetach_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDetach(modifier._onDetach_0_0value); + break; + } + default: { + this.onDetach((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onAreaChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAreaChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAreaChange(modifier._onAreaChange_0_0value); + break; + } + default: { + this.onAreaChange((undefined as ((oldValue: Area,newValue: Area) => void) | undefined)); + } + } + } + if (modifier._visibility_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._visibility_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.visibility(modifier._visibility_0_0value); + break; + } + default: { + this.visibility((undefined as Visibility | undefined)); + } + } + } + if (modifier._flexGrow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._flexGrow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.flexGrow(modifier._flexGrow_0_0value); + break; + } + default: { + this.flexGrow((undefined as number | undefined)); + } + } + } + if (modifier._flexShrink_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._flexShrink_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.flexShrink(modifier._flexShrink_0_0value); + break; + } + default: { + this.flexShrink((undefined as number | undefined)); + } + } + } + if (modifier._flexBasis_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._flexBasis_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.flexBasis(modifier._flexBasis_0_0value); + break; + } + default: { + this.flexBasis((undefined as number | string | undefined)); + } + } + } + if (modifier._alignSelf_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alignSelf_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alignSelf(modifier._alignSelf_0_0value); + break; + } + default: { + this.alignSelf((undefined as ItemAlign | undefined)); + } + } + } + if (modifier._displayPriority_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._displayPriority_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.displayPriority(modifier._displayPriority_0_0value); + break; + } + default: { + this.displayPriority((undefined as number | undefined)); + } + } + } + if (modifier._zIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._zIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.zIndex(modifier._zIndex_0_0value); + break; + } + default: { + this.zIndex((undefined as number | undefined)); + } + } + } + if (modifier._direction_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._direction_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.direction(modifier._direction_0_0value); + break; + } + default: { + this.direction((undefined as Direction | undefined)); + } + } + } + if (modifier._align_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._align_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.align(modifier._align_0_0value); + break; + } + default: { + this.align((undefined as Alignment | undefined)); + } + } + } + if (modifier._position_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._position_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.position(modifier._position_0_0value); + break; + } + default: { + this.position((undefined as Position | Edges | LocalizedEdges | undefined)); + } + } + } + if (modifier._markAnchor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._markAnchor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.markAnchor(modifier._markAnchor_0_0value); + break; + } + default: { + this.markAnchor((undefined as Position | LocalizedPosition | undefined)); + } + } + } + if (modifier._offset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._offset_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.offset(modifier._offset_0_0value); + break; + } + default: { + this.offset((undefined as Position | Edges | LocalizedEdges | undefined)); + } + } + } + if (modifier._enabled_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enabled_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enabled(modifier._enabled_0_0value); + break; + } + default: { + this.enabled((undefined as boolean | undefined)); + } + } + } + if (modifier._alignRules_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alignRules_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alignRules(modifier._alignRules_0_0value); + break; + } + default: { + this.alignRules((undefined as AlignRuleOption | undefined)); + } + } + } + if (modifier._alignRules_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alignRules_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alignRules(modifier._alignRules_1_0value); + break; + } + default: { + this.alignRules((undefined as LocalizedAlignRuleOptions | undefined)); + } + } + } + if (modifier._aspectRatio_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._aspectRatio_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.aspectRatio(modifier._aspectRatio_0_0value); + break; + } + default: { + this.aspectRatio((undefined as number | undefined)); + } + } + } + if (modifier._clickEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._clickEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.clickEffect(modifier._clickEffect_0_0value); + break; + } + default: { + this.clickEffect((undefined as ClickEffect | undefined)); + } + } + } + if (modifier._onDragStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDragStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDragStart(modifier._onDragStart_0_0value); + break; + } + default: { + this.onDragStart((undefined as ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined)); + } + } + } + if (modifier._onDragEnter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDragEnter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDragEnter(modifier._onDragEnter_0_0value); + break; + } + default: { + this.onDragEnter((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (modifier._onDragMove_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDragMove_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDragMove(modifier._onDragMove_0_0value); + break; + } + default: { + this.onDragMove((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (modifier._onDragLeave_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDragLeave_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDragLeave(modifier._onDragLeave_0_0value); + break; + } + default: { + this.onDragLeave((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (modifier._onDrop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDrop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDrop(modifier._onDrop_0_0value); + break; + } + default: { + this.onDrop((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (modifier._onDragEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDragEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDragEnd(modifier._onDragEnd_0_0value); + break; + } + default: { + this.onDragEnd((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); + } + } + } + if (modifier._allowDrop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._allowDrop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.allowDrop(modifier._allowDrop_0_0value); + break; + } + default: { + this.allowDrop((undefined as Array | undefined)); + } + } + } + if (modifier._draggable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._draggable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.draggable(modifier._draggable_0_0value); + break; + } + default: { + this.draggable((undefined as boolean | undefined)); + } + } + } + if (modifier._dragPreview_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._dragPreview_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.dragPreview(modifier._dragPreview_0_0value); + break; + } + default: { + this.dragPreview((undefined as CustomBuilder | DragItemInfo | string | undefined)); + } + } + } + if (modifier._onPreDrag_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPreDrag_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPreDrag(modifier._onPreDrag_0_0value); + break; + } + default: { + this.onPreDrag((undefined as ((value0: PreDragStatus) => void) | undefined)); + } + } + } + if (modifier._linearGradient_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._linearGradient_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.linearGradient(modifier._linearGradient_0_0value); + break; + } + default: { + this.linearGradient((undefined as LinearGradientOptions | undefined)); + } + } + } + if (modifier._sweepGradient_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sweepGradient_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sweepGradient(modifier._sweepGradient_0_0value); + break; + } + default: { + this.sweepGradient((undefined as SweepGradientOptions | undefined)); + } + } + } + if (modifier._radialGradient_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._radialGradient_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.radialGradient(modifier._radialGradient_0_0value); + break; + } + default: { + this.radialGradient((undefined as RadialGradientOptions | undefined)); + } + } + } + if (modifier._motionPath_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._motionPath_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.motionPath(modifier._motionPath_0_0value); + break; + } + default: { + this.motionPath((undefined as MotionPathOptions | undefined)); + } + } + } + if (modifier._shadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._shadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.shadow(modifier._shadow_0_0value); + break; + } + default: { + this.shadow((undefined as ShadowOptions | ShadowStyle | undefined)); + } + } + } + if (modifier._clip_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._clip_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.clip(modifier._clip_0_0value); + break; + } + default: { + this.clip((undefined as boolean | undefined)); + } + } + } + if (modifier._clipShape_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._clipShape_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.clipShape(modifier._clipShape_0_0value); + break; + } + default: { + this.clipShape((undefined as CircleShape | EllipseShape | PathShape | RectShape | undefined)); + } + } + } + if (modifier._mask_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mask_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mask(modifier._mask_0_0value); + break; + } + default: { + this.mask((undefined as ProgressMask | undefined)); + } + } + } + if (modifier._maskShape_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maskShape_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maskShape(modifier._maskShape_0_0value); + break; + } + default: { + this.maskShape((undefined as CircleShape | EllipseShape | PathShape | RectShape | undefined)); + } + } + } + if (modifier._key_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._key_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.key(modifier._key_0_0value); + break; + } + default: { + this.key((undefined as string | undefined)); + } + } + } + if (modifier._id_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._id_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.id(modifier._id_0_0value); + break; + } + default: { + this.id((undefined as string | undefined)); + } + } + } + if (modifier._geometryTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._geometryTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.geometryTransition(modifier._geometryTransition_0_0value); + break; + } + default: { + this.geometryTransition((undefined as string | undefined)); + } + } + } + if (modifier._restoreId_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._restoreId_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.restoreId(modifier._restoreId_0_0value); + break; + } + default: { + this.restoreId((undefined as number | undefined)); + } + } + } + if (modifier._sphericalEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sphericalEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sphericalEffect(modifier._sphericalEffect_0_0value); + break; + } + default: { + this.sphericalEffect((undefined as number | undefined)); + } + } + } + if (modifier._lightUpEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._lightUpEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.lightUpEffect(modifier._lightUpEffect_0_0value); + break; + } + default: { + this.lightUpEffect((undefined as number | undefined)); + } + } + } + if (modifier._pixelStretchEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pixelStretchEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pixelStretchEffect(modifier._pixelStretchEffect_0_0value); + break; + } + default: { + this.pixelStretchEffect((undefined as PixelStretchEffectOptions | undefined)); + } + } + } + if (modifier._accessibilityGroup_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityGroup_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityGroup(modifier._accessibilityGroup_0_0value); + break; + } + default: { + this.accessibilityGroup((undefined as boolean | undefined)); + } + } + } + if (modifier._accessibilityText_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityText_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityText(modifier._accessibilityText_0_0value); + break; + } + default: { + this.accessibilityText((undefined as string | undefined)); + } + } + } + if (modifier._accessibilityNextFocusId_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityNextFocusId_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityNextFocusId(modifier._accessibilityNextFocusId_0_0value); + break; + } + default: { + this.accessibilityNextFocusId((undefined as string | undefined)); + } + } + } + if (modifier._accessibilityDefaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityDefaultFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityDefaultFocus(modifier._accessibilityDefaultFocus_0_0value); + break; + } + default: { + this.accessibilityDefaultFocus((undefined as boolean | undefined)); + } + } + } + if (modifier._accessibilityUseSamePage_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityUseSamePage_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityUseSamePage(modifier._accessibilityUseSamePage_0_0value); + break; + } + default: { + this.accessibilityUseSamePage((undefined as AccessibilitySamePageMode | undefined)); + } + } + } + if (modifier._accessibilityScrollTriggerable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityScrollTriggerable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityScrollTriggerable(modifier._accessibilityScrollTriggerable_0_0value); + break; + } + default: { + this.accessibilityScrollTriggerable((undefined as boolean | undefined)); + } + } + } + if (modifier._accessibilityText_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityText_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityText(modifier._accessibilityText_1_0value); + break; + } + default: { + this.accessibilityText((undefined as Resource | undefined)); + } + } + } + if (modifier._accessibilityRole_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityRole_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityRole(modifier._accessibilityRole_0_0value); + break; + } + default: { + this.accessibilityRole((undefined as AccessibilityRoleType | undefined)); + } + } + } + if (modifier._onAccessibilityFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAccessibilityFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAccessibilityFocus(modifier._onAccessibilityFocus_0_0value); + break; + } + default: { + this.onAccessibilityFocus((undefined as AccessibilityFocusCallback | undefined)); + } + } + } + if (modifier._accessibilityTextHint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityTextHint_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityTextHint(modifier._accessibilityTextHint_0_0value); + break; + } + default: { + this.accessibilityTextHint((undefined as string | undefined)); + } + } + } + if (modifier._accessibilityDescription_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityDescription_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityDescription(modifier._accessibilityDescription_0_0value); + break; + } + default: { + this.accessibilityDescription((undefined as string | undefined)); + } + } + } + if (modifier._accessibilityDescription_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityDescription_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityDescription(modifier._accessibilityDescription_1_0value); + break; + } + default: { + this.accessibilityDescription((undefined as Resource | undefined)); + } + } + } + if (modifier._accessibilityLevel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityLevel_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityLevel(modifier._accessibilityLevel_0_0value); + break; + } + default: { + this.accessibilityLevel((undefined as string | undefined)); + } + } + } + if (modifier._accessibilityVirtualNode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityVirtualNode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityVirtualNode(modifier._accessibilityVirtualNode_0_0value); + break; + } + default: { + this.accessibilityVirtualNode((undefined as CustomBuilder | undefined)); + } + } + } + if (modifier._accessibilityChecked_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityChecked_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityChecked(modifier._accessibilityChecked_0_0value); + break; + } + default: { + this.accessibilityChecked((undefined as boolean | undefined)); + } + } + } + if (modifier._accessibilitySelected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilitySelected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilitySelected(modifier._accessibilitySelected_0_0value); + break; + } + default: { + this.accessibilitySelected((undefined as boolean | undefined)); + } + } + } + if (modifier._obscured_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._obscured_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.obscured(modifier._obscured_0_0value); + break; + } + default: { + this.obscured((undefined as Array | undefined)); + } + } + } + if (modifier._reuseId_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._reuseId_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.reuseId(modifier._reuseId_0_0value); + break; + } + default: { + this.reuseId((undefined as string | undefined)); + } + } + } + if (modifier._reuse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._reuse_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.reuse(modifier._reuse_0_0value); + break; + } + default: { + this.reuse((undefined as ReuseOptions | undefined)); + } + } + } + if (modifier._renderFit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._renderFit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.renderFit(modifier._renderFit_0_0value); + break; + } + default: { + this.renderFit((undefined as RenderFit | undefined)); + } + } + } + if (modifier._gestureModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._gestureModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.gestureModifier(modifier._gestureModifier_0_0value); + break; + } + default: { + this.gestureModifier((undefined as GestureModifier | undefined)); + } + } + } + if (modifier._backgroundBrightness_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundBrightness_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundBrightness(modifier._backgroundBrightness_0_0value); + break; + } + default: { + this.backgroundBrightness((undefined as BackgroundBrightnessOptions | undefined)); + } + } + } + if (modifier._onGestureJudgeBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onGestureJudgeBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onGestureJudgeBegin(modifier._onGestureJudgeBegin_0_0value); + break; + } + default: { + this.onGestureJudgeBegin((undefined as ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined)); + } + } + } + if (modifier._onGestureRecognizerJudgeBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onGestureRecognizerJudgeBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onGestureRecognizerJudgeBegin(modifier._onGestureRecognizerJudgeBegin_0_0value); + break; + } + default: { + this.onGestureRecognizerJudgeBegin((undefined as GestureRecognizerJudgeBeginCallback | undefined)); + } + } + } + if (modifier._shouldBuiltInRecognizerParallelWith_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._shouldBuiltInRecognizerParallelWith_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.shouldBuiltInRecognizerParallelWith(modifier._shouldBuiltInRecognizerParallelWith_0_0value); + break; + } + default: { + this.shouldBuiltInRecognizerParallelWith((undefined as ShouldBuiltInRecognizerParallelWithCallback | undefined)); + } + } + } + if (modifier._monopolizeEvents_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._monopolizeEvents_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.monopolizeEvents(modifier._monopolizeEvents_0_0value); + break; + } + default: { + this.monopolizeEvents((undefined as boolean | undefined)); + } + } + } + if (modifier._onTouchIntercept_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTouchIntercept_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTouchIntercept(modifier._onTouchIntercept_0_0value); + break; + } + default: { + this.onTouchIntercept((undefined as ((value0: TouchEvent) => HitTestMode) | undefined)); + } + } + } + if (modifier._onSizeChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSizeChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSizeChange(modifier._onSizeChange_0_0value); + break; + } + default: { + this.onSizeChange((undefined as SizeChangeCallback | undefined)); + } + } + } + if (modifier._accessibilityFocusDrawLevel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityFocusDrawLevel_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityFocusDrawLevel(modifier._accessibilityFocusDrawLevel_0_0value); + break; + } + default: { + this.accessibilityFocusDrawLevel((undefined as FocusDrawLevel | undefined)); + } + } + } + if (modifier._expandSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._expandSafeArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.expandSafeArea(modifier._expandSafeArea_0_0value, modifier._expandSafeArea_0_1value); + break; + } + default: { + this.expandSafeArea((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); + } + } + } + if (modifier._background_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._background_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.background(modifier._background_0_0value, modifier._background_0_1value); + break; + } + default: { + this.background((undefined as CustomBuilder | undefined), (undefined as BackgroundOptions | undefined | undefined)); + } + } + } + if (modifier._backgroundImage_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundImage_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImage(modifier._backgroundImage_0_0value, modifier._backgroundImage_0_1value); + break; + } + default: { + this.backgroundImage((undefined as ResourceStr | image.PixelMap | undefined), (undefined as ImageRepeat | undefined | undefined)); + } + } + } + if (modifier._backgroundImage_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundImage_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImage(modifier._backgroundImage_1_0value, modifier._backgroundImage_1_1value); + break; + } + default: { + this.backgroundImage((undefined as ResourceStr | image.PixelMap | undefined), (undefined as BackgroundImageOptions | undefined | undefined)); + } + } + } + if (modifier._backgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundBlurStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundBlurStyle(modifier._backgroundBlurStyle_0_0value, modifier._backgroundBlurStyle_0_1value, modifier._backgroundBlurStyle_0_2value); + break; + } + default: { + this.backgroundBlurStyle((undefined as BlurStyle | undefined), (undefined as BackgroundBlurStyleOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (modifier._backgroundEffect_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backgroundEffect_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundEffect(modifier._backgroundEffect_1_0value, modifier._backgroundEffect_1_1value); + break; + } + default: { + this.backgroundEffect((undefined as BackgroundEffectOptions | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (modifier._foregroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._foregroundBlurStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.foregroundBlurStyle(modifier._foregroundBlurStyle_0_0value, modifier._foregroundBlurStyle_0_1value, modifier._foregroundBlurStyle_0_2value); + break; + } + default: { + this.foregroundBlurStyle((undefined as BlurStyle | undefined), (undefined as ForegroundBlurStyleOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (modifier._onClick_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onClick_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onClick(modifier._onClick_1_0value, modifier._onClick_1_1value); + break; + } + default: { + this.onClick((undefined as ((event: ClickEvent) => void) | undefined), (undefined as number | undefined)); + } + } + } + if (modifier._focusScopeId_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._focusScopeId_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusScopeId(modifier._focusScopeId_0_0value, modifier._focusScopeId_0_1value, modifier._focusScopeId_0_2value); + break; + } + default: { + this.focusScopeId((undefined as string | undefined), (undefined as boolean | undefined | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (modifier._focusScopePriority_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._focusScopePriority_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusScopePriority(modifier._focusScopePriority_0_0value, modifier._focusScopePriority_0_1value); + break; + } + default: { + this.focusScopePriority((undefined as string | undefined), (undefined as FocusPriority | undefined | undefined)); + } + } + } + if (modifier._transition_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._transition_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.transition(modifier._transition_1_0value, modifier._transition_1_1value); + break; + } + default: { + this.transition((undefined as TransitionEffect | undefined), (undefined as TransitionFinishCallback | undefined)); + } + } + } + if (modifier._gesture_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._gesture_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.gesture(modifier._gesture_0_0value, modifier._gesture_0_1value); + break; + } + default: { + this.gesture((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); + } + } + } + if (modifier._priorityGesture_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._priorityGesture_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.priorityGesture(modifier._priorityGesture_0_0value, modifier._priorityGesture_0_1value); + break; + } + default: { + this.priorityGesture((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); + } + } + } + if (modifier._parallelGesture_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._parallelGesture_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.parallelGesture(modifier._parallelGesture_0_0value, modifier._parallelGesture_0_1value); + break; + } + default: { + this.parallelGesture((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); + } + } + } + if (modifier._blur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._blur_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.blur(modifier._blur_0_0value, modifier._blur_0_1value, modifier._blur_0_2value); + break; + } + default: { + this.blur((undefined as number | undefined), (undefined as BlurOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (modifier._linearGradientBlur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._linearGradientBlur_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.linearGradientBlur(modifier._linearGradientBlur_0_0value, modifier._linearGradientBlur_0_1value); + break; + } + default: { + this.linearGradientBlur((undefined as number | undefined), (undefined as LinearGradientBlurOptions | undefined)); + } + } + } + if (modifier._systemBarEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._systemBarEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.systemBarEffect(); + break; + } + default: { + this.systemBarEffect(); + } + } + } + if (modifier._useEffect_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._useEffect_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.useEffect(modifier._useEffect_1_0value, modifier._useEffect_1_1value); + break; + } + default: { + this.useEffect((undefined as boolean | undefined), (undefined as EffectType | undefined)); + } + } + } + if (modifier._backdropBlur_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backdropBlur_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backdropBlur(modifier._backdropBlur_0_0value, modifier._backdropBlur_0_1value, modifier._backdropBlur_0_2value); + break; + } + default: { + this.backdropBlur((undefined as number | undefined), (undefined as BlurOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); + } + } + } + if (modifier._sharedTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sharedTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sharedTransition(modifier._sharedTransition_0_0value, modifier._sharedTransition_0_1value); + break; + } + default: { + this.sharedTransition((undefined as string | undefined), (undefined as sharedTransitionOptions | undefined | undefined)); + } + } + } + if (modifier._chainMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._chainMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.chainMode(modifier._chainMode_0_0value, modifier._chainMode_0_1value); + break; + } + default: { + this.chainMode((undefined as Axis | undefined), (undefined as ChainStyle | undefined)); + } + } + } + if (modifier._onDrop_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDrop_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDrop(modifier._onDrop_1_0value, modifier._onDrop_1_1value); + break; + } + default: { + this.onDrop((undefined as OnDragEventCallback | undefined), (undefined as DropOptions | undefined | undefined)); + } + } + } + if (modifier._dragPreview_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._dragPreview_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.dragPreview(modifier._dragPreview_1_0value, modifier._dragPreview_1_1value); + break; + } + default: { + this.dragPreview((undefined as CustomBuilder | DragItemInfo | string | undefined), (undefined as PreviewConfiguration | undefined | undefined)); + } + } + } + if (modifier._dragPreviewOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._dragPreviewOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.dragPreviewOptions(modifier._dragPreviewOptions_0_0value, modifier._dragPreviewOptions_0_1value); + break; + } + default: { + this.dragPreviewOptions((undefined as DragPreviewOptions | undefined), (undefined as DragInteractionOptions | undefined | undefined)); + } + } + } + if (modifier._overlay_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._overlay_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.overlay(modifier._overlay_0_0value, modifier._overlay_0_1value); + break; + } + default: { + this.overlay((undefined as string | CustomBuilder | ComponentContent | undefined), (undefined as OverlayOptions | undefined | undefined)); + } + } + } + if (modifier._blendMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._blendMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.blendMode(modifier._blendMode_0_0value, modifier._blendMode_0_1value); + break; + } + default: { + this.blendMode((undefined as BlendMode | undefined), (undefined as BlendApplyType | undefined | undefined)); + } + } + } + if (modifier._geometryTransition_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._geometryTransition_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.geometryTransition(modifier._geometryTransition_1_0value, modifier._geometryTransition_1_1value); + break; + } + default: { + this.geometryTransition((undefined as string | undefined), (undefined as GeometryTransitionOptions | undefined | undefined)); + } + } + } + if (modifier._bindTips_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindTips_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindTips(modifier._bindTips_0_0value, modifier._bindTips_0_1value); + break; + } + default: { + this.bindTips((undefined as TipsMessageType | undefined), (undefined as TipsOptions | undefined | undefined)); + } + } + } + if (modifier._bindPopup_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindPopup_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindPopup(modifier._bindPopup_0_0value, modifier._bindPopup_0_1value); + break; + } + default: { + this.bindPopup((undefined as boolean | undefined), (undefined as PopupOptions | CustomPopupOptions | undefined)); + } + } + } + if (modifier._bindMenu_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindMenu_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindMenu(modifier._bindMenu_0_0value, modifier._bindMenu_0_1value); + break; + } + default: { + this.bindMenu((undefined as Array | CustomBuilder | undefined), (undefined as MenuOptions | undefined | undefined)); + } + } + } + if (modifier._bindMenu_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindMenu_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindMenu(modifier._bindMenu_1_0value, modifier._bindMenu_1_1value, modifier._bindMenu_1_2value); + break; + } + default: { + this.bindMenu((undefined as boolean | undefined), (undefined as Array | CustomBuilder | undefined), (undefined as MenuOptions | undefined | undefined)); + } + } + } + if (modifier._bindContextMenu_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindContextMenu_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindContextMenu(modifier._bindContextMenu_0_0value, modifier._bindContextMenu_0_1value, modifier._bindContextMenu_0_2value); + break; + } + default: { + this.bindContextMenu((undefined as CustomBuilder | undefined), (undefined as ResponseType | undefined), (undefined as ContextMenuOptions | undefined | undefined)); + } + } + } + if (modifier._bindContextMenu_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindContextMenu_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindContextMenu(modifier._bindContextMenu_1_0value, modifier._bindContextMenu_1_1value, modifier._bindContextMenu_1_2value); + break; + } + default: { + this.bindContextMenu((undefined as boolean | undefined), (undefined as CustomBuilder | undefined), (undefined as ContextMenuOptions | undefined | undefined)); + } + } + } + if (modifier._bindContentCover_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindContentCover_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindContentCover(modifier._bindContentCover_0_0value, modifier._bindContentCover_0_1value, modifier._bindContentCover_0_2value); + break; + } + default: { + this.bindContentCover((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as ModalTransition | undefined | undefined)); + } + } + } + if (modifier._bindContentCover_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindContentCover_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindContentCover(modifier._bindContentCover_1_0value, modifier._bindContentCover_1_1value, modifier._bindContentCover_1_2value); + break; + } + default: { + this.bindContentCover((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as ContentCoverOptions | undefined | undefined)); + } + } + } + if (modifier._bindSheet_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindSheet_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindSheet(modifier._bindSheet_0_0value, modifier._bindSheet_0_1value, modifier._bindSheet_0_2value); + break; + } + default: { + this.bindSheet((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as SheetOptions | undefined | undefined)); + } + } + } + if (modifier._onVisibleAreaChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onVisibleAreaChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onVisibleAreaChange(modifier._onVisibleAreaChange_0_0value, modifier._onVisibleAreaChange_0_1value); + break; + } + default: { + this.onVisibleAreaChange((undefined as Array | undefined), (undefined as VisibleAreaChangeCallback | undefined)); + } + } + } + if (modifier._onVisibleAreaApproximateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onVisibleAreaApproximateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onVisibleAreaApproximateChange(modifier._onVisibleAreaApproximateChange_0_0value, modifier._onVisibleAreaApproximateChange_0_1value); + break; + } + default: { + this.onVisibleAreaApproximateChange((undefined as VisibleAreaEventOptions | undefined), (undefined as VisibleAreaChangeCallback | undefined)); + } + } + } + if (modifier._keyboardShortcut_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._keyboardShortcut_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.keyboardShortcut(modifier._keyboardShortcut_0_0value, modifier._keyboardShortcut_0_1value, modifier._keyboardShortcut_0_2value); + break; + } + default: { + this.keyboardShortcut((undefined as string | FunctionKey | undefined), (undefined as Array | undefined), (undefined as (() => void) | undefined | undefined)); + } + } + } + if (modifier._accessibilityGroup_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._accessibilityGroup_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.accessibilityGroup(modifier._accessibilityGroup_1_0value, modifier._accessibilityGroup_1_1value); + break; + } + default: { + this.accessibilityGroup((undefined as boolean | undefined), (undefined as AccessibilityOptions | undefined)); + } + } + } + if (modifier._onGestureRecognizerJudgeBegin_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onGestureRecognizerJudgeBegin_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onGestureRecognizerJudgeBegin(modifier._onGestureRecognizerJudgeBegin_1_0value, modifier._onGestureRecognizerJudgeBegin_1_1value); + break; + } + default: { + this.onGestureRecognizerJudgeBegin((undefined as GestureRecognizerJudgeBeginCallback | undefined), (undefined as boolean | undefined)); + } + } + } + } + width(value: Length | LayoutPolicy | undefined): this { + if (((this._width_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._width_0_flag = AttributeUpdaterFlag.UPDATE + this._width_0_0value = value + } else + { + this._width_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + height(value: Length | LayoutPolicy | undefined): this { + if (((this._height_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._height_0_flag = AttributeUpdaterFlag.UPDATE + this._height_0_0value = value + } else + { + this._height_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + drawModifier(value: DrawModifier | undefined): this { + if (((this._drawModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._drawModifier_0_flag = AttributeUpdaterFlag.UPDATE + this._drawModifier_0_0value = value + } else + { + this._drawModifier_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + responseRegion(value: Array | Rectangle | undefined): this { + if (((this._responseRegion_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._responseRegion_0_flag = AttributeUpdaterFlag.UPDATE + this._responseRegion_0_0value = value + } else + { + this._responseRegion_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + mouseResponseRegion(value: Array | Rectangle | undefined): this { + if (((this._mouseResponseRegion_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.UPDATE + this._mouseResponseRegion_0_0value = value + } else + { + this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + size(value: SizeOptions | undefined): this { + if (((this._size_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._size_0_flag = AttributeUpdaterFlag.UPDATE + this._size_0_0value = value + } else + { + this._size_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + constraintSize(value: ConstraintSizeOptions | undefined): this { + if (((this._constraintSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._constraintSize_0_flag = AttributeUpdaterFlag.UPDATE + this._constraintSize_0_0value = value + } else + { + this._constraintSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hitTestBehavior(value: HitTestMode | undefined): this { + if (((this._hitTestBehavior_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._hitTestBehavior_0_flag = AttributeUpdaterFlag.UPDATE + this._hitTestBehavior_0_0value = value + } else + { + this._hitTestBehavior_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChildTouchTest(value: ((value: Array) => TouchResult) | undefined): this { + if (((this._onChildTouchTest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChildTouchTest_0_flag = AttributeUpdaterFlag.UPDATE + this._onChildTouchTest_0_0value = value + } else + { + this._onChildTouchTest_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + layoutWeight(value: number | string | undefined): this { + if (((this._layoutWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._layoutWeight_0_0value) !== (value))) + { + this._layoutWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._layoutWeight_0_0value = value + } else + { + this._layoutWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + chainWeight(value: ChainWeightOptions | undefined): this { + if (((this._chainWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._chainWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._chainWeight_0_0value = value + } else + { + this._chainWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + padding(value: Padding | Length | LocalizedPadding | undefined): this { + if (((this._padding_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._padding_0_flag = AttributeUpdaterFlag.UPDATE + this._padding_0_0value = value + } else + { + this._padding_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding | undefined): this { + if (((this._safeAreaPadding_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._safeAreaPadding_0_flag = AttributeUpdaterFlag.UPDATE + this._safeAreaPadding_0_0value = value + } else + { + this._safeAreaPadding_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + margin(value: Padding | Length | LocalizedPadding | undefined): this { + if (((this._margin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._margin_0_flag = AttributeUpdaterFlag.UPDATE + this._margin_0_0value = value + } else + { + this._margin_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundColor(value: ResourceColor | undefined): this { + if (((this._backgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._backgroundColor_0_flag = AttributeUpdaterFlag.UPDATE + this._backgroundColor_0_0value = value + } else + { + this._backgroundColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pixelRound(value: PixelRoundPolicy | undefined): this { + if (((this._pixelRound_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pixelRound_0_flag = AttributeUpdaterFlag.UPDATE + this._pixelRound_0_0value = value + } else + { + this._pixelRound_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundImageSize(value: SizeOptions | ImageSize | undefined): this { + if (((this._backgroundImageSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._backgroundImageSize_0_flag = AttributeUpdaterFlag.UPDATE + this._backgroundImageSize_0_0value = value + } else + { + this._backgroundImageSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundImagePosition(value: Position | Alignment | undefined): this { + if (((this._backgroundImagePosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.UPDATE + this._backgroundImagePosition_0_0value = value + } else + { + this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundEffect(value: BackgroundEffectOptions | undefined): this { + if (((this._backgroundEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._backgroundEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._backgroundEffect_0_0value = value + } else + { + this._backgroundEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundImageResizable(value: ResizableOptions | undefined): this { + if (((this._backgroundImageResizable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.UPDATE + this._backgroundImageResizable_0_0value = value + } else + { + this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + foregroundEffect(value: ForegroundEffectOptions | undefined): this { + if (((this._foregroundEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._foregroundEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._foregroundEffect_0_0value = value + } else + { + this._foregroundEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + visualEffect(value: uiEffect.VisualEffect | undefined): this { + if (((this._visualEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._visualEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._visualEffect_0_0value = value + } else + { + this._visualEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundFilter(value: uiEffect.Filter | undefined): this { + if (((this._backgroundFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._backgroundFilter_0_flag = AttributeUpdaterFlag.UPDATE + this._backgroundFilter_0_0value = value + } else + { + this._backgroundFilter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + foregroundFilter(value: uiEffect.Filter | undefined): this { + if (((this._foregroundFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._foregroundFilter_0_flag = AttributeUpdaterFlag.UPDATE + this._foregroundFilter_0_0value = value + } else + { + this._foregroundFilter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + compositingFilter(value: uiEffect.Filter | undefined): this { + if (((this._compositingFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._compositingFilter_0_flag = AttributeUpdaterFlag.UPDATE + this._compositingFilter_0_0value = value + } else + { + this._compositingFilter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + opacity(value: number | Resource | undefined): this { + if (((this._opacity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._opacity_0_flag = AttributeUpdaterFlag.UPDATE + this._opacity_0_0value = value + } else + { + this._opacity_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + border(value: BorderOptions | undefined): this { + if (((this._border_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._border_0_flag = AttributeUpdaterFlag.UPDATE + this._border_0_0value = value + } else + { + this._border_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + borderStyle(value: BorderStyle | EdgeStyles | undefined): this { + if (((this._borderStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._borderStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._borderStyle_0_0value = value + } else + { + this._borderStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): this { + if (((this._borderWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._borderWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._borderWidth_0_0value = value + } else + { + this._borderWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { + if (((this._borderColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._borderColor_0_flag = AttributeUpdaterFlag.UPDATE + this._borderColor_0_0value = value + } else + { + this._borderColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): this { + if (((this._borderRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._borderRadius_0_flag = AttributeUpdaterFlag.UPDATE + this._borderRadius_0_0value = value + } else + { + this._borderRadius_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + borderImage(value: BorderImageOption | undefined): this { + if (((this._borderImage_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._borderImage_0_flag = AttributeUpdaterFlag.UPDATE + this._borderImage_0_0value = value + } else + { + this._borderImage_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + outline(value: OutlineOptions | undefined): this { + if (((this._outline_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._outline_0_flag = AttributeUpdaterFlag.UPDATE + this._outline_0_0value = value + } else + { + this._outline_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + outlineStyle(value: OutlineStyle | EdgeOutlineStyles | undefined): this { + if (((this._outlineStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._outlineStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._outlineStyle_0_0value = value + } else + { + this._outlineStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + outlineWidth(value: Dimension | EdgeOutlineWidths | undefined): this { + if (((this._outlineWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._outlineWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._outlineWidth_0_0value = value + } else + { + this._outlineWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { + if (((this._outlineColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._outlineColor_0_flag = AttributeUpdaterFlag.UPDATE + this._outlineColor_0_0value = value + } else + { + this._outlineColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + outlineRadius(value: Dimension | OutlineRadiuses | undefined): this { + if (((this._outlineRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._outlineRadius_0_flag = AttributeUpdaterFlag.UPDATE + this._outlineRadius_0_0value = value + } else + { + this._outlineRadius_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + foregroundColor(value: ResourceColor | ColoringStrategy | undefined): this { + if (((this._foregroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._foregroundColor_0_flag = AttributeUpdaterFlag.UPDATE + this._foregroundColor_0_0value = value + } else + { + this._foregroundColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onClick(value: ((event: ClickEvent) => void) | undefined): this { + if (((this._onClick_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onClick_0_flag = AttributeUpdaterFlag.UPDATE + this._onClick_0_0value = value + } else + { + this._onClick_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onHover(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): this { + if (((this._onHover_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onHover_0_flag = AttributeUpdaterFlag.UPDATE + this._onHover_0_0value = value + } else + { + this._onHover_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onHoverMove(value: ((value0: HoverEvent) => void) | undefined): this { + if (((this._onHoverMove_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onHoverMove_0_flag = AttributeUpdaterFlag.UPDATE + this._onHoverMove_0_0value = value + } else + { + this._onHoverMove_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAccessibilityHover(value: AccessibilityCallback | undefined): this { + if (((this._onAccessibilityHover_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.UPDATE + this._onAccessibilityHover_0_0value = value + } else + { + this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hoverEffect(value: HoverEffect | undefined): this { + if (((this._hoverEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._hoverEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._hoverEffect_0_0value = value + } else + { + this._hoverEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onMouse(value: ((event: MouseEvent) => void) | undefined): this { + if (((this._onMouse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onMouse_0_flag = AttributeUpdaterFlag.UPDATE + this._onMouse_0_0value = value + } else + { + this._onMouse_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTouch(value: ((event: TouchEvent) => void) | undefined): this { + if (((this._onTouch_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTouch_0_flag = AttributeUpdaterFlag.UPDATE + this._onTouch_0_0value = value + } else + { + this._onTouch_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onKeyEvent(value: ((event: KeyEvent) => void) | undefined): this { + if (((this._onKeyEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onKeyEvent_0_flag = AttributeUpdaterFlag.UPDATE + this._onKeyEvent_0_0value = value + } else + { + this._onKeyEvent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDigitalCrown(value: ((value0: CrownEvent) => void) | undefined): this { + if (((this._onDigitalCrown_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDigitalCrown_0_flag = AttributeUpdaterFlag.UPDATE + this._onDigitalCrown_0_0value = value + } else + { + this._onDigitalCrown_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onKeyPreIme(value: ((value0: KeyEvent) => boolean) | undefined): this { + if (((this._onKeyPreIme_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onKeyPreIme_0_flag = AttributeUpdaterFlag.UPDATE + this._onKeyPreIme_0_0value = value + } else + { + this._onKeyPreIme_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onKeyEventDispatch(value: ((value0: KeyEvent) => boolean) | undefined): this { + if (((this._onKeyEventDispatch_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.UPDATE + this._onKeyEventDispatch_0_0value = value + } else + { + this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFocusAxisEvent(value: ((value0: FocusAxisEvent) => void) | undefined): this { + if (((this._onFocusAxisEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.UPDATE + this._onFocusAxisEvent_0_0value = value + } else + { + this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAxisEvent(value: ((value0: AxisEvent) => void) | undefined): this { + if (((this._onAxisEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAxisEvent_0_flag = AttributeUpdaterFlag.UPDATE + this._onAxisEvent_0_0value = value + } else + { + this._onAxisEvent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + focusable(value: boolean | undefined): this { + if (((this._focusable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._focusable_0_0value) !== (value))) + { + this._focusable_0_flag = AttributeUpdaterFlag.UPDATE + this._focusable_0_0value = value + } else + { + this._focusable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + nextFocus(value: FocusMovement | undefined): this { + if (((this._nextFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._nextFocus_0_flag = AttributeUpdaterFlag.UPDATE + this._nextFocus_0_0value = value + } else + { + this._nextFocus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + tabStop(value: boolean | undefined): this { + if (((this._tabStop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._tabStop_0_0value) !== (value))) + { + this._tabStop_0_flag = AttributeUpdaterFlag.UPDATE + this._tabStop_0_0value = value + } else + { + this._tabStop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFocus(value: (() => void) | undefined): this { + if (((this._onFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFocus_0_flag = AttributeUpdaterFlag.UPDATE + this._onFocus_0_0value = value + } else + { + this._onFocus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onBlur(value: (() => void) | undefined): this { + if (((this._onBlur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onBlur_0_flag = AttributeUpdaterFlag.UPDATE + this._onBlur_0_0value = value + } else + { + this._onBlur_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + tabIndex(value: number | undefined): this { + if (((this._tabIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._tabIndex_0_0value) !== (value))) + { + this._tabIndex_0_flag = AttributeUpdaterFlag.UPDATE + this._tabIndex_0_0value = value + } else + { + this._tabIndex_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + defaultFocus(value: boolean | undefined): this { + if (((this._defaultFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultFocus_0_0value) !== (value))) + { + this._defaultFocus_0_flag = AttributeUpdaterFlag.UPDATE + this._defaultFocus_0_0value = value + } else + { + this._defaultFocus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + groupDefaultFocus(value: boolean | undefined): this { + if (((this._groupDefaultFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._groupDefaultFocus_0_0value) !== (value))) + { + this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.UPDATE + this._groupDefaultFocus_0_0value = value + } else + { + this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + focusOnTouch(value: boolean | undefined): this { + if (((this._focusOnTouch_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._focusOnTouch_0_0value) !== (value))) + { + this._focusOnTouch_0_flag = AttributeUpdaterFlag.UPDATE + this._focusOnTouch_0_0value = value + } else + { + this._focusOnTouch_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + focusBox(value: FocusBoxStyle | undefined): this { + if (((this._focusBox_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._focusBox_0_flag = AttributeUpdaterFlag.UPDATE + this._focusBox_0_0value = value + } else + { + this._focusBox_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + animation(value: AnimateParam | undefined): this { + if (((this._animation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._animation_0_flag = AttributeUpdaterFlag.UPDATE + this._animation_0_0value = value + } else + { + this._animation_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + transition(value: TransitionEffect | undefined): this { + if (((this._transition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._transition_0_flag = AttributeUpdaterFlag.UPDATE + this._transition_0_0value = value + } else + { + this._transition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + motionBlur(value: MotionBlurOptions | undefined): this { + if (((this._motionBlur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._motionBlur_0_flag = AttributeUpdaterFlag.UPDATE + this._motionBlur_0_0value = value + } else + { + this._motionBlur_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + brightness(value: number | undefined): this { + if (((this._brightness_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._brightness_0_0value) !== (value))) + { + this._brightness_0_flag = AttributeUpdaterFlag.UPDATE + this._brightness_0_0value = value + } else + { + this._brightness_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + contrast(value: number | undefined): this { + if (((this._contrast_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._contrast_0_0value) !== (value))) + { + this._contrast_0_flag = AttributeUpdaterFlag.UPDATE + this._contrast_0_0value = value + } else + { + this._contrast_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + grayscale(value: number | undefined): this { + if (((this._grayscale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._grayscale_0_0value) !== (value))) + { + this._grayscale_0_flag = AttributeUpdaterFlag.UPDATE + this._grayscale_0_0value = value + } else + { + this._grayscale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + colorBlend(value: Color | string | Resource | undefined): this { + if (((this._colorBlend_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._colorBlend_0_flag = AttributeUpdaterFlag.UPDATE + this._colorBlend_0_0value = value + } else + { + this._colorBlend_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + saturate(value: number | undefined): this { + if (((this._saturate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._saturate_0_0value) !== (value))) + { + this._saturate_0_flag = AttributeUpdaterFlag.UPDATE + this._saturate_0_0value = value + } else + { + this._saturate_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sepia(value: number | undefined): this { + if (((this._sepia_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._sepia_0_0value) !== (value))) + { + this._sepia_0_flag = AttributeUpdaterFlag.UPDATE + this._sepia_0_0value = value + } else + { + this._sepia_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + invert(value: number | InvertOptions | undefined): this { + if (((this._invert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._invert_0_flag = AttributeUpdaterFlag.UPDATE + this._invert_0_0value = value + } else + { + this._invert_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hueRotate(value: number | string | undefined): this { + if (((this._hueRotate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hueRotate_0_0value) !== (value))) + { + this._hueRotate_0_flag = AttributeUpdaterFlag.UPDATE + this._hueRotate_0_0value = value + } else + { + this._hueRotate_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + useShadowBatching(value: boolean | undefined): this { + if (((this._useShadowBatching_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._useShadowBatching_0_0value) !== (value))) + { + this._useShadowBatching_0_flag = AttributeUpdaterFlag.UPDATE + this._useShadowBatching_0_0value = value + } else + { + this._useShadowBatching_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + useEffect(value: boolean | undefined): this { + if (((this._useEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._useEffect_0_0value) !== (value))) + { + this._useEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._useEffect_0_0value = value + } else + { + this._useEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + renderGroup(value: boolean | undefined): this { + if (((this._renderGroup_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._renderGroup_0_0value) !== (value))) + { + this._renderGroup_0_flag = AttributeUpdaterFlag.UPDATE + this._renderGroup_0_0value = value + } else + { + this._renderGroup_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + freeze(value: boolean | undefined): this { + if (((this._freeze_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._freeze_0_0value) !== (value))) + { + this._freeze_0_flag = AttributeUpdaterFlag.UPDATE + this._freeze_0_0value = value + } else + { + this._freeze_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + translate(value: TranslateOptions | undefined): this { + if (((this._translate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._translate_0_flag = AttributeUpdaterFlag.UPDATE + this._translate_0_0value = value + } else + { + this._translate_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + scale(value: ScaleOptions | undefined): this { + if (((this._scale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._scale_0_flag = AttributeUpdaterFlag.UPDATE + this._scale_0_0value = value + } else + { + this._scale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + rotate(value: RotateOptions | undefined): this { + if (((this._rotate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._rotate_0_flag = AttributeUpdaterFlag.UPDATE + this._rotate_0_0value = value + } else + { + this._rotate_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + transform(value: Object | undefined): this { + if (((this._transform_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._transform_0_0value) !== (value))) + { + this._transform_0_flag = AttributeUpdaterFlag.UPDATE + this._transform_0_0value = value + } else + { + this._transform_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAppear(value: (() => void) | undefined): this { + if (((this._onAppear_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAppear_0_flag = AttributeUpdaterFlag.UPDATE + this._onAppear_0_0value = value + } else + { + this._onAppear_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDisAppear(value: (() => void) | undefined): this { + if (((this._onDisAppear_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDisAppear_0_flag = AttributeUpdaterFlag.UPDATE + this._onDisAppear_0_0value = value + } else + { + this._onDisAppear_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAttach(value: VoidCallback | undefined): this { + if (((this._onAttach_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAttach_0_flag = AttributeUpdaterFlag.UPDATE + this._onAttach_0_0value = value + } else + { + this._onAttach_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDetach(value: VoidCallback | undefined): this { + if (((this._onDetach_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDetach_0_flag = AttributeUpdaterFlag.UPDATE + this._onDetach_0_0value = value + } else + { + this._onDetach_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAreaChange(value: ((oldValue: Area,newValue: Area) => void) | undefined): this { + if (((this._onAreaChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAreaChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onAreaChange_0_0value = value + } else + { + this._onAreaChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + visibility(value: Visibility | undefined): this { + if (((this._visibility_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._visibility_0_flag = AttributeUpdaterFlag.UPDATE + this._visibility_0_0value = value + } else + { + this._visibility_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + flexGrow(value: number | undefined): this { + if (((this._flexGrow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._flexGrow_0_0value) !== (value))) + { + this._flexGrow_0_flag = AttributeUpdaterFlag.UPDATE + this._flexGrow_0_0value = value + } else + { + this._flexGrow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + flexShrink(value: number | undefined): this { + if (((this._flexShrink_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._flexShrink_0_0value) !== (value))) + { + this._flexShrink_0_flag = AttributeUpdaterFlag.UPDATE + this._flexShrink_0_0value = value + } else + { + this._flexShrink_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + flexBasis(value: number | string | undefined): this { + if (((this._flexBasis_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._flexBasis_0_0value) !== (value))) + { + this._flexBasis_0_flag = AttributeUpdaterFlag.UPDATE + this._flexBasis_0_0value = value + } else + { + this._flexBasis_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + alignSelf(value: ItemAlign | undefined): this { + if (((this._alignSelf_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alignSelf_0_flag = AttributeUpdaterFlag.UPDATE + this._alignSelf_0_0value = value + } else + { + this._alignSelf_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + displayPriority(value: number | undefined): this { + if (((this._displayPriority_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._displayPriority_0_0value) !== (value))) + { + this._displayPriority_0_flag = AttributeUpdaterFlag.UPDATE + this._displayPriority_0_0value = value + } else + { + this._displayPriority_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + zIndex(value: number | undefined): this { + if (((this._zIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._zIndex_0_0value) !== (value))) + { + this._zIndex_0_flag = AttributeUpdaterFlag.UPDATE + this._zIndex_0_0value = value + } else + { + this._zIndex_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + direction(value: Direction | undefined): this { + if (((this._direction_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._direction_0_flag = AttributeUpdaterFlag.UPDATE + this._direction_0_0value = value + } else + { + this._direction_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + align(value: Alignment | undefined): this { + if (((this._align_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._align_0_flag = AttributeUpdaterFlag.UPDATE + this._align_0_0value = value + } else + { + this._align_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + position(value: Position | Edges | LocalizedEdges | undefined): this { + if (((this._position_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._position_0_flag = AttributeUpdaterFlag.UPDATE + this._position_0_0value = value + } else + { + this._position_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + markAnchor(value: Position | LocalizedPosition | undefined): this { + if (((this._markAnchor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._markAnchor_0_flag = AttributeUpdaterFlag.UPDATE + this._markAnchor_0_0value = value + } else + { + this._markAnchor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + offset(value: Position | Edges | LocalizedEdges | undefined): this { + if (((this._offset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._offset_0_flag = AttributeUpdaterFlag.UPDATE + this._offset_0_0value = value + } else + { + this._offset_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enabled(value: boolean | undefined): this { + if (((this._enabled_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enabled_0_0value) !== (value))) + { + this._enabled_0_flag = AttributeUpdaterFlag.UPDATE + this._enabled_0_0value = value + } else + { + this._enabled_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + alignRules(value: AlignRuleOption | undefined): this { + if (((this._alignRules_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alignRules_0_flag = AttributeUpdaterFlag.UPDATE + this._alignRules_0_0value = value + } else + { + this._alignRules_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + alignRules(value: LocalizedAlignRuleOptions | undefined): this { + if (((this._alignRules_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alignRules_1_flag = AttributeUpdaterFlag.UPDATE + this._alignRules_1_0value = value + } else + { + this._alignRules_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + aspectRatio(value: number | undefined): this { + if (((this._aspectRatio_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._aspectRatio_0_0value) !== (value))) + { + this._aspectRatio_0_flag = AttributeUpdaterFlag.UPDATE + this._aspectRatio_0_0value = value + } else + { + this._aspectRatio_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + clickEffect(value: ClickEffect | undefined): this { + if (((this._clickEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._clickEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._clickEffect_0_0value = value + } else + { + this._clickEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): this { + if (((this._onDragStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDragStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onDragStart_0_0value = value + } else + { + this._onDragStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDragEnter(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (((this._onDragEnter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDragEnter_0_flag = AttributeUpdaterFlag.UPDATE + this._onDragEnter_0_0value = value + } else + { + this._onDragEnter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDragMove(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (((this._onDragMove_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDragMove_0_flag = AttributeUpdaterFlag.UPDATE + this._onDragMove_0_0value = value + } else + { + this._onDragMove_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDragLeave(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (((this._onDragLeave_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDragLeave_0_flag = AttributeUpdaterFlag.UPDATE + this._onDragLeave_0_0value = value + } else + { + this._onDragLeave_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDrop(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (((this._onDrop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDrop_0_flag = AttributeUpdaterFlag.UPDATE + this._onDrop_0_0value = value + } else + { + this._onDrop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDragEnd(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { + if (((this._onDragEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDragEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._onDragEnd_0_0value = value + } else + { + this._onDragEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + allowDrop(value: Array | undefined): this { + if (((this._allowDrop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._allowDrop_0_flag = AttributeUpdaterFlag.UPDATE + this._allowDrop_0_0value = value + } else + { + this._allowDrop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + draggable(value: boolean | undefined): this { + if (((this._draggable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._draggable_0_0value) !== (value))) + { + this._draggable_0_flag = AttributeUpdaterFlag.UPDATE + this._draggable_0_0value = value + } else + { + this._draggable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + dragPreview(value: CustomBuilder | DragItemInfo | string | undefined): this { + if (((this._dragPreview_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._dragPreview_0_flag = AttributeUpdaterFlag.UPDATE + this._dragPreview_0_0value = value + } else + { + this._dragPreview_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPreDrag(value: ((value0: PreDragStatus) => void) | undefined): this { + if (((this._onPreDrag_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPreDrag_0_flag = AttributeUpdaterFlag.UPDATE + this._onPreDrag_0_0value = value + } else + { + this._onPreDrag_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + linearGradient(value: LinearGradientOptions | undefined): this { + if (((this._linearGradient_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._linearGradient_0_flag = AttributeUpdaterFlag.UPDATE + this._linearGradient_0_0value = value + } else + { + this._linearGradient_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sweepGradient(value: SweepGradientOptions | undefined): this { + if (((this._sweepGradient_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._sweepGradient_0_flag = AttributeUpdaterFlag.UPDATE + this._sweepGradient_0_0value = value + } else + { + this._sweepGradient_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + radialGradient(value: RadialGradientOptions | undefined): this { + if (((this._radialGradient_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._radialGradient_0_flag = AttributeUpdaterFlag.UPDATE + this._radialGradient_0_0value = value + } else + { + this._radialGradient_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + motionPath(value: MotionPathOptions | undefined): this { + if (((this._motionPath_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._motionPath_0_flag = AttributeUpdaterFlag.UPDATE + this._motionPath_0_0value = value + } else + { + this._motionPath_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + shadow(value: ShadowOptions | ShadowStyle | undefined): this { + if (((this._shadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._shadow_0_flag = AttributeUpdaterFlag.UPDATE + this._shadow_0_0value = value + } else + { + this._shadow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + clip(value: boolean | undefined): this { + if (((this._clip_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._clip_0_0value) !== (value))) + { + this._clip_0_flag = AttributeUpdaterFlag.UPDATE + this._clip_0_0value = value + } else + { + this._clip_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + clipShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { + if (((this._clipShape_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._clipShape_0_flag = AttributeUpdaterFlag.UPDATE + this._clipShape_0_0value = value + } else + { + this._clipShape_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + mask(value: ProgressMask | undefined): this { + if (((this._mask_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._mask_0_flag = AttributeUpdaterFlag.UPDATE + this._mask_0_0value = value + } else + { + this._mask_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maskShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { + if (((this._maskShape_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._maskShape_0_flag = AttributeUpdaterFlag.UPDATE + this._maskShape_0_0value = value + } else + { + this._maskShape_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + key(value: string | undefined): this { + if (((this._key_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._key_0_0value) !== (value))) + { + this._key_0_flag = AttributeUpdaterFlag.UPDATE + this._key_0_0value = value + } else + { + this._key_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + id(value: string | undefined): this { + if (((this._id_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._id_0_0value) !== (value))) + { + this._id_0_flag = AttributeUpdaterFlag.UPDATE + this._id_0_0value = value + } else + { + this._id_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + geometryTransition(value: string | undefined): this { + if (((this._geometryTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._geometryTransition_0_0value) !== (value))) + { + this._geometryTransition_0_flag = AttributeUpdaterFlag.UPDATE + this._geometryTransition_0_0value = value + } else + { + this._geometryTransition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + restoreId(value: number | undefined): this { + if (((this._restoreId_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._restoreId_0_0value) !== (value))) + { + this._restoreId_0_flag = AttributeUpdaterFlag.UPDATE + this._restoreId_0_0value = value + } else + { + this._restoreId_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sphericalEffect(value: number | undefined): this { + if (((this._sphericalEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._sphericalEffect_0_0value) !== (value))) + { + this._sphericalEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._sphericalEffect_0_0value = value + } else + { + this._sphericalEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + lightUpEffect(value: number | undefined): this { + if (((this._lightUpEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._lightUpEffect_0_0value) !== (value))) + { + this._lightUpEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._lightUpEffect_0_0value = value + } else + { + this._lightUpEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pixelStretchEffect(value: PixelStretchEffectOptions | undefined): this { + if (((this._pixelStretchEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._pixelStretchEffect_0_0value = value + } else + { + this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityGroup(value: boolean | undefined): this { + if (((this._accessibilityGroup_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityGroup_0_0value) !== (value))) + { + this._accessibilityGroup_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityGroup_0_0value = value + } else + { + this._accessibilityGroup_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityText(value: string | undefined): this { + if (((this._accessibilityText_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityText_0_0value) !== (value))) + { + this._accessibilityText_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityText_0_0value = value + } else + { + this._accessibilityText_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityNextFocusId(value: string | undefined): this { + if (((this._accessibilityNextFocusId_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityNextFocusId_0_0value) !== (value))) + { + this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityNextFocusId_0_0value = value + } else + { + this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityDefaultFocus(value: boolean | undefined): this { + if (((this._accessibilityDefaultFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityDefaultFocus_0_0value) !== (value))) + { + this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityDefaultFocus_0_0value = value + } else + { + this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityUseSamePage(value: AccessibilitySamePageMode | undefined): this { + if (((this._accessibilityUseSamePage_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityUseSamePage_0_0value = value + } else + { + this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityScrollTriggerable(value: boolean | undefined): this { + if (((this._accessibilityScrollTriggerable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityScrollTriggerable_0_0value) !== (value))) + { + this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityScrollTriggerable_0_0value = value + } else + { + this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityText(value: Resource | undefined): this { + if (((this._accessibilityText_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._accessibilityText_1_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityText_1_0value = value + } else + { + this._accessibilityText_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityRole(value: AccessibilityRoleType | undefined): this { + if (((this._accessibilityRole_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._accessibilityRole_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityRole_0_0value = value + } else + { + this._accessibilityRole_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAccessibilityFocus(value: AccessibilityFocusCallback | undefined): this { + if (((this._onAccessibilityFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.UPDATE + this._onAccessibilityFocus_0_0value = value + } else + { + this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityTextHint(value: string | undefined): this { + if (((this._accessibilityTextHint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityTextHint_0_0value) !== (value))) + { + this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityTextHint_0_0value = value + } else + { + this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityDescription(value: string | undefined): this { + if (((this._accessibilityDescription_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityDescription_0_0value) !== (value))) + { + this._accessibilityDescription_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityDescription_0_0value = value + } else + { + this._accessibilityDescription_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityDescription(value: Resource | undefined): this { + if (((this._accessibilityDescription_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._accessibilityDescription_1_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityDescription_1_0value = value + } else + { + this._accessibilityDescription_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityLevel(value: string | undefined): this { + if (((this._accessibilityLevel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityLevel_0_0value) !== (value))) + { + this._accessibilityLevel_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityLevel_0_0value = value + } else + { + this._accessibilityLevel_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityVirtualNode(value: CustomBuilder | undefined): this { + if (((this._accessibilityVirtualNode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityVirtualNode_0_0value = value + } else + { + this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityChecked(value: boolean | undefined): this { + if (((this._accessibilityChecked_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityChecked_0_0value) !== (value))) + { + this._accessibilityChecked_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityChecked_0_0value = value + } else + { + this._accessibilityChecked_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilitySelected(value: boolean | undefined): this { + if (((this._accessibilitySelected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilitySelected_0_0value) !== (value))) + { + this._accessibilitySelected_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilitySelected_0_0value = value + } else + { + this._accessibilitySelected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + obscured(value: Array | undefined): this { + if (((this._obscured_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._obscured_0_flag = AttributeUpdaterFlag.UPDATE + this._obscured_0_0value = value + } else + { + this._obscured_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + reuseId(value: string | undefined): this { + if (((this._reuseId_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._reuseId_0_0value) !== (value))) + { + this._reuseId_0_flag = AttributeUpdaterFlag.UPDATE + this._reuseId_0_0value = value + } else + { + this._reuseId_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + reuse(value: ReuseOptions | undefined): this { + if (((this._reuse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._reuse_0_flag = AttributeUpdaterFlag.UPDATE + this._reuse_0_0value = value + } else + { + this._reuse_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + renderFit(value: RenderFit | undefined): this { + if (((this._renderFit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._renderFit_0_flag = AttributeUpdaterFlag.UPDATE + this._renderFit_0_0value = value + } else + { + this._renderFit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + gestureModifier(value: GestureModifier | undefined): this { + if (((this._gestureModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._gestureModifier_0_flag = AttributeUpdaterFlag.UPDATE + this._gestureModifier_0_0value = value + } else + { + this._gestureModifier_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundBrightness(value: BackgroundBrightnessOptions | undefined): this { + if (((this._backgroundBrightness_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._backgroundBrightness_0_flag = AttributeUpdaterFlag.UPDATE + this._backgroundBrightness_0_0value = value + } else + { + this._backgroundBrightness_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): this { + if (((this._onGestureJudgeBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.UPDATE + this._onGestureJudgeBegin_0_0value = value + } else + { + this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onGestureRecognizerJudgeBegin(value: GestureRecognizerJudgeBeginCallback | undefined): this { + if (((this._onGestureRecognizerJudgeBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.UPDATE + this._onGestureRecognizerJudgeBegin_0_0value = value + } else + { + this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): this { + if (((this._shouldBuiltInRecognizerParallelWith_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.UPDATE + this._shouldBuiltInRecognizerParallelWith_0_0value = value + } else + { + this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + monopolizeEvents(value: boolean | undefined): this { + if (((this._monopolizeEvents_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._monopolizeEvents_0_0value) !== (value))) + { + this._monopolizeEvents_0_flag = AttributeUpdaterFlag.UPDATE + this._monopolizeEvents_0_0value = value + } else + { + this._monopolizeEvents_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTouchIntercept(value: ((value0: TouchEvent) => HitTestMode) | undefined): this { + if (((this._onTouchIntercept_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTouchIntercept_0_flag = AttributeUpdaterFlag.UPDATE + this._onTouchIntercept_0_0value = value + } else + { + this._onTouchIntercept_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSizeChange(value: SizeChangeCallback | undefined): this { + if (((this._onSizeChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSizeChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onSizeChange_0_0value = value + } else + { + this._onSizeChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityFocusDrawLevel(value: FocusDrawLevel | undefined): this { + if (((this._accessibilityFocusDrawLevel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityFocusDrawLevel_0_0value = value + } else + { + this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + customProperty(name: string, value: CustomProperty): this { + throw new Error("Not implemented") + } + expandSafeArea(types?: Array, edges?: Array): this { + if (((this._expandSafeArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._expandSafeArea_0_flag = AttributeUpdaterFlag.UPDATE + this._expandSafeArea_0_0value = types + this._expandSafeArea_0_1value = edges + } else + { + this._expandSafeArea_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + background(builder: CustomBuilder | undefined, options?: BackgroundOptions): this { + if (((this._background_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._background_0_flag = AttributeUpdaterFlag.UPDATE + this._background_0_0value = builder + this._background_0_1value = options + } else + { + this._background_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundImage(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): this { + if (((this._backgroundImage_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._backgroundImage_0_flag = AttributeUpdaterFlag.UPDATE + this._backgroundImage_0_0value = src + this._backgroundImage_0_1value = repeat + } else + { + this._backgroundImage_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundImage(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): this { + if (((this._backgroundImage_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._backgroundImage_1_flag = AttributeUpdaterFlag.UPDATE + this._backgroundImage_1_0value = src + this._backgroundImage_1_1value = options + } else + { + this._backgroundImage_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundBlurStyle(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { + if (((this._backgroundBlurStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) + { + this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._backgroundBlurStyle_0_0value = style + this._backgroundBlurStyle_0_1value = options + this._backgroundBlurStyle_0_2value = sysOptions + } else + { + this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backgroundEffect(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): this { + if (((this._backgroundEffect_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._backgroundEffect_1_flag = AttributeUpdaterFlag.UPDATE + this._backgroundEffect_1_0value = options + this._backgroundEffect_1_1value = sysOptions + } else + { + this._backgroundEffect_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + foregroundBlurStyle(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { + if (((this._foregroundBlurStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) + { + this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._foregroundBlurStyle_0_0value = style + this._foregroundBlurStyle_0_1value = options + this._foregroundBlurStyle_0_2value = sysOptions + } else + { + this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onClick(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): this { + if (((this._onClick_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._onClick_1_1value) !== (distanceThreshold))) + { + this._onClick_1_flag = AttributeUpdaterFlag.UPDATE + this._onClick_1_0value = event + this._onClick_1_1value = distanceThreshold + } else + { + this._onClick_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + focusScopeId(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): this { + if (((this._focusScopeId_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._focusScopeId_0_0value) !== (id)) || ((this._focusScopeId_0_1value) !== (isGroup)) || ((this._focusScopeId_0_2value) !== (arrowStepOut))) + { + this._focusScopeId_0_flag = AttributeUpdaterFlag.UPDATE + this._focusScopeId_0_0value = id + this._focusScopeId_0_1value = isGroup + this._focusScopeId_0_2value = arrowStepOut + } else + { + this._focusScopeId_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + focusScopePriority(scopeId: string | undefined, priority?: FocusPriority): this { + if (((this._focusScopePriority_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._focusScopePriority_0_0value) !== (scopeId)) || (true)) + { + this._focusScopePriority_0_flag = AttributeUpdaterFlag.UPDATE + this._focusScopePriority_0_0value = scopeId + this._focusScopePriority_0_1value = priority + } else + { + this._focusScopePriority_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + transition(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): this { + if (((this._transition_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._transition_1_flag = AttributeUpdaterFlag.UPDATE + this._transition_1_0value = effect + this._transition_1_1value = onFinish + } else + { + this._transition_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + gesture(gesture: GestureType | undefined, mask?: GestureMask): this { + if (((this._gesture_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._gesture_0_flag = AttributeUpdaterFlag.UPDATE + this._gesture_0_0value = gesture + this._gesture_0_1value = mask + } else + { + this._gesture_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + priorityGesture(gesture: GestureType | undefined, mask?: GestureMask): this { + if (((this._priorityGesture_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._priorityGesture_0_flag = AttributeUpdaterFlag.UPDATE + this._priorityGesture_0_0value = gesture + this._priorityGesture_0_1value = mask + } else + { + this._priorityGesture_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + parallelGesture(gesture: GestureType | undefined, mask?: GestureMask): this { + if (((this._parallelGesture_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._parallelGesture_0_flag = AttributeUpdaterFlag.UPDATE + this._parallelGesture_0_0value = gesture + this._parallelGesture_0_1value = mask + } else + { + this._parallelGesture_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + blur(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { + if (((this._blur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._blur_0_0value) !== (blurRadius)) || (true) || (true)) + { + this._blur_0_flag = AttributeUpdaterFlag.UPDATE + this._blur_0_0value = blurRadius + this._blur_0_1value = options + this._blur_0_2value = sysOptions + } else + { + this._blur_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + linearGradientBlur(value: number | undefined, options: LinearGradientBlurOptions | undefined): this { + if (((this._linearGradientBlur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._linearGradientBlur_0_0value) !== (value)) || (true)) + { + this._linearGradientBlur_0_flag = AttributeUpdaterFlag.UPDATE + this._linearGradientBlur_0_0value = value + this._linearGradientBlur_0_1value = options + } else + { + this._linearGradientBlur_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + systemBarEffect(): this { + if ((this._systemBarEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) + { + this._systemBarEffect_0_flag = AttributeUpdaterFlag.UPDATE + } else + { + this._systemBarEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + useEffect(useEffect: boolean | undefined, effectType: EffectType | undefined): this { + if (((this._useEffect_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._useEffect_1_0value) !== (useEffect)) || (true)) + { + this._useEffect_1_flag = AttributeUpdaterFlag.UPDATE + this._useEffect_1_0value = useEffect + this._useEffect_1_1value = effectType + } else + { + this._useEffect_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backdropBlur(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { + if (((this._backdropBlur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._backdropBlur_0_0value) !== (radius)) || (true) || (true)) + { + this._backdropBlur_0_flag = AttributeUpdaterFlag.UPDATE + this._backdropBlur_0_0value = radius + this._backdropBlur_0_1value = options + this._backdropBlur_0_2value = sysOptions + } else + { + this._backdropBlur_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sharedTransition(id: string | undefined, options?: sharedTransitionOptions): this { + if (((this._sharedTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._sharedTransition_0_0value) !== (id)) || (true)) + { + this._sharedTransition_0_flag = AttributeUpdaterFlag.UPDATE + this._sharedTransition_0_0value = id + this._sharedTransition_0_1value = options + } else + { + this._sharedTransition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + chainMode(direction: Axis | undefined, style: ChainStyle | undefined): this { + if (((this._chainMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._chainMode_0_flag = AttributeUpdaterFlag.UPDATE + this._chainMode_0_0value = direction + this._chainMode_0_1value = style + } else + { + this._chainMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDrop(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): this { + if (((this._onDrop_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._onDrop_1_flag = AttributeUpdaterFlag.UPDATE + this._onDrop_1_0value = eventCallback + this._onDrop_1_1value = dropOptions + } else + { + this._onDrop_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + dragPreview(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): this { + if (((this._dragPreview_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._dragPreview_1_flag = AttributeUpdaterFlag.UPDATE + this._dragPreview_1_0value = preview + this._dragPreview_1_1value = config + } else + { + this._dragPreview_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + dragPreviewOptions(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): this { + if (((this._dragPreviewOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._dragPreviewOptions_0_0value = value + this._dragPreviewOptions_0_1value = options + } else + { + this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + overlay(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): this { + if (((this._overlay_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._overlay_0_flag = AttributeUpdaterFlag.UPDATE + this._overlay_0_0value = value + this._overlay_0_1value = options + } else + { + this._overlay_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + blendMode(value: BlendMode | undefined, type?: BlendApplyType): this { + if (((this._blendMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._blendMode_0_flag = AttributeUpdaterFlag.UPDATE + this._blendMode_0_0value = value + this._blendMode_0_1value = type + } else + { + this._blendMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + advancedBlendMode(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): this { + throw new Error("Not implemented") + } + geometryTransition(id: string | undefined, options?: GeometryTransitionOptions): this { + if (((this._geometryTransition_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._geometryTransition_1_0value) !== (id)) || (true)) + { + this._geometryTransition_1_flag = AttributeUpdaterFlag.UPDATE + this._geometryTransition_1_0value = id + this._geometryTransition_1_1value = options + } else + { + this._geometryTransition_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindTips(message: TipsMessageType | undefined, options?: TipsOptions): this { + if (((this._bindTips_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._bindTips_0_flag = AttributeUpdaterFlag.UPDATE + this._bindTips_0_0value = message + this._bindTips_0_1value = options + } else + { + this._bindTips_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindPopup(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): this { + if (((this._bindPopup_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._bindPopup_0_0value) !== (show)) || (true)) + { + this._bindPopup_0_flag = AttributeUpdaterFlag.UPDATE + this._bindPopup_0_0value = show + this._bindPopup_0_1value = popup + } else + { + this._bindPopup_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindMenu(content: Array | CustomBuilder | undefined, options?: MenuOptions): this { + if (((this._bindMenu_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._bindMenu_0_flag = AttributeUpdaterFlag.UPDATE + this._bindMenu_0_0value = content + this._bindMenu_0_1value = options + } else + { + this._bindMenu_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindMenu(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): this { + if (((this._bindMenu_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._bindMenu_1_0value) !== (isShow)) || (true) || (true)) + { + this._bindMenu_1_flag = AttributeUpdaterFlag.UPDATE + this._bindMenu_1_0value = isShow + this._bindMenu_1_1value = content + this._bindMenu_1_2value = options + } else + { + this._bindMenu_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindContextMenu(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): this { + if (((this._bindContextMenu_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) + { + this._bindContextMenu_0_flag = AttributeUpdaterFlag.UPDATE + this._bindContextMenu_0_0value = content + this._bindContextMenu_0_1value = responseType + this._bindContextMenu_0_2value = options + } else + { + this._bindContextMenu_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindContextMenu(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): this { + if (((this._bindContextMenu_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._bindContextMenu_1_0value) !== (isShown)) || (true) || (true)) + { + this._bindContextMenu_1_flag = AttributeUpdaterFlag.UPDATE + this._bindContextMenu_1_0value = isShown + this._bindContextMenu_1_1value = content + this._bindContextMenu_1_2value = options + } else + { + this._bindContextMenu_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): this { + if (((this._bindContentCover_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) + { + this._bindContentCover_0_flag = AttributeUpdaterFlag.UPDATE + this._bindContentCover_0_0value = isShow + this._bindContentCover_0_1value = builder + this._bindContentCover_0_2value = type + } else + { + this._bindContentCover_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): this { + if (((this._bindContentCover_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) + { + this._bindContentCover_1_flag = AttributeUpdaterFlag.UPDATE + this._bindContentCover_1_0value = isShow + this._bindContentCover_1_1value = builder + this._bindContentCover_1_2value = options + } else + { + this._bindContentCover_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindSheet(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): this { + if (((this._bindSheet_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) + { + this._bindSheet_0_flag = AttributeUpdaterFlag.UPDATE + this._bindSheet_0_0value = isShow + this._bindSheet_0_1value = builder + this._bindSheet_0_2value = options + } else + { + this._bindSheet_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this { + if (((this._onVisibleAreaChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._onVisibleAreaChange_0_0value) !== (ratios)) || (true)) + { + this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onVisibleAreaChange_0_0value = ratios + this._onVisibleAreaChange_0_1value = event + } else + { + this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onVisibleAreaApproximateChange(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): this { + if (((this._onVisibleAreaApproximateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onVisibleAreaApproximateChange_0_0value = options + this._onVisibleAreaApproximateChange_0_1value = event + } else + { + this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): this { + if (((this._keyboardShortcut_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) + { + this._keyboardShortcut_0_flag = AttributeUpdaterFlag.UPDATE + this._keyboardShortcut_0_0value = value + this._keyboardShortcut_0_1value = keys + this._keyboardShortcut_0_2value = action + } else + { + this._keyboardShortcut_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + accessibilityGroup(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): this { + if (((this._accessibilityGroup_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityGroup_1_0value) !== (isGroup)) || (true)) + { + this._accessibilityGroup_1_flag = AttributeUpdaterFlag.UPDATE + this._accessibilityGroup_1_0value = isGroup + this._accessibilityGroup_1_1value = accessibilityOptions + } else + { + this._accessibilityGroup_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): this { + if (((this._onGestureRecognizerJudgeBegin_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._onGestureRecognizerJudgeBegin_1_1value) !== (exposeInnerGesture))) + { + this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.UPDATE + this._onGestureRecognizerJudgeBegin_1_0value = callback_ + this._onGestureRecognizerJudgeBegin_1_1value = exposeInnerGesture + } else + { + this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} +export class CommonShapeMethodModifier extends CommonMethodModifier implements CommonShapeMethod { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + _stroke_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stroke_0_0value?: ResourceColor | undefined + _fill_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fill_0_0value?: ResourceColor | undefined + _strokeDashOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeDashOffset_0_0value?: number | string | undefined + _strokeLineCap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeLineCap_0_0value?: LineCapStyle | undefined + _strokeLineJoin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeLineJoin_0_0value?: LineJoinStyle | undefined + _strokeMiterLimit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeMiterLimit_0_0value?: number | string | undefined + _strokeOpacity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeOpacity_0_0value?: number | string | Resource | undefined + _fillOpacity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fillOpacity_0_0value?: number | string | Resource | undefined + _strokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeWidth_0_0value?: Length | undefined + _antiAlias_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _antiAlias_0_0value?: boolean | undefined + _strokeDashArray_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeDashArray_0_0value?: Array | undefined + applyModifierPatch(peer: ArkCommonShapeMethodPeer): void { + super.applyModifierPatch(peer) + if (this._stroke_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stroke_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStrokeAttribute((this._stroke_0_0value as ResourceColor | undefined)); + this._stroke_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stroke_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stroke_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStrokeAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._fill_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fill_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFillAttribute((this._fill_0_0value as ResourceColor | undefined)); + this._fill_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fill_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fill_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFillAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._strokeDashOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._strokeDashOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStrokeDashOffsetAttribute((this._strokeDashOffset_0_0value as number | string | undefined)); + this._strokeDashOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._strokeDashOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._strokeDashOffset_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStrokeDashOffsetAttribute((undefined as number | string | undefined)); + } + } + } + if (this._strokeLineCap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._strokeLineCap_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStrokeLineCapAttribute((this._strokeLineCap_0_0value as LineCapStyle | undefined)); + this._strokeLineCap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._strokeLineCap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._strokeLineCap_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStrokeLineCapAttribute((undefined as LineCapStyle | undefined)); + } + } + } + if (this._strokeLineJoin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._strokeLineJoin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStrokeLineJoinAttribute((this._strokeLineJoin_0_0value as LineJoinStyle | undefined)); + this._strokeLineJoin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._strokeLineJoin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._strokeLineJoin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStrokeLineJoinAttribute((undefined as LineJoinStyle | undefined)); + } + } + } + if (this._strokeMiterLimit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._strokeMiterLimit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStrokeMiterLimitAttribute((this._strokeMiterLimit_0_0value as number | string | undefined)); + this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStrokeMiterLimitAttribute((undefined as number | string | undefined)); + } + } + } + if (this._strokeOpacity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._strokeOpacity_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStrokeOpacityAttribute((this._strokeOpacity_0_0value as number | string | Resource | undefined)); + this._strokeOpacity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._strokeOpacity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._strokeOpacity_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStrokeOpacityAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._fillOpacity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fillOpacity_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFillOpacityAttribute((this._fillOpacity_0_0value as number | string | Resource | undefined)); + this._fillOpacity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fillOpacity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fillOpacity_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFillOpacityAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._strokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._strokeWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStrokeWidthAttribute((this._strokeWidth_0_0value as Length | undefined)); + this._strokeWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._strokeWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._strokeWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStrokeWidthAttribute((undefined as Length | undefined)); + } + } + } + if (this._antiAlias_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._antiAlias_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAntiAliasAttribute((this._antiAlias_0_0value as boolean | undefined)); + this._antiAlias_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._antiAlias_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._antiAlias_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAntiAliasAttribute((undefined as boolean | undefined)); + } + } + } + if (this._strokeDashArray_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._strokeDashArray_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStrokeDashArrayAttribute((this._strokeDashArray_0_0value as Array | undefined)); + this._strokeDashArray_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._strokeDashArray_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._strokeDashArray_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStrokeDashArrayAttribute((undefined as Array | undefined)); + } + } + } + } + mergeModifier(modifier: CommonShapeMethodModifier): void { + super.mergeModifier(modifier) + if (modifier._stroke_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stroke_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stroke(modifier._stroke_0_0value); + break; + } + default: { + this.stroke((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._fill_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fill_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fill(modifier._fill_0_0value); + break; + } + default: { + this.fill((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._strokeDashOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._strokeDashOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.strokeDashOffset(modifier._strokeDashOffset_0_0value); + break; + } + default: { + this.strokeDashOffset((undefined as number | string | undefined)); + } + } + } + if (modifier._strokeLineCap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._strokeLineCap_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.strokeLineCap(modifier._strokeLineCap_0_0value); + break; + } + default: { + this.strokeLineCap((undefined as LineCapStyle | undefined)); + } + } + } + if (modifier._strokeLineJoin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._strokeLineJoin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.strokeLineJoin(modifier._strokeLineJoin_0_0value); + break; + } + default: { + this.strokeLineJoin((undefined as LineJoinStyle | undefined)); + } + } + } + if (modifier._strokeMiterLimit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._strokeMiterLimit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.strokeMiterLimit(modifier._strokeMiterLimit_0_0value); + break; + } + default: { + this.strokeMiterLimit((undefined as number | string | undefined)); + } + } + } + if (modifier._strokeOpacity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._strokeOpacity_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.strokeOpacity(modifier._strokeOpacity_0_0value); + break; + } + default: { + this.strokeOpacity((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._fillOpacity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fillOpacity_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fillOpacity(modifier._fillOpacity_0_0value); + break; + } + default: { + this.fillOpacity((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._strokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._strokeWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.strokeWidth(modifier._strokeWidth_0_0value); + break; + } + default: { + this.strokeWidth((undefined as Length | undefined)); + } + } + } + if (modifier._antiAlias_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._antiAlias_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.antiAlias(modifier._antiAlias_0_0value); + break; + } + default: { + this.antiAlias((undefined as boolean | undefined)); + } + } + } + if (modifier._strokeDashArray_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._strokeDashArray_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.strokeDashArray(modifier._strokeDashArray_0_0value); + break; + } + default: { + this.strokeDashArray((undefined as Array | undefined)); + } + } + } + } + stroke(value: ResourceColor | undefined): this { + if (((this._stroke_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._stroke_0_flag = AttributeUpdaterFlag.UPDATE + this._stroke_0_0value = value + } else + { + this._stroke_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fill(value: ResourceColor | undefined): this { + if (((this._fill_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fill_0_flag = AttributeUpdaterFlag.UPDATE + this._fill_0_0value = value + } else + { + this._fill_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + strokeDashOffset(value: number | string | undefined): this { + if (((this._strokeDashOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._strokeDashOffset_0_0value) !== (value))) + { + this._strokeDashOffset_0_flag = AttributeUpdaterFlag.UPDATE + this._strokeDashOffset_0_0value = value + } else + { + this._strokeDashOffset_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + strokeLineCap(value: LineCapStyle | undefined): this { + if (((this._strokeLineCap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._strokeLineCap_0_flag = AttributeUpdaterFlag.UPDATE + this._strokeLineCap_0_0value = value + } else + { + this._strokeLineCap_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + strokeLineJoin(value: LineJoinStyle | undefined): this { + if (((this._strokeLineJoin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._strokeLineJoin_0_flag = AttributeUpdaterFlag.UPDATE + this._strokeLineJoin_0_0value = value + } else + { + this._strokeLineJoin_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + strokeMiterLimit(value: number | string | undefined): this { + if (((this._strokeMiterLimit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._strokeMiterLimit_0_0value) !== (value))) + { + this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.UPDATE + this._strokeMiterLimit_0_0value = value + } else + { + this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + strokeOpacity(value: number | string | Resource | undefined): this { + if (((this._strokeOpacity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._strokeOpacity_0_flag = AttributeUpdaterFlag.UPDATE + this._strokeOpacity_0_0value = value + } else + { + this._strokeOpacity_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fillOpacity(value: number | string | Resource | undefined): this { + if (((this._fillOpacity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fillOpacity_0_flag = AttributeUpdaterFlag.UPDATE + this._fillOpacity_0_0value = value + } else + { + this._fillOpacity_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + strokeWidth(value: Length | undefined): this { + if (((this._strokeWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._strokeWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._strokeWidth_0_0value = value + } else + { + this._strokeWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + antiAlias(value: boolean | undefined): this { + if (((this._antiAlias_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._antiAlias_0_0value) !== (value))) + { + this._antiAlias_0_flag = AttributeUpdaterFlag.UPDATE + this._antiAlias_0_0value = value + } else + { + this._antiAlias_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + strokeDashArray(value: Array | undefined): this { + if (((this._strokeDashArray_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._strokeDashArray_0_flag = AttributeUpdaterFlag.UPDATE + this._strokeDashArray_0_0value = value + } else + { + this._strokeDashArray_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} +export class ScrollableCommonMethodModifier extends CommonMethodModifier implements ScrollableCommonMethod { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + _scrollBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _scrollBar_0_0value?: BarState | undefined + _scrollBarColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _scrollBarColor_0_0value?: Color | number | string | undefined + _scrollBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _scrollBarWidth_0_0value?: number | string | undefined + _nestedScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _nestedScroll_0_0value?: NestedScrollOptions | undefined + _enableScrollInteraction_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableScrollInteraction_0_0value?: boolean | undefined + _friction_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _friction_0_0value?: number | Resource | undefined + _onReachStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onReachStart_0_0value?: (() => void) | undefined + _onReachEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onReachEnd_0_0value?: (() => void) | undefined + _onScrollStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollStart_0_0value?: (() => void) | undefined + _onScrollStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollStop_0_0value?: (() => void) | undefined + _flingSpeedLimit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _flingSpeedLimit_0_0value?: number | undefined + _clipContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _clipContent_0_0value?: ContentClipMode | RectShape | undefined + _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined + _backToTop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backToTop_0_0value?: boolean | undefined + _edgeEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _edgeEffect_0_0value?: EdgeEffect | undefined + _edgeEffect_0_1value?: EdgeEffectOptions | undefined + _fadingEdge_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fadingEdge_0_0value?: boolean | undefined + _fadingEdge_0_1value?: FadingEdgeOptions | undefined + applyModifierPatch(peer: ArkScrollableCommonMethodPeer): void { + super.applyModifierPatch(peer) + if (this._scrollBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._scrollBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setScrollBarAttribute((this._scrollBar_0_0value as BarState | undefined)); + this._scrollBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._scrollBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._scrollBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setScrollBarAttribute((undefined as BarState | undefined)); + } + } + } + if (this._scrollBarColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._scrollBarColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setScrollBarColorAttribute((this._scrollBarColor_0_0value as Color | number | string | undefined)); + this._scrollBarColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._scrollBarColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._scrollBarColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setScrollBarColorAttribute((undefined as Color | number | string | undefined)); + } + } + } + if (this._scrollBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._scrollBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setScrollBarWidthAttribute((this._scrollBarWidth_0_0value as number | string | undefined)); + this._scrollBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._scrollBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._scrollBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setScrollBarWidthAttribute((undefined as number | string | undefined)); + } + } + } + if (this._nestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._nestedScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNestedScrollAttribute((this._nestedScroll_0_0value as NestedScrollOptions | undefined)); + this._nestedScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._nestedScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._nestedScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setNestedScrollAttribute((undefined as NestedScrollOptions | undefined)); + } + } + } + if (this._enableScrollInteraction_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableScrollInteraction_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableScrollInteractionAttribute((this._enableScrollInteraction_0_0value as boolean | undefined)); + this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableScrollInteractionAttribute((undefined as boolean | undefined)); + } + } + } + if (this._friction_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._friction_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFrictionAttribute((this._friction_0_0value as number | Resource | undefined)); + this._friction_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._friction_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._friction_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFrictionAttribute((undefined as number | Resource | undefined)); + } + } + } + if (this._onReachStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onReachStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnReachStartAttribute((this._onReachStart_0_0value as (() => void) | undefined)); + this._onReachStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onReachStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onReachStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnReachStartAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onReachEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onReachEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnReachEndAttribute((this._onReachEnd_0_0value as (() => void) | undefined)); + this._onReachEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onReachEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onReachEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnReachEndAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onScrollStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollStartAttribute((this._onScrollStart_0_0value as (() => void) | undefined)); + this._onScrollStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScrollStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScrollStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollStartAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onScrollStop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollStop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollStopAttribute((this._onScrollStop_0_0value as (() => void) | undefined)); + this._onScrollStop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScrollStop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScrollStop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollStopAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._flingSpeedLimit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._flingSpeedLimit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFlingSpeedLimitAttribute((this._flingSpeedLimit_0_0value as number | undefined)); + this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFlingSpeedLimitAttribute((undefined as number | undefined)); + } + } + } + if (this._clipContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._clipContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setClipContentAttribute((this._clipContent_0_0value as ContentClipMode | RectShape | undefined)); + this._clipContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._clipContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._clipContent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setClipContentAttribute((undefined as ContentClipMode | RectShape | undefined)); + } + } + } + if (this._digitalCrownSensitivity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._digitalCrownSensitivity_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDigitalCrownSensitivityAttribute((this._digitalCrownSensitivity_0_0value as CrownSensitivity | undefined)); + this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDigitalCrownSensitivityAttribute((undefined as CrownSensitivity | undefined)); + } + } + } + if (this._backToTop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backToTop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackToTopAttribute((this._backToTop_0_0value as boolean | undefined)); + this._backToTop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backToTop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backToTop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackToTopAttribute((undefined as boolean | undefined)); + } + } + } + if (this._edgeEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._edgeEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEdgeEffectAttribute((this._edgeEffect_0_0value as EdgeEffect | undefined), (this._edgeEffect_0_1value as EdgeEffectOptions | undefined)); + this._edgeEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._edgeEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._edgeEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEdgeEffectAttribute((undefined as EdgeEffect | undefined), (undefined as EdgeEffectOptions | undefined | undefined)); + } + } + } + if (this._fadingEdge_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fadingEdge_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFadingEdgeAttribute((this._fadingEdge_0_0value as boolean | undefined), (this._fadingEdge_0_1value as FadingEdgeOptions | undefined)); + this._fadingEdge_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fadingEdge_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fadingEdge_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFadingEdgeAttribute((undefined as boolean | undefined), (undefined as FadingEdgeOptions | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: ScrollableCommonMethodModifier): void { + super.mergeModifier(modifier) + if (modifier._scrollBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._scrollBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.scrollBar(modifier._scrollBar_0_0value); + break; + } + default: { + this.scrollBar((undefined as BarState | undefined)); + } + } + } + if (modifier._scrollBarColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._scrollBarColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.scrollBarColor(modifier._scrollBarColor_0_0value); + break; + } + default: { + this.scrollBarColor((undefined as Color | number | string | undefined)); + } + } + } + if (modifier._scrollBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._scrollBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.scrollBarWidth(modifier._scrollBarWidth_0_0value); + break; + } + default: { + this.scrollBarWidth((undefined as number | string | undefined)); + } + } + } + if (modifier._nestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._nestedScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.nestedScroll(modifier._nestedScroll_0_0value); + break; + } + default: { + this.nestedScroll((undefined as NestedScrollOptions | undefined)); + } + } + } + if (modifier._enableScrollInteraction_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableScrollInteraction_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableScrollInteraction(modifier._enableScrollInteraction_0_0value); + break; + } + default: { + this.enableScrollInteraction((undefined as boolean | undefined)); + } + } + } + if (modifier._friction_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._friction_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.friction(modifier._friction_0_0value); + break; + } + default: { + this.friction((undefined as number | Resource | undefined)); + } + } + } + if (modifier._onReachStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onReachStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onReachStart(modifier._onReachStart_0_0value); + break; + } + default: { + this.onReachStart((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onReachEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onReachEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onReachEnd(modifier._onReachEnd_0_0value); + break; + } + default: { + this.onReachEnd((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onScrollStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScrollStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScrollStart(modifier._onScrollStart_0_0value); + break; + } + default: { + this.onScrollStart((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onScrollStop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScrollStop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScrollStop(modifier._onScrollStop_0_0value); + break; + } + default: { + this.onScrollStop((undefined as (() => void) | undefined)); + } + } + } + if (modifier._flingSpeedLimit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._flingSpeedLimit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.flingSpeedLimit(modifier._flingSpeedLimit_0_0value); + break; + } + default: { + this.flingSpeedLimit((undefined as number | undefined)); + } + } + } + if (modifier._clipContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._clipContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.clipContent(modifier._clipContent_0_0value); + break; + } + default: { + this.clipContent((undefined as ContentClipMode | RectShape | undefined)); + } + } + } + if (modifier._digitalCrownSensitivity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._digitalCrownSensitivity_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.digitalCrownSensitivity(modifier._digitalCrownSensitivity_0_0value); + break; + } + default: { + this.digitalCrownSensitivity((undefined as CrownSensitivity | undefined)); + } + } + } + if (modifier._backToTop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backToTop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backToTop(modifier._backToTop_0_0value); + break; + } + default: { + this.backToTop((undefined as boolean | undefined)); + } + } + } + if (modifier._edgeEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._edgeEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.edgeEffect(modifier._edgeEffect_0_0value, modifier._edgeEffect_0_1value); + break; + } + default: { + this.edgeEffect((undefined as EdgeEffect | undefined), (undefined as EdgeEffectOptions | undefined | undefined)); + } + } + } + if (modifier._fadingEdge_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fadingEdge_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fadingEdge(modifier._fadingEdge_0_0value, modifier._fadingEdge_0_1value); + break; + } + default: { + this.fadingEdge((undefined as boolean | undefined), (undefined as FadingEdgeOptions | undefined | undefined)); + } + } + } + } + scrollBar(value: BarState | undefined): this { + if (((this._scrollBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._scrollBar_0_flag = AttributeUpdaterFlag.UPDATE + this._scrollBar_0_0value = value + } else + { + this._scrollBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + scrollBarColor(value: Color | number | string | undefined): this { + if (((this._scrollBarColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._scrollBarColor_0_flag = AttributeUpdaterFlag.UPDATE + this._scrollBarColor_0_0value = value + } else + { + this._scrollBarColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + scrollBarWidth(value: number | string | undefined): this { + if (((this._scrollBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._scrollBarWidth_0_0value) !== (value))) + { + this._scrollBarWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._scrollBarWidth_0_0value = value + } else + { + this._scrollBarWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + nestedScroll(value: NestedScrollOptions | undefined): this { + if (((this._nestedScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._nestedScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._nestedScroll_0_0value = value + } else + { + this._nestedScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableScrollInteraction(value: boolean | undefined): this { + if (((this._enableScrollInteraction_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableScrollInteraction_0_0value) !== (value))) + { + this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.UPDATE + this._enableScrollInteraction_0_0value = value + } else + { + this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + friction(value: number | Resource | undefined): this { + if (((this._friction_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._friction_0_flag = AttributeUpdaterFlag.UPDATE + this._friction_0_0value = value + } else + { + this._friction_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onReachStart(value: (() => void) | undefined): this { + if (((this._onReachStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onReachStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onReachStart_0_0value = value + } else + { + this._onReachStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onReachEnd(value: (() => void) | undefined): this { + if (((this._onReachEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onReachEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._onReachEnd_0_0value = value + } else + { + this._onReachEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollStart(value: (() => void) | undefined): this { + if (((this._onScrollStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScrollStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onScrollStart_0_0value = value + } else + { + this._onScrollStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollStop(value: (() => void) | undefined): this { + if (((this._onScrollStop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScrollStop_0_flag = AttributeUpdaterFlag.UPDATE + this._onScrollStop_0_0value = value + } else + { + this._onScrollStop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + flingSpeedLimit(value: number | undefined): this { + if (((this._flingSpeedLimit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._flingSpeedLimit_0_0value) !== (value))) + { + this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.UPDATE + this._flingSpeedLimit_0_0value = value + } else + { + this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + clipContent(value: ContentClipMode | RectShape | undefined): this { + if (((this._clipContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._clipContent_0_flag = AttributeUpdaterFlag.UPDATE + this._clipContent_0_0value = value + } else + { + this._clipContent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + digitalCrownSensitivity(value: CrownSensitivity | undefined): this { + if (((this._digitalCrownSensitivity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.UPDATE + this._digitalCrownSensitivity_0_0value = value + } else + { + this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backToTop(value: boolean | undefined): this { + if (((this._backToTop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._backToTop_0_0value) !== (value))) + { + this._backToTop_0_flag = AttributeUpdaterFlag.UPDATE + this._backToTop_0_0value = value + } else + { + this._backToTop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + edgeEffect(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): this { + if (((this._edgeEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._edgeEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._edgeEffect_0_0value = edgeEffect + this._edgeEffect_0_1value = options + } else + { + this._edgeEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fadingEdge(enabled: boolean | undefined, options?: FadingEdgeOptions): this { + if (((this._fadingEdge_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fadingEdge_0_0value) !== (enabled)) || (true)) + { + this._fadingEdge_0_flag = AttributeUpdaterFlag.UPDATE + this._fadingEdge_0_0value = enabled + this._fadingEdge_0_1value = options + } else + { + this._fadingEdge_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} +export function postCardAction(component: Object, action: Object): void { + GlobalScope.postCardAction(component, action) +} +export function $r(value: string, params: Array): Resource { + return GlobalScope.$r(value, params) +} +export function $rawfile(value: string): Resource { + return GlobalScope.$rawfile(value) +} +export function animateTo(value: AnimateParam, event: (() => void)): void { + GlobalScope.animateTo(value, event) +} +export function animateToImmediately(value: AnimateParam, event: (() => void)): void { + GlobalScope.animateToImmediately(value, event) +} +export function vp2px(value: number): number { + return GlobalScope.vp2px(value) +} +export function px2vp(value: number): number { + return GlobalScope.px2vp(value) +} +export class GestureModifier_serializer { + public static write(buffer: SerializerBase, value: GestureModifier): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): GestureModifier { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return GestureModifierInternal.fromPtr(ptr) + } +} +export class LayoutPolicy_serializer { + public static write(buffer: SerializerBase, value: LayoutPolicy): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): LayoutPolicy { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return LayoutPolicyInternal.fromPtr(ptr) + } +} +export class NestedScrollOptions_serializer { + public static write(buffer: SerializerBase, value: NestedScrollOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForScrollForward = value.scrollForward + valueSerializer.writeInt32(TypeChecker.NestedScrollMode_ToNumeric(valueHolderForScrollForward)) + const valueHolderForScrollBackward = value.scrollBackward + valueSerializer.writeInt32(TypeChecker.NestedScrollMode_ToNumeric(valueHolderForScrollBackward)) + } + public static read(buffer: DeserializerBase): NestedScrollOptions { + let valueDeserializer : DeserializerBase = buffer + const scrollForwardTmpResult : NestedScrollMode = TypeChecker.NestedScrollMode_FromNumeric(valueDeserializer.readInt32()) + const scrollBackwardTmpResult : NestedScrollMode = TypeChecker.NestedScrollMode_FromNumeric(valueDeserializer.readInt32()) + let value : NestedScrollOptions = ({scrollForward: scrollForwardTmpResult, scrollBackward: scrollBackwardTmpResult} as NestedScrollOptions) + return value + } +} +export class PixelMapMock_serializer { + public static write(buffer: SerializerBase, value: PixelMapMock): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): PixelMapMock { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return PixelMapMockInternal.fromPtr(ptr) + } +} +export class PopupStateChangeParam_serializer { + public static write(buffer: SerializerBase, value: PopupStateChangeParam): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForIsVisible = value.isVisible + valueSerializer.writeBoolean(valueHolderForIsVisible) + } + public static read(buffer: DeserializerBase): PopupStateChangeParam { + let valueDeserializer : DeserializerBase = buffer + const isVisibleTmpResult : boolean = valueDeserializer.readBoolean() + let value : PopupStateChangeParam = ({isVisible: isVisibleTmpResult} as PopupStateChangeParam) + return value + } +} +export class ProgressMask_serializer { + public static write(buffer: SerializerBase, value: ProgressMask): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): ProgressMask { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return ProgressMaskInternal.fromPtr(ptr) + } +} +export class RectResult_serializer { + public static write(buffer: SerializerBase, value: RectResult): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForX = value.x + valueSerializer.writeNumber(valueHolderForX) + const valueHolderForY = value.y + valueSerializer.writeNumber(valueHolderForY) + const valueHolderForWidth = value.width + valueSerializer.writeNumber(valueHolderForWidth) + const valueHolderForHeight = value.height + valueSerializer.writeNumber(valueHolderForHeight) + } + public static read(buffer: DeserializerBase): RectResult { + let valueDeserializer : DeserializerBase = buffer + const xTmpResult : number = (valueDeserializer.readNumber() as number) + const yTmpResult : number = (valueDeserializer.readNumber() as number) + const widthTmpResult : number = (valueDeserializer.readNumber() as number) + const heightTmpResult : number = (valueDeserializer.readNumber() as number) + let value : RectResult = ({x: xTmpResult, y: yTmpResult, width: widthTmpResult, height: heightTmpResult} as RectResult) + return value + } +} +export class ScrollResult_serializer { + public static write(buffer: SerializerBase, value: ScrollResult): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): ScrollResult { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return ScrollResultInternal.fromPtr(ptr) + } +} +export class SizeResult_serializer { + public static write(buffer: SerializerBase, value: SizeResult): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForWidth = value.width + valueSerializer.writeNumber(valueHolderForWidth) + const valueHolderForHeight = value.height + valueSerializer.writeNumber(valueHolderForHeight) + } + public static read(buffer: DeserializerBase): SizeResult { + let valueDeserializer : DeserializerBase = buffer + const widthTmpResult : number = (valueDeserializer.readNumber() as number) + const heightTmpResult : number = (valueDeserializer.readNumber() as number) + let value : SizeResult = ({width: widthTmpResult, height: heightTmpResult} as SizeResult) + return value + } +} +export class TextContentControllerBase_serializer { + public static write(buffer: SerializerBase, value: TextContentControllerBase): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): TextContentControllerBase { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return TextContentControllerBaseInternal.fromPtr(ptr) + } +} +export class TouchTestInfo_serializer { + public static write(buffer: SerializerBase, value: TouchTestInfo): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForWindowX = value.windowX + valueSerializer.writeNumber(valueHolderForWindowX) + const valueHolderForWindowY = value.windowY + valueSerializer.writeNumber(valueHolderForWindowY) + const valueHolderForParentX = value.parentX + valueSerializer.writeNumber(valueHolderForParentX) + const valueHolderForParentY = value.parentY + valueSerializer.writeNumber(valueHolderForParentY) + const valueHolderForX = value.x + valueSerializer.writeNumber(valueHolderForX) + const valueHolderForY = value.y + valueSerializer.writeNumber(valueHolderForY) + const valueHolderForRect = value.rect + RectResult_serializer.write(valueSerializer, valueHolderForRect) + const valueHolderForId = value.id + valueSerializer.writeString(valueHolderForId) + } + public static read(buffer: DeserializerBase): TouchTestInfo { + let valueDeserializer : DeserializerBase = buffer + const windowXTmpResult : number = (valueDeserializer.readNumber() as number) + const windowYTmpResult : number = (valueDeserializer.readNumber() as number) + const parentXTmpResult : number = (valueDeserializer.readNumber() as number) + const parentYTmpResult : number = (valueDeserializer.readNumber() as number) + const xTmpResult : number = (valueDeserializer.readNumber() as number) + const yTmpResult : number = (valueDeserializer.readNumber() as number) + const rectTmpResult : RectResult = RectResult_serializer.read(valueDeserializer) + const idTmpResult : string = (valueDeserializer.readString() as string) + let value : TouchTestInfo = ({windowX: windowXTmpResult, windowY: windowYTmpResult, parentX: parentXTmpResult, parentY: parentYTmpResult, x: xTmpResult, y: yTmpResult, rect: rectTmpResult, id: idTmpResult} as TouchTestInfo) + return value + } +} +export class TransitionEffect_serializer { + public static write(buffer: SerializerBase, value: TransitionEffect): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): TransitionEffect { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return TransitionEffectInternal.fromPtr(ptr) + } +} +export class UICommonEvent_serializer { + public static write(buffer: SerializerBase, value: UICommonEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): UICommonEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return UICommonEventInternal.fromPtr(ptr) + } +} +export class UIGestureEvent_serializer { + public static write(buffer: SerializerBase, value: UIGestureEvent): void { + } + public static read(buffer: DeserializerBase): UIGestureEvent { + throw new Error("Interface with functions is not supported") + } +} +export class AlignRuleOption_serializer { + public static write(buffer: SerializerBase, value: AlignRuleOption): void { + let valueSerializer : SerializerBase = buffer + const valueHolderFor_stub = value._stub + valueSerializer.writeInt32(valueHolderFor_stub) + } + public static read(buffer: DeserializerBase): AlignRuleOption { + let valueDeserializer : DeserializerBase = buffer + const _stubTmpResult : int32 = valueDeserializer.readInt32() + let value : AlignRuleOption = ({_stub: _stubTmpResult} as AlignRuleOption) + return value + } +} +export class AsymmetricTransitionOption_serializer { + public static write(buffer: SerializerBase, value: AsymmetricTransitionOption): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForAppear = value.appear + TransitionEffect_serializer.write(valueSerializer, valueHolderForAppear) + const valueHolderForDisappear = value.disappear + TransitionEffect_serializer.write(valueSerializer, valueHolderForDisappear) + } + public static read(buffer: DeserializerBase): AsymmetricTransitionOption { + let valueDeserializer : DeserializerBase = buffer + const appearTmpResult : TransitionEffect = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) + const disappearTmpResult : TransitionEffect = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) + let value : AsymmetricTransitionOption = ({appear: appearTmpResult, disappear: disappearTmpResult} as AsymmetricTransitionOption) + return value + } +} +export class BackgroundBrightnessOptions_serializer { + public static write(buffer: SerializerBase, value: BackgroundBrightnessOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForRate = value.rate + valueSerializer.writeNumber(valueHolderForRate) + const valueHolderForLightUpDegree = value.lightUpDegree + valueSerializer.writeNumber(valueHolderForLightUpDegree) + } + public static read(buffer: DeserializerBase): BackgroundBrightnessOptions { + let valueDeserializer : DeserializerBase = buffer + const rateTmpResult : number = (valueDeserializer.readNumber() as number) + const lightUpDegreeTmpResult : number = (valueDeserializer.readNumber() as number) + let value : BackgroundBrightnessOptions = ({rate: rateTmpResult, lightUpDegree: lightUpDegreeTmpResult} as BackgroundBrightnessOptions) + return value + } +} +export class BackgroundImageOptions_serializer { + public static write(buffer: SerializerBase, value: BackgroundImageOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForSyncLoad = value.syncLoad + if (valueHolderForSyncLoad !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForSyncLoadTmpValue = valueHolderForSyncLoad! + valueSerializer.writeBoolean(valueHolderForSyncLoadTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRepeat = value.repeat + if (valueHolderForRepeat !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRepeatTmpValue = (valueHolderForRepeat as ImageRepeat) + valueSerializer.writeInt32(TypeChecker.ImageRepeat_ToNumeric(valueHolderForRepeatTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): BackgroundImageOptions { + let valueDeserializer : DeserializerBase = buffer + const syncLoadTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let syncLoadTmpBuf : boolean | undefined + if ((syncLoadTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + syncLoadTmpBuf = valueDeserializer.readBoolean() + } + const syncLoadTmpResult : boolean | undefined = syncLoadTmpBuf + const repeatTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let repeatTmpBuf : ImageRepeat | undefined + if ((repeatTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + repeatTmpBuf = TypeChecker.ImageRepeat_FromNumeric(valueDeserializer.readInt32()) + } + const repeatTmpResult : ImageRepeat | undefined = repeatTmpBuf + let value : BackgroundImageOptions = ({syncLoad: syncLoadTmpResult, repeat: repeatTmpResult} as BackgroundImageOptions) + return value + } +} +export class BackgroundOptions_serializer { + public static write(buffer: SerializerBase, value: BackgroundOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForAlign = value.align + if (valueHolderForAlign !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAlignTmpValue = (valueHolderForAlign as Alignment) + valueSerializer.writeInt32(TypeChecker.Alignment_ToNumeric(valueHolderForAlignTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): BackgroundOptions { + let valueDeserializer : DeserializerBase = buffer + const alignTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let alignTmpBuf : Alignment | undefined + if ((alignTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + alignTmpBuf = TypeChecker.Alignment_FromNumeric(valueDeserializer.readInt32()) + } + const alignTmpResult : Alignment | undefined = alignTmpBuf + let value : BackgroundOptions = ({align: alignTmpResult} as BackgroundOptions) + return value + } +} +export class Bindable_Array_Arkui_Component_Units_ResourceStr_serializer { + public static write(buffer: SerializerBase, value: Bindable>): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + valueSerializer.writeInt32((valueHolderForValue.length).toInt()) + for (let valueHolderForValueCounterI = 0; valueHolderForValueCounterI < valueHolderForValue.length; valueHolderForValueCounterI++) { + const valueHolderForValueTmpElement : ResourceStr = valueHolderForValue[valueHolderForValueCounterI] + if (valueHolderForValueTmpElement instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForValueTmpElementForIdx0 = valueHolderForValueTmpElement as string + valueSerializer.writeString(valueHolderForValueTmpElementForIdx0) + } else if (valueHolderForValueTmpElement instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForValueTmpElementForIdx1 = valueHolderForValueTmpElement as Resource + Resource_serializer.write(valueSerializer, valueHolderForValueTmpElementForIdx1) + } + } + const valueHolderForOnChange = value.onChange + valueSerializer.holdAndWriteCallback(valueHolderForOnChange) + } + public static read(buffer: DeserializerBase): Bindable> { + let valueDeserializer : DeserializerBase = buffer + const valueTmpBufLength : int32 = valueDeserializer.readInt32() + let valueTmpBuf : Array = new Array(valueTmpBufLength) + for (let valueTmpBufBufCounterI = 0; valueTmpBufBufCounterI < valueTmpBufLength; valueTmpBufBufCounterI++) { + const valueTmpBufTempBufUnionSelector : int32 = valueDeserializer.readInt8() + let valueTmpBufTempBuf : string | Resource | undefined + if (valueTmpBufTempBufUnionSelector == (0).toChar()) { + valueTmpBufTempBuf = (valueDeserializer.readString() as string) + } else if (valueTmpBufTempBufUnionSelector == (1).toChar()) { + valueTmpBufTempBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for valueTmpBufTempBuf has to be chosen through deserialisation.") + } + valueTmpBuf[valueTmpBufBufCounterI] = (valueTmpBufTempBuf as string | Resource) + } + const valueTmpResult : Array = valueTmpBuf + const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const onChangeTmpResult : ((value0: Array) => void) = (value0: Array):void => { + const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); + onChangeTmpBufBufArgsSerializer.writeInt32((value0.length).toInt()); + for (let value0CounterI = 0; value0CounterI < value0.length; value0CounterI++) { + const value0TmpElement : ResourceStr = value0[value0CounterI]; + if (value0TmpElement instanceof string) { + onChangeTmpBufBufArgsSerializer.writeInt8((0).toChar()); + const value0TmpElementForIdx0 = value0TmpElement as string; + onChangeTmpBufBufArgsSerializer.writeString(value0TmpElementForIdx0); + } else if (value0TmpElement instanceof Resource) { + onChangeTmpBufBufArgsSerializer.writeInt8((1).toChar()); + const value0TmpElementForIdx1 = value0TmpElement as Resource; + Resource_serializer.write(onChangeTmpBufBufArgsSerializer, value0TmpElementForIdx1); + } + } + InteropNativeModule._CallCallback(354105852, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); + onChangeTmpBufBufArgsSerializer.release(); + return; + } + let value : Bindable> = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable>) + return value + } +} +export class Bindable_Array_Number_serializer { + public static write(buffer: SerializerBase, value: Bindable>): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + valueSerializer.writeInt32((valueHolderForValue.length).toInt()) + for (let valueHolderForValueCounterI = 0; valueHolderForValueCounterI < valueHolderForValue.length; valueHolderForValueCounterI++) { + const valueHolderForValueTmpElement : number = valueHolderForValue[valueHolderForValueCounterI] + valueSerializer.writeNumber(valueHolderForValueTmpElement) + } + const valueHolderForOnChange = value.onChange + valueSerializer.holdAndWriteCallback(valueHolderForOnChange) + } + public static read(buffer: DeserializerBase): Bindable> { + let valueDeserializer : DeserializerBase = buffer + const valueTmpBufLength : int32 = valueDeserializer.readInt32() + let valueTmpBuf : Array = new Array(valueTmpBufLength) + for (let valueTmpBufBufCounterI = 0; valueTmpBufBufCounterI < valueTmpBufLength; valueTmpBufBufCounterI++) { + valueTmpBuf[valueTmpBufBufCounterI] = (valueDeserializer.readNumber() as number) + } + const valueTmpResult : Array = valueTmpBuf + const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const onChangeTmpResult : ((value0: Array) => void) = (value0: Array):void => { + const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); + onChangeTmpBufBufArgsSerializer.writeInt32((value0.length).toInt()); + for (let value0CounterI = 0; value0CounterI < value0.length; value0CounterI++) { + const value0TmpElement : number = value0[value0CounterI]; + onChangeTmpBufBufArgsSerializer.writeNumber(value0TmpElement); + } + InteropNativeModule._CallCallback(1442979681, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); + onChangeTmpBufBufArgsSerializer.release(); + return; + } + let value : Bindable> = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable>) + return value + } +} +export class Bindable_Boolean_serializer { + public static write(buffer: SerializerBase, value: Bindable): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + valueSerializer.writeBoolean(valueHolderForValue) + const valueHolderForOnChange = value.onChange + valueSerializer.holdAndWriteCallback(valueHolderForOnChange) + } + public static read(buffer: DeserializerBase): Bindable { + let valueDeserializer : DeserializerBase = buffer + const valueTmpResult : boolean = valueDeserializer.readBoolean() + const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const onChangeTmpResult : ((value0: boolean) => void) = (value0: boolean):void => { + const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); + onChangeTmpBufBufArgsSerializer.writeBoolean(value0); + InteropNativeModule._CallCallback(217914240, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); + onChangeTmpBufBufArgsSerializer.release(); + return; + } + let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) + return value + } +} +export class Bindable_Date_serializer { + public static write(buffer: SerializerBase, value: Bindable): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + valueSerializer.writeInt64(valueHolderForValue.getTime().toLong()) + const valueHolderForOnChange = value.onChange + valueSerializer.holdAndWriteCallback(valueHolderForOnChange) + } + public static read(buffer: DeserializerBase): Bindable { + let valueDeserializer : DeserializerBase = buffer + const valueTmpResult : Date = new Date(valueDeserializer.readInt64()) + const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const onChangeTmpResult : ((value0: Date) => void) = (value0: Date):void => { + const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); + onChangeTmpBufBufArgsSerializer.writeInt64(value0.getTime().toLong()); + InteropNativeModule._CallCallback(1108733360, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); + onChangeTmpBufBufArgsSerializer.release(); + return; + } + let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) + return value + } +} +export class Bindable_Number_serializer { + public static write(buffer: SerializerBase, value: Bindable): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + valueSerializer.writeNumber(valueHolderForValue) + const valueHolderForOnChange = value.onChange + valueSerializer.holdAndWriteCallback(valueHolderForOnChange) + } + public static read(buffer: DeserializerBase): Bindable { + let valueDeserializer : DeserializerBase = buffer + const valueTmpResult : number = (valueDeserializer.readNumber() as number) + const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const onChangeTmpResult : ((value0: number) => void) = (value0: number):void => { + const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); + onChangeTmpBufBufArgsSerializer.writeNumber(value0); + InteropNativeModule._CallCallback(1090440167, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); + onChangeTmpBufBufArgsSerializer.release(); + return; + } + let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) + return value + } +} +export class Bindable_String_serializer { + public static write(buffer: SerializerBase, value: Bindable): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + valueSerializer.writeString(valueHolderForValue) + const valueHolderForOnChange = value.onChange + valueSerializer.holdAndWriteCallback(valueHolderForOnChange) + } + public static read(buffer: DeserializerBase): Bindable { + let valueDeserializer : DeserializerBase = buffer + const valueTmpResult : string = (valueDeserializer.readString() as string) + const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const onChangeTmpResult : ((value0: string) => void) = (value0: string):void => { + const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); + onChangeTmpBufBufArgsSerializer.writeString(value0); + InteropNativeModule._CallCallback(1477958353, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); + onChangeTmpBufBufArgsSerializer.release(); + return; + } + let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) + return value + } +} +export class BlurOptions_serializer { + public static write(buffer: SerializerBase, value: BlurOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForGrayscale = value.grayscale + const valueHolderForGrayscale_0 = valueHolderForGrayscale[0] + valueSerializer.writeNumber(valueHolderForGrayscale_0) + const valueHolderForGrayscale_1 = valueHolderForGrayscale[1] + valueSerializer.writeNumber(valueHolderForGrayscale_1) + } + public static read(buffer: DeserializerBase): BlurOptions { + let valueDeserializer : DeserializerBase = buffer + const grayscaleTmpBufValue0 : number = (valueDeserializer.readNumber() as number) + const grayscaleTmpBufValue1 : number = (valueDeserializer.readNumber() as number) + const grayscaleTmpResult : [ number, number ] = ([grayscaleTmpBufValue0, grayscaleTmpBufValue1] as [ number, number ]) + let value : BlurOptions = ({grayscale: grayscaleTmpResult} as BlurOptions) + return value + } +} +export class CaretOffset_serializer { + public static write(buffer: SerializerBase, value: CaretOffset): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForIndex = value.index + valueSerializer.writeNumber(valueHolderForIndex) + const valueHolderForX = value.x + valueSerializer.writeNumber(valueHolderForX) + const valueHolderForY = value.y + valueSerializer.writeNumber(valueHolderForY) + } + public static read(buffer: DeserializerBase): CaretOffset { + let valueDeserializer : DeserializerBase = buffer + const indexTmpResult : number = (valueDeserializer.readNumber() as number) + const xTmpResult : number = (valueDeserializer.readNumber() as number) + const yTmpResult : number = (valueDeserializer.readNumber() as number) + let value : CaretOffset = ({index: indexTmpResult, x: xTmpResult, y: yTmpResult} as CaretOffset) + return value + } +} +export class ChildrenMainSize_serializer { + public static write(buffer: SerializerBase, value: ChildrenMainSize): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): ChildrenMainSize { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return ChildrenMainSizeInternal.fromPtr(ptr) + } +} +export class ClickEffect_serializer { + public static write(buffer: SerializerBase, value: ClickEffect): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForLevel = value.level + valueSerializer.writeInt32(TypeChecker.ClickEffectLevel_ToNumeric(valueHolderForLevel)) + const valueHolderForScale = value.scale + if (valueHolderForScale !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForScaleTmpValue = valueHolderForScale! + valueSerializer.writeNumber(valueHolderForScaleTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): ClickEffect { + let valueDeserializer : DeserializerBase = buffer + const levelTmpResult : ClickEffectLevel = TypeChecker.ClickEffectLevel_FromNumeric(valueDeserializer.readInt32()) + const scaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let scaleTmpBuf : number | undefined + if ((scaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + scaleTmpBuf = (valueDeserializer.readNumber() as number) + } + const scaleTmpResult : number | undefined = scaleTmpBuf + let value : ClickEffect = ({level: levelTmpResult, scale: scaleTmpResult} as ClickEffect) + return value + } +} +export class CrownEvent_serializer { + public static write(buffer: SerializerBase, value: CrownEvent): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForTimestamp = value.timestamp + valueSerializer.writeNumber(valueHolderForTimestamp) + const valueHolderForAngularVelocity = value.angularVelocity + valueSerializer.writeNumber(valueHolderForAngularVelocity) + const valueHolderForDegree = value.degree + valueSerializer.writeNumber(valueHolderForDegree) + const valueHolderForAction = value.action + valueSerializer.writeInt32(TypeChecker.CrownAction_ToNumeric(valueHolderForAction)) + const valueHolderForStopPropagation = value.stopPropagation + valueSerializer.holdAndWriteCallback(valueHolderForStopPropagation) + } + public static read(buffer: DeserializerBase): CrownEvent { + let valueDeserializer : DeserializerBase = buffer + const timestampTmpResult : number = (valueDeserializer.readNumber() as number) + const angularVelocityTmpResult : number = (valueDeserializer.readNumber() as number) + const degreeTmpResult : number = (valueDeserializer.readNumber() as number) + const actionTmpResult : CrownAction = TypeChecker.CrownAction_FromNumeric(valueDeserializer.readInt32()) + const stopPropagationTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const stopPropagationTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const stopPropagationTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const stopPropagationTmpResult : (() => void) = ():void => { + const stopPropagationTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + stopPropagationTmpBufBufArgsSerializer.writeInt32(stopPropagationTmpBufBufResource.resourceId); + stopPropagationTmpBufBufArgsSerializer.writePointer(stopPropagationTmpBufBufCall); + stopPropagationTmpBufBufArgsSerializer.writePointer(stopPropagationTmpBufBufCallSync); + InteropNativeModule._CallCallback(-1867723152, stopPropagationTmpBufBufArgsSerializer.asBuffer(), stopPropagationTmpBufBufArgsSerializer.length()); + stopPropagationTmpBufBufArgsSerializer.release(); + return; + } + let value : CrownEvent = ({timestamp: timestampTmpResult, angularVelocity: angularVelocityTmpResult, degree: degreeTmpResult, action: actionTmpResult, stopPropagation: stopPropagationTmpResult} as CrownEvent) + return value + } +} +export class DateRange_serializer { + public static write(buffer: SerializerBase, value: DateRange): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForStart = value.start + if (valueHolderForStart !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForStartTmpValue = valueHolderForStart! + valueSerializer.writeInt64(valueHolderForStartTmpValue.getTime().toLong()) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnd = value.end + if (valueHolderForEnd !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEndTmpValue = valueHolderForEnd! + valueSerializer.writeInt64(valueHolderForEndTmpValue.getTime().toLong()) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): DateRange { + let valueDeserializer : DeserializerBase = buffer + const startTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let startTmpBuf : Date | undefined + if ((startTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + startTmpBuf = new Date(valueDeserializer.readInt64()) + } + const startTmpResult : Date | undefined = startTmpBuf + const endTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let endTmpBuf : Date | undefined + if ((endTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + endTmpBuf = new Date(valueDeserializer.readInt64()) + } + const endTmpResult : Date | undefined = endTmpBuf + let value : DateRange = ({start: startTmpResult, end: endTmpResult} as DateRange) + return value + } +} +export class DismissContentCoverAction_serializer { + public static write(buffer: SerializerBase, value: DismissContentCoverAction): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForDismiss = value.dismiss + valueSerializer.holdAndWriteCallback(valueHolderForDismiss) + const valueHolderForReason = value.reason + valueSerializer.writeInt32(TypeChecker.DismissReason_ToNumeric(valueHolderForReason)) + } + public static read(buffer: DeserializerBase): DismissContentCoverAction { + let valueDeserializer : DeserializerBase = buffer + const dismissTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const dismissTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const dismissTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const dismissTmpResult : VoidCallback = ():void => { + const dismissTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + dismissTmpBufBufArgsSerializer.writeInt32(dismissTmpBufBufResource.resourceId); + dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCall); + dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCallSync); + InteropNativeModule._CallCallback(-2038961969, dismissTmpBufBufArgsSerializer.asBuffer(), dismissTmpBufBufArgsSerializer.length()); + dismissTmpBufBufArgsSerializer.release(); + return; + } + const reasonTmpResult : DismissReason = TypeChecker.DismissReason_FromNumeric(valueDeserializer.readInt32()) + let value : DismissContentCoverAction = ({dismiss: dismissTmpResult, reason: reasonTmpResult} as DismissContentCoverAction) + return value + } +} +export class DismissPopupAction_serializer { + public static write(buffer: SerializerBase, value: DismissPopupAction): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): DismissPopupAction { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return DismissPopupActionInternal.fromPtr(ptr) + } +} +export class DismissSheetAction_serializer { + public static write(buffer: SerializerBase, value: DismissSheetAction): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForDismiss = value.dismiss + valueSerializer.holdAndWriteCallback(valueHolderForDismiss) + const valueHolderForReason = value.reason + valueSerializer.writeInt32(TypeChecker.DismissReason_ToNumeric(valueHolderForReason)) + } + public static read(buffer: DeserializerBase): DismissSheetAction { + let valueDeserializer : DeserializerBase = buffer + const dismissTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const dismissTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const dismissTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const dismissTmpResult : VoidCallback = ():void => { + const dismissTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + dismissTmpBufBufArgsSerializer.writeInt32(dismissTmpBufBufResource.resourceId); + dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCall); + dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCallSync); + InteropNativeModule._CallCallback(-2038961969, dismissTmpBufBufArgsSerializer.asBuffer(), dismissTmpBufBufArgsSerializer.length()); + dismissTmpBufBufArgsSerializer.release(); + return; + } + const reasonTmpResult : DismissReason = TypeChecker.DismissReason_FromNumeric(valueDeserializer.readInt32()) + let value : DismissSheetAction = ({dismiss: dismissTmpResult, reason: reasonTmpResult} as DismissSheetAction) + return value + } +} +export class DragEvent_serializer { + public static write(buffer: SerializerBase, value: DragEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): DragEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return DragEventInternal.fromPtr(ptr) + } +} +export class DragInteractionOptions_serializer { + public static write(buffer: SerializerBase, value: DragInteractionOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForIsMultiSelectionEnabled = value.isMultiSelectionEnabled + if (valueHolderForIsMultiSelectionEnabled !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForIsMultiSelectionEnabledTmpValue = valueHolderForIsMultiSelectionEnabled! + valueSerializer.writeBoolean(valueHolderForIsMultiSelectionEnabledTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDefaultAnimationBeforeLifting = value.defaultAnimationBeforeLifting + if (valueHolderForDefaultAnimationBeforeLifting !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDefaultAnimationBeforeLiftingTmpValue = valueHolderForDefaultAnimationBeforeLifting! + valueSerializer.writeBoolean(valueHolderForDefaultAnimationBeforeLiftingTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableEdgeAutoScroll = value.enableEdgeAutoScroll + if (valueHolderForEnableEdgeAutoScroll !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableEdgeAutoScrollTmpValue = valueHolderForEnableEdgeAutoScroll! + valueSerializer.writeBoolean(valueHolderForEnableEdgeAutoScrollTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableHapticFeedback = value.enableHapticFeedback + if (valueHolderForEnableHapticFeedback !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableHapticFeedbackTmpValue = valueHolderForEnableHapticFeedback! + valueSerializer.writeBoolean(valueHolderForEnableHapticFeedbackTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForIsLiftingDisabled = value.isLiftingDisabled + if (valueHolderForIsLiftingDisabled !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForIsLiftingDisabledTmpValue = valueHolderForIsLiftingDisabled! + valueSerializer.writeBoolean(valueHolderForIsLiftingDisabledTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): DragInteractionOptions { + let valueDeserializer : DeserializerBase = buffer + const isMultiSelectionEnabledTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let isMultiSelectionEnabledTmpBuf : boolean | undefined + if ((isMultiSelectionEnabledTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + isMultiSelectionEnabledTmpBuf = valueDeserializer.readBoolean() + } + const isMultiSelectionEnabledTmpResult : boolean | undefined = isMultiSelectionEnabledTmpBuf + const defaultAnimationBeforeLiftingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let defaultAnimationBeforeLiftingTmpBuf : boolean | undefined + if ((defaultAnimationBeforeLiftingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + defaultAnimationBeforeLiftingTmpBuf = valueDeserializer.readBoolean() + } + const defaultAnimationBeforeLiftingTmpResult : boolean | undefined = defaultAnimationBeforeLiftingTmpBuf + const enableEdgeAutoScrollTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableEdgeAutoScrollTmpBuf : boolean | undefined + if ((enableEdgeAutoScrollTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableEdgeAutoScrollTmpBuf = valueDeserializer.readBoolean() + } + const enableEdgeAutoScrollTmpResult : boolean | undefined = enableEdgeAutoScrollTmpBuf + const enableHapticFeedbackTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableHapticFeedbackTmpBuf : boolean | undefined + if ((enableHapticFeedbackTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableHapticFeedbackTmpBuf = valueDeserializer.readBoolean() + } + const enableHapticFeedbackTmpResult : boolean | undefined = enableHapticFeedbackTmpBuf + const isLiftingDisabledTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let isLiftingDisabledTmpBuf : boolean | undefined + if ((isLiftingDisabledTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + isLiftingDisabledTmpBuf = valueDeserializer.readBoolean() + } + const isLiftingDisabledTmpResult : boolean | undefined = isLiftingDisabledTmpBuf + let value : DragInteractionOptions = ({isMultiSelectionEnabled: isMultiSelectionEnabledTmpResult, defaultAnimationBeforeLifting: defaultAnimationBeforeLiftingTmpResult, enableEdgeAutoScroll: enableEdgeAutoScrollTmpResult, enableHapticFeedback: enableHapticFeedbackTmpResult, isLiftingDisabled: isLiftingDisabledTmpResult} as DragInteractionOptions) + return value + } +} +export class DragItemInfo_serializer { + public static write(buffer: SerializerBase, value: DragItemInfo): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForPixelMap = value.pixelMap + if (valueHolderForPixelMap !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPixelMapTmpValue = valueHolderForPixelMap! + image_PixelMap_serializer.write(valueSerializer, valueHolderForPixelMapTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBuilder = value.builder + if (valueHolderForBuilder !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBuilderTmpValue = valueHolderForBuilder! + valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForBuilderTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForExtraInfo = value.extraInfo + if (valueHolderForExtraInfo !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForExtraInfoTmpValue = valueHolderForExtraInfo! + valueSerializer.writeString(valueHolderForExtraInfoTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): DragItemInfo { + let valueDeserializer : DeserializerBase = buffer + const pixelMapTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let pixelMapTmpBuf : image.PixelMap | undefined + if ((pixelMapTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + pixelMapTmpBuf = (image_PixelMap_serializer.read(valueDeserializer) as image.PixelMap) + } + const pixelMapTmpResult : image.PixelMap | undefined = pixelMapTmpBuf + const builderTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let builderTmpBuf : CustomBuilder | undefined + if ((builderTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const builderTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const builderTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const builderTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + builderTmpBuf = ():void => { + const builderTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + builderTmpBuf_BufArgsSerializer.writeInt32(builderTmpBuf_BufResource.resourceId); + builderTmpBuf_BufArgsSerializer.writePointer(builderTmpBuf_BufCall); + builderTmpBuf_BufArgsSerializer.writePointer(builderTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(737226752, builderTmpBuf_BufArgsSerializer.asBuffer(), builderTmpBuf_BufArgsSerializer.length()); + builderTmpBuf_BufArgsSerializer.release(); + return; + } + } + const builderTmpResult : CustomBuilder | undefined = builderTmpBuf + const extraInfoTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let extraInfoTmpBuf : string | undefined + if ((extraInfoTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + extraInfoTmpBuf = (valueDeserializer.readString() as string) + } + const extraInfoTmpResult : string | undefined = extraInfoTmpBuf + let value : DragItemInfo = ({pixelMap: pixelMapTmpResult, builder: builderTmpResult, extraInfo: extraInfoTmpResult} as DragItemInfo) + return value + } +} +export class DrawModifier_serializer { + public static write(buffer: SerializerBase, value: DrawModifier): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): DrawModifier { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return DrawModifierInternal.fromPtr(ptr) + } +} +export class DropOptions_serializer { + public static write(buffer: SerializerBase, value: DropOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForDisableDataPrefetch = value.disableDataPrefetch + if (valueHolderForDisableDataPrefetch !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDisableDataPrefetchTmpValue = valueHolderForDisableDataPrefetch! + valueSerializer.writeBoolean(valueHolderForDisableDataPrefetchTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): DropOptions { + let valueDeserializer : DeserializerBase = buffer + const disableDataPrefetchTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let disableDataPrefetchTmpBuf : boolean | undefined + if ((disableDataPrefetchTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + disableDataPrefetchTmpBuf = valueDeserializer.readBoolean() + } + const disableDataPrefetchTmpResult : boolean | undefined = disableDataPrefetchTmpBuf + let value : DropOptions = ({disableDataPrefetch: disableDataPrefetchTmpResult} as DropOptions) + return value + } +} +export class EdgeEffectOptions_serializer { + public static write(buffer: SerializerBase, value: EdgeEffectOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForAlwaysEnabled = value.alwaysEnabled + valueSerializer.writeBoolean(valueHolderForAlwaysEnabled) + const valueHolderForEffectEdge = value.effectEdge + if (valueHolderForEffectEdge !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEffectEdgeTmpValue = valueHolderForEffectEdge! + valueSerializer.writeNumber(valueHolderForEffectEdgeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): EdgeEffectOptions { + let valueDeserializer : DeserializerBase = buffer + const alwaysEnabledTmpResult : boolean = valueDeserializer.readBoolean() + const effectEdgeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let effectEdgeTmpBuf : number | undefined + if ((effectEdgeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + effectEdgeTmpBuf = (valueDeserializer.readNumber() as number) + } + const effectEdgeTmpResult : number | undefined = effectEdgeTmpBuf + let value : EdgeEffectOptions = ({alwaysEnabled: alwaysEnabledTmpResult, effectEdge: effectEdgeTmpResult} as EdgeEffectOptions) + return value + } +} +export class ExpectedFrameRateRange_serializer { + public static write(buffer: SerializerBase, value: ExpectedFrameRateRange): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForMin = value.min + valueSerializer.writeNumber(valueHolderForMin) + const valueHolderForMax = value.max + valueSerializer.writeNumber(valueHolderForMax) + const valueHolderForExpected = value.expected + valueSerializer.writeNumber(valueHolderForExpected) + } + public static read(buffer: DeserializerBase): ExpectedFrameRateRange { + let valueDeserializer : DeserializerBase = buffer + const minTmpResult : number = (valueDeserializer.readNumber() as number) + const maxTmpResult : number = (valueDeserializer.readNumber() as number) + const expectedTmpResult : number = (valueDeserializer.readNumber() as number) + let value : ExpectedFrameRateRange = ({min: minTmpResult, max: maxTmpResult, expected: expectedTmpResult} as ExpectedFrameRateRange) + return value + } +} +export class FocusMovement_serializer { + public static write(buffer: SerializerBase, value: FocusMovement): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForForward = value.forward + if (valueHolderForForward !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForForwardTmpValue = valueHolderForForward! + valueSerializer.writeString(valueHolderForForwardTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackward = value.backward + if (valueHolderForBackward !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackwardTmpValue = valueHolderForBackward! + valueSerializer.writeString(valueHolderForBackwardTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForUp = value.up + if (valueHolderForUp !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForUpTmpValue = valueHolderForUp! + valueSerializer.writeString(valueHolderForUpTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDown = value.down + if (valueHolderForDown !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDownTmpValue = valueHolderForDown! + valueSerializer.writeString(valueHolderForDownTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForLeft = value.left + if (valueHolderForLeft !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForLeftTmpValue = valueHolderForLeft! + valueSerializer.writeString(valueHolderForLeftTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRight = value.right + if (valueHolderForRight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRightTmpValue = valueHolderForRight! + valueSerializer.writeString(valueHolderForRightTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): FocusMovement { + let valueDeserializer : DeserializerBase = buffer + const forwardTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let forwardTmpBuf : string | undefined + if ((forwardTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + forwardTmpBuf = (valueDeserializer.readString() as string) + } + const forwardTmpResult : string | undefined = forwardTmpBuf + const backwardTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backwardTmpBuf : string | undefined + if ((backwardTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backwardTmpBuf = (valueDeserializer.readString() as string) + } + const backwardTmpResult : string | undefined = backwardTmpBuf + const upTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let upTmpBuf : string | undefined + if ((upTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + upTmpBuf = (valueDeserializer.readString() as string) + } + const upTmpResult : string | undefined = upTmpBuf + const downTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let downTmpBuf : string | undefined + if ((downTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + downTmpBuf = (valueDeserializer.readString() as string) + } + const downTmpResult : string | undefined = downTmpBuf + const leftTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let leftTmpBuf : string | undefined + if ((leftTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + leftTmpBuf = (valueDeserializer.readString() as string) + } + const leftTmpResult : string | undefined = leftTmpBuf + const rightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let rightTmpBuf : string | undefined + if ((rightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + rightTmpBuf = (valueDeserializer.readString() as string) + } + const rightTmpResult : string | undefined = rightTmpBuf + let value : FocusMovement = ({forward: forwardTmpResult, backward: backwardTmpResult, up: upTmpResult, down: downTmpResult, left: leftTmpResult, right: rightTmpResult} as FocusMovement) + return value + } +} +export class ForegroundEffectOptions_serializer { + public static write(buffer: SerializerBase, value: ForegroundEffectOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForRadius = value.radius + valueSerializer.writeNumber(valueHolderForRadius) + } + public static read(buffer: DeserializerBase): ForegroundEffectOptions { + let valueDeserializer : DeserializerBase = buffer + const radiusTmpResult : number = (valueDeserializer.readNumber() as number) + let value : ForegroundEffectOptions = ({radius: radiusTmpResult} as ForegroundEffectOptions) + return value + } +} +export class GeometryTransitionOptions_serializer { + public static write(buffer: SerializerBase, value: GeometryTransitionOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForFollow = value.follow + if (valueHolderForFollow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFollowTmpValue = valueHolderForFollow! + valueSerializer.writeBoolean(valueHolderForFollowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForHierarchyStrategy = value.hierarchyStrategy + if (valueHolderForHierarchyStrategy !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHierarchyStrategyTmpValue = (valueHolderForHierarchyStrategy as TransitionHierarchyStrategy) + valueSerializer.writeInt32(TypeChecker.TransitionHierarchyStrategy_ToNumeric(valueHolderForHierarchyStrategyTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): GeometryTransitionOptions { + let valueDeserializer : DeserializerBase = buffer + const followTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let followTmpBuf : boolean | undefined + if ((followTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + followTmpBuf = valueDeserializer.readBoolean() + } + const followTmpResult : boolean | undefined = followTmpBuf + const hierarchyStrategyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let hierarchyStrategyTmpBuf : TransitionHierarchyStrategy | undefined + if ((hierarchyStrategyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + hierarchyStrategyTmpBuf = TypeChecker.TransitionHierarchyStrategy_FromNumeric(valueDeserializer.readInt32()) + } + const hierarchyStrategyTmpResult : TransitionHierarchyStrategy | undefined = hierarchyStrategyTmpBuf + let value : GeometryTransitionOptions = ({follow: followTmpResult, hierarchyStrategy: hierarchyStrategyTmpResult} as GeometryTransitionOptions) + return value + } +} +export class InputCounterOptions_serializer { + public static write(buffer: SerializerBase, value: InputCounterOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForThresholdPercentage = value.thresholdPercentage + if (valueHolderForThresholdPercentage !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForThresholdPercentageTmpValue = valueHolderForThresholdPercentage! + valueSerializer.writeNumber(valueHolderForThresholdPercentageTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForHighlightBorder = value.highlightBorder + if (valueHolderForHighlightBorder !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHighlightBorderTmpValue = valueHolderForHighlightBorder! + valueSerializer.writeBoolean(valueHolderForHighlightBorderTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): InputCounterOptions { + let valueDeserializer : DeserializerBase = buffer + const thresholdPercentageTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let thresholdPercentageTmpBuf : number | undefined + if ((thresholdPercentageTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + thresholdPercentageTmpBuf = (valueDeserializer.readNumber() as number) + } + const thresholdPercentageTmpResult : number | undefined = thresholdPercentageTmpBuf + const highlightBorderTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let highlightBorderTmpBuf : boolean | undefined + if ((highlightBorderTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + highlightBorderTmpBuf = valueDeserializer.readBoolean() + } + const highlightBorderTmpResult : boolean | undefined = highlightBorderTmpBuf + let value : InputCounterOptions = ({thresholdPercentage: thresholdPercentageTmpResult, highlightBorder: highlightBorderTmpResult} as InputCounterOptions) + return value + } +} +export class InvertOptions_serializer { + public static write(buffer: SerializerBase, value: InvertOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForLow = value.low + valueSerializer.writeNumber(valueHolderForLow) + const valueHolderForHigh = value.high + valueSerializer.writeNumber(valueHolderForHigh) + const valueHolderForThreshold = value.threshold + valueSerializer.writeNumber(valueHolderForThreshold) + const valueHolderForThresholdRange = value.thresholdRange + valueSerializer.writeNumber(valueHolderForThresholdRange) + } + public static read(buffer: DeserializerBase): InvertOptions { + let valueDeserializer : DeserializerBase = buffer + const lowTmpResult : number = (valueDeserializer.readNumber() as number) + const highTmpResult : number = (valueDeserializer.readNumber() as number) + const thresholdTmpResult : number = (valueDeserializer.readNumber() as number) + const thresholdRangeTmpResult : number = (valueDeserializer.readNumber() as number) + let value : InvertOptions = ({low: lowTmpResult, high: highTmpResult, threshold: thresholdTmpResult, thresholdRange: thresholdRangeTmpResult} as InvertOptions) + return value + } +} +export class ItemDragInfo_serializer { + public static write(buffer: SerializerBase, value: ItemDragInfo): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForX = value.x + valueSerializer.writeNumber(valueHolderForX) + const valueHolderForY = value.y + valueSerializer.writeNumber(valueHolderForY) + } + public static read(buffer: DeserializerBase): ItemDragInfo { + let valueDeserializer : DeserializerBase = buffer + const xTmpResult : number = (valueDeserializer.readNumber() as number) + const yTmpResult : number = (valueDeserializer.readNumber() as number) + let value : ItemDragInfo = ({x: xTmpResult, y: yTmpResult} as ItemDragInfo) + return value + } +} +export class KeyEvent_serializer { + public static write(buffer: SerializerBase, value: KeyEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): KeyEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return KeyEventInternal.fromPtr(ptr) + } +} +export class LinearGradientBlurOptions_serializer { + public static write(buffer: SerializerBase, value: LinearGradientBlurOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForFractionStops = value.fractionStops + valueSerializer.writeInt32((valueHolderForFractionStops.length).toInt()) + for (let valueHolderForFractionStopsCounterI = 0; valueHolderForFractionStopsCounterI < valueHolderForFractionStops.length; valueHolderForFractionStopsCounterI++) { + const valueHolderForFractionStopsTmpElement : FractionStop = valueHolderForFractionStops[valueHolderForFractionStopsCounterI] + const valueHolderForFractionStopsTmpElement_0 = valueHolderForFractionStopsTmpElement[0] + valueSerializer.writeNumber(valueHolderForFractionStopsTmpElement_0) + const valueHolderForFractionStopsTmpElement_1 = valueHolderForFractionStopsTmpElement[1] + valueSerializer.writeNumber(valueHolderForFractionStopsTmpElement_1) + } + const valueHolderForDirection = value.direction + valueSerializer.writeInt32(TypeChecker.GradientDirection_ToNumeric(valueHolderForDirection)) + } + public static read(buffer: DeserializerBase): LinearGradientBlurOptions { + let valueDeserializer : DeserializerBase = buffer + const fractionStopsTmpBufLength : int32 = valueDeserializer.readInt32() + let fractionStopsTmpBuf : Array = new Array(fractionStopsTmpBufLength) + for (let fractionStopsTmpBufBufCounterI = 0; fractionStopsTmpBufBufCounterI < fractionStopsTmpBufLength; fractionStopsTmpBufBufCounterI++) { + const fractionStopsTmpBufTempBufValue0 : number = (valueDeserializer.readNumber() as number) + const fractionStopsTmpBufTempBufValue1 : number = (valueDeserializer.readNumber() as number) + fractionStopsTmpBuf[fractionStopsTmpBufBufCounterI] = ([fractionStopsTmpBufTempBufValue0, fractionStopsTmpBufTempBufValue1] as FractionStop) + } + const fractionStopsTmpResult : Array = fractionStopsTmpBuf + const directionTmpResult : GradientDirection = TypeChecker.GradientDirection_FromNumeric(valueDeserializer.readInt32()) + let value : LinearGradientBlurOptions = ({fractionStops: fractionStopsTmpResult, direction: directionTmpResult} as LinearGradientBlurOptions) + return value + } +} +export class LinearGradientOptions_serializer { + public static write(buffer: SerializerBase, value: LinearGradientOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForAngle = value.angle + if (valueHolderForAngle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAngleTmpValue = valueHolderForAngle! + if (valueHolderForAngleTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForAngleTmpValueForIdx0 = valueHolderForAngleTmpValue as number + valueSerializer.writeNumber(valueHolderForAngleTmpValueForIdx0) + } else if (valueHolderForAngleTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForAngleTmpValueForIdx1 = valueHolderForAngleTmpValue as string + valueSerializer.writeString(valueHolderForAngleTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDirection = value.direction + if (valueHolderForDirection !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDirectionTmpValue = (valueHolderForDirection as GradientDirection) + valueSerializer.writeInt32(TypeChecker.GradientDirection_ToNumeric(valueHolderForDirectionTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForColors = value.colors + valueSerializer.writeInt32((valueHolderForColors.length).toInt()) + for (let valueHolderForColorsCounterI = 0; valueHolderForColorsCounterI < valueHolderForColors.length; valueHolderForColorsCounterI++) { + const valueHolderForColorsTmpElement : [ ResourceColor, number ] = valueHolderForColors[valueHolderForColorsCounterI] + const valueHolderForColorsTmpElement_0 = valueHolderForColorsTmpElement[0] + if (valueHolderForColorsTmpElement_0 instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorsTmpElement_0ForIdx0 = valueHolderForColorsTmpElement_0 as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorsTmpElement_0ForIdx0)) + } else if (valueHolderForColorsTmpElement_0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorsTmpElement_0ForIdx1 = valueHolderForColorsTmpElement_0 as number + valueSerializer.writeNumber(valueHolderForColorsTmpElement_0ForIdx1) + } else if (valueHolderForColorsTmpElement_0 instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorsTmpElement_0ForIdx2 = valueHolderForColorsTmpElement_0 as string + valueSerializer.writeString(valueHolderForColorsTmpElement_0ForIdx2) + } else if (valueHolderForColorsTmpElement_0 instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorsTmpElement_0ForIdx3 = valueHolderForColorsTmpElement_0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorsTmpElement_0ForIdx3) + } + const valueHolderForColorsTmpElement_1 = valueHolderForColorsTmpElement[1] + valueSerializer.writeNumber(valueHolderForColorsTmpElement_1) + } + const valueHolderForRepeating = value.repeating + if (valueHolderForRepeating !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRepeatingTmpValue = valueHolderForRepeating! + valueSerializer.writeBoolean(valueHolderForRepeatingTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): LinearGradientOptions { + let valueDeserializer : DeserializerBase = buffer + const angleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let angleTmpBuf : number | string | undefined + if ((angleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const angleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let angleTmpBuf_ : number | string | undefined + if (angleTmpBuf_UnionSelector == (0).toChar()) { + angleTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (angleTmpBuf_UnionSelector == (1).toChar()) { + angleTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for angleTmpBuf_ has to be chosen through deserialisation.") + } + angleTmpBuf = (angleTmpBuf_ as number | string) + } + const angleTmpResult : number | string | undefined = angleTmpBuf + const directionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let directionTmpBuf : GradientDirection | undefined + if ((directionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + directionTmpBuf = TypeChecker.GradientDirection_FromNumeric(valueDeserializer.readInt32()) + } + const directionTmpResult : GradientDirection | undefined = directionTmpBuf + const colorsTmpBufLength : int32 = valueDeserializer.readInt32() + let colorsTmpBuf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colorsTmpBufLength) + for (let colorsTmpBufBufCounterI = 0; colorsTmpBufBufCounterI < colorsTmpBufLength; colorsTmpBufBufCounterI++) { + const colorsTmpBufTempBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() + let colorsTmpBufTempBufValue0TempBuf : Color | number | string | Resource | undefined + if (colorsTmpBufTempBufValue0TempBufUnionSelector == (0).toChar()) { + colorsTmpBufTempBufValue0TempBuf = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (1).toChar()) { + colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readNumber() as number) + } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (2).toChar()) { + colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readString() as string) + } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (3).toChar()) { + colorsTmpBufTempBufValue0TempBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for colorsTmpBufTempBufValue0TempBuf has to be chosen through deserialisation.") + } + const colorsTmpBufTempBufValue0 : ResourceColor = (colorsTmpBufTempBufValue0TempBuf as Color | number | string | Resource) + const colorsTmpBufTempBufValue1 : number = (valueDeserializer.readNumber() as number) + colorsTmpBuf[colorsTmpBufBufCounterI] = ([colorsTmpBufTempBufValue0, colorsTmpBufTempBufValue1] as [ ResourceColor, number ]) + } + const colorsTmpResult : Array<[ ResourceColor, number ]> = colorsTmpBuf + const repeatingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let repeatingTmpBuf : boolean | undefined + if ((repeatingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + repeatingTmpBuf = valueDeserializer.readBoolean() + } + const repeatingTmpResult : boolean | undefined = repeatingTmpBuf + let value : LinearGradientOptions = ({angle: angleTmpResult, direction: directionTmpResult, colors: colorsTmpResult, repeating: repeatingTmpResult} as LinearGradientOptions) + return value + } +} +export class LocalizedHorizontalAlignParam_serializer { + public static write(buffer: SerializerBase, value: LocalizedHorizontalAlignParam): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForAnchor = value.anchor + valueSerializer.writeString(valueHolderForAnchor) + const valueHolderForAlign = value.align + valueSerializer.writeInt32(TypeChecker.HorizontalAlign_ToNumeric(valueHolderForAlign)) + } + public static read(buffer: DeserializerBase): LocalizedHorizontalAlignParam { + let valueDeserializer : DeserializerBase = buffer + const anchorTmpResult : string = (valueDeserializer.readString() as string) + const alignTmpResult : HorizontalAlign = TypeChecker.HorizontalAlign_FromNumeric(valueDeserializer.readInt32()) + let value : LocalizedHorizontalAlignParam = ({anchor: anchorTmpResult, align: alignTmpResult} as LocalizedHorizontalAlignParam) + return value + } +} +export class LocalizedVerticalAlignParam_serializer { + public static write(buffer: SerializerBase, value: LocalizedVerticalAlignParam): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForAnchor = value.anchor + valueSerializer.writeString(valueHolderForAnchor) + const valueHolderForAlign = value.align + valueSerializer.writeInt32(TypeChecker.VerticalAlign_ToNumeric(valueHolderForAlign)) + } + public static read(buffer: DeserializerBase): LocalizedVerticalAlignParam { + let valueDeserializer : DeserializerBase = buffer + const anchorTmpResult : string = (valueDeserializer.readString() as string) + const alignTmpResult : VerticalAlign = TypeChecker.VerticalAlign_FromNumeric(valueDeserializer.readInt32()) + let value : LocalizedVerticalAlignParam = ({anchor: anchorTmpResult, align: alignTmpResult} as LocalizedVerticalAlignParam) + return value + } +} +export class Measurable_serializer { + public static write(buffer: SerializerBase, value: Measurable): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): Measurable { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return MeasurableInternal.fromPtr(ptr) + } +} +export class MeasureResult_serializer { + public static write(buffer: SerializerBase, value: MeasureResult): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForWidth = value.width + valueSerializer.writeNumber(valueHolderForWidth) + const valueHolderForHeight = value.height + valueSerializer.writeNumber(valueHolderForHeight) + } + public static read(buffer: DeserializerBase): MeasureResult { + let valueDeserializer : DeserializerBase = buffer + const widthTmpResult : number = (valueDeserializer.readNumber() as number) + const heightTmpResult : number = (valueDeserializer.readNumber() as number) + let value : MeasureResult = ({width: widthTmpResult, height: heightTmpResult} as MeasureResult) + return value + } +} +export class MotionBlurAnchor_serializer { + public static write(buffer: SerializerBase, value: MotionBlurAnchor): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForX = value.x + valueSerializer.writeNumber(valueHolderForX) + const valueHolderForY = value.y + valueSerializer.writeNumber(valueHolderForY) + } + public static read(buffer: DeserializerBase): MotionBlurAnchor { + let valueDeserializer : DeserializerBase = buffer + const xTmpResult : number = (valueDeserializer.readNumber() as number) + const yTmpResult : number = (valueDeserializer.readNumber() as number) + let value : MotionBlurAnchor = ({x: xTmpResult, y: yTmpResult} as MotionBlurAnchor) + return value + } +} +export class MotionBlurOptions_serializer { + public static write(buffer: SerializerBase, value: MotionBlurOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForRadius = value.radius + valueSerializer.writeNumber(valueHolderForRadius) + const valueHolderForAnchor = value.anchor + MotionBlurAnchor_serializer.write(valueSerializer, valueHolderForAnchor) + } + public static read(buffer: DeserializerBase): MotionBlurOptions { + let valueDeserializer : DeserializerBase = buffer + const radiusTmpResult : number = (valueDeserializer.readNumber() as number) + const anchorTmpResult : MotionBlurAnchor = MotionBlurAnchor_serializer.read(valueDeserializer) + let value : MotionBlurOptions = ({radius: radiusTmpResult, anchor: anchorTmpResult} as MotionBlurOptions) + return value + } +} +export class MotionPathOptions_serializer { + public static write(buffer: SerializerBase, value: MotionPathOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForPath = value.path + valueSerializer.writeString(valueHolderForPath) + const valueHolderForFrom = value.from + if (valueHolderForFrom !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFromTmpValue = valueHolderForFrom! + valueSerializer.writeNumber(valueHolderForFromTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTo = value.to + if (valueHolderForTo !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForToTmpValue = valueHolderForTo! + valueSerializer.writeNumber(valueHolderForToTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRotatable = value.rotatable + if (valueHolderForRotatable !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRotatableTmpValue = valueHolderForRotatable! + valueSerializer.writeBoolean(valueHolderForRotatableTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): MotionPathOptions { + let valueDeserializer : DeserializerBase = buffer + const pathTmpResult : string = (valueDeserializer.readString() as string) + const fromTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fromTmpBuf : number | undefined + if ((fromTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + fromTmpBuf = (valueDeserializer.readNumber() as number) + } + const fromTmpResult : number | undefined = fromTmpBuf + const toTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let toTmpBuf : number | undefined + if ((toTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + toTmpBuf = (valueDeserializer.readNumber() as number) + } + const toTmpResult : number | undefined = toTmpBuf + const rotatableTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let rotatableTmpBuf : boolean | undefined + if ((rotatableTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + rotatableTmpBuf = valueDeserializer.readBoolean() + } + const rotatableTmpResult : boolean | undefined = rotatableTmpBuf + let value : MotionPathOptions = ({path: pathTmpResult, from: fromTmpResult, to: toTmpResult, rotatable: rotatableTmpResult} as MotionPathOptions) + return value + } +} +export class OverlayOffset_serializer { + public static write(buffer: SerializerBase, value: OverlayOffset): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForX = value.x + if (valueHolderForX !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForXTmpValue = valueHolderForX! + valueSerializer.writeNumber(valueHolderForXTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForY = value.y + if (valueHolderForY !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForYTmpValue = valueHolderForY! + valueSerializer.writeNumber(valueHolderForYTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): OverlayOffset { + let valueDeserializer : DeserializerBase = buffer + const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let xTmpBuf : number | undefined + if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + xTmpBuf = (valueDeserializer.readNumber() as number) + } + const xTmpResult : number | undefined = xTmpBuf + const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let yTmpBuf : number | undefined + if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + yTmpBuf = (valueDeserializer.readNumber() as number) + } + const yTmpResult : number | undefined = yTmpBuf + let value : OverlayOffset = ({x: xTmpResult, y: yTmpResult} as OverlayOffset) + return value + } +} +export class PixelRoundPolicy_serializer { + public static write(buffer: SerializerBase, value: PixelRoundPolicy): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForStart = value.start + if (valueHolderForStart !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForStartTmpValue = (valueHolderForStart as PixelRoundCalcPolicy) + valueSerializer.writeInt32(TypeChecker.PixelRoundCalcPolicy_ToNumeric(valueHolderForStartTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTop = value.top + if (valueHolderForTop !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTopTmpValue = (valueHolderForTop as PixelRoundCalcPolicy) + valueSerializer.writeInt32(TypeChecker.PixelRoundCalcPolicy_ToNumeric(valueHolderForTopTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnd = value.end + if (valueHolderForEnd !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEndTmpValue = (valueHolderForEnd as PixelRoundCalcPolicy) + valueSerializer.writeInt32(TypeChecker.PixelRoundCalcPolicy_ToNumeric(valueHolderForEndTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBottom = value.bottom + if (valueHolderForBottom !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBottomTmpValue = (valueHolderForBottom as PixelRoundCalcPolicy) + valueSerializer.writeInt32(TypeChecker.PixelRoundCalcPolicy_ToNumeric(valueHolderForBottomTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): PixelRoundPolicy { + let valueDeserializer : DeserializerBase = buffer + const startTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let startTmpBuf : PixelRoundCalcPolicy | undefined + if ((startTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + startTmpBuf = TypeChecker.PixelRoundCalcPolicy_FromNumeric(valueDeserializer.readInt32()) + } + const startTmpResult : PixelRoundCalcPolicy | undefined = startTmpBuf + const topTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let topTmpBuf : PixelRoundCalcPolicy | undefined + if ((topTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + topTmpBuf = TypeChecker.PixelRoundCalcPolicy_FromNumeric(valueDeserializer.readInt32()) + } + const topTmpResult : PixelRoundCalcPolicy | undefined = topTmpBuf + const endTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let endTmpBuf : PixelRoundCalcPolicy | undefined + if ((endTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + endTmpBuf = TypeChecker.PixelRoundCalcPolicy_FromNumeric(valueDeserializer.readInt32()) + } + const endTmpResult : PixelRoundCalcPolicy | undefined = endTmpBuf + const bottomTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let bottomTmpBuf : PixelRoundCalcPolicy | undefined + if ((bottomTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + bottomTmpBuf = TypeChecker.PixelRoundCalcPolicy_FromNumeric(valueDeserializer.readInt32()) + } + const bottomTmpResult : PixelRoundCalcPolicy | undefined = bottomTmpBuf + let value : PixelRoundPolicy = ({start: startTmpResult, top: topTmpResult, end: endTmpResult, bottom: bottomTmpResult} as PixelRoundPolicy) + return value + } +} +export class PopupButton_serializer { + public static write(buffer: SerializerBase, value: PopupButton): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + valueSerializer.writeString(valueHolderForValue) + const valueHolderForAction = value.action + valueSerializer.holdAndWriteCallback(valueHolderForAction) + } + public static read(buffer: DeserializerBase): PopupButton { + let valueDeserializer : DeserializerBase = buffer + const valueTmpResult : string = (valueDeserializer.readString() as string) + const actionTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const actionTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const actionTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const actionTmpResult : VoidCallback = ():void => { + const actionTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + actionTmpBufBufArgsSerializer.writeInt32(actionTmpBufBufResource.resourceId); + actionTmpBufBufArgsSerializer.writePointer(actionTmpBufBufCall); + actionTmpBufBufArgsSerializer.writePointer(actionTmpBufBufCallSync); + InteropNativeModule._CallCallback(-2038961969, actionTmpBufBufArgsSerializer.asBuffer(), actionTmpBufBufArgsSerializer.length()); + actionTmpBufBufArgsSerializer.release(); + return; + } + let value : PopupButton = ({value: valueTmpResult, action: actionTmpResult} as PopupButton) + return value + } +} +export class PreviewConfiguration_serializer { + public static write(buffer: SerializerBase, value: PreviewConfiguration): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForOnlyForLifting = value.onlyForLifting + if (valueHolderForOnlyForLifting !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnlyForLiftingTmpValue = valueHolderForOnlyForLifting! + valueSerializer.writeBoolean(valueHolderForOnlyForLiftingTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDelayCreating = value.delayCreating + if (valueHolderForDelayCreating !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDelayCreatingTmpValue = valueHolderForDelayCreating! + valueSerializer.writeBoolean(valueHolderForDelayCreatingTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): PreviewConfiguration { + let valueDeserializer : DeserializerBase = buffer + const onlyForLiftingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onlyForLiftingTmpBuf : boolean | undefined + if ((onlyForLiftingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + onlyForLiftingTmpBuf = valueDeserializer.readBoolean() + } + const onlyForLiftingTmpResult : boolean | undefined = onlyForLiftingTmpBuf + const delayCreatingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let delayCreatingTmpBuf : boolean | undefined + if ((delayCreatingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + delayCreatingTmpBuf = valueDeserializer.readBoolean() + } + const delayCreatingTmpResult : boolean | undefined = delayCreatingTmpBuf + let value : PreviewConfiguration = ({onlyForLifting: onlyForLiftingTmpResult, delayCreating: delayCreatingTmpResult} as PreviewConfiguration) + return value + } +} +export class RotateOptions_serializer { + public static write(buffer: SerializerBase, value: RotateOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForX = value.x + if (valueHolderForX !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForXTmpValue = valueHolderForX! + valueSerializer.writeNumber(valueHolderForXTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForY = value.y + if (valueHolderForY !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForYTmpValue = valueHolderForY! + valueSerializer.writeNumber(valueHolderForYTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForZ = value.z + if (valueHolderForZ !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForZTmpValue = valueHolderForZ! + valueSerializer.writeNumber(valueHolderForZTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForCenterX = value.centerX + if (valueHolderForCenterX !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForCenterXTmpValue = valueHolderForCenterX! + if (valueHolderForCenterXTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCenterXTmpValueForIdx0 = valueHolderForCenterXTmpValue as number + valueSerializer.writeNumber(valueHolderForCenterXTmpValueForIdx0) + } else if (valueHolderForCenterXTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCenterXTmpValueForIdx1 = valueHolderForCenterXTmpValue as string + valueSerializer.writeString(valueHolderForCenterXTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForCenterY = value.centerY + if (valueHolderForCenterY !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForCenterYTmpValue = valueHolderForCenterY! + if (valueHolderForCenterYTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCenterYTmpValueForIdx0 = valueHolderForCenterYTmpValue as number + valueSerializer.writeNumber(valueHolderForCenterYTmpValueForIdx0) + } else if (valueHolderForCenterYTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCenterYTmpValueForIdx1 = valueHolderForCenterYTmpValue as string + valueSerializer.writeString(valueHolderForCenterYTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForCenterZ = value.centerZ + if (valueHolderForCenterZ !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForCenterZTmpValue = valueHolderForCenterZ! + valueSerializer.writeNumber(valueHolderForCenterZTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPerspective = value.perspective + if (valueHolderForPerspective !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPerspectiveTmpValue = valueHolderForPerspective! + valueSerializer.writeNumber(valueHolderForPerspectiveTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAngle = value.angle + if (valueHolderForAngle instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForAngleForIdx0 = valueHolderForAngle as number + valueSerializer.writeNumber(valueHolderForAngleForIdx0) + } else if (valueHolderForAngle instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForAngleForIdx1 = valueHolderForAngle as string + valueSerializer.writeString(valueHolderForAngleForIdx1) + } + } + public static read(buffer: DeserializerBase): RotateOptions { + let valueDeserializer : DeserializerBase = buffer + const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let xTmpBuf : number | undefined + if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + xTmpBuf = (valueDeserializer.readNumber() as number) + } + const xTmpResult : number | undefined = xTmpBuf + const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let yTmpBuf : number | undefined + if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + yTmpBuf = (valueDeserializer.readNumber() as number) + } + const yTmpResult : number | undefined = yTmpBuf + const zTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let zTmpBuf : number | undefined + if ((zTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + zTmpBuf = (valueDeserializer.readNumber() as number) + } + const zTmpResult : number | undefined = zTmpBuf + const centerXTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let centerXTmpBuf : number | string | undefined + if ((centerXTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const centerXTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let centerXTmpBuf_ : number | string | undefined + if (centerXTmpBuf_UnionSelector == (0).toChar()) { + centerXTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (centerXTmpBuf_UnionSelector == (1).toChar()) { + centerXTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for centerXTmpBuf_ has to be chosen through deserialisation.") + } + centerXTmpBuf = (centerXTmpBuf_ as number | string) + } + const centerXTmpResult : number | string | undefined = centerXTmpBuf + const centerYTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let centerYTmpBuf : number | string | undefined + if ((centerYTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const centerYTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let centerYTmpBuf_ : number | string | undefined + if (centerYTmpBuf_UnionSelector == (0).toChar()) { + centerYTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (centerYTmpBuf_UnionSelector == (1).toChar()) { + centerYTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for centerYTmpBuf_ has to be chosen through deserialisation.") + } + centerYTmpBuf = (centerYTmpBuf_ as number | string) + } + const centerYTmpResult : number | string | undefined = centerYTmpBuf + const centerZTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let centerZTmpBuf : number | undefined + if ((centerZTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + centerZTmpBuf = (valueDeserializer.readNumber() as number) + } + const centerZTmpResult : number | undefined = centerZTmpBuf + const perspectiveTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let perspectiveTmpBuf : number | undefined + if ((perspectiveTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + perspectiveTmpBuf = (valueDeserializer.readNumber() as number) + } + const perspectiveTmpResult : number | undefined = perspectiveTmpBuf + const angleTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let angleTmpBuf : number | string | undefined + if (angleTmpBufUnionSelector == (0).toChar()) { + angleTmpBuf = (valueDeserializer.readNumber() as number) + } else if (angleTmpBufUnionSelector == (1).toChar()) { + angleTmpBuf = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for angleTmpBuf has to be chosen through deserialisation.") + } + const angleTmpResult : number | string = (angleTmpBuf as number | string) + let value : RotateOptions = ({x: xTmpResult, y: yTmpResult, z: zTmpResult, centerX: centerXTmpResult, centerY: centerYTmpResult, centerZ: centerZTmpResult, perspective: perspectiveTmpResult, angle: angleTmpResult} as RotateOptions) + return value + } +} +export class ScaleOptions_serializer { + public static write(buffer: SerializerBase, value: ScaleOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForX = value.x + if (valueHolderForX !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForXTmpValue = valueHolderForX! + valueSerializer.writeNumber(valueHolderForXTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForY = value.y + if (valueHolderForY !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForYTmpValue = valueHolderForY! + valueSerializer.writeNumber(valueHolderForYTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForZ = value.z + if (valueHolderForZ !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForZTmpValue = valueHolderForZ! + valueSerializer.writeNumber(valueHolderForZTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForCenterX = value.centerX + if (valueHolderForCenterX !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForCenterXTmpValue = valueHolderForCenterX! + if (valueHolderForCenterXTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCenterXTmpValueForIdx0 = valueHolderForCenterXTmpValue as number + valueSerializer.writeNumber(valueHolderForCenterXTmpValueForIdx0) + } else if (valueHolderForCenterXTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCenterXTmpValueForIdx1 = valueHolderForCenterXTmpValue as string + valueSerializer.writeString(valueHolderForCenterXTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForCenterY = value.centerY + if (valueHolderForCenterY !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForCenterYTmpValue = valueHolderForCenterY! + if (valueHolderForCenterYTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCenterYTmpValueForIdx0 = valueHolderForCenterYTmpValue as number + valueSerializer.writeNumber(valueHolderForCenterYTmpValueForIdx0) + } else if (valueHolderForCenterYTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCenterYTmpValueForIdx1 = valueHolderForCenterYTmpValue as string + valueSerializer.writeString(valueHolderForCenterYTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): ScaleOptions { + let valueDeserializer : DeserializerBase = buffer + const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let xTmpBuf : number | undefined + if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + xTmpBuf = (valueDeserializer.readNumber() as number) + } + const xTmpResult : number | undefined = xTmpBuf + const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let yTmpBuf : number | undefined + if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + yTmpBuf = (valueDeserializer.readNumber() as number) + } + const yTmpResult : number | undefined = yTmpBuf + const zTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let zTmpBuf : number | undefined + if ((zTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + zTmpBuf = (valueDeserializer.readNumber() as number) + } + const zTmpResult : number | undefined = zTmpBuf + const centerXTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let centerXTmpBuf : number | string | undefined + if ((centerXTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const centerXTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let centerXTmpBuf_ : number | string | undefined + if (centerXTmpBuf_UnionSelector == (0).toChar()) { + centerXTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (centerXTmpBuf_UnionSelector == (1).toChar()) { + centerXTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for centerXTmpBuf_ has to be chosen through deserialisation.") + } + centerXTmpBuf = (centerXTmpBuf_ as number | string) + } + const centerXTmpResult : number | string | undefined = centerXTmpBuf + const centerYTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let centerYTmpBuf : number | string | undefined + if ((centerYTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const centerYTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let centerYTmpBuf_ : number | string | undefined + if (centerYTmpBuf_UnionSelector == (0).toChar()) { + centerYTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (centerYTmpBuf_UnionSelector == (1).toChar()) { + centerYTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for centerYTmpBuf_ has to be chosen through deserialisation.") + } + centerYTmpBuf = (centerYTmpBuf_ as number | string) + } + const centerYTmpResult : number | string | undefined = centerYTmpBuf + let value : ScaleOptions = ({x: xTmpResult, y: yTmpResult, z: zTmpResult, centerX: centerXTmpResult, centerY: centerYTmpResult} as ScaleOptions) + return value + } +} +export class SelectionOptions_serializer { + public static write(buffer: SerializerBase, value: SelectionOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForMenuPolicy = value.menuPolicy + if (valueHolderForMenuPolicy !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForMenuPolicyTmpValue = (valueHolderForMenuPolicy as MenuPolicy) + valueSerializer.writeInt32(TypeChecker.MenuPolicy_ToNumeric(valueHolderForMenuPolicyTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): SelectionOptions { + let valueDeserializer : DeserializerBase = buffer + const menuPolicyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let menuPolicyTmpBuf : MenuPolicy | undefined + if ((menuPolicyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + menuPolicyTmpBuf = TypeChecker.MenuPolicy_FromNumeric(valueDeserializer.readInt32()) + } + const menuPolicyTmpResult : MenuPolicy | undefined = menuPolicyTmpBuf + let value : SelectionOptions = ({menuPolicy: menuPolicyTmpResult} as SelectionOptions) + return value + } +} +export class SheetDismiss_serializer { + public static write(buffer: SerializerBase, value: SheetDismiss): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForDismiss = value.dismiss + valueSerializer.holdAndWriteCallback(valueHolderForDismiss) + } + public static read(buffer: DeserializerBase): SheetDismiss { + let valueDeserializer : DeserializerBase = buffer + const dismissTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const dismissTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const dismissTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const dismissTmpResult : VoidCallback = ():void => { + const dismissTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + dismissTmpBufBufArgsSerializer.writeInt32(dismissTmpBufBufResource.resourceId); + dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCall); + dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCallSync); + InteropNativeModule._CallCallback(-2038961969, dismissTmpBufBufArgsSerializer.asBuffer(), dismissTmpBufBufArgsSerializer.length()); + dismissTmpBufBufArgsSerializer.release(); + return; + } + let value : SheetDismiss = ({dismiss: dismissTmpResult} as SheetDismiss) + return value + } +} +export class SpringBackAction_serializer { + public static write(buffer: SerializerBase, value: SpringBackAction): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForSpringBack = value.springBack + valueSerializer.holdAndWriteCallback(valueHolderForSpringBack) + } + public static read(buffer: DeserializerBase): SpringBackAction { + let valueDeserializer : DeserializerBase = buffer + const springBackTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const springBackTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const springBackTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const springBackTmpResult : VoidCallback = ():void => { + const springBackTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + springBackTmpBufBufArgsSerializer.writeInt32(springBackTmpBufBufResource.resourceId); + springBackTmpBufBufArgsSerializer.writePointer(springBackTmpBufBufCall); + springBackTmpBufBufArgsSerializer.writePointer(springBackTmpBufBufCallSync); + InteropNativeModule._CallCallback(-2038961969, springBackTmpBufBufArgsSerializer.asBuffer(), springBackTmpBufBufArgsSerializer.length()); + springBackTmpBufBufArgsSerializer.release(); + return; + } + let value : SpringBackAction = ({springBack: springBackTmpResult} as SpringBackAction) + return value + } +} +export class SystemAdaptiveOptions_serializer { + public static write(buffer: SerializerBase, value: SystemAdaptiveOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForDisableSystemAdaptation = value.disableSystemAdaptation + if (valueHolderForDisableSystemAdaptation !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDisableSystemAdaptationTmpValue = valueHolderForDisableSystemAdaptation! + valueSerializer.writeBoolean(valueHolderForDisableSystemAdaptationTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): SystemAdaptiveOptions { + let valueDeserializer : DeserializerBase = buffer + const disableSystemAdaptationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let disableSystemAdaptationTmpBuf : boolean | undefined + if ((disableSystemAdaptationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + disableSystemAdaptationTmpBuf = valueDeserializer.readBoolean() + } + const disableSystemAdaptationTmpResult : boolean | undefined = disableSystemAdaptationTmpBuf + let value : SystemAdaptiveOptions = ({disableSystemAdaptation: disableSystemAdaptationTmpResult} as SystemAdaptiveOptions) + return value + } +} +export class TextContentControllerOptions_serializer { + public static write(buffer: SerializerBase, value: TextContentControllerOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForOffset = value.offset + if (valueHolderForOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetTmpValue = valueHolderForOffset! + valueSerializer.writeNumber(valueHolderForOffsetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): TextContentControllerOptions { + let valueDeserializer : DeserializerBase = buffer + const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetTmpBuf : number | undefined + if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + offsetTmpBuf = (valueDeserializer.readNumber() as number) + } + const offsetTmpResult : number | undefined = offsetTmpBuf + let value : TextContentControllerOptions = ({offset: offsetTmpResult} as TextContentControllerOptions) + return value + } +} +export class TouchObject_serializer { + public static write(buffer: SerializerBase, value: TouchObject): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForType = value.type + valueSerializer.writeInt32(TypeChecker.TouchType_ToNumeric(valueHolderForType)) + const valueHolderForId = value.id + valueSerializer.writeNumber(valueHolderForId) + const valueHolderForDisplayX = value.displayX + valueSerializer.writeNumber(valueHolderForDisplayX) + const valueHolderForDisplayY = value.displayY + valueSerializer.writeNumber(valueHolderForDisplayY) + const valueHolderForWindowX = value.windowX + valueSerializer.writeNumber(valueHolderForWindowX) + const valueHolderForWindowY = value.windowY + valueSerializer.writeNumber(valueHolderForWindowY) + const valueHolderForX = value.x + valueSerializer.writeNumber(valueHolderForX) + const valueHolderForY = value.y + valueSerializer.writeNumber(valueHolderForY) + const valueHolderForHand = value.hand + if (valueHolderForHand !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHandTmpValue = (valueHolderForHand as InteractionHand) + valueSerializer.writeInt32(TypeChecker.InteractionHand_ToNumeric(valueHolderForHandTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPressedTime = value.pressedTime + if (valueHolderForPressedTime !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPressedTimeTmpValue = valueHolderForPressedTime! + valueSerializer.writeNumber(valueHolderForPressedTimeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPressure = value.pressure + if (valueHolderForPressure !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPressureTmpValue = valueHolderForPressure! + valueSerializer.writeNumber(valueHolderForPressureTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForWidth = value.width + if (valueHolderForWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForWidthTmpValue = valueHolderForWidth! + valueSerializer.writeNumber(valueHolderForWidthTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForHeight = value.height + if (valueHolderForHeight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHeightTmpValue = valueHolderForHeight! + valueSerializer.writeNumber(valueHolderForHeightTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): TouchObject { + let valueDeserializer : DeserializerBase = buffer + const typeTmpResult : TouchType = TypeChecker.TouchType_FromNumeric(valueDeserializer.readInt32()) + const idTmpResult : number = (valueDeserializer.readNumber() as number) + const displayXTmpResult : number = (valueDeserializer.readNumber() as number) + const displayYTmpResult : number = (valueDeserializer.readNumber() as number) + const windowXTmpResult : number = (valueDeserializer.readNumber() as number) + const windowYTmpResult : number = (valueDeserializer.readNumber() as number) + const xTmpResult : number = (valueDeserializer.readNumber() as number) + const yTmpResult : number = (valueDeserializer.readNumber() as number) + const handTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let handTmpBuf : InteractionHand | undefined + if ((handTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + handTmpBuf = TypeChecker.InteractionHand_FromNumeric(valueDeserializer.readInt32()) + } + const handTmpResult : InteractionHand | undefined = handTmpBuf + const pressedTimeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let pressedTimeTmpBuf : number | undefined + if ((pressedTimeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + pressedTimeTmpBuf = (valueDeserializer.readNumber() as number) + } + const pressedTimeTmpResult : number | undefined = pressedTimeTmpBuf + const pressureTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let pressureTmpBuf : number | undefined + if ((pressureTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + pressureTmpBuf = (valueDeserializer.readNumber() as number) + } + const pressureTmpResult : number | undefined = pressureTmpBuf + const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let widthTmpBuf : number | undefined + if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + widthTmpBuf = (valueDeserializer.readNumber() as number) + } + const widthTmpResult : number | undefined = widthTmpBuf + const heightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let heightTmpBuf : number | undefined + if ((heightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + heightTmpBuf = (valueDeserializer.readNumber() as number) + } + const heightTmpResult : number | undefined = heightTmpBuf + let value : TouchObject = ({type: typeTmpResult, id: idTmpResult, displayX: displayXTmpResult, displayY: displayYTmpResult, windowX: windowXTmpResult, windowY: windowYTmpResult, x: xTmpResult, y: yTmpResult, hand: handTmpResult, pressedTime: pressedTimeTmpResult, pressure: pressureTmpResult, width: widthTmpResult, height: heightTmpResult} as TouchObject) + return value + } +} +export class TouchResult_serializer { + public static write(buffer: SerializerBase, value: TouchResult): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForStrategy = value.strategy + valueSerializer.writeInt32(TypeChecker.TouchTestStrategy_ToNumeric(valueHolderForStrategy)) + const valueHolderForId = value.id + if (valueHolderForId !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForIdTmpValue = valueHolderForId! + valueSerializer.writeString(valueHolderForIdTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): TouchResult { + let valueDeserializer : DeserializerBase = buffer + const strategyTmpResult : TouchTestStrategy = TypeChecker.TouchTestStrategy_FromNumeric(valueDeserializer.readInt32()) + const idTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let idTmpBuf : string | undefined + if ((idTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + idTmpBuf = (valueDeserializer.readString() as string) + } + const idTmpResult : string | undefined = idTmpBuf + let value : TouchResult = ({strategy: strategyTmpResult, id: idTmpResult} as TouchResult) + return value + } +} +export class TranslateOptions_serializer { + public static write(buffer: SerializerBase, value: TranslateOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForX = value.x + if (valueHolderForX !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForXTmpValue = valueHolderForX! + if (valueHolderForXTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForXTmpValueForIdx0 = valueHolderForXTmpValue as number + valueSerializer.writeNumber(valueHolderForXTmpValueForIdx0) + } else if (valueHolderForXTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForXTmpValueForIdx1 = valueHolderForXTmpValue as string + valueSerializer.writeString(valueHolderForXTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForY = value.y + if (valueHolderForY !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForYTmpValue = valueHolderForY! + if (valueHolderForYTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForYTmpValueForIdx0 = valueHolderForYTmpValue as number + valueSerializer.writeNumber(valueHolderForYTmpValueForIdx0) + } else if (valueHolderForYTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForYTmpValueForIdx1 = valueHolderForYTmpValue as string + valueSerializer.writeString(valueHolderForYTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForZ = value.z + if (valueHolderForZ !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForZTmpValue = valueHolderForZ! + if (valueHolderForZTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForZTmpValueForIdx0 = valueHolderForZTmpValue as number + valueSerializer.writeNumber(valueHolderForZTmpValueForIdx0) + } else if (valueHolderForZTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForZTmpValueForIdx1 = valueHolderForZTmpValue as string + valueSerializer.writeString(valueHolderForZTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): TranslateOptions { + let valueDeserializer : DeserializerBase = buffer + const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let xTmpBuf : number | string | undefined + if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const xTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let xTmpBuf_ : number | string | undefined + if (xTmpBuf_UnionSelector == (0).toChar()) { + xTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (xTmpBuf_UnionSelector == (1).toChar()) { + xTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for xTmpBuf_ has to be chosen through deserialisation.") + } + xTmpBuf = (xTmpBuf_ as number | string) + } + const xTmpResult : number | string | undefined = xTmpBuf + const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let yTmpBuf : number | string | undefined + if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const yTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let yTmpBuf_ : number | string | undefined + if (yTmpBuf_UnionSelector == (0).toChar()) { + yTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (yTmpBuf_UnionSelector == (1).toChar()) { + yTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for yTmpBuf_ has to be chosen through deserialisation.") + } + yTmpBuf = (yTmpBuf_ as number | string) + } + const yTmpResult : number | string | undefined = yTmpBuf + const zTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let zTmpBuf : number | string | undefined + if ((zTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const zTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let zTmpBuf_ : number | string | undefined + if (zTmpBuf_UnionSelector == (0).toChar()) { + zTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (zTmpBuf_UnionSelector == (1).toChar()) { + zTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for zTmpBuf_ has to be chosen through deserialisation.") + } + zTmpBuf = (zTmpBuf_ as number | string) + } + const zTmpResult : number | string | undefined = zTmpBuf + let value : TranslateOptions = ({x: xTmpResult, y: yTmpResult, z: zTmpResult} as TranslateOptions) + return value + } +} +export class VisibleAreaEventOptions_serializer { + public static write(buffer: SerializerBase, value: VisibleAreaEventOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForRatios = value.ratios + valueSerializer.writeInt32((valueHolderForRatios.length).toInt()) + for (let valueHolderForRatiosCounterI = 0; valueHolderForRatiosCounterI < valueHolderForRatios.length; valueHolderForRatiosCounterI++) { + const valueHolderForRatiosTmpElement : number = valueHolderForRatios[valueHolderForRatiosCounterI] + valueSerializer.writeNumber(valueHolderForRatiosTmpElement) + } + const valueHolderForExpectedUpdateInterval = value.expectedUpdateInterval + if (valueHolderForExpectedUpdateInterval !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForExpectedUpdateIntervalTmpValue = valueHolderForExpectedUpdateInterval! + valueSerializer.writeNumber(valueHolderForExpectedUpdateIntervalTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): VisibleAreaEventOptions { + let valueDeserializer : DeserializerBase = buffer + const ratiosTmpBufLength : int32 = valueDeserializer.readInt32() + let ratiosTmpBuf : Array = new Array(ratiosTmpBufLength) + for (let ratiosTmpBufBufCounterI = 0; ratiosTmpBufBufCounterI < ratiosTmpBufLength; ratiosTmpBufBufCounterI++) { + ratiosTmpBuf[ratiosTmpBufBufCounterI] = (valueDeserializer.readNumber() as number) + } + const ratiosTmpResult : Array = ratiosTmpBuf + const expectedUpdateIntervalTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let expectedUpdateIntervalTmpBuf : number | undefined + if ((expectedUpdateIntervalTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + expectedUpdateIntervalTmpBuf = (valueDeserializer.readNumber() as number) + } + const expectedUpdateIntervalTmpResult : number | undefined = expectedUpdateIntervalTmpBuf + let value : VisibleAreaEventOptions = ({ratios: ratiosTmpResult, expectedUpdateInterval: expectedUpdateIntervalTmpResult} as VisibleAreaEventOptions) + return value + } +} +export class AnimateParam_serializer { + public static write(buffer: SerializerBase, value: AnimateParam): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForDuration = value.duration + if (valueHolderForDuration !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDurationTmpValue = valueHolderForDuration! + valueSerializer.writeNumber(valueHolderForDurationTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTempo = value.tempo + if (valueHolderForTempo !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTempoTmpValue = valueHolderForTempo! + valueSerializer.writeNumber(valueHolderForTempoTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForCurve = value.curve + if (valueHolderForCurve !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForCurveTmpValue = valueHolderForCurve! + if (valueHolderForCurveTmpValue instanceof curves.Curve) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCurveTmpValueForIdx0 = valueHolderForCurveTmpValue as curves.Curve + valueSerializer.writeInt32(TypeChecker.curves_Curve_ToNumeric(valueHolderForCurveTmpValueForIdx0)) + } else if (valueHolderForCurveTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCurveTmpValueForIdx1 = valueHolderForCurveTmpValue as string + valueSerializer.writeString(valueHolderForCurveTmpValueForIdx1) + } else if (valueHolderForCurveTmpValue instanceof curves.ICurve) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForCurveTmpValueForIdx2 = valueHolderForCurveTmpValue as curves.ICurve + curves_ICurve_serializer.write(valueSerializer, valueHolderForCurveTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDelay = value.delay + if (valueHolderForDelay !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDelayTmpValue = valueHolderForDelay! + valueSerializer.writeNumber(valueHolderForDelayTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForIterations = value.iterations + if (valueHolderForIterations !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForIterationsTmpValue = valueHolderForIterations! + valueSerializer.writeNumber(valueHolderForIterationsTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPlayMode = value.playMode + if (valueHolderForPlayMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPlayModeTmpValue = (valueHolderForPlayMode as PlayMode) + valueSerializer.writeInt32(TypeChecker.PlayMode_ToNumeric(valueHolderForPlayModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnFinish = value.onFinish + if (valueHolderForOnFinish !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnFinishTmpValue = valueHolderForOnFinish! + valueSerializer.holdAndWriteCallback(valueHolderForOnFinishTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFinishCallbackType = value.finishCallbackType + if (valueHolderForFinishCallbackType !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFinishCallbackTypeTmpValue = (valueHolderForFinishCallbackType as FinishCallbackType) + valueSerializer.writeInt32(TypeChecker.FinishCallbackType_ToNumeric(valueHolderForFinishCallbackTypeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForExpectedFrameRateRange = value.expectedFrameRateRange + if (valueHolderForExpectedFrameRateRange !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForExpectedFrameRateRangeTmpValue = valueHolderForExpectedFrameRateRange! + ExpectedFrameRateRange_serializer.write(valueSerializer, valueHolderForExpectedFrameRateRangeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): AnimateParam { + let valueDeserializer : DeserializerBase = buffer + const durationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let durationTmpBuf : number | undefined + if ((durationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + durationTmpBuf = (valueDeserializer.readNumber() as number) + } + const durationTmpResult : number | undefined = durationTmpBuf + const tempoTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let tempoTmpBuf : number | undefined + if ((tempoTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + tempoTmpBuf = (valueDeserializer.readNumber() as number) + } + const tempoTmpResult : number | undefined = tempoTmpBuf + const curveTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let curveTmpBuf : curves.Curve | string | curves.ICurve | undefined + if ((curveTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const curveTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let curveTmpBuf_ : curves.Curve | string | curves.ICurve | undefined + if (curveTmpBuf_UnionSelector == (0).toChar()) { + curveTmpBuf_ = TypeChecker.curves_Curve_FromNumeric(valueDeserializer.readInt32()) + } else if (curveTmpBuf_UnionSelector == (1).toChar()) { + curveTmpBuf_ = (valueDeserializer.readString() as string) + } else if (curveTmpBuf_UnionSelector == (2).toChar()) { + curveTmpBuf_ = (curves_ICurve_serializer.read(valueDeserializer) as curves.ICurve) + } else { + throw new Error("One of the branches for curveTmpBuf_ has to be chosen through deserialisation.") + } + curveTmpBuf = (curveTmpBuf_ as curves.Curve | string | curves.ICurve) + } + const curveTmpResult : curves.Curve | string | curves.ICurve | undefined = curveTmpBuf + const delayTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let delayTmpBuf : number | undefined + if ((delayTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + delayTmpBuf = (valueDeserializer.readNumber() as number) + } + const delayTmpResult : number | undefined = delayTmpBuf + const iterationsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let iterationsTmpBuf : number | undefined + if ((iterationsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + iterationsTmpBuf = (valueDeserializer.readNumber() as number) + } + const iterationsTmpResult : number | undefined = iterationsTmpBuf + const playModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let playModeTmpBuf : PlayMode | undefined + if ((playModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + playModeTmpBuf = TypeChecker.PlayMode_FromNumeric(valueDeserializer.readInt32()) + } + const playModeTmpResult : PlayMode | undefined = playModeTmpBuf + const onFinishTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onFinishTmpBuf : (() => void) | undefined + if ((onFinishTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onFinishTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onFinishTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onFinishTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onFinishTmpBuf = ():void => { + const onFinishTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onFinishTmpBuf_BufArgsSerializer.writeInt32(onFinishTmpBuf_BufResource.resourceId); + onFinishTmpBuf_BufArgsSerializer.writePointer(onFinishTmpBuf_BufCall); + onFinishTmpBuf_BufArgsSerializer.writePointer(onFinishTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onFinishTmpBuf_BufArgsSerializer.asBuffer(), onFinishTmpBuf_BufArgsSerializer.length()); + onFinishTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onFinishTmpResult : (() => void) | undefined = onFinishTmpBuf + const finishCallbackTypeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let finishCallbackTypeTmpBuf : FinishCallbackType | undefined + if ((finishCallbackTypeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + finishCallbackTypeTmpBuf = TypeChecker.FinishCallbackType_FromNumeric(valueDeserializer.readInt32()) + } + const finishCallbackTypeTmpResult : FinishCallbackType | undefined = finishCallbackTypeTmpBuf + const expectedFrameRateRangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let expectedFrameRateRangeTmpBuf : ExpectedFrameRateRange | undefined + if ((expectedFrameRateRangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + expectedFrameRateRangeTmpBuf = ExpectedFrameRateRange_serializer.read(valueDeserializer) + } + const expectedFrameRateRangeTmpResult : ExpectedFrameRateRange | undefined = expectedFrameRateRangeTmpBuf + let value : AnimateParam = ({duration: durationTmpResult, tempo: tempoTmpResult, curve: curveTmpResult, delay: delayTmpResult, iterations: iterationsTmpResult, playMode: playModeTmpResult, onFinish: onFinishTmpResult, finishCallbackType: finishCallbackTypeTmpResult, expectedFrameRateRange: expectedFrameRateRangeTmpResult} as AnimateParam) + return value + } +} +export class BackgroundBlurStyleOptions_serializer { + public static write(buffer: SerializerBase, value: BackgroundBlurStyleOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForColorMode = value.colorMode + if (valueHolderForColorMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForColorModeTmpValue = (valueHolderForColorMode as ThemeColorMode) + valueSerializer.writeInt32(TypeChecker.ThemeColorMode_ToNumeric(valueHolderForColorModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAdaptiveColor = value.adaptiveColor + if (valueHolderForAdaptiveColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAdaptiveColorTmpValue = (valueHolderForAdaptiveColor as AdaptiveColor) + valueSerializer.writeInt32(TypeChecker.AdaptiveColor_ToNumeric(valueHolderForAdaptiveColorTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForScale = value.scale + if (valueHolderForScale !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForScaleTmpValue = valueHolderForScale! + valueSerializer.writeNumber(valueHolderForScaleTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBlurOptions = value.blurOptions + if (valueHolderForBlurOptions !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBlurOptionsTmpValue = valueHolderForBlurOptions! + BlurOptions_serializer.write(valueSerializer, valueHolderForBlurOptionsTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPolicy = value.policy + if (valueHolderForPolicy !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPolicyTmpValue = (valueHolderForPolicy as BlurStyleActivePolicy) + valueSerializer.writeInt32(TypeChecker.BlurStyleActivePolicy_ToNumeric(valueHolderForPolicyTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForInactiveColor = value.inactiveColor + if (valueHolderForInactiveColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForInactiveColorTmpValue = valueHolderForInactiveColor! + if (valueHolderForInactiveColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForInactiveColorTmpValueForIdx0 = valueHolderForInactiveColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForInactiveColorTmpValueForIdx0)) + } else if (valueHolderForInactiveColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForInactiveColorTmpValueForIdx1 = valueHolderForInactiveColorTmpValue as number + valueSerializer.writeNumber(valueHolderForInactiveColorTmpValueForIdx1) + } else if (valueHolderForInactiveColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForInactiveColorTmpValueForIdx2 = valueHolderForInactiveColorTmpValue as string + valueSerializer.writeString(valueHolderForInactiveColorTmpValueForIdx2) + } else if (valueHolderForInactiveColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForInactiveColorTmpValueForIdx3 = valueHolderForInactiveColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForInactiveColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): BackgroundBlurStyleOptions { + let valueDeserializer : DeserializerBase = buffer + const colorModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let colorModeTmpBuf : ThemeColorMode | undefined + if ((colorModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + colorModeTmpBuf = TypeChecker.ThemeColorMode_FromNumeric(valueDeserializer.readInt32()) + } + const colorModeTmpResult : ThemeColorMode | undefined = colorModeTmpBuf + const adaptiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let adaptiveColorTmpBuf : AdaptiveColor | undefined + if ((adaptiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + adaptiveColorTmpBuf = TypeChecker.AdaptiveColor_FromNumeric(valueDeserializer.readInt32()) + } + const adaptiveColorTmpResult : AdaptiveColor | undefined = adaptiveColorTmpBuf + const scaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let scaleTmpBuf : number | undefined + if ((scaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + scaleTmpBuf = (valueDeserializer.readNumber() as number) + } + const scaleTmpResult : number | undefined = scaleTmpBuf + const blurOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let blurOptionsTmpBuf : BlurOptions | undefined + if ((blurOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + blurOptionsTmpBuf = BlurOptions_serializer.read(valueDeserializer) + } + const blurOptionsTmpResult : BlurOptions | undefined = blurOptionsTmpBuf + const policyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let policyTmpBuf : BlurStyleActivePolicy | undefined + if ((policyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + policyTmpBuf = TypeChecker.BlurStyleActivePolicy_FromNumeric(valueDeserializer.readInt32()) + } + const policyTmpResult : BlurStyleActivePolicy | undefined = policyTmpBuf + const inactiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let inactiveColorTmpBuf : ResourceColor | undefined + if ((inactiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const inactiveColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let inactiveColorTmpBuf_ : Color | number | string | Resource | undefined + if (inactiveColorTmpBuf_UnionSelector == (0).toChar()) { + inactiveColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (inactiveColorTmpBuf_UnionSelector == (1).toChar()) { + inactiveColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (inactiveColorTmpBuf_UnionSelector == (2).toChar()) { + inactiveColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (inactiveColorTmpBuf_UnionSelector == (3).toChar()) { + inactiveColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for inactiveColorTmpBuf_ has to be chosen through deserialisation.") + } + inactiveColorTmpBuf = (inactiveColorTmpBuf_ as Color | number | string | Resource) + } + const inactiveColorTmpResult : ResourceColor | undefined = inactiveColorTmpBuf + let value : BackgroundBlurStyleOptions = ({colorMode: colorModeTmpResult, adaptiveColor: adaptiveColorTmpResult, scale: scaleTmpResult, blurOptions: blurOptionsTmpResult, policy: policyTmpResult, inactiveColor: inactiveColorTmpResult} as BackgroundBlurStyleOptions) + return value + } +} +export class BackgroundEffectOptions_serializer { + public static write(buffer: SerializerBase, value: BackgroundEffectOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForRadius = value.radius + valueSerializer.writeNumber(valueHolderForRadius) + const valueHolderForSaturation = value.saturation + if (valueHolderForSaturation !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForSaturationTmpValue = valueHolderForSaturation! + valueSerializer.writeNumber(valueHolderForSaturationTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBrightness = value.brightness + if (valueHolderForBrightness !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBrightnessTmpValue = valueHolderForBrightness! + valueSerializer.writeNumber(valueHolderForBrightnessTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForColor = value.color + if (valueHolderForColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForColorTmpValue = valueHolderForColor! + if (valueHolderForColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) + } else if (valueHolderForColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number + valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) + } else if (valueHolderForColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string + valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) + } else if (valueHolderForColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAdaptiveColor = value.adaptiveColor + if (valueHolderForAdaptiveColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAdaptiveColorTmpValue = (valueHolderForAdaptiveColor as AdaptiveColor) + valueSerializer.writeInt32(TypeChecker.AdaptiveColor_ToNumeric(valueHolderForAdaptiveColorTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBlurOptions = value.blurOptions + if (valueHolderForBlurOptions !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBlurOptionsTmpValue = valueHolderForBlurOptions! + BlurOptions_serializer.write(valueSerializer, valueHolderForBlurOptionsTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPolicy = value.policy + if (valueHolderForPolicy !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPolicyTmpValue = (valueHolderForPolicy as BlurStyleActivePolicy) + valueSerializer.writeInt32(TypeChecker.BlurStyleActivePolicy_ToNumeric(valueHolderForPolicyTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForInactiveColor = value.inactiveColor + if (valueHolderForInactiveColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForInactiveColorTmpValue = valueHolderForInactiveColor! + if (valueHolderForInactiveColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForInactiveColorTmpValueForIdx0 = valueHolderForInactiveColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForInactiveColorTmpValueForIdx0)) + } else if (valueHolderForInactiveColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForInactiveColorTmpValueForIdx1 = valueHolderForInactiveColorTmpValue as number + valueSerializer.writeNumber(valueHolderForInactiveColorTmpValueForIdx1) + } else if (valueHolderForInactiveColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForInactiveColorTmpValueForIdx2 = valueHolderForInactiveColorTmpValue as string + valueSerializer.writeString(valueHolderForInactiveColorTmpValueForIdx2) + } else if (valueHolderForInactiveColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForInactiveColorTmpValueForIdx3 = valueHolderForInactiveColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForInactiveColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): BackgroundEffectOptions { + let valueDeserializer : DeserializerBase = buffer + const radiusTmpResult : number = (valueDeserializer.readNumber() as number) + const saturationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let saturationTmpBuf : number | undefined + if ((saturationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + saturationTmpBuf = (valueDeserializer.readNumber() as number) + } + const saturationTmpResult : number | undefined = saturationTmpBuf + const brightnessTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let brightnessTmpBuf : number | undefined + if ((brightnessTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + brightnessTmpBuf = (valueDeserializer.readNumber() as number) + } + const brightnessTmpResult : number | undefined = brightnessTmpBuf + const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let colorTmpBuf : ResourceColor | undefined + if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let colorTmpBuf_ : Color | number | string | Resource | undefined + if (colorTmpBuf_UnionSelector == (0).toChar()) { + colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorTmpBuf_UnionSelector == (1).toChar()) { + colorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (colorTmpBuf_UnionSelector == (2).toChar()) { + colorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (colorTmpBuf_UnionSelector == (3).toChar()) { + colorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") + } + colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) + } + const colorTmpResult : ResourceColor | undefined = colorTmpBuf + const adaptiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let adaptiveColorTmpBuf : AdaptiveColor | undefined + if ((adaptiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + adaptiveColorTmpBuf = TypeChecker.AdaptiveColor_FromNumeric(valueDeserializer.readInt32()) + } + const adaptiveColorTmpResult : AdaptiveColor | undefined = adaptiveColorTmpBuf + const blurOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let blurOptionsTmpBuf : BlurOptions | undefined + if ((blurOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + blurOptionsTmpBuf = BlurOptions_serializer.read(valueDeserializer) + } + const blurOptionsTmpResult : BlurOptions | undefined = blurOptionsTmpBuf + const policyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let policyTmpBuf : BlurStyleActivePolicy | undefined + if ((policyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + policyTmpBuf = TypeChecker.BlurStyleActivePolicy_FromNumeric(valueDeserializer.readInt32()) + } + const policyTmpResult : BlurStyleActivePolicy | undefined = policyTmpBuf + const inactiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let inactiveColorTmpBuf : ResourceColor | undefined + if ((inactiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const inactiveColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let inactiveColorTmpBuf_ : Color | number | string | Resource | undefined + if (inactiveColorTmpBuf_UnionSelector == (0).toChar()) { + inactiveColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (inactiveColorTmpBuf_UnionSelector == (1).toChar()) { + inactiveColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (inactiveColorTmpBuf_UnionSelector == (2).toChar()) { + inactiveColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (inactiveColorTmpBuf_UnionSelector == (3).toChar()) { + inactiveColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for inactiveColorTmpBuf_ has to be chosen through deserialisation.") + } + inactiveColorTmpBuf = (inactiveColorTmpBuf_ as Color | number | string | Resource) + } + const inactiveColorTmpResult : ResourceColor | undefined = inactiveColorTmpBuf + let value : BackgroundEffectOptions = ({radius: radiusTmpResult, saturation: saturationTmpResult, brightness: brightnessTmpResult, color: colorTmpResult, adaptiveColor: adaptiveColorTmpResult, blurOptions: blurOptionsTmpResult, policy: policyTmpResult, inactiveColor: inactiveColorTmpResult} as BackgroundEffectOptions) + return value + } +} +export class Bindable_Arkui_Component_Units_ResourceStr_serializer { + public static write(buffer: SerializerBase, value: Bindable): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + if (valueHolderForValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForValueForIdx0 = valueHolderForValue as string + valueSerializer.writeString(valueHolderForValueForIdx0) + } else if (valueHolderForValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForValueForIdx1 = valueHolderForValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForValueForIdx1) + } + const valueHolderForOnChange = value.onChange + valueSerializer.holdAndWriteCallback(valueHolderForOnChange) + } + public static read(buffer: DeserializerBase): Bindable { + let valueDeserializer : DeserializerBase = buffer + const valueTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let valueTmpBuf : string | Resource | undefined + if (valueTmpBufUnionSelector == (0).toChar()) { + valueTmpBuf = (valueDeserializer.readString() as string) + } else if (valueTmpBufUnionSelector == (1).toChar()) { + valueTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for valueTmpBuf has to be chosen through deserialisation.") + } + const valueTmpResult : ResourceStr = (valueTmpBuf as string | Resource) + const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const onChangeTmpResult : ((value0: ResourceStr) => void) = (value0: ResourceStr):void => { + const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); + if (value0 instanceof string) { + onChangeTmpBufBufArgsSerializer.writeInt8((0).toChar()); + const value0ForIdx0 = value0 as string; + onChangeTmpBufBufArgsSerializer.writeString(value0ForIdx0); + } else if (value0 instanceof Resource) { + onChangeTmpBufBufArgsSerializer.writeInt8((1).toChar()); + const value0ForIdx1 = value0 as Resource; + Resource_serializer.write(onChangeTmpBufBufArgsSerializer, value0ForIdx1); + } + InteropNativeModule._CallCallback(487399354, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); + onChangeTmpBufBufArgsSerializer.release(); + return; + } + let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) + return value + } +} +export class Bindable_Global_Resource_Resource_serializer { + public static write(buffer: SerializerBase, value: Bindable): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + Resource_serializer.write(valueSerializer, valueHolderForValue) + const valueHolderForOnChange = value.onChange + valueSerializer.holdAndWriteCallback(valueHolderForOnChange) + } + public static read(buffer: DeserializerBase): Bindable { + let valueDeserializer : DeserializerBase = buffer + const valueTmpResult : Resource = Resource_serializer.read(valueDeserializer) + const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const onChangeTmpResult : ((value0: Resource) => void) = (value0: Resource):void => { + const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); + Resource_serializer.write(onChangeTmpBufBufArgsSerializer, value0); + InteropNativeModule._CallCallback(-941798353, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); + onChangeTmpBufBufArgsSerializer.release(); + return; + } + let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) + return value + } +} +export class ContentCoverOptions_serializer { + public static write(buffer: SerializerBase, value: ContentCoverOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForBackgroundColor = value.backgroundColor + if (valueHolderForBackgroundColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! + if (valueHolderForBackgroundColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) + } else if (valueHolderForBackgroundColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number + valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) + } else if (valueHolderForBackgroundColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string + valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) + } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnAppear = value.onAppear + if (valueHolderForOnAppear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnAppearTmpValue = valueHolderForOnAppear! + valueSerializer.holdAndWriteCallback(valueHolderForOnAppearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnDisappear = value.onDisappear + if (valueHolderForOnDisappear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnDisappearTmpValue = valueHolderForOnDisappear! + valueSerializer.holdAndWriteCallback(valueHolderForOnDisappearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillAppear = value.onWillAppear + if (valueHolderForOnWillAppear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillAppearTmpValue = valueHolderForOnWillAppear! + valueSerializer.holdAndWriteCallback(valueHolderForOnWillAppearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillDisappear = value.onWillDisappear + if (valueHolderForOnWillDisappear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillDisappearTmpValue = valueHolderForOnWillDisappear! + valueSerializer.holdAndWriteCallback(valueHolderForOnWillDisappearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForModalTransition = value.modalTransition + if (valueHolderForModalTransition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForModalTransitionTmpValue = (valueHolderForModalTransition as ModalTransition) + valueSerializer.writeInt32(TypeChecker.ModalTransition_ToNumeric(valueHolderForModalTransitionTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillDismiss = value.onWillDismiss + if (valueHolderForOnWillDismiss !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! + valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTransition = value.transition + if (valueHolderForTransition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTransitionTmpValue = valueHolderForTransition! + TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): ContentCoverOptions { + let valueDeserializer : DeserializerBase = buffer + const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundColorTmpBuf : ResourceColor | undefined + if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined + if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { + backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { + backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") + } + backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) + } + const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf + const onAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onAppearTmpBuf : (() => void) | undefined + if ((onAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onAppearTmpBuf = ():void => { + const onAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onAppearTmpBuf_BufArgsSerializer.writeInt32(onAppearTmpBuf_BufResource.resourceId); + onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCall); + onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onAppearTmpBuf_BufArgsSerializer.asBuffer(), onAppearTmpBuf_BufArgsSerializer.length()); + onAppearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onAppearTmpResult : (() => void) | undefined = onAppearTmpBuf + const onDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onDisappearTmpBuf : (() => void) | undefined + if ((onDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onDisappearTmpBuf = ():void => { + const onDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onDisappearTmpBuf_BufArgsSerializer.writeInt32(onDisappearTmpBuf_BufResource.resourceId); + onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCall); + onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onDisappearTmpBuf_BufArgsSerializer.asBuffer(), onDisappearTmpBuf_BufArgsSerializer.length()); + onDisappearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onDisappearTmpResult : (() => void) | undefined = onDisappearTmpBuf + const onWillAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillAppearTmpBuf : (() => void) | undefined + if ((onWillAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onWillAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onWillAppearTmpBuf = ():void => { + const onWillAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillAppearTmpBuf_BufArgsSerializer.writeInt32(onWillAppearTmpBuf_BufResource.resourceId); + onWillAppearTmpBuf_BufArgsSerializer.writePointer(onWillAppearTmpBuf_BufCall); + onWillAppearTmpBuf_BufArgsSerializer.writePointer(onWillAppearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onWillAppearTmpBuf_BufArgsSerializer.asBuffer(), onWillAppearTmpBuf_BufArgsSerializer.length()); + onWillAppearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onWillAppearTmpResult : (() => void) | undefined = onWillAppearTmpBuf + const onWillDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillDisappearTmpBuf : (() => void) | undefined + if ((onWillDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onWillDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onWillDisappearTmpBuf = ():void => { + const onWillDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillDisappearTmpBuf_BufArgsSerializer.writeInt32(onWillDisappearTmpBuf_BufResource.resourceId); + onWillDisappearTmpBuf_BufArgsSerializer.writePointer(onWillDisappearTmpBuf_BufCall); + onWillDisappearTmpBuf_BufArgsSerializer.writePointer(onWillDisappearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onWillDisappearTmpBuf_BufArgsSerializer.asBuffer(), onWillDisappearTmpBuf_BufArgsSerializer.length()); + onWillDisappearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onWillDisappearTmpResult : (() => void) | undefined = onWillDisappearTmpBuf + const modalTransitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let modalTransitionTmpBuf : ModalTransition | undefined + if ((modalTransitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + modalTransitionTmpBuf = TypeChecker.ModalTransition_FromNumeric(valueDeserializer.readInt32()) + } + const modalTransitionTmpResult : ModalTransition | undefined = modalTransitionTmpBuf + const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillDismissTmpBuf : ((value0: DismissContentCoverAction) => void) | undefined + if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillDismissTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillDismissTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onWillDismissTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onWillDismissTmpBuf = (value0: DismissContentCoverAction):void => { + const onWillDismissTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillDismissTmpBuf_BufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufResource.resourceId); + onWillDismissTmpBuf_BufArgsSerializer.writePointer(onWillDismissTmpBuf_BufCall); + onWillDismissTmpBuf_BufArgsSerializer.writePointer(onWillDismissTmpBuf_BufCallSync); + DismissContentCoverAction_serializer.write(onWillDismissTmpBuf_BufArgsSerializer, value0); + InteropNativeModule._CallCallback(-1283506641, onWillDismissTmpBuf_BufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufArgsSerializer.length()); + onWillDismissTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onWillDismissTmpResult : ((value0: DismissContentCoverAction) => void) | undefined = onWillDismissTmpBuf + const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let transitionTmpBuf : TransitionEffect | undefined + if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) + } + const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf + let value : ContentCoverOptions = ({backgroundColor: backgroundColorTmpResult, onAppear: onAppearTmpResult, onDisappear: onDisappearTmpResult, onWillAppear: onWillAppearTmpResult, onWillDisappear: onWillDisappearTmpResult, modalTransition: modalTransitionTmpResult, onWillDismiss: onWillDismissTmpResult, transition: transitionTmpResult} as ContentCoverOptions) + return value + } +} +export class ContextMenuAnimationOptions_serializer { + public static write(buffer: SerializerBase, value: ContextMenuAnimationOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForScale = value.scale + if (valueHolderForScale !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForScaleTmpValue = valueHolderForScale! + const valueHolderForScaleTmpValue_0 = valueHolderForScaleTmpValue[0] + valueSerializer.writeNumber(valueHolderForScaleTmpValue_0) + const valueHolderForScaleTmpValue_1 = valueHolderForScaleTmpValue[1] + valueSerializer.writeNumber(valueHolderForScaleTmpValue_1) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTransition = value.transition + if (valueHolderForTransition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTransitionTmpValue = valueHolderForTransition! + TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForHoverScale = value.hoverScale + if (valueHolderForHoverScale !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHoverScaleTmpValue = valueHolderForHoverScale! + const valueHolderForHoverScaleTmpValue_0 = valueHolderForHoverScaleTmpValue[0] + valueSerializer.writeNumber(valueHolderForHoverScaleTmpValue_0) + const valueHolderForHoverScaleTmpValue_1 = valueHolderForHoverScaleTmpValue[1] + valueSerializer.writeNumber(valueHolderForHoverScaleTmpValue_1) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): ContextMenuAnimationOptions { + let valueDeserializer : DeserializerBase = buffer + const scaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let scaleTmpBuf : AnimationNumberRange | undefined + if ((scaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const scaleTmpBuf_Value0 : number = (valueDeserializer.readNumber() as number) + const scaleTmpBuf_Value1 : number = (valueDeserializer.readNumber() as number) + scaleTmpBuf = ([scaleTmpBuf_Value0, scaleTmpBuf_Value1] as AnimationNumberRange) + } + const scaleTmpResult : AnimationNumberRange | undefined = scaleTmpBuf + const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let transitionTmpBuf : TransitionEffect | undefined + if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) + } + const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf + const hoverScaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let hoverScaleTmpBuf : AnimationNumberRange | undefined + if ((hoverScaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const hoverScaleTmpBuf_Value0 : number = (valueDeserializer.readNumber() as number) + const hoverScaleTmpBuf_Value1 : number = (valueDeserializer.readNumber() as number) + hoverScaleTmpBuf = ([hoverScaleTmpBuf_Value0, hoverScaleTmpBuf_Value1] as AnimationNumberRange) + } + const hoverScaleTmpResult : AnimationNumberRange | undefined = hoverScaleTmpBuf + let value : ContextMenuAnimationOptions = ({scale: scaleTmpResult, transition: transitionTmpResult, hoverScale: hoverScaleTmpResult} as ContextMenuAnimationOptions) + return value + } +} +export class DragPreviewOptions_serializer { + public static write(buffer: SerializerBase, value: DragPreviewOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForMode = value.mode + if (valueHolderForMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForModeTmpValue = valueHolderForMode! + if (TypeChecker.isDragPreviewMode(valueHolderForModeTmpValue)) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForModeTmpValueForIdx0 = valueHolderForModeTmpValue as DragPreviewMode + valueSerializer.writeInt32(TypeChecker.DragPreviewMode_ToNumeric(valueHolderForModeTmpValueForIdx0)) + } else if (TypeChecker.isArray_DragPreviewMode(valueHolderForModeTmpValue)) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForModeTmpValueForIdx1 = valueHolderForModeTmpValue as Array + valueSerializer.writeInt32((valueHolderForModeTmpValueForIdx1.length).toInt()) + for (let valueHolderForModeTmpValueForIdx1CounterI = 0; valueHolderForModeTmpValueForIdx1CounterI < valueHolderForModeTmpValueForIdx1.length; valueHolderForModeTmpValueForIdx1CounterI++) { + const valueHolderForModeTmpValueForIdx1TmpElement : DragPreviewMode = valueHolderForModeTmpValueForIdx1[valueHolderForModeTmpValueForIdx1CounterI] + valueSerializer.writeInt32(TypeChecker.DragPreviewMode_ToNumeric(valueHolderForModeTmpValueForIdx1TmpElement)) + } + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForNumberBadge = value.numberBadge + if (valueHolderForNumberBadge !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForNumberBadgeTmpValue = valueHolderForNumberBadge! + if (valueHolderForNumberBadgeTmpValue instanceof boolean) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForNumberBadgeTmpValueForIdx0 = valueHolderForNumberBadgeTmpValue as boolean + valueSerializer.writeBoolean(valueHolderForNumberBadgeTmpValueForIdx0) + } else if (valueHolderForNumberBadgeTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForNumberBadgeTmpValueForIdx1 = valueHolderForNumberBadgeTmpValue as number + valueSerializer.writeNumber(valueHolderForNumberBadgeTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForSizeChangeEffect = value.sizeChangeEffect + if (valueHolderForSizeChangeEffect !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForSizeChangeEffectTmpValue = (valueHolderForSizeChangeEffect as DraggingSizeChangeEffect) + valueSerializer.writeInt32(TypeChecker.DraggingSizeChangeEffect_ToNumeric(valueHolderForSizeChangeEffectTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): DragPreviewOptions { + let valueDeserializer : DeserializerBase = buffer + const modeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let modeTmpBuf : DragPreviewMode | Array | undefined + if ((modeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const modeTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let modeTmpBuf_ : DragPreviewMode | Array | undefined + if (modeTmpBuf_UnionSelector == (0).toChar()) { + modeTmpBuf_ = TypeChecker.DragPreviewMode_FromNumeric(valueDeserializer.readInt32()) + } else if (modeTmpBuf_UnionSelector == (1).toChar()) { + const modeTmpBuf_BufULength : int32 = valueDeserializer.readInt32() + let modeTmpBuf_BufU : Array = new Array(modeTmpBuf_BufULength) + for (let modeTmpBuf_BufUBufCounterI = 0; modeTmpBuf_BufUBufCounterI < modeTmpBuf_BufULength; modeTmpBuf_BufUBufCounterI++) { + modeTmpBuf_BufU[modeTmpBuf_BufUBufCounterI] = TypeChecker.DragPreviewMode_FromNumeric(valueDeserializer.readInt32()) + } + modeTmpBuf_ = modeTmpBuf_BufU + } else { + throw new Error("One of the branches for modeTmpBuf_ has to be chosen through deserialisation.") + } + modeTmpBuf = (modeTmpBuf_ as DragPreviewMode | Array) + } + const modeTmpResult : DragPreviewMode | Array | undefined = modeTmpBuf + const numberBadgeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let numberBadgeTmpBuf : boolean | number | undefined + if ((numberBadgeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const numberBadgeTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let numberBadgeTmpBuf_ : boolean | number | undefined + if (numberBadgeTmpBuf_UnionSelector == (0).toChar()) { + numberBadgeTmpBuf_ = valueDeserializer.readBoolean() + } else if (numberBadgeTmpBuf_UnionSelector == (1).toChar()) { + numberBadgeTmpBuf_ = (valueDeserializer.readNumber() as number) + } else { + throw new Error("One of the branches for numberBadgeTmpBuf_ has to be chosen through deserialisation.") + } + numberBadgeTmpBuf = (numberBadgeTmpBuf_ as boolean | number) + } + const numberBadgeTmpResult : boolean | number | undefined = numberBadgeTmpBuf + const sizeChangeEffectTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let sizeChangeEffectTmpBuf : DraggingSizeChangeEffect | undefined + if ((sizeChangeEffectTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + sizeChangeEffectTmpBuf = TypeChecker.DraggingSizeChangeEffect_FromNumeric(valueDeserializer.readInt32()) + } + const sizeChangeEffectTmpResult : DraggingSizeChangeEffect | undefined = sizeChangeEffectTmpBuf + let value : DragPreviewOptions = ({mode: modeTmpResult, numberBadge: numberBadgeTmpResult, sizeChangeEffect: sizeChangeEffectTmpResult} as DragPreviewOptions) + return value + } +} +export class FadingEdgeOptions_serializer { + public static write(buffer: SerializerBase, value: FadingEdgeOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForFadingEdgeLength = value.fadingEdgeLength + if (valueHolderForFadingEdgeLength !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFadingEdgeLengthTmpValue = valueHolderForFadingEdgeLength! + LengthMetrics_serializer.write(valueSerializer, valueHolderForFadingEdgeLengthTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): FadingEdgeOptions { + let valueDeserializer : DeserializerBase = buffer + const fadingEdgeLengthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fadingEdgeLengthTmpBuf : LengthMetrics | undefined + if ((fadingEdgeLengthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + fadingEdgeLengthTmpBuf = (LengthMetrics_serializer.read(valueDeserializer) as LengthMetrics) + } + const fadingEdgeLengthTmpResult : LengthMetrics | undefined = fadingEdgeLengthTmpBuf + let value : FadingEdgeOptions = ({fadingEdgeLength: fadingEdgeLengthTmpResult} as FadingEdgeOptions) + return value + } +} +export class ForegroundBlurStyleOptions_serializer { + public static write(buffer: SerializerBase, value: ForegroundBlurStyleOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForColorMode = value.colorMode + if (valueHolderForColorMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForColorModeTmpValue = (valueHolderForColorMode as ThemeColorMode) + valueSerializer.writeInt32(TypeChecker.ThemeColorMode_ToNumeric(valueHolderForColorModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAdaptiveColor = value.adaptiveColor + if (valueHolderForAdaptiveColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAdaptiveColorTmpValue = (valueHolderForAdaptiveColor as AdaptiveColor) + valueSerializer.writeInt32(TypeChecker.AdaptiveColor_ToNumeric(valueHolderForAdaptiveColorTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForScale = value.scale + if (valueHolderForScale !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForScaleTmpValue = valueHolderForScale! + valueSerializer.writeNumber(valueHolderForScaleTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBlurOptions = value.blurOptions + if (valueHolderForBlurOptions !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBlurOptionsTmpValue = valueHolderForBlurOptions! + BlurOptions_serializer.write(valueSerializer, valueHolderForBlurOptionsTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): ForegroundBlurStyleOptions { + let valueDeserializer : DeserializerBase = buffer + const colorModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let colorModeTmpBuf : ThemeColorMode | undefined + if ((colorModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + colorModeTmpBuf = TypeChecker.ThemeColorMode_FromNumeric(valueDeserializer.readInt32()) + } + const colorModeTmpResult : ThemeColorMode | undefined = colorModeTmpBuf + const adaptiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let adaptiveColorTmpBuf : AdaptiveColor | undefined + if ((adaptiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + adaptiveColorTmpBuf = TypeChecker.AdaptiveColor_FromNumeric(valueDeserializer.readInt32()) + } + const adaptiveColorTmpResult : AdaptiveColor | undefined = adaptiveColorTmpBuf + const scaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let scaleTmpBuf : number | undefined + if ((scaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + scaleTmpBuf = (valueDeserializer.readNumber() as number) + } + const scaleTmpResult : number | undefined = scaleTmpBuf + const blurOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let blurOptionsTmpBuf : BlurOptions | undefined + if ((blurOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + blurOptionsTmpBuf = BlurOptions_serializer.read(valueDeserializer) + } + const blurOptionsTmpResult : BlurOptions | undefined = blurOptionsTmpBuf + let value : ForegroundBlurStyleOptions = ({colorMode: colorModeTmpResult, adaptiveColor: adaptiveColorTmpResult, scale: scaleTmpResult, blurOptions: blurOptionsTmpResult} as ForegroundBlurStyleOptions) + return value + } +} +export class HistoricalPoint_serializer { + public static write(buffer: SerializerBase, value: HistoricalPoint): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForTouchObject = value.touchObject + TouchObject_serializer.write(valueSerializer, valueHolderForTouchObject) + const valueHolderForSize = value.size + valueSerializer.writeNumber(valueHolderForSize) + const valueHolderForForce = value.force + valueSerializer.writeNumber(valueHolderForForce) + const valueHolderForTimestamp = value.timestamp + valueSerializer.writeNumber(valueHolderForTimestamp) + } + public static read(buffer: DeserializerBase): HistoricalPoint { + let valueDeserializer : DeserializerBase = buffer + const touchObjectTmpResult : TouchObject = TouchObject_serializer.read(valueDeserializer) + const sizeTmpResult : number = (valueDeserializer.readNumber() as number) + const forceTmpResult : number = (valueDeserializer.readNumber() as number) + const timestampTmpResult : number = (valueDeserializer.readNumber() as number) + let value : HistoricalPoint = ({touchObject: touchObjectTmpResult, size: sizeTmpResult, force: forceTmpResult, timestamp: timestampTmpResult} as HistoricalPoint) + return value + } +} +export class Layoutable_serializer { + public static write(buffer: SerializerBase, value: Layoutable): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): Layoutable { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return LayoutableInternal.fromPtr(ptr) + } +} +export class LightSource_serializer { + public static write(buffer: SerializerBase, value: LightSource): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForPositionX = value.positionX + if (valueHolderForPositionX instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPositionXForIdx0 = valueHolderForPositionX as string + valueSerializer.writeString(valueHolderForPositionXForIdx0) + } else if (valueHolderForPositionX instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPositionXForIdx1 = valueHolderForPositionX as number + valueSerializer.writeNumber(valueHolderForPositionXForIdx1) + } else if (valueHolderForPositionX instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForPositionXForIdx2 = valueHolderForPositionX as Resource + Resource_serializer.write(valueSerializer, valueHolderForPositionXForIdx2) + } + const valueHolderForPositionY = value.positionY + if (valueHolderForPositionY instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPositionYForIdx0 = valueHolderForPositionY as string + valueSerializer.writeString(valueHolderForPositionYForIdx0) + } else if (valueHolderForPositionY instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPositionYForIdx1 = valueHolderForPositionY as number + valueSerializer.writeNumber(valueHolderForPositionYForIdx1) + } else if (valueHolderForPositionY instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForPositionYForIdx2 = valueHolderForPositionY as Resource + Resource_serializer.write(valueSerializer, valueHolderForPositionYForIdx2) + } + const valueHolderForIntensity = value.intensity + valueSerializer.writeNumber(valueHolderForIntensity) + const valueHolderForColor = value.color + if (valueHolderForColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForColorTmpValue = valueHolderForColor! + if (valueHolderForColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) + } else if (valueHolderForColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number + valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) + } else if (valueHolderForColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string + valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) + } else if (valueHolderForColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): LightSource { + let valueDeserializer : DeserializerBase = buffer + const positionXTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let positionXTmpBuf : string | number | Resource | undefined + if (positionXTmpBufUnionSelector == (0).toChar()) { + positionXTmpBuf = (valueDeserializer.readString() as string) + } else if (positionXTmpBufUnionSelector == (1).toChar()) { + positionXTmpBuf = (valueDeserializer.readNumber() as number) + } else if (positionXTmpBufUnionSelector == (2).toChar()) { + positionXTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for positionXTmpBuf has to be chosen through deserialisation.") + } + const positionXTmpResult : Dimension = (positionXTmpBuf as string | number | Resource) + const positionYTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let positionYTmpBuf : string | number | Resource | undefined + if (positionYTmpBufUnionSelector == (0).toChar()) { + positionYTmpBuf = (valueDeserializer.readString() as string) + } else if (positionYTmpBufUnionSelector == (1).toChar()) { + positionYTmpBuf = (valueDeserializer.readNumber() as number) + } else if (positionYTmpBufUnionSelector == (2).toChar()) { + positionYTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for positionYTmpBuf has to be chosen through deserialisation.") + } + const positionYTmpResult : Dimension = (positionYTmpBuf as string | number | Resource) + const intensityTmpResult : number = (valueDeserializer.readNumber() as number) + const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let colorTmpBuf : ResourceColor | undefined + if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let colorTmpBuf_ : Color | number | string | Resource | undefined + if (colorTmpBuf_UnionSelector == (0).toChar()) { + colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorTmpBuf_UnionSelector == (1).toChar()) { + colorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (colorTmpBuf_UnionSelector == (2).toChar()) { + colorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (colorTmpBuf_UnionSelector == (3).toChar()) { + colorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") + } + colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) + } + const colorTmpResult : ResourceColor | undefined = colorTmpBuf + let value : LightSource = ({positionX: positionXTmpResult, positionY: positionYTmpResult, intensity: intensityTmpResult, color: colorTmpResult} as LightSource) + return value + } +} +export class LocalizedAlignRuleOptions_serializer { + public static write(buffer: SerializerBase, value: LocalizedAlignRuleOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForStart = value.start + if (valueHolderForStart !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForStartTmpValue = valueHolderForStart! + LocalizedHorizontalAlignParam_serializer.write(valueSerializer, valueHolderForStartTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnd = value.end + if (valueHolderForEnd !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEndTmpValue = valueHolderForEnd! + LocalizedHorizontalAlignParam_serializer.write(valueSerializer, valueHolderForEndTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForMiddle = value.middle + if (valueHolderForMiddle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForMiddleTmpValue = valueHolderForMiddle! + LocalizedHorizontalAlignParam_serializer.write(valueSerializer, valueHolderForMiddleTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTop = value.top + if (valueHolderForTop !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTopTmpValue = valueHolderForTop! + LocalizedVerticalAlignParam_serializer.write(valueSerializer, valueHolderForTopTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBottom = value.bottom + if (valueHolderForBottom !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBottomTmpValue = valueHolderForBottom! + LocalizedVerticalAlignParam_serializer.write(valueSerializer, valueHolderForBottomTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForCenter = value.center + if (valueHolderForCenter !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForCenterTmpValue = valueHolderForCenter! + LocalizedVerticalAlignParam_serializer.write(valueSerializer, valueHolderForCenterTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBias = value.bias + if (valueHolderForBias !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBiasTmpValue = valueHolderForBias! + Bias_serializer.write(valueSerializer, valueHolderForBiasTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): LocalizedAlignRuleOptions { + let valueDeserializer : DeserializerBase = buffer + const startTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let startTmpBuf : LocalizedHorizontalAlignParam | undefined + if ((startTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + startTmpBuf = LocalizedHorizontalAlignParam_serializer.read(valueDeserializer) + } + const startTmpResult : LocalizedHorizontalAlignParam | undefined = startTmpBuf + const endTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let endTmpBuf : LocalizedHorizontalAlignParam | undefined + if ((endTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + endTmpBuf = LocalizedHorizontalAlignParam_serializer.read(valueDeserializer) + } + const endTmpResult : LocalizedHorizontalAlignParam | undefined = endTmpBuf + const middleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let middleTmpBuf : LocalizedHorizontalAlignParam | undefined + if ((middleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + middleTmpBuf = LocalizedHorizontalAlignParam_serializer.read(valueDeserializer) + } + const middleTmpResult : LocalizedHorizontalAlignParam | undefined = middleTmpBuf + const topTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let topTmpBuf : LocalizedVerticalAlignParam | undefined + if ((topTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + topTmpBuf = LocalizedVerticalAlignParam_serializer.read(valueDeserializer) + } + const topTmpResult : LocalizedVerticalAlignParam | undefined = topTmpBuf + const bottomTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let bottomTmpBuf : LocalizedVerticalAlignParam | undefined + if ((bottomTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + bottomTmpBuf = LocalizedVerticalAlignParam_serializer.read(valueDeserializer) + } + const bottomTmpResult : LocalizedVerticalAlignParam | undefined = bottomTmpBuf + const centerTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let centerTmpBuf : LocalizedVerticalAlignParam | undefined + if ((centerTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + centerTmpBuf = LocalizedVerticalAlignParam_serializer.read(valueDeserializer) + } + const centerTmpResult : LocalizedVerticalAlignParam | undefined = centerTmpBuf + const biasTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let biasTmpBuf : Bias | undefined + if ((biasTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + biasTmpBuf = Bias_serializer.read(valueDeserializer) + } + const biasTmpResult : Bias | undefined = biasTmpBuf + let value : LocalizedAlignRuleOptions = ({start: startTmpResult, end: endTmpResult, middle: middleTmpResult, top: topTmpResult, bottom: bottomTmpResult, center: centerTmpResult, bias: biasTmpResult} as LocalizedAlignRuleOptions) + return value + } +} +export class MenuElement_serializer { + public static write(buffer: SerializerBase, value: MenuElement): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + if (valueHolderForValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForValueForIdx0 = valueHolderForValue as string + valueSerializer.writeString(valueHolderForValueForIdx0) + } else if (valueHolderForValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForValueForIdx1 = valueHolderForValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForValueForIdx1) + } + const valueHolderForIcon = value.icon + if (valueHolderForIcon !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForIconTmpValue = valueHolderForIcon! + if (valueHolderForIconTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForIconTmpValueForIdx0 = valueHolderForIconTmpValue as string + valueSerializer.writeString(valueHolderForIconTmpValueForIdx0) + } else if (valueHolderForIconTmpValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForIconTmpValueForIdx1 = valueHolderForIconTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForIconTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForSymbolIcon = value.symbolIcon + if (valueHolderForSymbolIcon !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForSymbolIconTmpValue = valueHolderForSymbolIcon! + SymbolGlyphModifier_serializer.write(valueSerializer, valueHolderForSymbolIconTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnabled = value.enabled + if (valueHolderForEnabled !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnabledTmpValue = valueHolderForEnabled! + valueSerializer.writeBoolean(valueHolderForEnabledTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAction = value.action + valueSerializer.holdAndWriteCallback(valueHolderForAction) + } + public static read(buffer: DeserializerBase): MenuElement { + let valueDeserializer : DeserializerBase = buffer + const valueTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let valueTmpBuf : string | Resource | undefined + if (valueTmpBufUnionSelector == (0).toChar()) { + valueTmpBuf = (valueDeserializer.readString() as string) + } else if (valueTmpBufUnionSelector == (1).toChar()) { + valueTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for valueTmpBuf has to be chosen through deserialisation.") + } + const valueTmpResult : ResourceStr = (valueTmpBuf as string | Resource) + const iconTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let iconTmpBuf : ResourceStr | undefined + if ((iconTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const iconTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let iconTmpBuf_ : string | Resource | undefined + if (iconTmpBuf_UnionSelector == (0).toChar()) { + iconTmpBuf_ = (valueDeserializer.readString() as string) + } else if (iconTmpBuf_UnionSelector == (1).toChar()) { + iconTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for iconTmpBuf_ has to be chosen through deserialisation.") + } + iconTmpBuf = (iconTmpBuf_ as string | Resource) + } + const iconTmpResult : ResourceStr | undefined = iconTmpBuf + const symbolIconTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let symbolIconTmpBuf : SymbolGlyphModifier | undefined + if ((symbolIconTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + symbolIconTmpBuf = SymbolGlyphModifier_serializer.read(valueDeserializer) + } + const symbolIconTmpResult : SymbolGlyphModifier | undefined = symbolIconTmpBuf + const enabledTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enabledTmpBuf : boolean | undefined + if ((enabledTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enabledTmpBuf = valueDeserializer.readBoolean() + } + const enabledTmpResult : boolean | undefined = enabledTmpBuf + const actionTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const actionTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const actionTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const actionTmpResult : (() => void) = ():void => { + const actionTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + actionTmpBufBufArgsSerializer.writeInt32(actionTmpBufBufResource.resourceId); + actionTmpBufBufArgsSerializer.writePointer(actionTmpBufBufCall); + actionTmpBufBufArgsSerializer.writePointer(actionTmpBufBufCallSync); + InteropNativeModule._CallCallback(-1867723152, actionTmpBufBufArgsSerializer.asBuffer(), actionTmpBufBufArgsSerializer.length()); + actionTmpBufBufArgsSerializer.release(); + return; + } + let value : MenuElement = ({value: valueTmpResult, icon: iconTmpResult, symbolIcon: symbolIconTmpResult, enabled: enabledTmpResult, action: actionTmpResult} as MenuElement) + return value + } +} +export class OverlayOptions_serializer { + public static write(buffer: SerializerBase, value: OverlayOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForAlign = value.align + if (valueHolderForAlign !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAlignTmpValue = (valueHolderForAlign as Alignment) + valueSerializer.writeInt32(TypeChecker.Alignment_ToNumeric(valueHolderForAlignTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOffset = value.offset + if (valueHolderForOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetTmpValue = valueHolderForOffset! + OverlayOffset_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): OverlayOptions { + let valueDeserializer : DeserializerBase = buffer + const alignTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let alignTmpBuf : Alignment | undefined + if ((alignTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + alignTmpBuf = TypeChecker.Alignment_FromNumeric(valueDeserializer.readInt32()) + } + const alignTmpResult : Alignment | undefined = alignTmpBuf + const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetTmpBuf : OverlayOffset | undefined + if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + offsetTmpBuf = OverlayOffset_serializer.read(valueDeserializer) + } + const offsetTmpResult : OverlayOffset | undefined = offsetTmpBuf + let value : OverlayOptions = ({align: alignTmpResult, offset: offsetTmpResult} as OverlayOptions) + return value + } +} +export class PopupMaskType_serializer { + public static write(buffer: SerializerBase, value: PopupMaskType): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForColor = value.color + if (valueHolderForColor instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorForIdx0 = valueHolderForColor as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorForIdx0)) + } else if (valueHolderForColor instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorForIdx1 = valueHolderForColor as number + valueSerializer.writeNumber(valueHolderForColorForIdx1) + } else if (valueHolderForColor instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorForIdx2 = valueHolderForColor as string + valueSerializer.writeString(valueHolderForColorForIdx2) + } else if (valueHolderForColor instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorForIdx3 = valueHolderForColor as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorForIdx3) + } + } + public static read(buffer: DeserializerBase): PopupMaskType { + let valueDeserializer : DeserializerBase = buffer + const colorTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let colorTmpBuf : Color | number | string | Resource | undefined + if (colorTmpBufUnionSelector == (0).toChar()) { + colorTmpBuf = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorTmpBufUnionSelector == (1).toChar()) { + colorTmpBuf = (valueDeserializer.readNumber() as number) + } else if (colorTmpBufUnionSelector == (2).toChar()) { + colorTmpBuf = (valueDeserializer.readString() as string) + } else if (colorTmpBufUnionSelector == (3).toChar()) { + colorTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for colorTmpBuf has to be chosen through deserialisation.") + } + const colorTmpResult : ResourceColor = (colorTmpBuf as Color | number | string | Resource) + let value : PopupMaskType = ({color: colorTmpResult} as PopupMaskType) + return value + } +} +export class ReuseOptions_serializer { + public static write(buffer: SerializerBase, value: ReuseOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForReuseId = value.reuseId + if (valueHolderForReuseId !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForReuseIdTmpValue = valueHolderForReuseId! + valueSerializer.holdAndWriteCallback(valueHolderForReuseIdTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): ReuseOptions { + let valueDeserializer : DeserializerBase = buffer + const reuseIdTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let reuseIdTmpBuf : ReuseIdCallback | undefined + if ((reuseIdTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const reuseIdTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const reuseIdTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const reuseIdTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + reuseIdTmpBuf = ():string => { + const reuseIdTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + reuseIdTmpBuf_BufArgsSerializer.writeInt32(reuseIdTmpBuf_BufResource.resourceId); + reuseIdTmpBuf_BufArgsSerializer.writePointer(reuseIdTmpBuf_BufCall); + reuseIdTmpBuf_BufArgsSerializer.writePointer(reuseIdTmpBuf_BufCallSync); + let reuseIdTmpBuf_BufContinuationValue : string | undefined; + const reuseIdTmpBuf_BufContinuationCallback : ((breakpoints: string) => void) = (value: string):void => { + reuseIdTmpBuf_BufContinuationValue = value; + } + reuseIdTmpBuf_BufArgsSerializer.holdAndWriteCallback(reuseIdTmpBuf_BufContinuationCallback); + InteropNativeModule._CallCallback(1110529154, reuseIdTmpBuf_BufArgsSerializer.asBuffer(), reuseIdTmpBuf_BufArgsSerializer.length()); + reuseIdTmpBuf_BufArgsSerializer.release(); + return (reuseIdTmpBuf_BufContinuationValue as string); + } + } + const reuseIdTmpResult : ReuseIdCallback | undefined = reuseIdTmpBuf + let value : ReuseOptions = ({reuseId: reuseIdTmpResult} as ReuseOptions) + return value + } +} +export class ShadowOptions_serializer { + public static write(buffer: SerializerBase, value: ShadowOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForRadius = value.radius + if (valueHolderForRadius instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForRadiusForIdx0 = valueHolderForRadius as number + valueSerializer.writeNumber(valueHolderForRadiusForIdx0) + } else if (valueHolderForRadius instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForRadiusForIdx1 = valueHolderForRadius as Resource + Resource_serializer.write(valueSerializer, valueHolderForRadiusForIdx1) + } + const valueHolderForType = value.type + if (valueHolderForType !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTypeTmpValue = (valueHolderForType as ShadowType) + valueSerializer.writeInt32(TypeChecker.ShadowType_ToNumeric(valueHolderForTypeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForColor = value.color + if (valueHolderForColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForColorTmpValue = valueHolderForColor! + if (valueHolderForColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) + } else if (valueHolderForColorTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as string + valueSerializer.writeString(valueHolderForColorTmpValueForIdx1) + } else if (valueHolderForColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx2) + } else if (valueHolderForColorTmpValue instanceof ColoringStrategy) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as ColoringStrategy + valueSerializer.writeInt32(TypeChecker.ColoringStrategy_ToNumeric(valueHolderForColorTmpValueForIdx3)) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOffsetX = value.offsetX + if (valueHolderForOffsetX !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetXTmpValue = valueHolderForOffsetX! + if (valueHolderForOffsetXTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOffsetXTmpValueForIdx0 = valueHolderForOffsetXTmpValue as number + valueSerializer.writeNumber(valueHolderForOffsetXTmpValueForIdx0) + } else if (valueHolderForOffsetXTmpValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOffsetXTmpValueForIdx1 = valueHolderForOffsetXTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForOffsetXTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOffsetY = value.offsetY + if (valueHolderForOffsetY !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetYTmpValue = valueHolderForOffsetY! + if (valueHolderForOffsetYTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOffsetYTmpValueForIdx0 = valueHolderForOffsetYTmpValue as number + valueSerializer.writeNumber(valueHolderForOffsetYTmpValueForIdx0) + } else if (valueHolderForOffsetYTmpValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOffsetYTmpValueForIdx1 = valueHolderForOffsetYTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForOffsetYTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFill = value.fill + if (valueHolderForFill !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFillTmpValue = valueHolderForFill! + valueSerializer.writeBoolean(valueHolderForFillTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): ShadowOptions { + let valueDeserializer : DeserializerBase = buffer + const radiusTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let radiusTmpBuf : number | Resource | undefined + if (radiusTmpBufUnionSelector == (0).toChar()) { + radiusTmpBuf = (valueDeserializer.readNumber() as number) + } else if (radiusTmpBufUnionSelector == (1).toChar()) { + radiusTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for radiusTmpBuf has to be chosen through deserialisation.") + } + const radiusTmpResult : number | Resource = (radiusTmpBuf as number | Resource) + const typeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let typeTmpBuf : ShadowType | undefined + if ((typeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + typeTmpBuf = TypeChecker.ShadowType_FromNumeric(valueDeserializer.readInt32()) + } + const typeTmpResult : ShadowType | undefined = typeTmpBuf + const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let colorTmpBuf : Color | string | Resource | ColoringStrategy | undefined + if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let colorTmpBuf_ : Color | string | Resource | ColoringStrategy | undefined + if (colorTmpBuf_UnionSelector == (0).toChar()) { + colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorTmpBuf_UnionSelector == (1).toChar()) { + colorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (colorTmpBuf_UnionSelector == (2).toChar()) { + colorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else if (colorTmpBuf_UnionSelector == (3).toChar()) { + colorTmpBuf_ = TypeChecker.ColoringStrategy_FromNumeric(valueDeserializer.readInt32()) + } else { + throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") + } + colorTmpBuf = (colorTmpBuf_ as Color | string | Resource | ColoringStrategy) + } + const colorTmpResult : Color | string | Resource | ColoringStrategy | undefined = colorTmpBuf + const offsetXTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetXTmpBuf : number | Resource | undefined + if ((offsetXTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const offsetXTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let offsetXTmpBuf_ : number | Resource | undefined + if (offsetXTmpBuf_UnionSelector == (0).toChar()) { + offsetXTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (offsetXTmpBuf_UnionSelector == (1).toChar()) { + offsetXTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for offsetXTmpBuf_ has to be chosen through deserialisation.") + } + offsetXTmpBuf = (offsetXTmpBuf_ as number | Resource) + } + const offsetXTmpResult : number | Resource | undefined = offsetXTmpBuf + const offsetYTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetYTmpBuf : number | Resource | undefined + if ((offsetYTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const offsetYTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let offsetYTmpBuf_ : number | Resource | undefined + if (offsetYTmpBuf_UnionSelector == (0).toChar()) { + offsetYTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (offsetYTmpBuf_UnionSelector == (1).toChar()) { + offsetYTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for offsetYTmpBuf_ has to be chosen through deserialisation.") + } + offsetYTmpBuf = (offsetYTmpBuf_ as number | Resource) + } + const offsetYTmpResult : number | Resource | undefined = offsetYTmpBuf + const fillTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fillTmpBuf : boolean | undefined + if ((fillTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + fillTmpBuf = valueDeserializer.readBoolean() + } + const fillTmpResult : boolean | undefined = fillTmpBuf + let value : ShadowOptions = ({radius: radiusTmpResult, type: typeTmpResult, color: colorTmpResult, offsetX: offsetXTmpResult, offsetY: offsetYTmpResult, fill: fillTmpResult} as ShadowOptions) + return value + } +} +export class sharedTransitionOptions_serializer { + public static write(buffer: SerializerBase, value: sharedTransitionOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForDuration = value.duration + if (valueHolderForDuration !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDurationTmpValue = valueHolderForDuration! + valueSerializer.writeNumber(valueHolderForDurationTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForCurve = value.curve + if (valueHolderForCurve !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForCurveTmpValue = valueHolderForCurve! + if (valueHolderForCurveTmpValue instanceof curves.Curve) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCurveTmpValueForIdx0 = valueHolderForCurveTmpValue as curves.Curve + valueSerializer.writeInt32(TypeChecker.curves_Curve_ToNumeric(valueHolderForCurveTmpValueForIdx0)) + } else if (valueHolderForCurveTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCurveTmpValueForIdx1 = valueHolderForCurveTmpValue as string + valueSerializer.writeString(valueHolderForCurveTmpValueForIdx1) + } else if (valueHolderForCurveTmpValue instanceof curves.ICurve) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForCurveTmpValueForIdx2 = valueHolderForCurveTmpValue as curves.ICurve + curves_ICurve_serializer.write(valueSerializer, valueHolderForCurveTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDelay = value.delay + if (valueHolderForDelay !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDelayTmpValue = valueHolderForDelay! + valueSerializer.writeNumber(valueHolderForDelayTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForMotionPath = value.motionPath + if (valueHolderForMotionPath !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForMotionPathTmpValue = valueHolderForMotionPath! + MotionPathOptions_serializer.write(valueSerializer, valueHolderForMotionPathTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForZIndex = value.zIndex + if (valueHolderForZIndex !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForZIndexTmpValue = valueHolderForZIndex! + valueSerializer.writeNumber(valueHolderForZIndexTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForType = value.type + if (valueHolderForType !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTypeTmpValue = (valueHolderForType as SharedTransitionEffectType) + valueSerializer.writeInt32(TypeChecker.SharedTransitionEffectType_ToNumeric(valueHolderForTypeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): sharedTransitionOptions { + let valueDeserializer : DeserializerBase = buffer + const durationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let durationTmpBuf : number | undefined + if ((durationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + durationTmpBuf = (valueDeserializer.readNumber() as number) + } + const durationTmpResult : number | undefined = durationTmpBuf + const curveTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let curveTmpBuf : curves.Curve | string | curves.ICurve | undefined + if ((curveTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const curveTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let curveTmpBuf_ : curves.Curve | string | curves.ICurve | undefined + if (curveTmpBuf_UnionSelector == (0).toChar()) { + curveTmpBuf_ = TypeChecker.curves_Curve_FromNumeric(valueDeserializer.readInt32()) + } else if (curveTmpBuf_UnionSelector == (1).toChar()) { + curveTmpBuf_ = (valueDeserializer.readString() as string) + } else if (curveTmpBuf_UnionSelector == (2).toChar()) { + curveTmpBuf_ = (curves_ICurve_serializer.read(valueDeserializer) as curves.ICurve) + } else { + throw new Error("One of the branches for curveTmpBuf_ has to be chosen through deserialisation.") + } + curveTmpBuf = (curveTmpBuf_ as curves.Curve | string | curves.ICurve) + } + const curveTmpResult : curves.Curve | string | curves.ICurve | undefined = curveTmpBuf + const delayTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let delayTmpBuf : number | undefined + if ((delayTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + delayTmpBuf = (valueDeserializer.readNumber() as number) + } + const delayTmpResult : number | undefined = delayTmpBuf + const motionPathTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let motionPathTmpBuf : MotionPathOptions | undefined + if ((motionPathTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + motionPathTmpBuf = MotionPathOptions_serializer.read(valueDeserializer) + } + const motionPathTmpResult : MotionPathOptions | undefined = motionPathTmpBuf + const zIndexTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let zIndexTmpBuf : number | undefined + if ((zIndexTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + zIndexTmpBuf = (valueDeserializer.readNumber() as number) + } + const zIndexTmpResult : number | undefined = zIndexTmpBuf + const typeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let typeTmpBuf : SharedTransitionEffectType | undefined + if ((typeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + typeTmpBuf = TypeChecker.SharedTransitionEffectType_FromNumeric(valueDeserializer.readInt32()) + } + const typeTmpResult : SharedTransitionEffectType | undefined = typeTmpBuf + let value : sharedTransitionOptions = ({duration: durationTmpResult, curve: curveTmpResult, delay: delayTmpResult, motionPath: motionPathTmpResult, zIndex: zIndexTmpResult, type: typeTmpResult} as sharedTransitionOptions) + return value + } +} +export class SheetTitleOptions_serializer { + public static write(buffer: SerializerBase, value: SheetTitleOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForTitle = value.title + if (valueHolderForTitle instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTitleForIdx0 = valueHolderForTitle as string + valueSerializer.writeString(valueHolderForTitleForIdx0) + } else if (valueHolderForTitle instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTitleForIdx1 = valueHolderForTitle as Resource + Resource_serializer.write(valueSerializer, valueHolderForTitleForIdx1) + } + const valueHolderForSubtitle = value.subtitle + if (valueHolderForSubtitle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForSubtitleTmpValue = valueHolderForSubtitle! + if (valueHolderForSubtitleTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForSubtitleTmpValueForIdx0 = valueHolderForSubtitleTmpValue as string + valueSerializer.writeString(valueHolderForSubtitleTmpValueForIdx0) + } else if (valueHolderForSubtitleTmpValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForSubtitleTmpValueForIdx1 = valueHolderForSubtitleTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForSubtitleTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): SheetTitleOptions { + let valueDeserializer : DeserializerBase = buffer + const titleTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let titleTmpBuf : string | Resource | undefined + if (titleTmpBufUnionSelector == (0).toChar()) { + titleTmpBuf = (valueDeserializer.readString() as string) + } else if (titleTmpBufUnionSelector == (1).toChar()) { + titleTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for titleTmpBuf has to be chosen through deserialisation.") + } + const titleTmpResult : ResourceStr = (titleTmpBuf as string | Resource) + const subtitleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let subtitleTmpBuf : ResourceStr | undefined + if ((subtitleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const subtitleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let subtitleTmpBuf_ : string | Resource | undefined + if (subtitleTmpBuf_UnionSelector == (0).toChar()) { + subtitleTmpBuf_ = (valueDeserializer.readString() as string) + } else if (subtitleTmpBuf_UnionSelector == (1).toChar()) { + subtitleTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for subtitleTmpBuf_ has to be chosen through deserialisation.") + } + subtitleTmpBuf = (subtitleTmpBuf_ as string | Resource) + } + const subtitleTmpResult : ResourceStr | undefined = subtitleTmpBuf + let value : SheetTitleOptions = ({title: titleTmpResult, subtitle: subtitleTmpResult} as SheetTitleOptions) + return value + } +} +export class TerminationInfo_serializer { + public static write(buffer: SerializerBase, value: TerminationInfo): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForCode = value.code + valueSerializer.writeNumber(valueHolderForCode) + const valueHolderForWant = value.want + if (valueHolderForWant !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForWantTmpValue = valueHolderForWant! + Want_serializer.write(valueSerializer, valueHolderForWantTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): TerminationInfo { + let valueDeserializer : DeserializerBase = buffer + const codeTmpResult : number = (valueDeserializer.readNumber() as number) + const wantTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let wantTmpBuf : Want | undefined + if ((wantTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + wantTmpBuf = Want_serializer.read(valueDeserializer) + } + const wantTmpResult : Want | undefined = wantTmpBuf + let value : TerminationInfo = ({code: codeTmpResult, want: wantTmpResult} as TerminationInfo) + return value + } +} +export class TextDecorationOptions_serializer { + public static write(buffer: SerializerBase, value: TextDecorationOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForType = value.type + valueSerializer.writeInt32(TypeChecker.TextDecorationType_ToNumeric(valueHolderForType)) + const valueHolderForColor = value.color + if (valueHolderForColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForColorTmpValue = valueHolderForColor! + if (valueHolderForColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) + } else if (valueHolderForColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number + valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) + } else if (valueHolderForColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string + valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) + } else if (valueHolderForColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForStyle = value.style + if (valueHolderForStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForStyleTmpValue = (valueHolderForStyle as TextDecorationStyle) + valueSerializer.writeInt32(TypeChecker.TextDecorationStyle_ToNumeric(valueHolderForStyleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): TextDecorationOptions { + let valueDeserializer : DeserializerBase = buffer + const typeTmpResult : TextDecorationType = TypeChecker.TextDecorationType_FromNumeric(valueDeserializer.readInt32()) + const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let colorTmpBuf : ResourceColor | undefined + if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let colorTmpBuf_ : Color | number | string | Resource | undefined + if (colorTmpBuf_UnionSelector == (0).toChar()) { + colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorTmpBuf_UnionSelector == (1).toChar()) { + colorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (colorTmpBuf_UnionSelector == (2).toChar()) { + colorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (colorTmpBuf_UnionSelector == (3).toChar()) { + colorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") + } + colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) + } + const colorTmpResult : ResourceColor | undefined = colorTmpBuf + const styleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let styleTmpBuf : TextDecorationStyle | undefined + if ((styleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + styleTmpBuf = TypeChecker.TextDecorationStyle_FromNumeric(valueDeserializer.readInt32()) + } + const styleTmpResult : TextDecorationStyle | undefined = styleTmpBuf + let value : TextDecorationOptions = ({type: typeTmpResult, color: colorTmpResult, style: styleTmpResult} as TextDecorationOptions) + return value + } +} +export class Bindable_Arkui_Component_Units_Length_serializer { + public static write(buffer: SerializerBase, value: Bindable): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForValue = value.value + if (valueHolderForValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForValueForIdx0 = valueHolderForValue as string + valueSerializer.writeString(valueHolderForValueForIdx0) + } else if (valueHolderForValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForValueForIdx1 = valueHolderForValue as number + valueSerializer.writeNumber(valueHolderForValueForIdx1) + } else if (valueHolderForValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForValueForIdx2 = valueHolderForValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForValueForIdx2) + } + const valueHolderForOnChange = value.onChange + valueSerializer.holdAndWriteCallback(valueHolderForOnChange) + } + public static read(buffer: DeserializerBase): Bindable { + let valueDeserializer : DeserializerBase = buffer + const valueTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let valueTmpBuf : string | number | Resource | undefined + if (valueTmpBufUnionSelector == (0).toChar()) { + valueTmpBuf = (valueDeserializer.readString() as string) + } else if (valueTmpBufUnionSelector == (1).toChar()) { + valueTmpBuf = (valueDeserializer.readNumber() as number) + } else if (valueTmpBufUnionSelector == (2).toChar()) { + valueTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for valueTmpBuf has to be chosen through deserialisation.") + } + const valueTmpResult : Length = (valueTmpBuf as string | number | Resource) + const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const onChangeTmpResult : ((value0: Length) => void) = (value0: Length):void => { + const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); + onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); + if (value0 instanceof string) { + onChangeTmpBufBufArgsSerializer.writeInt8((0).toChar()); + const value0ForIdx0 = value0 as string; + onChangeTmpBufBufArgsSerializer.writeString(value0ForIdx0); + } else if (value0 instanceof number) { + onChangeTmpBufBufArgsSerializer.writeInt8((1).toChar()); + const value0ForIdx1 = value0 as number; + onChangeTmpBufBufArgsSerializer.writeNumber(value0ForIdx1); + } else if (value0 instanceof Resource) { + onChangeTmpBufBufArgsSerializer.writeInt8((2).toChar()); + const value0ForIdx2 = value0 as Resource; + Resource_serializer.write(onChangeTmpBufBufArgsSerializer, value0ForIdx2); + } + InteropNativeModule._CallCallback(46299833, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); + onChangeTmpBufBufArgsSerializer.release(); + return; + } + let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) + return value + } +} +export class DividerStyle_serializer { + public static write(buffer: SerializerBase, value: DividerStyle): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForStrokeWidth = value.strokeWidth + if (valueHolderForStrokeWidth instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForStrokeWidthForIdx0 = valueHolderForStrokeWidth as string + valueSerializer.writeString(valueHolderForStrokeWidthForIdx0) + } else if (valueHolderForStrokeWidth instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForStrokeWidthForIdx1 = valueHolderForStrokeWidth as number + valueSerializer.writeNumber(valueHolderForStrokeWidthForIdx1) + } else if (valueHolderForStrokeWidth instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForStrokeWidthForIdx2 = valueHolderForStrokeWidth as Resource + Resource_serializer.write(valueSerializer, valueHolderForStrokeWidthForIdx2) + } + const valueHolderForColor = value.color + if (valueHolderForColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForColorTmpValue = valueHolderForColor! + if (valueHolderForColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) + } else if (valueHolderForColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number + valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) + } else if (valueHolderForColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string + valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) + } else if (valueHolderForColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForStartMargin = value.startMargin + if (valueHolderForStartMargin !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForStartMarginTmpValue = valueHolderForStartMargin! + if (valueHolderForStartMarginTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForStartMarginTmpValueForIdx0 = valueHolderForStartMarginTmpValue as string + valueSerializer.writeString(valueHolderForStartMarginTmpValueForIdx0) + } else if (valueHolderForStartMarginTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForStartMarginTmpValueForIdx1 = valueHolderForStartMarginTmpValue as number + valueSerializer.writeNumber(valueHolderForStartMarginTmpValueForIdx1) + } else if (valueHolderForStartMarginTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForStartMarginTmpValueForIdx2 = valueHolderForStartMarginTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForStartMarginTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEndMargin = value.endMargin + if (valueHolderForEndMargin !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEndMarginTmpValue = valueHolderForEndMargin! + if (valueHolderForEndMarginTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForEndMarginTmpValueForIdx0 = valueHolderForEndMarginTmpValue as string + valueSerializer.writeString(valueHolderForEndMarginTmpValueForIdx0) + } else if (valueHolderForEndMarginTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForEndMarginTmpValueForIdx1 = valueHolderForEndMarginTmpValue as number + valueSerializer.writeNumber(valueHolderForEndMarginTmpValueForIdx1) + } else if (valueHolderForEndMarginTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForEndMarginTmpValueForIdx2 = valueHolderForEndMarginTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForEndMarginTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): DividerStyle { + let valueDeserializer : DeserializerBase = buffer + const strokeWidthTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let strokeWidthTmpBuf : string | number | Resource | undefined + if (strokeWidthTmpBufUnionSelector == (0).toChar()) { + strokeWidthTmpBuf = (valueDeserializer.readString() as string) + } else if (strokeWidthTmpBufUnionSelector == (1).toChar()) { + strokeWidthTmpBuf = (valueDeserializer.readNumber() as number) + } else if (strokeWidthTmpBufUnionSelector == (2).toChar()) { + strokeWidthTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for strokeWidthTmpBuf has to be chosen through deserialisation.") + } + const strokeWidthTmpResult : Length = (strokeWidthTmpBuf as string | number | Resource) + const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let colorTmpBuf : ResourceColor | undefined + if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let colorTmpBuf_ : Color | number | string | Resource | undefined + if (colorTmpBuf_UnionSelector == (0).toChar()) { + colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorTmpBuf_UnionSelector == (1).toChar()) { + colorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (colorTmpBuf_UnionSelector == (2).toChar()) { + colorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (colorTmpBuf_UnionSelector == (3).toChar()) { + colorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") + } + colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) + } + const colorTmpResult : ResourceColor | undefined = colorTmpBuf + const startMarginTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let startMarginTmpBuf : Length | undefined + if ((startMarginTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const startMarginTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let startMarginTmpBuf_ : string | number | Resource | undefined + if (startMarginTmpBuf_UnionSelector == (0).toChar()) { + startMarginTmpBuf_ = (valueDeserializer.readString() as string) + } else if (startMarginTmpBuf_UnionSelector == (1).toChar()) { + startMarginTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (startMarginTmpBuf_UnionSelector == (2).toChar()) { + startMarginTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for startMarginTmpBuf_ has to be chosen through deserialisation.") + } + startMarginTmpBuf = (startMarginTmpBuf_ as string | number | Resource) + } + const startMarginTmpResult : Length | undefined = startMarginTmpBuf + const endMarginTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let endMarginTmpBuf : Length | undefined + if ((endMarginTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const endMarginTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let endMarginTmpBuf_ : string | number | Resource | undefined + if (endMarginTmpBuf_UnionSelector == (0).toChar()) { + endMarginTmpBuf_ = (valueDeserializer.readString() as string) + } else if (endMarginTmpBuf_UnionSelector == (1).toChar()) { + endMarginTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (endMarginTmpBuf_UnionSelector == (2).toChar()) { + endMarginTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for endMarginTmpBuf_ has to be chosen through deserialisation.") + } + endMarginTmpBuf = (endMarginTmpBuf_ as string | number | Resource) + } + const endMarginTmpResult : Length | undefined = endMarginTmpBuf + let value : DividerStyle = ({strokeWidth: strokeWidthTmpResult, color: colorTmpResult, startMargin: startMarginTmpResult, endMargin: endMarginTmpResult} as DividerStyle) + return value + } +} +export class PixelStretchEffectOptions_serializer { + public static write(buffer: SerializerBase, value: PixelStretchEffectOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForTop = value.top + if (valueHolderForTop !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTopTmpValue = valueHolderForTop! + if (valueHolderForTopTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTopTmpValueForIdx0 = valueHolderForTopTmpValue as string + valueSerializer.writeString(valueHolderForTopTmpValueForIdx0) + } else if (valueHolderForTopTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTopTmpValueForIdx1 = valueHolderForTopTmpValue as number + valueSerializer.writeNumber(valueHolderForTopTmpValueForIdx1) + } else if (valueHolderForTopTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForTopTmpValueForIdx2 = valueHolderForTopTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForTopTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBottom = value.bottom + if (valueHolderForBottom !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBottomTmpValue = valueHolderForBottom! + if (valueHolderForBottomTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBottomTmpValueForIdx0 = valueHolderForBottomTmpValue as string + valueSerializer.writeString(valueHolderForBottomTmpValueForIdx0) + } else if (valueHolderForBottomTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBottomTmpValueForIdx1 = valueHolderForBottomTmpValue as number + valueSerializer.writeNumber(valueHolderForBottomTmpValueForIdx1) + } else if (valueHolderForBottomTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBottomTmpValueForIdx2 = valueHolderForBottomTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForBottomTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForLeft = value.left + if (valueHolderForLeft !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForLeftTmpValue = valueHolderForLeft! + if (valueHolderForLeftTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForLeftTmpValueForIdx0 = valueHolderForLeftTmpValue as string + valueSerializer.writeString(valueHolderForLeftTmpValueForIdx0) + } else if (valueHolderForLeftTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForLeftTmpValueForIdx1 = valueHolderForLeftTmpValue as number + valueSerializer.writeNumber(valueHolderForLeftTmpValueForIdx1) + } else if (valueHolderForLeftTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForLeftTmpValueForIdx2 = valueHolderForLeftTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForLeftTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRight = value.right + if (valueHolderForRight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRightTmpValue = valueHolderForRight! + if (valueHolderForRightTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForRightTmpValueForIdx0 = valueHolderForRightTmpValue as string + valueSerializer.writeString(valueHolderForRightTmpValueForIdx0) + } else if (valueHolderForRightTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForRightTmpValueForIdx1 = valueHolderForRightTmpValue as number + valueSerializer.writeNumber(valueHolderForRightTmpValueForIdx1) + } else if (valueHolderForRightTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForRightTmpValueForIdx2 = valueHolderForRightTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForRightTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): PixelStretchEffectOptions { + let valueDeserializer : DeserializerBase = buffer + const topTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let topTmpBuf : Length | undefined + if ((topTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const topTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let topTmpBuf_ : string | number | Resource | undefined + if (topTmpBuf_UnionSelector == (0).toChar()) { + topTmpBuf_ = (valueDeserializer.readString() as string) + } else if (topTmpBuf_UnionSelector == (1).toChar()) { + topTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (topTmpBuf_UnionSelector == (2).toChar()) { + topTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for topTmpBuf_ has to be chosen through deserialisation.") + } + topTmpBuf = (topTmpBuf_ as string | number | Resource) + } + const topTmpResult : Length | undefined = topTmpBuf + const bottomTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let bottomTmpBuf : Length | undefined + if ((bottomTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const bottomTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let bottomTmpBuf_ : string | number | Resource | undefined + if (bottomTmpBuf_UnionSelector == (0).toChar()) { + bottomTmpBuf_ = (valueDeserializer.readString() as string) + } else if (bottomTmpBuf_UnionSelector == (1).toChar()) { + bottomTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (bottomTmpBuf_UnionSelector == (2).toChar()) { + bottomTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for bottomTmpBuf_ has to be chosen through deserialisation.") + } + bottomTmpBuf = (bottomTmpBuf_ as string | number | Resource) + } + const bottomTmpResult : Length | undefined = bottomTmpBuf + const leftTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let leftTmpBuf : Length | undefined + if ((leftTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const leftTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let leftTmpBuf_ : string | number | Resource | undefined + if (leftTmpBuf_UnionSelector == (0).toChar()) { + leftTmpBuf_ = (valueDeserializer.readString() as string) + } else if (leftTmpBuf_UnionSelector == (1).toChar()) { + leftTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (leftTmpBuf_UnionSelector == (2).toChar()) { + leftTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for leftTmpBuf_ has to be chosen through deserialisation.") + } + leftTmpBuf = (leftTmpBuf_ as string | number | Resource) + } + const leftTmpResult : Length | undefined = leftTmpBuf + const rightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let rightTmpBuf : Length | undefined + if ((rightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const rightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let rightTmpBuf_ : string | number | Resource | undefined + if (rightTmpBuf_UnionSelector == (0).toChar()) { + rightTmpBuf_ = (valueDeserializer.readString() as string) + } else if (rightTmpBuf_UnionSelector == (1).toChar()) { + rightTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (rightTmpBuf_UnionSelector == (2).toChar()) { + rightTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for rightTmpBuf_ has to be chosen through deserialisation.") + } + rightTmpBuf = (rightTmpBuf_ as string | number | Resource) + } + const rightTmpResult : Length | undefined = rightTmpBuf + let value : PixelStretchEffectOptions = ({top: topTmpResult, bottom: bottomTmpResult, left: leftTmpResult, right: rightTmpResult} as PixelStretchEffectOptions) + return value + } +} +export class PointLightStyle_serializer { + public static write(buffer: SerializerBase, value: PointLightStyle): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForLightSource = value.lightSource + if (valueHolderForLightSource !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForLightSourceTmpValue = valueHolderForLightSource! + LightSource_serializer.write(valueSerializer, valueHolderForLightSourceTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForIlluminated = value.illuminated + if (valueHolderForIlluminated !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForIlluminatedTmpValue = (valueHolderForIlluminated as IlluminatedType) + valueSerializer.writeInt32(TypeChecker.IlluminatedType_ToNumeric(valueHolderForIlluminatedTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBloom = value.bloom + if (valueHolderForBloom !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBloomTmpValue = valueHolderForBloom! + valueSerializer.writeNumber(valueHolderForBloomTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): PointLightStyle { + let valueDeserializer : DeserializerBase = buffer + const lightSourceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let lightSourceTmpBuf : LightSource | undefined + if ((lightSourceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + lightSourceTmpBuf = LightSource_serializer.read(valueDeserializer) + } + const lightSourceTmpResult : LightSource | undefined = lightSourceTmpBuf + const illuminatedTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let illuminatedTmpBuf : IlluminatedType | undefined + if ((illuminatedTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + illuminatedTmpBuf = TypeChecker.IlluminatedType_FromNumeric(valueDeserializer.readInt32()) + } + const illuminatedTmpResult : IlluminatedType | undefined = illuminatedTmpBuf + const bloomTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let bloomTmpBuf : number | undefined + if ((bloomTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + bloomTmpBuf = (valueDeserializer.readNumber() as number) + } + const bloomTmpResult : number | undefined = bloomTmpBuf + let value : PointLightStyle = ({lightSource: lightSourceTmpResult, illuminated: illuminatedTmpResult, bloom: bloomTmpResult} as PointLightStyle) + return value + } +} +export class RadialGradientOptions_serializer { + public static write(buffer: SerializerBase, value: RadialGradientOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForCenter = value.center + const valueHolderForCenter_0 = valueHolderForCenter[0] + if (valueHolderForCenter_0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCenter_0ForIdx0 = valueHolderForCenter_0 as string + valueSerializer.writeString(valueHolderForCenter_0ForIdx0) + } else if (valueHolderForCenter_0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCenter_0ForIdx1 = valueHolderForCenter_0 as number + valueSerializer.writeNumber(valueHolderForCenter_0ForIdx1) + } else if (valueHolderForCenter_0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForCenter_0ForIdx2 = valueHolderForCenter_0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForCenter_0ForIdx2) + } + const valueHolderForCenter_1 = valueHolderForCenter[1] + if (valueHolderForCenter_1 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCenter_1ForIdx0 = valueHolderForCenter_1 as string + valueSerializer.writeString(valueHolderForCenter_1ForIdx0) + } else if (valueHolderForCenter_1 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCenter_1ForIdx1 = valueHolderForCenter_1 as number + valueSerializer.writeNumber(valueHolderForCenter_1ForIdx1) + } else if (valueHolderForCenter_1 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForCenter_1ForIdx2 = valueHolderForCenter_1 as Resource + Resource_serializer.write(valueSerializer, valueHolderForCenter_1ForIdx2) + } + const valueHolderForRadius = value.radius + if (valueHolderForRadius instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForRadiusForIdx0 = valueHolderForRadius as string + valueSerializer.writeString(valueHolderForRadiusForIdx0) + } else if (valueHolderForRadius instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForRadiusForIdx1 = valueHolderForRadius as number + valueSerializer.writeNumber(valueHolderForRadiusForIdx1) + } else if (valueHolderForRadius instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForRadiusForIdx2 = valueHolderForRadius as Resource + Resource_serializer.write(valueSerializer, valueHolderForRadiusForIdx2) + } + const valueHolderForColors = value.colors + valueSerializer.writeInt32((valueHolderForColors.length).toInt()) + for (let valueHolderForColorsCounterI = 0; valueHolderForColorsCounterI < valueHolderForColors.length; valueHolderForColorsCounterI++) { + const valueHolderForColorsTmpElement : [ ResourceColor, number ] = valueHolderForColors[valueHolderForColorsCounterI] + const valueHolderForColorsTmpElement_0 = valueHolderForColorsTmpElement[0] + if (valueHolderForColorsTmpElement_0 instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorsTmpElement_0ForIdx0 = valueHolderForColorsTmpElement_0 as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorsTmpElement_0ForIdx0)) + } else if (valueHolderForColorsTmpElement_0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorsTmpElement_0ForIdx1 = valueHolderForColorsTmpElement_0 as number + valueSerializer.writeNumber(valueHolderForColorsTmpElement_0ForIdx1) + } else if (valueHolderForColorsTmpElement_0 instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorsTmpElement_0ForIdx2 = valueHolderForColorsTmpElement_0 as string + valueSerializer.writeString(valueHolderForColorsTmpElement_0ForIdx2) + } else if (valueHolderForColorsTmpElement_0 instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorsTmpElement_0ForIdx3 = valueHolderForColorsTmpElement_0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorsTmpElement_0ForIdx3) + } + const valueHolderForColorsTmpElement_1 = valueHolderForColorsTmpElement[1] + valueSerializer.writeNumber(valueHolderForColorsTmpElement_1) + } + const valueHolderForRepeating = value.repeating + if (valueHolderForRepeating !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRepeatingTmpValue = valueHolderForRepeating! + valueSerializer.writeBoolean(valueHolderForRepeatingTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): RadialGradientOptions { + let valueDeserializer : DeserializerBase = buffer + const centerTmpBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() + let centerTmpBufValue0TempBuf : string | number | Resource | undefined + if (centerTmpBufValue0TempBufUnionSelector == (0).toChar()) { + centerTmpBufValue0TempBuf = (valueDeserializer.readString() as string) + } else if (centerTmpBufValue0TempBufUnionSelector == (1).toChar()) { + centerTmpBufValue0TempBuf = (valueDeserializer.readNumber() as number) + } else if (centerTmpBufValue0TempBufUnionSelector == (2).toChar()) { + centerTmpBufValue0TempBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for centerTmpBufValue0TempBuf has to be chosen through deserialisation.") + } + const centerTmpBufValue0 : Length = (centerTmpBufValue0TempBuf as string | number | Resource) + const centerTmpBufValue1TempBufUnionSelector : int32 = valueDeserializer.readInt8() + let centerTmpBufValue1TempBuf : string | number | Resource | undefined + if (centerTmpBufValue1TempBufUnionSelector == (0).toChar()) { + centerTmpBufValue1TempBuf = (valueDeserializer.readString() as string) + } else if (centerTmpBufValue1TempBufUnionSelector == (1).toChar()) { + centerTmpBufValue1TempBuf = (valueDeserializer.readNumber() as number) + } else if (centerTmpBufValue1TempBufUnionSelector == (2).toChar()) { + centerTmpBufValue1TempBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for centerTmpBufValue1TempBuf has to be chosen through deserialisation.") + } + const centerTmpBufValue1 : Length = (centerTmpBufValue1TempBuf as string | number | Resource) + const centerTmpResult : [ Length, Length ] = ([centerTmpBufValue0, centerTmpBufValue1] as [ Length, Length ]) + const radiusTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let radiusTmpBuf : string | number | Resource | undefined + if (radiusTmpBufUnionSelector == (0).toChar()) { + radiusTmpBuf = (valueDeserializer.readString() as string) + } else if (radiusTmpBufUnionSelector == (1).toChar()) { + radiusTmpBuf = (valueDeserializer.readNumber() as number) + } else if (radiusTmpBufUnionSelector == (2).toChar()) { + radiusTmpBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for radiusTmpBuf has to be chosen through deserialisation.") + } + const radiusTmpResult : Length = (radiusTmpBuf as string | number | Resource) + const colorsTmpBufLength : int32 = valueDeserializer.readInt32() + let colorsTmpBuf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colorsTmpBufLength) + for (let colorsTmpBufBufCounterI = 0; colorsTmpBufBufCounterI < colorsTmpBufLength; colorsTmpBufBufCounterI++) { + const colorsTmpBufTempBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() + let colorsTmpBufTempBufValue0TempBuf : Color | number | string | Resource | undefined + if (colorsTmpBufTempBufValue0TempBufUnionSelector == (0).toChar()) { + colorsTmpBufTempBufValue0TempBuf = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (1).toChar()) { + colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readNumber() as number) + } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (2).toChar()) { + colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readString() as string) + } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (3).toChar()) { + colorsTmpBufTempBufValue0TempBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for colorsTmpBufTempBufValue0TempBuf has to be chosen through deserialisation.") + } + const colorsTmpBufTempBufValue0 : ResourceColor = (colorsTmpBufTempBufValue0TempBuf as Color | number | string | Resource) + const colorsTmpBufTempBufValue1 : number = (valueDeserializer.readNumber() as number) + colorsTmpBuf[colorsTmpBufBufCounterI] = ([colorsTmpBufTempBufValue0, colorsTmpBufTempBufValue1] as [ ResourceColor, number ]) + } + const colorsTmpResult : Array<[ ResourceColor, number ]> = colorsTmpBuf + const repeatingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let repeatingTmpBuf : boolean | undefined + if ((repeatingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + repeatingTmpBuf = valueDeserializer.readBoolean() + } + const repeatingTmpResult : boolean | undefined = repeatingTmpBuf + let value : RadialGradientOptions = ({center: centerTmpResult, radius: radiusTmpResult, colors: colorsTmpResult, repeating: repeatingTmpResult} as RadialGradientOptions) + return value + } +} +export class Rectangle_serializer { + public static write(buffer: SerializerBase, value: Rectangle): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForX = value.x + if (valueHolderForX !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForXTmpValue = valueHolderForX! + if (valueHolderForXTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForXTmpValueForIdx0 = valueHolderForXTmpValue as string + valueSerializer.writeString(valueHolderForXTmpValueForIdx0) + } else if (valueHolderForXTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForXTmpValueForIdx1 = valueHolderForXTmpValue as number + valueSerializer.writeNumber(valueHolderForXTmpValueForIdx1) + } else if (valueHolderForXTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForXTmpValueForIdx2 = valueHolderForXTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForXTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForY = value.y + if (valueHolderForY !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForYTmpValue = valueHolderForY! + if (valueHolderForYTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForYTmpValueForIdx0 = valueHolderForYTmpValue as string + valueSerializer.writeString(valueHolderForYTmpValueForIdx0) + } else if (valueHolderForYTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForYTmpValueForIdx1 = valueHolderForYTmpValue as number + valueSerializer.writeNumber(valueHolderForYTmpValueForIdx1) + } else if (valueHolderForYTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForYTmpValueForIdx2 = valueHolderForYTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForYTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForWidth = value.width + if (valueHolderForWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForWidthTmpValue = valueHolderForWidth! + if (valueHolderForWidthTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string + valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) + } else if (valueHolderForWidthTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number + valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) + } else if (valueHolderForWidthTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForHeight = value.height + if (valueHolderForHeight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHeightTmpValue = valueHolderForHeight! + if (valueHolderForHeightTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForHeightTmpValueForIdx0 = valueHolderForHeightTmpValue as string + valueSerializer.writeString(valueHolderForHeightTmpValueForIdx0) + } else if (valueHolderForHeightTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForHeightTmpValueForIdx1 = valueHolderForHeightTmpValue as number + valueSerializer.writeNumber(valueHolderForHeightTmpValueForIdx1) + } else if (valueHolderForHeightTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForHeightTmpValueForIdx2 = valueHolderForHeightTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForHeightTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): Rectangle { + let valueDeserializer : DeserializerBase = buffer + const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let xTmpBuf : Length | undefined + if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const xTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let xTmpBuf_ : string | number | Resource | undefined + if (xTmpBuf_UnionSelector == (0).toChar()) { + xTmpBuf_ = (valueDeserializer.readString() as string) + } else if (xTmpBuf_UnionSelector == (1).toChar()) { + xTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (xTmpBuf_UnionSelector == (2).toChar()) { + xTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for xTmpBuf_ has to be chosen through deserialisation.") + } + xTmpBuf = (xTmpBuf_ as string | number | Resource) + } + const xTmpResult : Length | undefined = xTmpBuf + const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let yTmpBuf : Length | undefined + if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const yTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let yTmpBuf_ : string | number | Resource | undefined + if (yTmpBuf_UnionSelector == (0).toChar()) { + yTmpBuf_ = (valueDeserializer.readString() as string) + } else if (yTmpBuf_UnionSelector == (1).toChar()) { + yTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (yTmpBuf_UnionSelector == (2).toChar()) { + yTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for yTmpBuf_ has to be chosen through deserialisation.") + } + yTmpBuf = (yTmpBuf_ as string | number | Resource) + } + const yTmpResult : Length | undefined = yTmpBuf + const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let widthTmpBuf : Length | undefined + if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let widthTmpBuf_ : string | number | Resource | undefined + if (widthTmpBuf_UnionSelector == (0).toChar()) { + widthTmpBuf_ = (valueDeserializer.readString() as string) + } else if (widthTmpBuf_UnionSelector == (1).toChar()) { + widthTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (widthTmpBuf_UnionSelector == (2).toChar()) { + widthTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") + } + widthTmpBuf = (widthTmpBuf_ as string | number | Resource) + } + const widthTmpResult : Length | undefined = widthTmpBuf + const heightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let heightTmpBuf : Length | undefined + if ((heightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const heightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let heightTmpBuf_ : string | number | Resource | undefined + if (heightTmpBuf_UnionSelector == (0).toChar()) { + heightTmpBuf_ = (valueDeserializer.readString() as string) + } else if (heightTmpBuf_UnionSelector == (1).toChar()) { + heightTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (heightTmpBuf_UnionSelector == (2).toChar()) { + heightTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for heightTmpBuf_ has to be chosen through deserialisation.") + } + heightTmpBuf = (heightTmpBuf_ as string | number | Resource) + } + const heightTmpResult : Length | undefined = heightTmpBuf + let value : Rectangle = ({x: xTmpResult, y: yTmpResult, width: widthTmpResult, height: heightTmpResult} as Rectangle) + return value + } +} +export class SweepGradientOptions_serializer { + public static write(buffer: SerializerBase, value: SweepGradientOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForCenter = value.center + const valueHolderForCenter_0 = valueHolderForCenter[0] + if (valueHolderForCenter_0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCenter_0ForIdx0 = valueHolderForCenter_0 as string + valueSerializer.writeString(valueHolderForCenter_0ForIdx0) + } else if (valueHolderForCenter_0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCenter_0ForIdx1 = valueHolderForCenter_0 as number + valueSerializer.writeNumber(valueHolderForCenter_0ForIdx1) + } else if (valueHolderForCenter_0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForCenter_0ForIdx2 = valueHolderForCenter_0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForCenter_0ForIdx2) + } + const valueHolderForCenter_1 = valueHolderForCenter[1] + if (valueHolderForCenter_1 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForCenter_1ForIdx0 = valueHolderForCenter_1 as string + valueSerializer.writeString(valueHolderForCenter_1ForIdx0) + } else if (valueHolderForCenter_1 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForCenter_1ForIdx1 = valueHolderForCenter_1 as number + valueSerializer.writeNumber(valueHolderForCenter_1ForIdx1) + } else if (valueHolderForCenter_1 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForCenter_1ForIdx2 = valueHolderForCenter_1 as Resource + Resource_serializer.write(valueSerializer, valueHolderForCenter_1ForIdx2) + } + const valueHolderForStart = value.start + if (valueHolderForStart !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForStartTmpValue = valueHolderForStart! + if (valueHolderForStartTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForStartTmpValueForIdx0 = valueHolderForStartTmpValue as number + valueSerializer.writeNumber(valueHolderForStartTmpValueForIdx0) + } else if (valueHolderForStartTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForStartTmpValueForIdx1 = valueHolderForStartTmpValue as string + valueSerializer.writeString(valueHolderForStartTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnd = value.end + if (valueHolderForEnd !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEndTmpValue = valueHolderForEnd! + if (valueHolderForEndTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForEndTmpValueForIdx0 = valueHolderForEndTmpValue as number + valueSerializer.writeNumber(valueHolderForEndTmpValueForIdx0) + } else if (valueHolderForEndTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForEndTmpValueForIdx1 = valueHolderForEndTmpValue as string + valueSerializer.writeString(valueHolderForEndTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRotation = value.rotation + if (valueHolderForRotation !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRotationTmpValue = valueHolderForRotation! + if (valueHolderForRotationTmpValue instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForRotationTmpValueForIdx0 = valueHolderForRotationTmpValue as number + valueSerializer.writeNumber(valueHolderForRotationTmpValueForIdx0) + } else if (valueHolderForRotationTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForRotationTmpValueForIdx1 = valueHolderForRotationTmpValue as string + valueSerializer.writeString(valueHolderForRotationTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForColors = value.colors + valueSerializer.writeInt32((valueHolderForColors.length).toInt()) + for (let valueHolderForColorsCounterI = 0; valueHolderForColorsCounterI < valueHolderForColors.length; valueHolderForColorsCounterI++) { + const valueHolderForColorsTmpElement : [ ResourceColor, number ] = valueHolderForColors[valueHolderForColorsCounterI] + const valueHolderForColorsTmpElement_0 = valueHolderForColorsTmpElement[0] + if (valueHolderForColorsTmpElement_0 instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorsTmpElement_0ForIdx0 = valueHolderForColorsTmpElement_0 as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorsTmpElement_0ForIdx0)) + } else if (valueHolderForColorsTmpElement_0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorsTmpElement_0ForIdx1 = valueHolderForColorsTmpElement_0 as number + valueSerializer.writeNumber(valueHolderForColorsTmpElement_0ForIdx1) + } else if (valueHolderForColorsTmpElement_0 instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorsTmpElement_0ForIdx2 = valueHolderForColorsTmpElement_0 as string + valueSerializer.writeString(valueHolderForColorsTmpElement_0ForIdx2) + } else if (valueHolderForColorsTmpElement_0 instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorsTmpElement_0ForIdx3 = valueHolderForColorsTmpElement_0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorsTmpElement_0ForIdx3) + } + const valueHolderForColorsTmpElement_1 = valueHolderForColorsTmpElement[1] + valueSerializer.writeNumber(valueHolderForColorsTmpElement_1) + } + const valueHolderForRepeating = value.repeating + if (valueHolderForRepeating !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRepeatingTmpValue = valueHolderForRepeating! + valueSerializer.writeBoolean(valueHolderForRepeatingTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): SweepGradientOptions { + let valueDeserializer : DeserializerBase = buffer + const centerTmpBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() + let centerTmpBufValue0TempBuf : string | number | Resource | undefined + if (centerTmpBufValue0TempBufUnionSelector == (0).toChar()) { + centerTmpBufValue0TempBuf = (valueDeserializer.readString() as string) + } else if (centerTmpBufValue0TempBufUnionSelector == (1).toChar()) { + centerTmpBufValue0TempBuf = (valueDeserializer.readNumber() as number) + } else if (centerTmpBufValue0TempBufUnionSelector == (2).toChar()) { + centerTmpBufValue0TempBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for centerTmpBufValue0TempBuf has to be chosen through deserialisation.") + } + const centerTmpBufValue0 : Length = (centerTmpBufValue0TempBuf as string | number | Resource) + const centerTmpBufValue1TempBufUnionSelector : int32 = valueDeserializer.readInt8() + let centerTmpBufValue1TempBuf : string | number | Resource | undefined + if (centerTmpBufValue1TempBufUnionSelector == (0).toChar()) { + centerTmpBufValue1TempBuf = (valueDeserializer.readString() as string) + } else if (centerTmpBufValue1TempBufUnionSelector == (1).toChar()) { + centerTmpBufValue1TempBuf = (valueDeserializer.readNumber() as number) + } else if (centerTmpBufValue1TempBufUnionSelector == (2).toChar()) { + centerTmpBufValue1TempBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for centerTmpBufValue1TempBuf has to be chosen through deserialisation.") + } + const centerTmpBufValue1 : Length = (centerTmpBufValue1TempBuf as string | number | Resource) + const centerTmpResult : [ Length, Length ] = ([centerTmpBufValue0, centerTmpBufValue1] as [ Length, Length ]) + const startTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let startTmpBuf : number | string | undefined + if ((startTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const startTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let startTmpBuf_ : number | string | undefined + if (startTmpBuf_UnionSelector == (0).toChar()) { + startTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (startTmpBuf_UnionSelector == (1).toChar()) { + startTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for startTmpBuf_ has to be chosen through deserialisation.") + } + startTmpBuf = (startTmpBuf_ as number | string) + } + const startTmpResult : number | string | undefined = startTmpBuf + const endTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let endTmpBuf : number | string | undefined + if ((endTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const endTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let endTmpBuf_ : number | string | undefined + if (endTmpBuf_UnionSelector == (0).toChar()) { + endTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (endTmpBuf_UnionSelector == (1).toChar()) { + endTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for endTmpBuf_ has to be chosen through deserialisation.") + } + endTmpBuf = (endTmpBuf_ as number | string) + } + const endTmpResult : number | string | undefined = endTmpBuf + const rotationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let rotationTmpBuf : number | string | undefined + if ((rotationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const rotationTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let rotationTmpBuf_ : number | string | undefined + if (rotationTmpBuf_UnionSelector == (0).toChar()) { + rotationTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (rotationTmpBuf_UnionSelector == (1).toChar()) { + rotationTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for rotationTmpBuf_ has to be chosen through deserialisation.") + } + rotationTmpBuf = (rotationTmpBuf_ as number | string) + } + const rotationTmpResult : number | string | undefined = rotationTmpBuf + const colorsTmpBufLength : int32 = valueDeserializer.readInt32() + let colorsTmpBuf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colorsTmpBufLength) + for (let colorsTmpBufBufCounterI = 0; colorsTmpBufBufCounterI < colorsTmpBufLength; colorsTmpBufBufCounterI++) { + const colorsTmpBufTempBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() + let colorsTmpBufTempBufValue0TempBuf : Color | number | string | Resource | undefined + if (colorsTmpBufTempBufValue0TempBufUnionSelector == (0).toChar()) { + colorsTmpBufTempBufValue0TempBuf = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (1).toChar()) { + colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readNumber() as number) + } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (2).toChar()) { + colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readString() as string) + } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (3).toChar()) { + colorsTmpBufTempBufValue0TempBuf = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for colorsTmpBufTempBufValue0TempBuf has to be chosen through deserialisation.") + } + const colorsTmpBufTempBufValue0 : ResourceColor = (colorsTmpBufTempBufValue0TempBuf as Color | number | string | Resource) + const colorsTmpBufTempBufValue1 : number = (valueDeserializer.readNumber() as number) + colorsTmpBuf[colorsTmpBufBufCounterI] = ([colorsTmpBufTempBufValue0, colorsTmpBufTempBufValue1] as [ ResourceColor, number ]) + } + const colorsTmpResult : Array<[ ResourceColor, number ]> = colorsTmpBuf + const repeatingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let repeatingTmpBuf : boolean | undefined + if ((repeatingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + repeatingTmpBuf = valueDeserializer.readBoolean() + } + const repeatingTmpResult : boolean | undefined = repeatingTmpBuf + let value : SweepGradientOptions = ({center: centerTmpResult, start: startTmpResult, end: endTmpResult, rotation: rotationTmpResult, colors: colorsTmpResult, repeating: repeatingTmpResult} as SweepGradientOptions) + return value + } +} +export class TipsOptions_serializer { + public static write(buffer: SerializerBase, value: TipsOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForAppearingTime = value.appearingTime + if (valueHolderForAppearingTime !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAppearingTimeTmpValue = valueHolderForAppearingTime! + valueSerializer.writeNumber(valueHolderForAppearingTimeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDisappearingTime = value.disappearingTime + if (valueHolderForDisappearingTime !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDisappearingTimeTmpValue = valueHolderForDisappearingTime! + valueSerializer.writeNumber(valueHolderForDisappearingTimeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAppearingTimeWithContinuousOperation = value.appearingTimeWithContinuousOperation + if (valueHolderForAppearingTimeWithContinuousOperation !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAppearingTimeWithContinuousOperationTmpValue = valueHolderForAppearingTimeWithContinuousOperation! + valueSerializer.writeNumber(valueHolderForAppearingTimeWithContinuousOperationTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDisappearingTimeWithContinuousOperation = value.disappearingTimeWithContinuousOperation + if (valueHolderForDisappearingTimeWithContinuousOperation !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDisappearingTimeWithContinuousOperationTmpValue = valueHolderForDisappearingTimeWithContinuousOperation! + valueSerializer.writeNumber(valueHolderForDisappearingTimeWithContinuousOperationTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableArrow = value.enableArrow + if (valueHolderForEnableArrow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! + valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowPointPosition = value.arrowPointPosition + if (valueHolderForArrowPointPosition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowPointPositionTmpValue = (valueHolderForArrowPointPosition as ArrowPointPosition) + valueSerializer.writeInt32(TypeChecker.ArrowPointPosition_ToNumeric(valueHolderForArrowPointPositionTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowWidth = value.arrowWidth + if (valueHolderForArrowWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowWidthTmpValue = valueHolderForArrowWidth! + if (valueHolderForArrowWidthTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowWidthTmpValueForIdx0 = valueHolderForArrowWidthTmpValue as string + valueSerializer.writeString(valueHolderForArrowWidthTmpValueForIdx0) + } else if (valueHolderForArrowWidthTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowWidthTmpValueForIdx1 = valueHolderForArrowWidthTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowWidthTmpValueForIdx1) + } else if (valueHolderForArrowWidthTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowWidthTmpValueForIdx2 = valueHolderForArrowWidthTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowHeight = value.arrowHeight + if (valueHolderForArrowHeight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowHeightTmpValue = valueHolderForArrowHeight! + if (valueHolderForArrowHeightTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowHeightTmpValueForIdx0 = valueHolderForArrowHeightTmpValue as string + valueSerializer.writeString(valueHolderForArrowHeightTmpValueForIdx0) + } else if (valueHolderForArrowHeightTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowHeightTmpValueForIdx1 = valueHolderForArrowHeightTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowHeightTmpValueForIdx1) + } else if (valueHolderForArrowHeightTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowHeightTmpValueForIdx2 = valueHolderForArrowHeightTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowHeightTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): TipsOptions { + let valueDeserializer : DeserializerBase = buffer + const appearingTimeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let appearingTimeTmpBuf : number | undefined + if ((appearingTimeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + appearingTimeTmpBuf = (valueDeserializer.readNumber() as number) + } + const appearingTimeTmpResult : number | undefined = appearingTimeTmpBuf + const disappearingTimeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let disappearingTimeTmpBuf : number | undefined + if ((disappearingTimeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + disappearingTimeTmpBuf = (valueDeserializer.readNumber() as number) + } + const disappearingTimeTmpResult : number | undefined = disappearingTimeTmpBuf + const appearingTimeWithContinuousOperationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let appearingTimeWithContinuousOperationTmpBuf : number | undefined + if ((appearingTimeWithContinuousOperationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + appearingTimeWithContinuousOperationTmpBuf = (valueDeserializer.readNumber() as number) + } + const appearingTimeWithContinuousOperationTmpResult : number | undefined = appearingTimeWithContinuousOperationTmpBuf + const disappearingTimeWithContinuousOperationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let disappearingTimeWithContinuousOperationTmpBuf : number | undefined + if ((disappearingTimeWithContinuousOperationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + disappearingTimeWithContinuousOperationTmpBuf = (valueDeserializer.readNumber() as number) + } + const disappearingTimeWithContinuousOperationTmpResult : number | undefined = disappearingTimeWithContinuousOperationTmpBuf + const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableArrowTmpBuf : boolean | undefined + if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableArrowTmpBuf = valueDeserializer.readBoolean() + } + const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf + const arrowPointPositionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowPointPositionTmpBuf : ArrowPointPosition | undefined + if ((arrowPointPositionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + arrowPointPositionTmpBuf = TypeChecker.ArrowPointPosition_FromNumeric(valueDeserializer.readInt32()) + } + const arrowPointPositionTmpResult : ArrowPointPosition | undefined = arrowPointPositionTmpBuf + const arrowWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowWidthTmpBuf : Dimension | undefined + if ((arrowWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowWidthTmpBuf_ : string | number | Resource | undefined + if (arrowWidthTmpBuf_UnionSelector == (0).toChar()) { + arrowWidthTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowWidthTmpBuf_UnionSelector == (1).toChar()) { + arrowWidthTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowWidthTmpBuf_UnionSelector == (2).toChar()) { + arrowWidthTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowWidthTmpBuf_ has to be chosen through deserialisation.") + } + arrowWidthTmpBuf = (arrowWidthTmpBuf_ as string | number | Resource) + } + const arrowWidthTmpResult : Dimension | undefined = arrowWidthTmpBuf + const arrowHeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowHeightTmpBuf : Dimension | undefined + if ((arrowHeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowHeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowHeightTmpBuf_ : string | number | Resource | undefined + if (arrowHeightTmpBuf_UnionSelector == (0).toChar()) { + arrowHeightTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowHeightTmpBuf_UnionSelector == (1).toChar()) { + arrowHeightTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowHeightTmpBuf_UnionSelector == (2).toChar()) { + arrowHeightTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowHeightTmpBuf_ has to be chosen through deserialisation.") + } + arrowHeightTmpBuf = (arrowHeightTmpBuf_ as string | number | Resource) + } + const arrowHeightTmpResult : Dimension | undefined = arrowHeightTmpBuf + let value : TipsOptions = ({appearingTime: appearingTimeTmpResult, disappearingTime: disappearingTimeTmpResult, appearingTimeWithContinuousOperation: appearingTimeWithContinuousOperationTmpResult, disappearingTimeWithContinuousOperation: disappearingTimeWithContinuousOperationTmpResult, enableArrow: enableArrowTmpResult, arrowPointPosition: arrowPointPositionTmpResult, arrowWidth: arrowWidthTmpResult, arrowHeight: arrowHeightTmpResult} as TipsOptions) + return value + } +} +export class BorderImageOption_serializer { + public static write(buffer: SerializerBase, value: BorderImageOption): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForSlice = value.slice + if (valueHolderForSlice !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForSliceTmpValue = valueHolderForSlice! + if (valueHolderForSliceTmpValue instanceof Length) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForSliceTmpValueForIdx0 = valueHolderForSliceTmpValue as Length + if (valueHolderForSliceTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForSliceTmpValueForIdx0ForIdx0 = valueHolderForSliceTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForSliceTmpValueForIdx0ForIdx0) + } else if (valueHolderForSliceTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForSliceTmpValueForIdx0ForIdx1 = valueHolderForSliceTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForSliceTmpValueForIdx0ForIdx1) + } else if (valueHolderForSliceTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForSliceTmpValueForIdx0ForIdx2 = valueHolderForSliceTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForSliceTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForSliceTmpValue instanceof EdgeWidths) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForSliceTmpValueForIdx1 = valueHolderForSliceTmpValue as EdgeWidths + EdgeWidths_serializer.write(valueSerializer, valueHolderForSliceTmpValueForIdx1) + } else if (valueHolderForSliceTmpValue instanceof LocalizedEdgeWidths) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForSliceTmpValueForIdx2 = valueHolderForSliceTmpValue as LocalizedEdgeWidths + LocalizedEdgeWidths_serializer.write(valueSerializer, valueHolderForSliceTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRepeat = value.repeat + if (valueHolderForRepeat !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRepeatTmpValue = (valueHolderForRepeat as RepeatMode) + valueSerializer.writeInt32(TypeChecker.RepeatMode_ToNumeric(valueHolderForRepeatTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForSource = value.source + if (valueHolderForSource !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForSourceTmpValue = valueHolderForSource! + if (valueHolderForSourceTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForSourceTmpValueForIdx0 = valueHolderForSourceTmpValue as string + valueSerializer.writeString(valueHolderForSourceTmpValueForIdx0) + } else if (valueHolderForSourceTmpValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForSourceTmpValueForIdx1 = valueHolderForSourceTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForSourceTmpValueForIdx1) + } else if (valueHolderForSourceTmpValue instanceof LinearGradientOptions) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForSourceTmpValueForIdx2 = valueHolderForSourceTmpValue as LinearGradientOptions + LinearGradientOptions_serializer.write(valueSerializer, valueHolderForSourceTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForWidth = value.width + if (valueHolderForWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForWidthTmpValue = valueHolderForWidth! + if (valueHolderForWidthTmpValue instanceof Length) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as Length + if (valueHolderForWidthTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForWidthTmpValueForIdx0ForIdx0 = valueHolderForWidthTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0ForIdx0) + } else if (valueHolderForWidthTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForWidthTmpValueForIdx0ForIdx1 = valueHolderForWidthTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx0ForIdx1) + } else if (valueHolderForWidthTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForWidthTmpValueForIdx0ForIdx2 = valueHolderForWidthTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForWidthTmpValue instanceof EdgeWidths) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as EdgeWidths + EdgeWidths_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx1) + } else if (valueHolderForWidthTmpValue instanceof LocalizedEdgeWidths) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as LocalizedEdgeWidths + LocalizedEdgeWidths_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOutset = value.outset + if (valueHolderForOutset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOutsetTmpValue = valueHolderForOutset! + if (valueHolderForOutsetTmpValue instanceof Length) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutsetTmpValueForIdx0 = valueHolderForOutsetTmpValue as Length + if (valueHolderForOutsetTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutsetTmpValueForIdx0ForIdx0 = valueHolderForOutsetTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForOutsetTmpValueForIdx0ForIdx0) + } else if (valueHolderForOutsetTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutsetTmpValueForIdx0ForIdx1 = valueHolderForOutsetTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForOutsetTmpValueForIdx0ForIdx1) + } else if (valueHolderForOutsetTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForOutsetTmpValueForIdx0ForIdx2 = valueHolderForOutsetTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForOutsetTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForOutsetTmpValue instanceof EdgeWidths) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutsetTmpValueForIdx1 = valueHolderForOutsetTmpValue as EdgeWidths + EdgeWidths_serializer.write(valueSerializer, valueHolderForOutsetTmpValueForIdx1) + } else if (valueHolderForOutsetTmpValue instanceof LocalizedEdgeWidths) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForOutsetTmpValueForIdx2 = valueHolderForOutsetTmpValue as LocalizedEdgeWidths + LocalizedEdgeWidths_serializer.write(valueSerializer, valueHolderForOutsetTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFill = value.fill + if (valueHolderForFill !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFillTmpValue = valueHolderForFill! + valueSerializer.writeBoolean(valueHolderForFillTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): BorderImageOption { + let valueDeserializer : DeserializerBase = buffer + const sliceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let sliceTmpBuf : Length | EdgeWidths | LocalizedEdgeWidths | undefined + if ((sliceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const sliceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let sliceTmpBuf_ : Length | EdgeWidths | LocalizedEdgeWidths | undefined + if (sliceTmpBuf_UnionSelector == (0).toChar()) { + const sliceTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let sliceTmpBuf_BufU : string | number | Resource | undefined + if (sliceTmpBuf_BufUUnionSelector == (0).toChar()) { + sliceTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (sliceTmpBuf_BufUUnionSelector == (1).toChar()) { + sliceTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (sliceTmpBuf_BufUUnionSelector == (2).toChar()) { + sliceTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for sliceTmpBuf_BufU has to be chosen through deserialisation.") + } + sliceTmpBuf_ = (sliceTmpBuf_BufU as string | number | Resource) + } else if (sliceTmpBuf_UnionSelector == (1).toChar()) { + sliceTmpBuf_ = EdgeWidths_serializer.read(valueDeserializer) + } else if (sliceTmpBuf_UnionSelector == (2).toChar()) { + sliceTmpBuf_ = LocalizedEdgeWidths_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for sliceTmpBuf_ has to be chosen through deserialisation.") + } + sliceTmpBuf = (sliceTmpBuf_ as Length | EdgeWidths | LocalizedEdgeWidths) + } + const sliceTmpResult : Length | EdgeWidths | LocalizedEdgeWidths | undefined = sliceTmpBuf + const repeatTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let repeatTmpBuf : RepeatMode | undefined + if ((repeatTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + repeatTmpBuf = TypeChecker.RepeatMode_FromNumeric(valueDeserializer.readInt32()) + } + const repeatTmpResult : RepeatMode | undefined = repeatTmpBuf + const sourceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let sourceTmpBuf : string | Resource | LinearGradientOptions | undefined + if ((sourceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const sourceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let sourceTmpBuf_ : string | Resource | LinearGradientOptions | undefined + if (sourceTmpBuf_UnionSelector == (0).toChar()) { + sourceTmpBuf_ = (valueDeserializer.readString() as string) + } else if (sourceTmpBuf_UnionSelector == (1).toChar()) { + sourceTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else if (sourceTmpBuf_UnionSelector == (2).toChar()) { + sourceTmpBuf_ = LinearGradientOptions_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for sourceTmpBuf_ has to be chosen through deserialisation.") + } + sourceTmpBuf = (sourceTmpBuf_ as string | Resource | LinearGradientOptions) + } + const sourceTmpResult : string | Resource | LinearGradientOptions | undefined = sourceTmpBuf + const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let widthTmpBuf : Length | EdgeWidths | LocalizedEdgeWidths | undefined + if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let widthTmpBuf_ : Length | EdgeWidths | LocalizedEdgeWidths | undefined + if (widthTmpBuf_UnionSelector == (0).toChar()) { + const widthTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let widthTmpBuf_BufU : string | number | Resource | undefined + if (widthTmpBuf_BufUUnionSelector == (0).toChar()) { + widthTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (widthTmpBuf_BufUUnionSelector == (1).toChar()) { + widthTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (widthTmpBuf_BufUUnionSelector == (2).toChar()) { + widthTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for widthTmpBuf_BufU has to be chosen through deserialisation.") + } + widthTmpBuf_ = (widthTmpBuf_BufU as string | number | Resource) + } else if (widthTmpBuf_UnionSelector == (1).toChar()) { + widthTmpBuf_ = EdgeWidths_serializer.read(valueDeserializer) + } else if (widthTmpBuf_UnionSelector == (2).toChar()) { + widthTmpBuf_ = LocalizedEdgeWidths_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") + } + widthTmpBuf = (widthTmpBuf_ as Length | EdgeWidths | LocalizedEdgeWidths) + } + const widthTmpResult : Length | EdgeWidths | LocalizedEdgeWidths | undefined = widthTmpBuf + const outsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let outsetTmpBuf : Length | EdgeWidths | LocalizedEdgeWidths | undefined + if ((outsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const outsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let outsetTmpBuf_ : Length | EdgeWidths | LocalizedEdgeWidths | undefined + if (outsetTmpBuf_UnionSelector == (0).toChar()) { + const outsetTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let outsetTmpBuf_BufU : string | number | Resource | undefined + if (outsetTmpBuf_BufUUnionSelector == (0).toChar()) { + outsetTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (outsetTmpBuf_BufUUnionSelector == (1).toChar()) { + outsetTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (outsetTmpBuf_BufUUnionSelector == (2).toChar()) { + outsetTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outsetTmpBuf_BufU has to be chosen through deserialisation.") + } + outsetTmpBuf_ = (outsetTmpBuf_BufU as string | number | Resource) + } else if (outsetTmpBuf_UnionSelector == (1).toChar()) { + outsetTmpBuf_ = EdgeWidths_serializer.read(valueDeserializer) + } else if (outsetTmpBuf_UnionSelector == (2).toChar()) { + outsetTmpBuf_ = LocalizedEdgeWidths_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outsetTmpBuf_ has to be chosen through deserialisation.") + } + outsetTmpBuf = (outsetTmpBuf_ as Length | EdgeWidths | LocalizedEdgeWidths) + } + const outsetTmpResult : Length | EdgeWidths | LocalizedEdgeWidths | undefined = outsetTmpBuf + const fillTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fillTmpBuf : boolean | undefined + if ((fillTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + fillTmpBuf = valueDeserializer.readBoolean() + } + const fillTmpResult : boolean | undefined = fillTmpBuf + let value : BorderImageOption = ({slice: sliceTmpResult, repeat: repeatTmpResult, source: sourceTmpResult, width: widthTmpResult, outset: outsetTmpResult, fill: fillTmpResult} as BorderImageOption) + return value + } +} +export class ContextMenuOptions_serializer { + public static write(buffer: SerializerBase, value: ContextMenuOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForOffset = value.offset + if (valueHolderForOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetTmpValue = valueHolderForOffset! + Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPlacement = value.placement + if (valueHolderForPlacement !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) + valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableArrow = value.enableArrow + if (valueHolderForEnableArrow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! + valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowOffset = value.arrowOffset + if (valueHolderForArrowOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! + if (valueHolderForArrowOffsetTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string + valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) + } else if (valueHolderForArrowOffsetTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) + } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPreview = value.preview + if (valueHolderForPreview !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPreviewTmpValue = valueHolderForPreview! + if (valueHolderForPreviewTmpValue instanceof MenuPreviewMode) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPreviewTmpValueForIdx0 = valueHolderForPreviewTmpValue as MenuPreviewMode + valueSerializer.writeInt32(TypeChecker.MenuPreviewMode_ToNumeric(valueHolderForPreviewTmpValueForIdx0)) + } else if (valueHolderForPreviewTmpValue instanceof CustomBuilder) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPreviewTmpValueForIdx1 = valueHolderForPreviewTmpValue as CustomBuilder + valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForPreviewTmpValueForIdx1)) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPreviewBorderRadius = value.previewBorderRadius + if (valueHolderForPreviewBorderRadius !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPreviewBorderRadiusTmpValue = valueHolderForPreviewBorderRadius! + if (valueHolderForPreviewBorderRadiusTmpValue instanceof Length) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx0 = valueHolderForPreviewBorderRadiusTmpValue as Length + if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx0) + } else if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx1) + } else if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForPreviewBorderRadiusTmpValue instanceof BorderRadiuses) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx1 = valueHolderForPreviewBorderRadiusTmpValue as BorderRadiuses + BorderRadiuses_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx1) + } else if (valueHolderForPreviewBorderRadiusTmpValue instanceof LocalizedBorderRadiuses) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx2 = valueHolderForPreviewBorderRadiusTmpValue as LocalizedBorderRadiuses + LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBorderRadius = value.borderRadius + if (valueHolderForBorderRadius !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBorderRadiusTmpValue = valueHolderForBorderRadius! + if (valueHolderForBorderRadiusTmpValue instanceof Length) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0 = valueHolderForBorderRadiusTmpValue as Length + if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForBorderRadiusTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForBorderRadiusTmpValueForIdx0ForIdx0) + } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForBorderRadiusTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForBorderRadiusTmpValueForIdx0ForIdx1) + } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForBorderRadiusTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForBorderRadiusTmpValue instanceof BorderRadiuses) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx1 = valueHolderForBorderRadiusTmpValue as BorderRadiuses + BorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx1) + } else if (valueHolderForBorderRadiusTmpValue instanceof LocalizedBorderRadiuses) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx2 = valueHolderForBorderRadiusTmpValue as LocalizedBorderRadiuses + LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnAppear = value.onAppear + if (valueHolderForOnAppear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnAppearTmpValue = valueHolderForOnAppear! + valueSerializer.holdAndWriteCallback(valueHolderForOnAppearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnDisappear = value.onDisappear + if (valueHolderForOnDisappear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnDisappearTmpValue = valueHolderForOnDisappear! + valueSerializer.holdAndWriteCallback(valueHolderForOnDisappearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAboutToAppear = value.aboutToAppear + if (valueHolderForAboutToAppear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAboutToAppearTmpValue = valueHolderForAboutToAppear! + valueSerializer.holdAndWriteCallback(valueHolderForAboutToAppearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAboutToDisappear = value.aboutToDisappear + if (valueHolderForAboutToDisappear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAboutToDisappearTmpValue = valueHolderForAboutToDisappear! + valueSerializer.holdAndWriteCallback(valueHolderForAboutToDisappearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForLayoutRegionMargin = value.layoutRegionMargin + if (valueHolderForLayoutRegionMargin !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForLayoutRegionMarginTmpValue = valueHolderForLayoutRegionMargin! + Padding_serializer.write(valueSerializer, valueHolderForLayoutRegionMarginTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPreviewAnimationOptions = value.previewAnimationOptions + if (valueHolderForPreviewAnimationOptions !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPreviewAnimationOptionsTmpValue = valueHolderForPreviewAnimationOptions! + ContextMenuAnimationOptions_serializer.write(valueSerializer, valueHolderForPreviewAnimationOptionsTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundColor = value.backgroundColor + if (valueHolderForBackgroundColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! + if (valueHolderForBackgroundColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) + } else if (valueHolderForBackgroundColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number + valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) + } else if (valueHolderForBackgroundColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string + valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) + } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle + if (valueHolderForBackgroundBlurStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) + valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundBlurStyleOptions = value.backgroundBlurStyleOptions + if (valueHolderForBackgroundBlurStyleOptions !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundBlurStyleOptionsTmpValue = valueHolderForBackgroundBlurStyleOptions! + BackgroundBlurStyleOptions_serializer.write(valueSerializer, valueHolderForBackgroundBlurStyleOptionsTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundEffect = value.backgroundEffect + if (valueHolderForBackgroundEffect !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundEffectTmpValue = valueHolderForBackgroundEffect! + BackgroundEffectOptions_serializer.write(valueSerializer, valueHolderForBackgroundEffectTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTransition = value.transition + if (valueHolderForTransition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTransitionTmpValue = valueHolderForTransition! + TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableHoverMode = value.enableHoverMode + if (valueHolderForEnableHoverMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! + valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOutlineColor = value.outlineColor + if (valueHolderForOutlineColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOutlineColorTmpValue = valueHolderForOutlineColor! + if (valueHolderForOutlineColorTmpValue instanceof ResourceColor) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0 = valueHolderForOutlineColorTmpValue as ResourceColor + if (valueHolderForOutlineColorTmpValueForIdx0 instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0ForIdx0 = valueHolderForOutlineColorTmpValueForIdx0 as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForOutlineColorTmpValueForIdx0ForIdx0)) + } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0ForIdx1 = valueHolderForOutlineColorTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForOutlineColorTmpValueForIdx0ForIdx1) + } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0ForIdx2 = valueHolderForOutlineColorTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForOutlineColorTmpValueForIdx0ForIdx2) + } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0ForIdx3 = valueHolderForOutlineColorTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForOutlineColorTmpValueForIdx0ForIdx3) + } + } else if (valueHolderForOutlineColorTmpValue instanceof EdgeColors) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutlineColorTmpValueForIdx1 = valueHolderForOutlineColorTmpValue as EdgeColors + EdgeColors_serializer.write(valueSerializer, valueHolderForOutlineColorTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOutlineWidth = value.outlineWidth + if (valueHolderForOutlineWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOutlineWidthTmpValue = valueHolderForOutlineWidth! + if (valueHolderForOutlineWidthTmpValue instanceof Dimension) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx0 = valueHolderForOutlineWidthTmpValue as Dimension + if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx0ForIdx0 = valueHolderForOutlineWidthTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForOutlineWidthTmpValueForIdx0ForIdx0) + } else if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx0ForIdx1 = valueHolderForOutlineWidthTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForOutlineWidthTmpValueForIdx0ForIdx1) + } else if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx0ForIdx2 = valueHolderForOutlineWidthTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForOutlineWidthTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForOutlineWidthTmpValue instanceof EdgeOutlineWidths) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx1 = valueHolderForOutlineWidthTmpValue as EdgeOutlineWidths + EdgeOutlineWidths_serializer.write(valueSerializer, valueHolderForOutlineWidthTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForHapticFeedbackMode = value.hapticFeedbackMode + if (valueHolderForHapticFeedbackMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHapticFeedbackModeTmpValue = (valueHolderForHapticFeedbackMode as HapticFeedbackMode) + valueSerializer.writeInt32(TypeChecker.HapticFeedbackMode_ToNumeric(valueHolderForHapticFeedbackModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): ContextMenuOptions { + let valueDeserializer : DeserializerBase = buffer + const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetTmpBuf : Position | undefined + if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + offsetTmpBuf = Position_serializer.read(valueDeserializer) + } + const offsetTmpResult : Position | undefined = offsetTmpBuf + const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let placementTmpBuf : Placement | undefined + if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) + } + const placementTmpResult : Placement | undefined = placementTmpBuf + const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableArrowTmpBuf : boolean | undefined + if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableArrowTmpBuf = valueDeserializer.readBoolean() + } + const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf + const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowOffsetTmpBuf : Length | undefined + if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowOffsetTmpBuf_ : string | number | Resource | undefined + if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { + arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") + } + arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) + } + const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf + const previewTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let previewTmpBuf : MenuPreviewMode | CustomBuilder | undefined + if ((previewTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const previewTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let previewTmpBuf_ : MenuPreviewMode | CustomBuilder | undefined + if (previewTmpBuf_UnionSelector == (0).toChar()) { + previewTmpBuf_ = TypeChecker.MenuPreviewMode_FromNumeric(valueDeserializer.readInt32()) + } else if (previewTmpBuf_UnionSelector == (1).toChar()) { + const previewTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const previewTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() + const previewTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() + previewTmpBuf_ = ():void => { + const previewTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); + previewTmpBuf_BufUBufArgsSerializer.writeInt32(previewTmpBuf_BufUBufResource.resourceId); + previewTmpBuf_BufUBufArgsSerializer.writePointer(previewTmpBuf_BufUBufCall); + previewTmpBuf_BufUBufArgsSerializer.writePointer(previewTmpBuf_BufUBufCallSync); + InteropNativeModule._CallCallback(737226752, previewTmpBuf_BufUBufArgsSerializer.asBuffer(), previewTmpBuf_BufUBufArgsSerializer.length()); + previewTmpBuf_BufUBufArgsSerializer.release(); + return; + } + } else { + throw new Error("One of the branches for previewTmpBuf_ has to be chosen through deserialisation.") + } + previewTmpBuf = (previewTmpBuf_ as MenuPreviewMode | CustomBuilder) + } + const previewTmpResult : MenuPreviewMode | CustomBuilder | undefined = previewTmpBuf + const previewBorderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let previewBorderRadiusTmpBuf : BorderRadiusType | undefined + if ((previewBorderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const previewBorderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let previewBorderRadiusTmpBuf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined + if (previewBorderRadiusTmpBuf_UnionSelector == (0).toChar()) { + const previewBorderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let previewBorderRadiusTmpBuf_BufU : string | number | Resource | undefined + if (previewBorderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { + previewBorderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (previewBorderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { + previewBorderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (previewBorderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { + previewBorderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for previewBorderRadiusTmpBuf_BufU has to be chosen through deserialisation.") + } + previewBorderRadiusTmpBuf_ = (previewBorderRadiusTmpBuf_BufU as string | number | Resource) + } else if (previewBorderRadiusTmpBuf_UnionSelector == (1).toChar()) { + previewBorderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) + } else if (previewBorderRadiusTmpBuf_UnionSelector == (2).toChar()) { + previewBorderRadiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for previewBorderRadiusTmpBuf_ has to be chosen through deserialisation.") + } + previewBorderRadiusTmpBuf = (previewBorderRadiusTmpBuf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) + } + const previewBorderRadiusTmpResult : BorderRadiusType | undefined = previewBorderRadiusTmpBuf + const borderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let borderRadiusTmpBuf : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined + if ((borderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const borderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let borderRadiusTmpBuf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined + if (borderRadiusTmpBuf_UnionSelector == (0).toChar()) { + const borderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let borderRadiusTmpBuf_BufU : string | number | Resource | undefined + if (borderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { + borderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (borderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { + borderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (borderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { + borderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderRadiusTmpBuf_BufU has to be chosen through deserialisation.") + } + borderRadiusTmpBuf_ = (borderRadiusTmpBuf_BufU as string | number | Resource) + } else if (borderRadiusTmpBuf_UnionSelector == (1).toChar()) { + borderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) + } else if (borderRadiusTmpBuf_UnionSelector == (2).toChar()) { + borderRadiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderRadiusTmpBuf_ has to be chosen through deserialisation.") + } + borderRadiusTmpBuf = (borderRadiusTmpBuf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) + } + const borderRadiusTmpResult : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined = borderRadiusTmpBuf + const onAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onAppearTmpBuf : (() => void) | undefined + if ((onAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onAppearTmpBuf = ():void => { + const onAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onAppearTmpBuf_BufArgsSerializer.writeInt32(onAppearTmpBuf_BufResource.resourceId); + onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCall); + onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onAppearTmpBuf_BufArgsSerializer.asBuffer(), onAppearTmpBuf_BufArgsSerializer.length()); + onAppearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onAppearTmpResult : (() => void) | undefined = onAppearTmpBuf + const onDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onDisappearTmpBuf : (() => void) | undefined + if ((onDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onDisappearTmpBuf = ():void => { + const onDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onDisappearTmpBuf_BufArgsSerializer.writeInt32(onDisappearTmpBuf_BufResource.resourceId); + onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCall); + onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onDisappearTmpBuf_BufArgsSerializer.asBuffer(), onDisappearTmpBuf_BufArgsSerializer.length()); + onDisappearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onDisappearTmpResult : (() => void) | undefined = onDisappearTmpBuf + const aboutToAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let aboutToAppearTmpBuf : (() => void) | undefined + if ((aboutToAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const aboutToAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const aboutToAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const aboutToAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + aboutToAppearTmpBuf = ():void => { + const aboutToAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + aboutToAppearTmpBuf_BufArgsSerializer.writeInt32(aboutToAppearTmpBuf_BufResource.resourceId); + aboutToAppearTmpBuf_BufArgsSerializer.writePointer(aboutToAppearTmpBuf_BufCall); + aboutToAppearTmpBuf_BufArgsSerializer.writePointer(aboutToAppearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, aboutToAppearTmpBuf_BufArgsSerializer.asBuffer(), aboutToAppearTmpBuf_BufArgsSerializer.length()); + aboutToAppearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const aboutToAppearTmpResult : (() => void) | undefined = aboutToAppearTmpBuf + const aboutToDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let aboutToDisappearTmpBuf : (() => void) | undefined + if ((aboutToDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const aboutToDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const aboutToDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const aboutToDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + aboutToDisappearTmpBuf = ():void => { + const aboutToDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + aboutToDisappearTmpBuf_BufArgsSerializer.writeInt32(aboutToDisappearTmpBuf_BufResource.resourceId); + aboutToDisappearTmpBuf_BufArgsSerializer.writePointer(aboutToDisappearTmpBuf_BufCall); + aboutToDisappearTmpBuf_BufArgsSerializer.writePointer(aboutToDisappearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, aboutToDisappearTmpBuf_BufArgsSerializer.asBuffer(), aboutToDisappearTmpBuf_BufArgsSerializer.length()); + aboutToDisappearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const aboutToDisappearTmpResult : (() => void) | undefined = aboutToDisappearTmpBuf + const layoutRegionMarginTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let layoutRegionMarginTmpBuf : Padding | undefined + if ((layoutRegionMarginTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + layoutRegionMarginTmpBuf = Padding_serializer.read(valueDeserializer) + } + const layoutRegionMarginTmpResult : Padding | undefined = layoutRegionMarginTmpBuf + const previewAnimationOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let previewAnimationOptionsTmpBuf : ContextMenuAnimationOptions | undefined + if ((previewAnimationOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + previewAnimationOptionsTmpBuf = ContextMenuAnimationOptions_serializer.read(valueDeserializer) + } + const previewAnimationOptionsTmpResult : ContextMenuAnimationOptions | undefined = previewAnimationOptionsTmpBuf + const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundColorTmpBuf : ResourceColor | undefined + if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined + if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { + backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { + backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") + } + backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) + } + const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf + const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundBlurStyleTmpBuf : BlurStyle | undefined + if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) + } + const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf + const backgroundBlurStyleOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundBlurStyleOptionsTmpBuf : BackgroundBlurStyleOptions | undefined + if ((backgroundBlurStyleOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backgroundBlurStyleOptionsTmpBuf = BackgroundBlurStyleOptions_serializer.read(valueDeserializer) + } + const backgroundBlurStyleOptionsTmpResult : BackgroundBlurStyleOptions | undefined = backgroundBlurStyleOptionsTmpBuf + const backgroundEffectTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundEffectTmpBuf : BackgroundEffectOptions | undefined + if ((backgroundEffectTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backgroundEffectTmpBuf = BackgroundEffectOptions_serializer.read(valueDeserializer) + } + const backgroundEffectTmpResult : BackgroundEffectOptions | undefined = backgroundEffectTmpBuf + const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let transitionTmpBuf : TransitionEffect | undefined + if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) + } + const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf + const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableHoverModeTmpBuf : boolean | undefined + if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableHoverModeTmpBuf = valueDeserializer.readBoolean() + } + const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf + const outlineColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let outlineColorTmpBuf : ResourceColor | EdgeColors | undefined + if ((outlineColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const outlineColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let outlineColorTmpBuf_ : ResourceColor | EdgeColors | undefined + if (outlineColorTmpBuf_UnionSelector == (0).toChar()) { + const outlineColorTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let outlineColorTmpBuf_BufU : Color | number | string | Resource | undefined + if (outlineColorTmpBuf_BufUUnionSelector == (0).toChar()) { + outlineColorTmpBuf_BufU = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (outlineColorTmpBuf_BufUUnionSelector == (1).toChar()) { + outlineColorTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (outlineColorTmpBuf_BufUUnionSelector == (2).toChar()) { + outlineColorTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (outlineColorTmpBuf_BufUUnionSelector == (3).toChar()) { + outlineColorTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outlineColorTmpBuf_BufU has to be chosen through deserialisation.") + } + outlineColorTmpBuf_ = (outlineColorTmpBuf_BufU as Color | number | string | Resource) + } else if (outlineColorTmpBuf_UnionSelector == (1).toChar()) { + outlineColorTmpBuf_ = EdgeColors_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outlineColorTmpBuf_ has to be chosen through deserialisation.") + } + outlineColorTmpBuf = (outlineColorTmpBuf_ as ResourceColor | EdgeColors) + } + const outlineColorTmpResult : ResourceColor | EdgeColors | undefined = outlineColorTmpBuf + const outlineWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let outlineWidthTmpBuf : Dimension | EdgeOutlineWidths | undefined + if ((outlineWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const outlineWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let outlineWidthTmpBuf_ : Dimension | EdgeOutlineWidths | undefined + if (outlineWidthTmpBuf_UnionSelector == (0).toChar()) { + const outlineWidthTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let outlineWidthTmpBuf_BufU : string | number | Resource | undefined + if (outlineWidthTmpBuf_BufUUnionSelector == (0).toChar()) { + outlineWidthTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (outlineWidthTmpBuf_BufUUnionSelector == (1).toChar()) { + outlineWidthTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (outlineWidthTmpBuf_BufUUnionSelector == (2).toChar()) { + outlineWidthTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outlineWidthTmpBuf_BufU has to be chosen through deserialisation.") + } + outlineWidthTmpBuf_ = (outlineWidthTmpBuf_BufU as string | number | Resource) + } else if (outlineWidthTmpBuf_UnionSelector == (1).toChar()) { + outlineWidthTmpBuf_ = EdgeOutlineWidths_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outlineWidthTmpBuf_ has to be chosen through deserialisation.") + } + outlineWidthTmpBuf = (outlineWidthTmpBuf_ as Dimension | EdgeOutlineWidths) + } + const outlineWidthTmpResult : Dimension | EdgeOutlineWidths | undefined = outlineWidthTmpBuf + const hapticFeedbackModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let hapticFeedbackModeTmpBuf : HapticFeedbackMode | undefined + if ((hapticFeedbackModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + hapticFeedbackModeTmpBuf = TypeChecker.HapticFeedbackMode_FromNumeric(valueDeserializer.readInt32()) + } + const hapticFeedbackModeTmpResult : HapticFeedbackMode | undefined = hapticFeedbackModeTmpBuf + let value : ContextMenuOptions = ({offset: offsetTmpResult, placement: placementTmpResult, enableArrow: enableArrowTmpResult, arrowOffset: arrowOffsetTmpResult, preview: previewTmpResult, previewBorderRadius: previewBorderRadiusTmpResult, borderRadius: borderRadiusTmpResult, onAppear: onAppearTmpResult, onDisappear: onDisappearTmpResult, aboutToAppear: aboutToAppearTmpResult, aboutToDisappear: aboutToDisappearTmpResult, layoutRegionMargin: layoutRegionMarginTmpResult, previewAnimationOptions: previewAnimationOptionsTmpResult, backgroundColor: backgroundColorTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, backgroundBlurStyleOptions: backgroundBlurStyleOptionsTmpResult, backgroundEffect: backgroundEffectTmpResult, transition: transitionTmpResult, enableHoverMode: enableHoverModeTmpResult, outlineColor: outlineColorTmpResult, outlineWidth: outlineWidthTmpResult, hapticFeedbackMode: hapticFeedbackModeTmpResult} as ContextMenuOptions) + return value + } +} +export class CustomPopupOptions_serializer { + public static write(buffer: SerializerBase, value: CustomPopupOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForBuilder = value.builder + valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForBuilder)) + const valueHolderForPlacement = value.placement + if (valueHolderForPlacement !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) + valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPopupColor = value.popupColor + if (valueHolderForPopupColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPopupColorTmpValue = valueHolderForPopupColor! + if (valueHolderForPopupColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPopupColorTmpValueForIdx0 = valueHolderForPopupColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForPopupColorTmpValueForIdx0)) + } else if (valueHolderForPopupColorTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPopupColorTmpValueForIdx1 = valueHolderForPopupColorTmpValue as string + valueSerializer.writeString(valueHolderForPopupColorTmpValueForIdx1) + } else if (valueHolderForPopupColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForPopupColorTmpValueForIdx2 = valueHolderForPopupColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForPopupColorTmpValueForIdx2) + } else if (valueHolderForPopupColorTmpValue instanceof number) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForPopupColorTmpValueForIdx3 = valueHolderForPopupColorTmpValue as number + valueSerializer.writeNumber(valueHolderForPopupColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableArrow = value.enableArrow + if (valueHolderForEnableArrow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! + valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAutoCancel = value.autoCancel + if (valueHolderForAutoCancel !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAutoCancelTmpValue = valueHolderForAutoCancel! + valueSerializer.writeBoolean(valueHolderForAutoCancelTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnStateChange = value.onStateChange + if (valueHolderForOnStateChange !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnStateChangeTmpValue = valueHolderForOnStateChange! + valueSerializer.holdAndWriteCallback(valueHolderForOnStateChangeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowOffset = value.arrowOffset + if (valueHolderForArrowOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! + if (valueHolderForArrowOffsetTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string + valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) + } else if (valueHolderForArrowOffsetTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) + } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShowInSubWindow = value.showInSubWindow + if (valueHolderForShowInSubWindow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! + valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForMask = value.mask + if (valueHolderForMask !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForMaskTmpValue = valueHolderForMask! + if (valueHolderForMaskTmpValue instanceof boolean) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForMaskTmpValueForIdx0 = valueHolderForMaskTmpValue as boolean + valueSerializer.writeBoolean(valueHolderForMaskTmpValueForIdx0) + } else if (valueHolderForMaskTmpValue instanceof PopupMaskType) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForMaskTmpValueForIdx1 = valueHolderForMaskTmpValue as PopupMaskType + PopupMaskType_serializer.write(valueSerializer, valueHolderForMaskTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTargetSpace = value.targetSpace + if (valueHolderForTargetSpace !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTargetSpaceTmpValue = valueHolderForTargetSpace! + if (valueHolderForTargetSpaceTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTargetSpaceTmpValueForIdx0 = valueHolderForTargetSpaceTmpValue as string + valueSerializer.writeString(valueHolderForTargetSpaceTmpValueForIdx0) + } else if (valueHolderForTargetSpaceTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTargetSpaceTmpValueForIdx1 = valueHolderForTargetSpaceTmpValue as number + valueSerializer.writeNumber(valueHolderForTargetSpaceTmpValueForIdx1) + } else if (valueHolderForTargetSpaceTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForTargetSpaceTmpValueForIdx2 = valueHolderForTargetSpaceTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForTargetSpaceTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOffset = value.offset + if (valueHolderForOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetTmpValue = valueHolderForOffset! + Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForWidth = value.width + if (valueHolderForWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForWidthTmpValue = valueHolderForWidth! + if (valueHolderForWidthTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string + valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) + } else if (valueHolderForWidthTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number + valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) + } else if (valueHolderForWidthTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowPointPosition = value.arrowPointPosition + if (valueHolderForArrowPointPosition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowPointPositionTmpValue = (valueHolderForArrowPointPosition as ArrowPointPosition) + valueSerializer.writeInt32(TypeChecker.ArrowPointPosition_ToNumeric(valueHolderForArrowPointPositionTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowWidth = value.arrowWidth + if (valueHolderForArrowWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowWidthTmpValue = valueHolderForArrowWidth! + if (valueHolderForArrowWidthTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowWidthTmpValueForIdx0 = valueHolderForArrowWidthTmpValue as string + valueSerializer.writeString(valueHolderForArrowWidthTmpValueForIdx0) + } else if (valueHolderForArrowWidthTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowWidthTmpValueForIdx1 = valueHolderForArrowWidthTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowWidthTmpValueForIdx1) + } else if (valueHolderForArrowWidthTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowWidthTmpValueForIdx2 = valueHolderForArrowWidthTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowHeight = value.arrowHeight + if (valueHolderForArrowHeight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowHeightTmpValue = valueHolderForArrowHeight! + if (valueHolderForArrowHeightTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowHeightTmpValueForIdx0 = valueHolderForArrowHeightTmpValue as string + valueSerializer.writeString(valueHolderForArrowHeightTmpValueForIdx0) + } else if (valueHolderForArrowHeightTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowHeightTmpValueForIdx1 = valueHolderForArrowHeightTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowHeightTmpValueForIdx1) + } else if (valueHolderForArrowHeightTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowHeightTmpValueForIdx2 = valueHolderForArrowHeightTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowHeightTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRadius = value.radius + if (valueHolderForRadius !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRadiusTmpValue = valueHolderForRadius! + if (valueHolderForRadiusTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForRadiusTmpValueForIdx0 = valueHolderForRadiusTmpValue as string + valueSerializer.writeString(valueHolderForRadiusTmpValueForIdx0) + } else if (valueHolderForRadiusTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForRadiusTmpValueForIdx1 = valueHolderForRadiusTmpValue as number + valueSerializer.writeNumber(valueHolderForRadiusTmpValueForIdx1) + } else if (valueHolderForRadiusTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForRadiusTmpValueForIdx2 = valueHolderForRadiusTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShadow = value.shadow + if (valueHolderForShadow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShadowTmpValue = valueHolderForShadow! + if (valueHolderForShadowTmpValue instanceof ShadowOptions) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForShadowTmpValueForIdx0 = valueHolderForShadowTmpValue as ShadowOptions + ShadowOptions_serializer.write(valueSerializer, valueHolderForShadowTmpValueForIdx0) + } else if (valueHolderForShadowTmpValue instanceof ShadowStyle) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForShadowTmpValueForIdx1 = valueHolderForShadowTmpValue as ShadowStyle + valueSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueHolderForShadowTmpValueForIdx1)) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle + if (valueHolderForBackgroundBlurStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) + valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFocusable = value.focusable + if (valueHolderForFocusable !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFocusableTmpValue = valueHolderForFocusable! + valueSerializer.writeBoolean(valueHolderForFocusableTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTransition = value.transition + if (valueHolderForTransition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTransitionTmpValue = valueHolderForTransition! + TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillDismiss = value.onWillDismiss + if (valueHolderForOnWillDismiss !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! + if (valueHolderForOnWillDismissTmpValue instanceof boolean) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOnWillDismissTmpValueForIdx0 = valueHolderForOnWillDismissTmpValue as boolean + valueSerializer.writeBoolean(valueHolderForOnWillDismissTmpValueForIdx0) + } else if (valueHolderForOnWillDismissTmpValue instanceof ((value0: DismissPopupAction) => void)) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOnWillDismissTmpValueForIdx1 = valueHolderForOnWillDismissTmpValue as ((value0: DismissPopupAction) => void) + valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableHoverMode = value.enableHoverMode + if (valueHolderForEnableHoverMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! + valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFollowTransformOfTarget = value.followTransformOfTarget + if (valueHolderForFollowTransformOfTarget !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFollowTransformOfTargetTmpValue = valueHolderForFollowTransformOfTarget! + valueSerializer.writeBoolean(valueHolderForFollowTransformOfTargetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForKeyboardAvoidMode = value.keyboardAvoidMode + if (valueHolderForKeyboardAvoidMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForKeyboardAvoidModeTmpValue = (valueHolderForKeyboardAvoidMode as KeyboardAvoidMode) + valueSerializer.writeInt32(TypeChecker.KeyboardAvoidMode_ToNumeric(valueHolderForKeyboardAvoidModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): CustomPopupOptions { + let valueDeserializer : DeserializerBase = buffer + const builderTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const builderTmpBufBufCall : KPointer = valueDeserializer.readPointer() + const builderTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() + const builderTmpResult : CustomBuilder = ():void => { + const builderTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); + builderTmpBufBufArgsSerializer.writeInt32(builderTmpBufBufResource.resourceId); + builderTmpBufBufArgsSerializer.writePointer(builderTmpBufBufCall); + builderTmpBufBufArgsSerializer.writePointer(builderTmpBufBufCallSync); + InteropNativeModule._CallCallback(737226752, builderTmpBufBufArgsSerializer.asBuffer(), builderTmpBufBufArgsSerializer.length()); + builderTmpBufBufArgsSerializer.release(); + return; + } + const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let placementTmpBuf : Placement | undefined + if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) + } + const placementTmpResult : Placement | undefined = placementTmpBuf + const popupColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let popupColorTmpBuf : Color | string | Resource | number | undefined + if ((popupColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const popupColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let popupColorTmpBuf_ : Color | string | Resource | number | undefined + if (popupColorTmpBuf_UnionSelector == (0).toChar()) { + popupColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (popupColorTmpBuf_UnionSelector == (1).toChar()) { + popupColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (popupColorTmpBuf_UnionSelector == (2).toChar()) { + popupColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else if (popupColorTmpBuf_UnionSelector == (3).toChar()) { + popupColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else { + throw new Error("One of the branches for popupColorTmpBuf_ has to be chosen through deserialisation.") + } + popupColorTmpBuf = (popupColorTmpBuf_ as Color | string | Resource | number) + } + const popupColorTmpResult : Color | string | Resource | number | undefined = popupColorTmpBuf + const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableArrowTmpBuf : boolean | undefined + if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableArrowTmpBuf = valueDeserializer.readBoolean() + } + const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf + const autoCancelTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let autoCancelTmpBuf : boolean | undefined + if ((autoCancelTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + autoCancelTmpBuf = valueDeserializer.readBoolean() + } + const autoCancelTmpResult : boolean | undefined = autoCancelTmpBuf + const onStateChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onStateChangeTmpBuf : PopupStateChangeCallback | undefined + if ((onStateChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onStateChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onStateChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onStateChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onStateChangeTmpBuf = (event: PopupStateChangeParam):void => { + const onStateChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onStateChangeTmpBuf_BufArgsSerializer.writeInt32(onStateChangeTmpBuf_BufResource.resourceId); + onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCall); + onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCallSync); + PopupStateChangeParam_serializer.write(onStateChangeTmpBuf_BufArgsSerializer, event); + InteropNativeModule._CallCallback(-1444325632, onStateChangeTmpBuf_BufArgsSerializer.asBuffer(), onStateChangeTmpBuf_BufArgsSerializer.length()); + onStateChangeTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onStateChangeTmpResult : PopupStateChangeCallback | undefined = onStateChangeTmpBuf + const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowOffsetTmpBuf : Length | undefined + if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowOffsetTmpBuf_ : string | number | Resource | undefined + if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { + arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") + } + arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) + } + const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf + const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let showInSubWindowTmpBuf : boolean | undefined + if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + showInSubWindowTmpBuf = valueDeserializer.readBoolean() + } + const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf + const maskTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let maskTmpBuf : boolean | PopupMaskType | undefined + if ((maskTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const maskTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let maskTmpBuf_ : boolean | PopupMaskType | undefined + if (maskTmpBuf_UnionSelector == (0).toChar()) { + maskTmpBuf_ = valueDeserializer.readBoolean() + } else if (maskTmpBuf_UnionSelector == (1).toChar()) { + maskTmpBuf_ = PopupMaskType_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for maskTmpBuf_ has to be chosen through deserialisation.") + } + maskTmpBuf = (maskTmpBuf_ as boolean | PopupMaskType) + } + const maskTmpResult : boolean | PopupMaskType | undefined = maskTmpBuf + const targetSpaceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let targetSpaceTmpBuf : Length | undefined + if ((targetSpaceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const targetSpaceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let targetSpaceTmpBuf_ : string | number | Resource | undefined + if (targetSpaceTmpBuf_UnionSelector == (0).toChar()) { + targetSpaceTmpBuf_ = (valueDeserializer.readString() as string) + } else if (targetSpaceTmpBuf_UnionSelector == (1).toChar()) { + targetSpaceTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (targetSpaceTmpBuf_UnionSelector == (2).toChar()) { + targetSpaceTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for targetSpaceTmpBuf_ has to be chosen through deserialisation.") + } + targetSpaceTmpBuf = (targetSpaceTmpBuf_ as string | number | Resource) + } + const targetSpaceTmpResult : Length | undefined = targetSpaceTmpBuf + const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetTmpBuf : Position | undefined + if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + offsetTmpBuf = Position_serializer.read(valueDeserializer) + } + const offsetTmpResult : Position | undefined = offsetTmpBuf + const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let widthTmpBuf : Dimension | undefined + if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let widthTmpBuf_ : string | number | Resource | undefined + if (widthTmpBuf_UnionSelector == (0).toChar()) { + widthTmpBuf_ = (valueDeserializer.readString() as string) + } else if (widthTmpBuf_UnionSelector == (1).toChar()) { + widthTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (widthTmpBuf_UnionSelector == (2).toChar()) { + widthTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") + } + widthTmpBuf = (widthTmpBuf_ as string | number | Resource) + } + const widthTmpResult : Dimension | undefined = widthTmpBuf + const arrowPointPositionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowPointPositionTmpBuf : ArrowPointPosition | undefined + if ((arrowPointPositionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + arrowPointPositionTmpBuf = TypeChecker.ArrowPointPosition_FromNumeric(valueDeserializer.readInt32()) + } + const arrowPointPositionTmpResult : ArrowPointPosition | undefined = arrowPointPositionTmpBuf + const arrowWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowWidthTmpBuf : Dimension | undefined + if ((arrowWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowWidthTmpBuf_ : string | number | Resource | undefined + if (arrowWidthTmpBuf_UnionSelector == (0).toChar()) { + arrowWidthTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowWidthTmpBuf_UnionSelector == (1).toChar()) { + arrowWidthTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowWidthTmpBuf_UnionSelector == (2).toChar()) { + arrowWidthTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowWidthTmpBuf_ has to be chosen through deserialisation.") + } + arrowWidthTmpBuf = (arrowWidthTmpBuf_ as string | number | Resource) + } + const arrowWidthTmpResult : Dimension | undefined = arrowWidthTmpBuf + const arrowHeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowHeightTmpBuf : Dimension | undefined + if ((arrowHeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowHeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowHeightTmpBuf_ : string | number | Resource | undefined + if (arrowHeightTmpBuf_UnionSelector == (0).toChar()) { + arrowHeightTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowHeightTmpBuf_UnionSelector == (1).toChar()) { + arrowHeightTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowHeightTmpBuf_UnionSelector == (2).toChar()) { + arrowHeightTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowHeightTmpBuf_ has to be chosen through deserialisation.") + } + arrowHeightTmpBuf = (arrowHeightTmpBuf_ as string | number | Resource) + } + const arrowHeightTmpResult : Dimension | undefined = arrowHeightTmpBuf + const radiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let radiusTmpBuf : Dimension | undefined + if ((radiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const radiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let radiusTmpBuf_ : string | number | Resource | undefined + if (radiusTmpBuf_UnionSelector == (0).toChar()) { + radiusTmpBuf_ = (valueDeserializer.readString() as string) + } else if (radiusTmpBuf_UnionSelector == (1).toChar()) { + radiusTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (radiusTmpBuf_UnionSelector == (2).toChar()) { + radiusTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for radiusTmpBuf_ has to be chosen through deserialisation.") + } + radiusTmpBuf = (radiusTmpBuf_ as string | number | Resource) + } + const radiusTmpResult : Dimension | undefined = radiusTmpBuf + const shadowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let shadowTmpBuf : ShadowOptions | ShadowStyle | undefined + if ((shadowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const shadowTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let shadowTmpBuf_ : ShadowOptions | ShadowStyle | undefined + if (shadowTmpBuf_UnionSelector == (0).toChar()) { + shadowTmpBuf_ = ShadowOptions_serializer.read(valueDeserializer) + } else if (shadowTmpBuf_UnionSelector == (1).toChar()) { + shadowTmpBuf_ = TypeChecker.ShadowStyle_FromNumeric(valueDeserializer.readInt32()) + } else { + throw new Error("One of the branches for shadowTmpBuf_ has to be chosen through deserialisation.") + } + shadowTmpBuf = (shadowTmpBuf_ as ShadowOptions | ShadowStyle) + } + const shadowTmpResult : ShadowOptions | ShadowStyle | undefined = shadowTmpBuf + const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundBlurStyleTmpBuf : BlurStyle | undefined + if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) + } + const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf + const focusableTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let focusableTmpBuf : boolean | undefined + if ((focusableTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + focusableTmpBuf = valueDeserializer.readBoolean() + } + const focusableTmpResult : boolean | undefined = focusableTmpBuf + const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let transitionTmpBuf : TransitionEffect | undefined + if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) + } + const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf + const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillDismissTmpBuf : boolean | ((value0: DismissPopupAction) => void) | undefined + if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillDismissTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let onWillDismissTmpBuf_ : boolean | ((value0: DismissPopupAction) => void) | undefined + if (onWillDismissTmpBuf_UnionSelector == (0).toChar()) { + onWillDismissTmpBuf_ = valueDeserializer.readBoolean() + } else if (onWillDismissTmpBuf_UnionSelector == (1).toChar()) { + const onWillDismissTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillDismissTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() + const onWillDismissTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() + onWillDismissTmpBuf_ = (value0: DismissPopupAction):void => { + const onWillDismissTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillDismissTmpBuf_BufUBufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufUBufResource.resourceId); + onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCall); + onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCallSync); + DismissPopupAction_serializer.write(onWillDismissTmpBuf_BufUBufArgsSerializer, value0); + InteropNativeModule._CallCallback(-2004166751, onWillDismissTmpBuf_BufUBufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufUBufArgsSerializer.length()); + onWillDismissTmpBuf_BufUBufArgsSerializer.release(); + return; + } + } else { + throw new Error("One of the branches for onWillDismissTmpBuf_ has to be chosen through deserialisation.") + } + onWillDismissTmpBuf = (onWillDismissTmpBuf_ as boolean | ((value0: DismissPopupAction) => void)) + } + const onWillDismissTmpResult : boolean | ((value0: DismissPopupAction) => void) | undefined = onWillDismissTmpBuf + const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableHoverModeTmpBuf : boolean | undefined + if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableHoverModeTmpBuf = valueDeserializer.readBoolean() + } + const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf + const followTransformOfTargetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let followTransformOfTargetTmpBuf : boolean | undefined + if ((followTransformOfTargetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + followTransformOfTargetTmpBuf = valueDeserializer.readBoolean() + } + const followTransformOfTargetTmpResult : boolean | undefined = followTransformOfTargetTmpBuf + const keyboardAvoidModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let keyboardAvoidModeTmpBuf : KeyboardAvoidMode | undefined + if ((keyboardAvoidModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + keyboardAvoidModeTmpBuf = TypeChecker.KeyboardAvoidMode_FromNumeric(valueDeserializer.readInt32()) + } + const keyboardAvoidModeTmpResult : KeyboardAvoidMode | undefined = keyboardAvoidModeTmpBuf + let value : CustomPopupOptions = ({builder: builderTmpResult, placement: placementTmpResult, popupColor: popupColorTmpResult, enableArrow: enableArrowTmpResult, autoCancel: autoCancelTmpResult, onStateChange: onStateChangeTmpResult, arrowOffset: arrowOffsetTmpResult, showInSubWindow: showInSubWindowTmpResult, mask: maskTmpResult, targetSpace: targetSpaceTmpResult, offset: offsetTmpResult, width: widthTmpResult, arrowPointPosition: arrowPointPositionTmpResult, arrowWidth: arrowWidthTmpResult, arrowHeight: arrowHeightTmpResult, radius: radiusTmpResult, shadow: shadowTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, focusable: focusableTmpResult, transition: transitionTmpResult, onWillDismiss: onWillDismissTmpResult, enableHoverMode: enableHoverModeTmpResult, followTransformOfTarget: followTransformOfTargetTmpResult, keyboardAvoidMode: keyboardAvoidModeTmpResult} as CustomPopupOptions) + return value + } +} +export class EventTarget_serializer { + public static write(buffer: SerializerBase, value: EventTarget): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForArea = value.area + Area_serializer.write(valueSerializer, valueHolderForArea) + const valueHolderForId = value.id + if (valueHolderForId !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForIdTmpValue = valueHolderForId! + valueSerializer.writeString(valueHolderForIdTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): EventTarget { + let valueDeserializer : DeserializerBase = buffer + const areaTmpResult : Area = Area_serializer.read(valueDeserializer) + const idTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let idTmpBuf : string | undefined + if ((idTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + idTmpBuf = (valueDeserializer.readString() as string) + } + const idTmpResult : string | undefined = idTmpBuf + let value : EventTarget = ({area: areaTmpResult, id: idTmpResult} as EventTarget) + return value + } +} +export class FocusAxisEvent_serializer { + public static write(buffer: SerializerBase, value: FocusAxisEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): FocusAxisEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return FocusAxisEventInternal.fromPtr(ptr) + } +} +export class GeometryInfo_serializer { + public static write(buffer: SerializerBase, value: GeometryInfo): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForWidth = value.width + valueSerializer.writeNumber(valueHolderForWidth) + const valueHolderForHeight = value.height + valueSerializer.writeNumber(valueHolderForHeight) + const valueHolderForBorderWidth = value.borderWidth + EdgeWidths_serializer.write(valueSerializer, valueHolderForBorderWidth) + const valueHolderForMargin = value.margin + Padding_serializer.write(valueSerializer, valueHolderForMargin) + const valueHolderForPadding = value.padding + Padding_serializer.write(valueSerializer, valueHolderForPadding) + } + public static read(buffer: DeserializerBase): GeometryInfo { + let valueDeserializer : DeserializerBase = buffer + const widthTmpResult : number = (valueDeserializer.readNumber() as number) + const heightTmpResult : number = (valueDeserializer.readNumber() as number) + const borderWidthTmpResult : EdgeWidths = EdgeWidths_serializer.read(valueDeserializer) + const marginTmpResult : Padding = Padding_serializer.read(valueDeserializer) + const paddingTmpResult : Padding = Padding_serializer.read(valueDeserializer) + let value : GeometryInfo = ({width: widthTmpResult, height: heightTmpResult, borderWidth: borderWidthTmpResult, margin: marginTmpResult, padding: paddingTmpResult} as GeometryInfo) + return value + } +} +export class HoverEvent_serializer { + public static write(buffer: SerializerBase, value: HoverEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): HoverEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return HoverEventInternal.fromPtr(ptr) + } +} +export class LayoutChild_serializer { + public static write(buffer: SerializerBase, value: LayoutChild): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): LayoutChild { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return LayoutChildInternal.fromPtr(ptr) + } +} +export class MenuOptions_serializer { + public static write(buffer: SerializerBase, value: MenuOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForOffset = value.offset + if (valueHolderForOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetTmpValue = valueHolderForOffset! + Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPlacement = value.placement + if (valueHolderForPlacement !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) + valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableArrow = value.enableArrow + if (valueHolderForEnableArrow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! + valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowOffset = value.arrowOffset + if (valueHolderForArrowOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! + if (valueHolderForArrowOffsetTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string + valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) + } else if (valueHolderForArrowOffsetTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) + } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPreview = value.preview + if (valueHolderForPreview !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPreviewTmpValue = valueHolderForPreview! + if (valueHolderForPreviewTmpValue instanceof MenuPreviewMode) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPreviewTmpValueForIdx0 = valueHolderForPreviewTmpValue as MenuPreviewMode + valueSerializer.writeInt32(TypeChecker.MenuPreviewMode_ToNumeric(valueHolderForPreviewTmpValueForIdx0)) + } else if (valueHolderForPreviewTmpValue instanceof CustomBuilder) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPreviewTmpValueForIdx1 = valueHolderForPreviewTmpValue as CustomBuilder + valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForPreviewTmpValueForIdx1)) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPreviewBorderRadius = value.previewBorderRadius + if (valueHolderForPreviewBorderRadius !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPreviewBorderRadiusTmpValue = valueHolderForPreviewBorderRadius! + if (valueHolderForPreviewBorderRadiusTmpValue instanceof Length) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx0 = valueHolderForPreviewBorderRadiusTmpValue as Length + if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx0) + } else if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx1) + } else if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForPreviewBorderRadiusTmpValue instanceof BorderRadiuses) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx1 = valueHolderForPreviewBorderRadiusTmpValue as BorderRadiuses + BorderRadiuses_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx1) + } else if (valueHolderForPreviewBorderRadiusTmpValue instanceof LocalizedBorderRadiuses) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForPreviewBorderRadiusTmpValueForIdx2 = valueHolderForPreviewBorderRadiusTmpValue as LocalizedBorderRadiuses + LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBorderRadius = value.borderRadius + if (valueHolderForBorderRadius !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBorderRadiusTmpValue = valueHolderForBorderRadius! + if (valueHolderForBorderRadiusTmpValue instanceof Length) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0 = valueHolderForBorderRadiusTmpValue as Length + if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForBorderRadiusTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForBorderRadiusTmpValueForIdx0ForIdx0) + } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForBorderRadiusTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForBorderRadiusTmpValueForIdx0ForIdx1) + } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForBorderRadiusTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForBorderRadiusTmpValue instanceof BorderRadiuses) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx1 = valueHolderForBorderRadiusTmpValue as BorderRadiuses + BorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx1) + } else if (valueHolderForBorderRadiusTmpValue instanceof LocalizedBorderRadiuses) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx2 = valueHolderForBorderRadiusTmpValue as LocalizedBorderRadiuses + LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnAppear = value.onAppear + if (valueHolderForOnAppear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnAppearTmpValue = valueHolderForOnAppear! + valueSerializer.holdAndWriteCallback(valueHolderForOnAppearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnDisappear = value.onDisappear + if (valueHolderForOnDisappear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnDisappearTmpValue = valueHolderForOnDisappear! + valueSerializer.holdAndWriteCallback(valueHolderForOnDisappearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAboutToAppear = value.aboutToAppear + if (valueHolderForAboutToAppear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAboutToAppearTmpValue = valueHolderForAboutToAppear! + valueSerializer.holdAndWriteCallback(valueHolderForAboutToAppearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAboutToDisappear = value.aboutToDisappear + if (valueHolderForAboutToDisappear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAboutToDisappearTmpValue = valueHolderForAboutToDisappear! + valueSerializer.holdAndWriteCallback(valueHolderForAboutToDisappearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForLayoutRegionMargin = value.layoutRegionMargin + if (valueHolderForLayoutRegionMargin !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForLayoutRegionMarginTmpValue = valueHolderForLayoutRegionMargin! + Padding_serializer.write(valueSerializer, valueHolderForLayoutRegionMarginTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPreviewAnimationOptions = value.previewAnimationOptions + if (valueHolderForPreviewAnimationOptions !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPreviewAnimationOptionsTmpValue = valueHolderForPreviewAnimationOptions! + ContextMenuAnimationOptions_serializer.write(valueSerializer, valueHolderForPreviewAnimationOptionsTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundColor = value.backgroundColor + if (valueHolderForBackgroundColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! + if (valueHolderForBackgroundColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) + } else if (valueHolderForBackgroundColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number + valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) + } else if (valueHolderForBackgroundColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string + valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) + } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle + if (valueHolderForBackgroundBlurStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) + valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundBlurStyleOptions = value.backgroundBlurStyleOptions + if (valueHolderForBackgroundBlurStyleOptions !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundBlurStyleOptionsTmpValue = valueHolderForBackgroundBlurStyleOptions! + BackgroundBlurStyleOptions_serializer.write(valueSerializer, valueHolderForBackgroundBlurStyleOptionsTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundEffect = value.backgroundEffect + if (valueHolderForBackgroundEffect !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundEffectTmpValue = valueHolderForBackgroundEffect! + BackgroundEffectOptions_serializer.write(valueSerializer, valueHolderForBackgroundEffectTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTransition = value.transition + if (valueHolderForTransition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTransitionTmpValue = valueHolderForTransition! + TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableHoverMode = value.enableHoverMode + if (valueHolderForEnableHoverMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! + valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOutlineColor = value.outlineColor + if (valueHolderForOutlineColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOutlineColorTmpValue = valueHolderForOutlineColor! + if (valueHolderForOutlineColorTmpValue instanceof ResourceColor) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0 = valueHolderForOutlineColorTmpValue as ResourceColor + if (valueHolderForOutlineColorTmpValueForIdx0 instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0ForIdx0 = valueHolderForOutlineColorTmpValueForIdx0 as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForOutlineColorTmpValueForIdx0ForIdx0)) + } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0ForIdx1 = valueHolderForOutlineColorTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForOutlineColorTmpValueForIdx0ForIdx1) + } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0ForIdx2 = valueHolderForOutlineColorTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForOutlineColorTmpValueForIdx0ForIdx2) + } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForOutlineColorTmpValueForIdx0ForIdx3 = valueHolderForOutlineColorTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForOutlineColorTmpValueForIdx0ForIdx3) + } + } else if (valueHolderForOutlineColorTmpValue instanceof EdgeColors) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutlineColorTmpValueForIdx1 = valueHolderForOutlineColorTmpValue as EdgeColors + EdgeColors_serializer.write(valueSerializer, valueHolderForOutlineColorTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOutlineWidth = value.outlineWidth + if (valueHolderForOutlineWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOutlineWidthTmpValue = valueHolderForOutlineWidth! + if (valueHolderForOutlineWidthTmpValue instanceof Dimension) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx0 = valueHolderForOutlineWidthTmpValue as Dimension + if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx0ForIdx0 = valueHolderForOutlineWidthTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForOutlineWidthTmpValueForIdx0ForIdx0) + } else if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx0ForIdx1 = valueHolderForOutlineWidthTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForOutlineWidthTmpValueForIdx0ForIdx1) + } else if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx0ForIdx2 = valueHolderForOutlineWidthTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForOutlineWidthTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForOutlineWidthTmpValue instanceof EdgeOutlineWidths) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOutlineWidthTmpValueForIdx1 = valueHolderForOutlineWidthTmpValue as EdgeOutlineWidths + EdgeOutlineWidths_serializer.write(valueSerializer, valueHolderForOutlineWidthTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForHapticFeedbackMode = value.hapticFeedbackMode + if (valueHolderForHapticFeedbackMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHapticFeedbackModeTmpValue = (valueHolderForHapticFeedbackMode as HapticFeedbackMode) + valueSerializer.writeInt32(TypeChecker.HapticFeedbackMode_ToNumeric(valueHolderForHapticFeedbackModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTitle = value.title + if (valueHolderForTitle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTitleTmpValue = valueHolderForTitle! + if (valueHolderForTitleTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTitleTmpValueForIdx0 = valueHolderForTitleTmpValue as string + valueSerializer.writeString(valueHolderForTitleTmpValueForIdx0) + } else if (valueHolderForTitleTmpValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTitleTmpValueForIdx1 = valueHolderForTitleTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForTitleTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShowInSubWindow = value.showInSubWindow + if (valueHolderForShowInSubWindow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! + valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): MenuOptions { + let valueDeserializer : DeserializerBase = buffer + const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetTmpBuf : Position | undefined + if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + offsetTmpBuf = Position_serializer.read(valueDeserializer) + } + const offsetTmpResult : Position | undefined = offsetTmpBuf + const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let placementTmpBuf : Placement | undefined + if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) + } + const placementTmpResult : Placement | undefined = placementTmpBuf + const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableArrowTmpBuf : boolean | undefined + if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableArrowTmpBuf = valueDeserializer.readBoolean() + } + const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf + const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowOffsetTmpBuf : Length | undefined + if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowOffsetTmpBuf_ : string | number | Resource | undefined + if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { + arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") + } + arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) + } + const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf + const previewTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let previewTmpBuf : MenuPreviewMode | CustomBuilder | undefined + if ((previewTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const previewTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let previewTmpBuf_ : MenuPreviewMode | CustomBuilder | undefined + if (previewTmpBuf_UnionSelector == (0).toChar()) { + previewTmpBuf_ = TypeChecker.MenuPreviewMode_FromNumeric(valueDeserializer.readInt32()) + } else if (previewTmpBuf_UnionSelector == (1).toChar()) { + const previewTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const previewTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() + const previewTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() + previewTmpBuf_ = ():void => { + const previewTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); + previewTmpBuf_BufUBufArgsSerializer.writeInt32(previewTmpBuf_BufUBufResource.resourceId); + previewTmpBuf_BufUBufArgsSerializer.writePointer(previewTmpBuf_BufUBufCall); + previewTmpBuf_BufUBufArgsSerializer.writePointer(previewTmpBuf_BufUBufCallSync); + InteropNativeModule._CallCallback(737226752, previewTmpBuf_BufUBufArgsSerializer.asBuffer(), previewTmpBuf_BufUBufArgsSerializer.length()); + previewTmpBuf_BufUBufArgsSerializer.release(); + return; + } + } else { + throw new Error("One of the branches for previewTmpBuf_ has to be chosen through deserialisation.") + } + previewTmpBuf = (previewTmpBuf_ as MenuPreviewMode | CustomBuilder) + } + const previewTmpResult : MenuPreviewMode | CustomBuilder | undefined = previewTmpBuf + const previewBorderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let previewBorderRadiusTmpBuf : BorderRadiusType | undefined + if ((previewBorderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const previewBorderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let previewBorderRadiusTmpBuf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined + if (previewBorderRadiusTmpBuf_UnionSelector == (0).toChar()) { + const previewBorderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let previewBorderRadiusTmpBuf_BufU : string | number | Resource | undefined + if (previewBorderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { + previewBorderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (previewBorderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { + previewBorderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (previewBorderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { + previewBorderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for previewBorderRadiusTmpBuf_BufU has to be chosen through deserialisation.") + } + previewBorderRadiusTmpBuf_ = (previewBorderRadiusTmpBuf_BufU as string | number | Resource) + } else if (previewBorderRadiusTmpBuf_UnionSelector == (1).toChar()) { + previewBorderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) + } else if (previewBorderRadiusTmpBuf_UnionSelector == (2).toChar()) { + previewBorderRadiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for previewBorderRadiusTmpBuf_ has to be chosen through deserialisation.") + } + previewBorderRadiusTmpBuf = (previewBorderRadiusTmpBuf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) + } + const previewBorderRadiusTmpResult : BorderRadiusType | undefined = previewBorderRadiusTmpBuf + const borderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let borderRadiusTmpBuf : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined + if ((borderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const borderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let borderRadiusTmpBuf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined + if (borderRadiusTmpBuf_UnionSelector == (0).toChar()) { + const borderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let borderRadiusTmpBuf_BufU : string | number | Resource | undefined + if (borderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { + borderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (borderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { + borderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (borderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { + borderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderRadiusTmpBuf_BufU has to be chosen through deserialisation.") + } + borderRadiusTmpBuf_ = (borderRadiusTmpBuf_BufU as string | number | Resource) + } else if (borderRadiusTmpBuf_UnionSelector == (1).toChar()) { + borderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) + } else if (borderRadiusTmpBuf_UnionSelector == (2).toChar()) { + borderRadiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderRadiusTmpBuf_ has to be chosen through deserialisation.") + } + borderRadiusTmpBuf = (borderRadiusTmpBuf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) + } + const borderRadiusTmpResult : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined = borderRadiusTmpBuf + const onAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onAppearTmpBuf : (() => void) | undefined + if ((onAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onAppearTmpBuf = ():void => { + const onAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onAppearTmpBuf_BufArgsSerializer.writeInt32(onAppearTmpBuf_BufResource.resourceId); + onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCall); + onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onAppearTmpBuf_BufArgsSerializer.asBuffer(), onAppearTmpBuf_BufArgsSerializer.length()); + onAppearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onAppearTmpResult : (() => void) | undefined = onAppearTmpBuf + const onDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onDisappearTmpBuf : (() => void) | undefined + if ((onDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onDisappearTmpBuf = ():void => { + const onDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onDisappearTmpBuf_BufArgsSerializer.writeInt32(onDisappearTmpBuf_BufResource.resourceId); + onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCall); + onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onDisappearTmpBuf_BufArgsSerializer.asBuffer(), onDisappearTmpBuf_BufArgsSerializer.length()); + onDisappearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onDisappearTmpResult : (() => void) | undefined = onDisappearTmpBuf + const aboutToAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let aboutToAppearTmpBuf : (() => void) | undefined + if ((aboutToAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const aboutToAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const aboutToAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const aboutToAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + aboutToAppearTmpBuf = ():void => { + const aboutToAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + aboutToAppearTmpBuf_BufArgsSerializer.writeInt32(aboutToAppearTmpBuf_BufResource.resourceId); + aboutToAppearTmpBuf_BufArgsSerializer.writePointer(aboutToAppearTmpBuf_BufCall); + aboutToAppearTmpBuf_BufArgsSerializer.writePointer(aboutToAppearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, aboutToAppearTmpBuf_BufArgsSerializer.asBuffer(), aboutToAppearTmpBuf_BufArgsSerializer.length()); + aboutToAppearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const aboutToAppearTmpResult : (() => void) | undefined = aboutToAppearTmpBuf + const aboutToDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let aboutToDisappearTmpBuf : (() => void) | undefined + if ((aboutToDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const aboutToDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const aboutToDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const aboutToDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + aboutToDisappearTmpBuf = ():void => { + const aboutToDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + aboutToDisappearTmpBuf_BufArgsSerializer.writeInt32(aboutToDisappearTmpBuf_BufResource.resourceId); + aboutToDisappearTmpBuf_BufArgsSerializer.writePointer(aboutToDisappearTmpBuf_BufCall); + aboutToDisappearTmpBuf_BufArgsSerializer.writePointer(aboutToDisappearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, aboutToDisappearTmpBuf_BufArgsSerializer.asBuffer(), aboutToDisappearTmpBuf_BufArgsSerializer.length()); + aboutToDisappearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const aboutToDisappearTmpResult : (() => void) | undefined = aboutToDisappearTmpBuf + const layoutRegionMarginTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let layoutRegionMarginTmpBuf : Padding | undefined + if ((layoutRegionMarginTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + layoutRegionMarginTmpBuf = Padding_serializer.read(valueDeserializer) + } + const layoutRegionMarginTmpResult : Padding | undefined = layoutRegionMarginTmpBuf + const previewAnimationOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let previewAnimationOptionsTmpBuf : ContextMenuAnimationOptions | undefined + if ((previewAnimationOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + previewAnimationOptionsTmpBuf = ContextMenuAnimationOptions_serializer.read(valueDeserializer) + } + const previewAnimationOptionsTmpResult : ContextMenuAnimationOptions | undefined = previewAnimationOptionsTmpBuf + const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundColorTmpBuf : ResourceColor | undefined + if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined + if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { + backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { + backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") + } + backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) + } + const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf + const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundBlurStyleTmpBuf : BlurStyle | undefined + if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) + } + const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf + const backgroundBlurStyleOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundBlurStyleOptionsTmpBuf : BackgroundBlurStyleOptions | undefined + if ((backgroundBlurStyleOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backgroundBlurStyleOptionsTmpBuf = BackgroundBlurStyleOptions_serializer.read(valueDeserializer) + } + const backgroundBlurStyleOptionsTmpResult : BackgroundBlurStyleOptions | undefined = backgroundBlurStyleOptionsTmpBuf + const backgroundEffectTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundEffectTmpBuf : BackgroundEffectOptions | undefined + if ((backgroundEffectTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backgroundEffectTmpBuf = BackgroundEffectOptions_serializer.read(valueDeserializer) + } + const backgroundEffectTmpResult : BackgroundEffectOptions | undefined = backgroundEffectTmpBuf + const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let transitionTmpBuf : TransitionEffect | undefined + if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) + } + const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf + const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableHoverModeTmpBuf : boolean | undefined + if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableHoverModeTmpBuf = valueDeserializer.readBoolean() + } + const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf + const outlineColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let outlineColorTmpBuf : ResourceColor | EdgeColors | undefined + if ((outlineColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const outlineColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let outlineColorTmpBuf_ : ResourceColor | EdgeColors | undefined + if (outlineColorTmpBuf_UnionSelector == (0).toChar()) { + const outlineColorTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let outlineColorTmpBuf_BufU : Color | number | string | Resource | undefined + if (outlineColorTmpBuf_BufUUnionSelector == (0).toChar()) { + outlineColorTmpBuf_BufU = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (outlineColorTmpBuf_BufUUnionSelector == (1).toChar()) { + outlineColorTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (outlineColorTmpBuf_BufUUnionSelector == (2).toChar()) { + outlineColorTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (outlineColorTmpBuf_BufUUnionSelector == (3).toChar()) { + outlineColorTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outlineColorTmpBuf_BufU has to be chosen through deserialisation.") + } + outlineColorTmpBuf_ = (outlineColorTmpBuf_BufU as Color | number | string | Resource) + } else if (outlineColorTmpBuf_UnionSelector == (1).toChar()) { + outlineColorTmpBuf_ = EdgeColors_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outlineColorTmpBuf_ has to be chosen through deserialisation.") + } + outlineColorTmpBuf = (outlineColorTmpBuf_ as ResourceColor | EdgeColors) + } + const outlineColorTmpResult : ResourceColor | EdgeColors | undefined = outlineColorTmpBuf + const outlineWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let outlineWidthTmpBuf : Dimension | EdgeOutlineWidths | undefined + if ((outlineWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const outlineWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let outlineWidthTmpBuf_ : Dimension | EdgeOutlineWidths | undefined + if (outlineWidthTmpBuf_UnionSelector == (0).toChar()) { + const outlineWidthTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let outlineWidthTmpBuf_BufU : string | number | Resource | undefined + if (outlineWidthTmpBuf_BufUUnionSelector == (0).toChar()) { + outlineWidthTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (outlineWidthTmpBuf_BufUUnionSelector == (1).toChar()) { + outlineWidthTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (outlineWidthTmpBuf_BufUUnionSelector == (2).toChar()) { + outlineWidthTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outlineWidthTmpBuf_BufU has to be chosen through deserialisation.") + } + outlineWidthTmpBuf_ = (outlineWidthTmpBuf_BufU as string | number | Resource) + } else if (outlineWidthTmpBuf_UnionSelector == (1).toChar()) { + outlineWidthTmpBuf_ = EdgeOutlineWidths_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for outlineWidthTmpBuf_ has to be chosen through deserialisation.") + } + outlineWidthTmpBuf = (outlineWidthTmpBuf_ as Dimension | EdgeOutlineWidths) + } + const outlineWidthTmpResult : Dimension | EdgeOutlineWidths | undefined = outlineWidthTmpBuf + const hapticFeedbackModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let hapticFeedbackModeTmpBuf : HapticFeedbackMode | undefined + if ((hapticFeedbackModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + hapticFeedbackModeTmpBuf = TypeChecker.HapticFeedbackMode_FromNumeric(valueDeserializer.readInt32()) + } + const hapticFeedbackModeTmpResult : HapticFeedbackMode | undefined = hapticFeedbackModeTmpBuf + const titleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let titleTmpBuf : ResourceStr | undefined + if ((titleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const titleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let titleTmpBuf_ : string | Resource | undefined + if (titleTmpBuf_UnionSelector == (0).toChar()) { + titleTmpBuf_ = (valueDeserializer.readString() as string) + } else if (titleTmpBuf_UnionSelector == (1).toChar()) { + titleTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for titleTmpBuf_ has to be chosen through deserialisation.") + } + titleTmpBuf = (titleTmpBuf_ as string | Resource) + } + const titleTmpResult : ResourceStr | undefined = titleTmpBuf + const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let showInSubWindowTmpBuf : boolean | undefined + if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + showInSubWindowTmpBuf = valueDeserializer.readBoolean() + } + const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf + let value : MenuOptions = ({offset: offsetTmpResult, placement: placementTmpResult, enableArrow: enableArrowTmpResult, arrowOffset: arrowOffsetTmpResult, preview: previewTmpResult, previewBorderRadius: previewBorderRadiusTmpResult, borderRadius: borderRadiusTmpResult, onAppear: onAppearTmpResult, onDisappear: onDisappearTmpResult, aboutToAppear: aboutToAppearTmpResult, aboutToDisappear: aboutToDisappearTmpResult, layoutRegionMargin: layoutRegionMarginTmpResult, previewAnimationOptions: previewAnimationOptionsTmpResult, backgroundColor: backgroundColorTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, backgroundBlurStyleOptions: backgroundBlurStyleOptionsTmpResult, backgroundEffect: backgroundEffectTmpResult, transition: transitionTmpResult, enableHoverMode: enableHoverModeTmpResult, outlineColor: outlineColorTmpResult, outlineWidth: outlineWidthTmpResult, hapticFeedbackMode: hapticFeedbackModeTmpResult, title: titleTmpResult, showInSubWindow: showInSubWindowTmpResult} as MenuOptions) + return value + } +} +export class MouseEvent_serializer { + public static write(buffer: SerializerBase, value: MouseEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): MouseEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return MouseEventInternal.fromPtr(ptr) + } +} +export class PickerDialogButtonStyle_serializer { + public static write(buffer: SerializerBase, value: PickerDialogButtonStyle): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForType = value.type + if (valueHolderForType !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTypeTmpValue = (valueHolderForType as ButtonType) + valueSerializer.writeInt32(TypeChecker.ButtonType_ToNumeric(valueHolderForTypeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForStyle = value.style + if (valueHolderForStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForStyleTmpValue = (valueHolderForStyle as ButtonStyleMode) + valueSerializer.writeInt32(TypeChecker.ButtonStyleMode_ToNumeric(valueHolderForStyleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRole = value.role + if (valueHolderForRole !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRoleTmpValue = (valueHolderForRole as ButtonRole) + valueSerializer.writeInt32(TypeChecker.ButtonRole_ToNumeric(valueHolderForRoleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFontSize = value.fontSize + if (valueHolderForFontSize !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFontSizeTmpValue = valueHolderForFontSize! + if (valueHolderForFontSizeTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForFontSizeTmpValueForIdx0 = valueHolderForFontSizeTmpValue as string + valueSerializer.writeString(valueHolderForFontSizeTmpValueForIdx0) + } else if (valueHolderForFontSizeTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForFontSizeTmpValueForIdx1 = valueHolderForFontSizeTmpValue as number + valueSerializer.writeNumber(valueHolderForFontSizeTmpValueForIdx1) + } else if (valueHolderForFontSizeTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForFontSizeTmpValueForIdx2 = valueHolderForFontSizeTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForFontSizeTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFontColor = value.fontColor + if (valueHolderForFontColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFontColorTmpValue = valueHolderForFontColor! + if (valueHolderForFontColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForFontColorTmpValueForIdx0 = valueHolderForFontColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForFontColorTmpValueForIdx0)) + } else if (valueHolderForFontColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForFontColorTmpValueForIdx1 = valueHolderForFontColorTmpValue as number + valueSerializer.writeNumber(valueHolderForFontColorTmpValueForIdx1) + } else if (valueHolderForFontColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForFontColorTmpValueForIdx2 = valueHolderForFontColorTmpValue as string + valueSerializer.writeString(valueHolderForFontColorTmpValueForIdx2) + } else if (valueHolderForFontColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForFontColorTmpValueForIdx3 = valueHolderForFontColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForFontColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFontWeight = value.fontWeight + if (valueHolderForFontWeight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFontWeightTmpValue = valueHolderForFontWeight! + if (valueHolderForFontWeightTmpValue instanceof FontWeight) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForFontWeightTmpValueForIdx0 = valueHolderForFontWeightTmpValue as FontWeight + valueSerializer.writeInt32(TypeChecker.FontWeight_ToNumeric(valueHolderForFontWeightTmpValueForIdx0)) + } else if (valueHolderForFontWeightTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForFontWeightTmpValueForIdx1 = valueHolderForFontWeightTmpValue as number + valueSerializer.writeNumber(valueHolderForFontWeightTmpValueForIdx1) + } else if (valueHolderForFontWeightTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForFontWeightTmpValueForIdx2 = valueHolderForFontWeightTmpValue as string + valueSerializer.writeString(valueHolderForFontWeightTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFontStyle = value.fontStyle + if (valueHolderForFontStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFontStyleTmpValue = (valueHolderForFontStyle as FontStyle) + valueSerializer.writeInt32(TypeChecker.FontStyle_ToNumeric(valueHolderForFontStyleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFontFamily = value.fontFamily + if (valueHolderForFontFamily !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFontFamilyTmpValue = valueHolderForFontFamily! + if (valueHolderForFontFamilyTmpValue instanceof Resource) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForFontFamilyTmpValueForIdx0 = valueHolderForFontFamilyTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForFontFamilyTmpValueForIdx0) + } else if (valueHolderForFontFamilyTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForFontFamilyTmpValueForIdx1 = valueHolderForFontFamilyTmpValue as string + valueSerializer.writeString(valueHolderForFontFamilyTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundColor = value.backgroundColor + if (valueHolderForBackgroundColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! + if (valueHolderForBackgroundColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) + } else if (valueHolderForBackgroundColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number + valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) + } else if (valueHolderForBackgroundColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string + valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) + } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBorderRadius = value.borderRadius + if (valueHolderForBorderRadius !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBorderRadiusTmpValue = valueHolderForBorderRadius! + if (valueHolderForBorderRadiusTmpValue instanceof Length) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0 = valueHolderForBorderRadiusTmpValue as Length + if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForBorderRadiusTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForBorderRadiusTmpValueForIdx0ForIdx0) + } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForBorderRadiusTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForBorderRadiusTmpValueForIdx0ForIdx1) + } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForBorderRadiusTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForBorderRadiusTmpValue instanceof BorderRadiuses) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderRadiusTmpValueForIdx1 = valueHolderForBorderRadiusTmpValue as BorderRadiuses + BorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPrimary = value.primary + if (valueHolderForPrimary !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPrimaryTmpValue = valueHolderForPrimary! + valueSerializer.writeBoolean(valueHolderForPrimaryTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): PickerDialogButtonStyle { + let valueDeserializer : DeserializerBase = buffer + const typeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let typeTmpBuf : ButtonType | undefined + if ((typeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + typeTmpBuf = TypeChecker.ButtonType_FromNumeric(valueDeserializer.readInt32()) + } + const typeTmpResult : ButtonType | undefined = typeTmpBuf + const styleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let styleTmpBuf : ButtonStyleMode | undefined + if ((styleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + styleTmpBuf = TypeChecker.ButtonStyleMode_FromNumeric(valueDeserializer.readInt32()) + } + const styleTmpResult : ButtonStyleMode | undefined = styleTmpBuf + const roleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let roleTmpBuf : ButtonRole | undefined + if ((roleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + roleTmpBuf = TypeChecker.ButtonRole_FromNumeric(valueDeserializer.readInt32()) + } + const roleTmpResult : ButtonRole | undefined = roleTmpBuf + const fontSizeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fontSizeTmpBuf : Length | undefined + if ((fontSizeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const fontSizeTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let fontSizeTmpBuf_ : string | number | Resource | undefined + if (fontSizeTmpBuf_UnionSelector == (0).toChar()) { + fontSizeTmpBuf_ = (valueDeserializer.readString() as string) + } else if (fontSizeTmpBuf_UnionSelector == (1).toChar()) { + fontSizeTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (fontSizeTmpBuf_UnionSelector == (2).toChar()) { + fontSizeTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for fontSizeTmpBuf_ has to be chosen through deserialisation.") + } + fontSizeTmpBuf = (fontSizeTmpBuf_ as string | number | Resource) + } + const fontSizeTmpResult : Length | undefined = fontSizeTmpBuf + const fontColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fontColorTmpBuf : ResourceColor | undefined + if ((fontColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const fontColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let fontColorTmpBuf_ : Color | number | string | Resource | undefined + if (fontColorTmpBuf_UnionSelector == (0).toChar()) { + fontColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (fontColorTmpBuf_UnionSelector == (1).toChar()) { + fontColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (fontColorTmpBuf_UnionSelector == (2).toChar()) { + fontColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (fontColorTmpBuf_UnionSelector == (3).toChar()) { + fontColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for fontColorTmpBuf_ has to be chosen through deserialisation.") + } + fontColorTmpBuf = (fontColorTmpBuf_ as Color | number | string | Resource) + } + const fontColorTmpResult : ResourceColor | undefined = fontColorTmpBuf + const fontWeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fontWeightTmpBuf : FontWeight | number | string | undefined + if ((fontWeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const fontWeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let fontWeightTmpBuf_ : FontWeight | number | string | undefined + if (fontWeightTmpBuf_UnionSelector == (0).toChar()) { + fontWeightTmpBuf_ = TypeChecker.FontWeight_FromNumeric(valueDeserializer.readInt32()) + } else if (fontWeightTmpBuf_UnionSelector == (1).toChar()) { + fontWeightTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (fontWeightTmpBuf_UnionSelector == (2).toChar()) { + fontWeightTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for fontWeightTmpBuf_ has to be chosen through deserialisation.") + } + fontWeightTmpBuf = (fontWeightTmpBuf_ as FontWeight | number | string) + } + const fontWeightTmpResult : FontWeight | number | string | undefined = fontWeightTmpBuf + const fontStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fontStyleTmpBuf : FontStyle | undefined + if ((fontStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + fontStyleTmpBuf = TypeChecker.FontStyle_FromNumeric(valueDeserializer.readInt32()) + } + const fontStyleTmpResult : FontStyle | undefined = fontStyleTmpBuf + const fontFamilyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fontFamilyTmpBuf : Resource | string | undefined + if ((fontFamilyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const fontFamilyTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let fontFamilyTmpBuf_ : Resource | string | undefined + if (fontFamilyTmpBuf_UnionSelector == (0).toChar()) { + fontFamilyTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else if (fontFamilyTmpBuf_UnionSelector == (1).toChar()) { + fontFamilyTmpBuf_ = (valueDeserializer.readString() as string) + } else { + throw new Error("One of the branches for fontFamilyTmpBuf_ has to be chosen through deserialisation.") + } + fontFamilyTmpBuf = (fontFamilyTmpBuf_ as Resource | string) + } + const fontFamilyTmpResult : Resource | string | undefined = fontFamilyTmpBuf + const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundColorTmpBuf : ResourceColor | undefined + if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined + if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { + backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { + backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") + } + backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) + } + const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf + const borderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let borderRadiusTmpBuf : Length | BorderRadiuses | undefined + if ((borderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const borderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let borderRadiusTmpBuf_ : Length | BorderRadiuses | undefined + if (borderRadiusTmpBuf_UnionSelector == (0).toChar()) { + const borderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let borderRadiusTmpBuf_BufU : string | number | Resource | undefined + if (borderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { + borderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (borderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { + borderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (borderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { + borderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderRadiusTmpBuf_BufU has to be chosen through deserialisation.") + } + borderRadiusTmpBuf_ = (borderRadiusTmpBuf_BufU as string | number | Resource) + } else if (borderRadiusTmpBuf_UnionSelector == (1).toChar()) { + borderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderRadiusTmpBuf_ has to be chosen through deserialisation.") + } + borderRadiusTmpBuf = (borderRadiusTmpBuf_ as Length | BorderRadiuses) + } + const borderRadiusTmpResult : Length | BorderRadiuses | undefined = borderRadiusTmpBuf + const primaryTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let primaryTmpBuf : boolean | undefined + if ((primaryTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + primaryTmpBuf = valueDeserializer.readBoolean() + } + const primaryTmpResult : boolean | undefined = primaryTmpBuf + let value : PickerDialogButtonStyle = ({type: typeTmpResult, style: styleTmpResult, role: roleTmpResult, fontSize: fontSizeTmpResult, fontColor: fontColorTmpResult, fontWeight: fontWeightTmpResult, fontStyle: fontStyleTmpResult, fontFamily: fontFamilyTmpResult, backgroundColor: backgroundColorTmpResult, borderRadius: borderRadiusTmpResult, primary: primaryTmpResult} as PickerDialogButtonStyle) + return value + } +} +export class PickerTextStyle_serializer { + public static write(buffer: SerializerBase, value: PickerTextStyle): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForColor = value.color + if (valueHolderForColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForColorTmpValue = valueHolderForColor! + if (valueHolderForColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) + } else if (valueHolderForColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number + valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) + } else if (valueHolderForColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string + valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) + } else if (valueHolderForColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFont = value.font + if (valueHolderForFont !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFontTmpValue = valueHolderForFont! + Font_serializer.write(valueSerializer, valueHolderForFontTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): PickerTextStyle { + let valueDeserializer : DeserializerBase = buffer + const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let colorTmpBuf : ResourceColor | undefined + if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let colorTmpBuf_ : Color | number | string | Resource | undefined + if (colorTmpBuf_UnionSelector == (0).toChar()) { + colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (colorTmpBuf_UnionSelector == (1).toChar()) { + colorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (colorTmpBuf_UnionSelector == (2).toChar()) { + colorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (colorTmpBuf_UnionSelector == (3).toChar()) { + colorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") + } + colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) + } + const colorTmpResult : ResourceColor | undefined = colorTmpBuf + const fontTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fontTmpBuf : Font | undefined + if ((fontTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + fontTmpBuf = Font_serializer.read(valueDeserializer) + } + const fontTmpResult : Font | undefined = fontTmpBuf + let value : PickerTextStyle = ({color: colorTmpResult, font: fontTmpResult} as PickerTextStyle) + return value + } +} +export class PopupCommonOptions_serializer { + public static write(buffer: SerializerBase, value: PopupCommonOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForPlacement = value.placement + if (valueHolderForPlacement !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) + valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPopupColor = value.popupColor + if (valueHolderForPopupColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPopupColorTmpValue = valueHolderForPopupColor! + if (valueHolderForPopupColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPopupColorTmpValueForIdx0 = valueHolderForPopupColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForPopupColorTmpValueForIdx0)) + } else if (valueHolderForPopupColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPopupColorTmpValueForIdx1 = valueHolderForPopupColorTmpValue as number + valueSerializer.writeNumber(valueHolderForPopupColorTmpValueForIdx1) + } else if (valueHolderForPopupColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForPopupColorTmpValueForIdx2 = valueHolderForPopupColorTmpValue as string + valueSerializer.writeString(valueHolderForPopupColorTmpValueForIdx2) + } else if (valueHolderForPopupColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForPopupColorTmpValueForIdx3 = valueHolderForPopupColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForPopupColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableArrow = value.enableArrow + if (valueHolderForEnableArrow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! + valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAutoCancel = value.autoCancel + if (valueHolderForAutoCancel !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAutoCancelTmpValue = valueHolderForAutoCancel! + valueSerializer.writeBoolean(valueHolderForAutoCancelTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnStateChange = value.onStateChange + if (valueHolderForOnStateChange !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnStateChangeTmpValue = valueHolderForOnStateChange! + valueSerializer.holdAndWriteCallback(valueHolderForOnStateChangeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowOffset = value.arrowOffset + if (valueHolderForArrowOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! + if (valueHolderForArrowOffsetTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string + valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) + } else if (valueHolderForArrowOffsetTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) + } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShowInSubWindow = value.showInSubWindow + if (valueHolderForShowInSubWindow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! + valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForMask = value.mask + if (valueHolderForMask !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForMaskTmpValue = valueHolderForMask! + if (valueHolderForMaskTmpValue instanceof boolean) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForMaskTmpValueForIdx0 = valueHolderForMaskTmpValue as boolean + valueSerializer.writeBoolean(valueHolderForMaskTmpValueForIdx0) + } else if (valueHolderForMaskTmpValue instanceof PopupMaskType) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForMaskTmpValueForIdx1 = valueHolderForMaskTmpValue as PopupMaskType + PopupMaskType_serializer.write(valueSerializer, valueHolderForMaskTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTargetSpace = value.targetSpace + if (valueHolderForTargetSpace !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTargetSpaceTmpValue = valueHolderForTargetSpace! + if (valueHolderForTargetSpaceTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTargetSpaceTmpValueForIdx0 = valueHolderForTargetSpaceTmpValue as string + valueSerializer.writeString(valueHolderForTargetSpaceTmpValueForIdx0) + } else if (valueHolderForTargetSpaceTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTargetSpaceTmpValueForIdx1 = valueHolderForTargetSpaceTmpValue as number + valueSerializer.writeNumber(valueHolderForTargetSpaceTmpValueForIdx1) + } else if (valueHolderForTargetSpaceTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForTargetSpaceTmpValueForIdx2 = valueHolderForTargetSpaceTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForTargetSpaceTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOffset = value.offset + if (valueHolderForOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetTmpValue = valueHolderForOffset! + Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForWidth = value.width + if (valueHolderForWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForWidthTmpValue = valueHolderForWidth! + if (valueHolderForWidthTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string + valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) + } else if (valueHolderForWidthTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number + valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) + } else if (valueHolderForWidthTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowPointPosition = value.arrowPointPosition + if (valueHolderForArrowPointPosition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowPointPositionTmpValue = (valueHolderForArrowPointPosition as ArrowPointPosition) + valueSerializer.writeInt32(TypeChecker.ArrowPointPosition_ToNumeric(valueHolderForArrowPointPositionTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowWidth = value.arrowWidth + if (valueHolderForArrowWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowWidthTmpValue = valueHolderForArrowWidth! + if (valueHolderForArrowWidthTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowWidthTmpValueForIdx0 = valueHolderForArrowWidthTmpValue as string + valueSerializer.writeString(valueHolderForArrowWidthTmpValueForIdx0) + } else if (valueHolderForArrowWidthTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowWidthTmpValueForIdx1 = valueHolderForArrowWidthTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowWidthTmpValueForIdx1) + } else if (valueHolderForArrowWidthTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowWidthTmpValueForIdx2 = valueHolderForArrowWidthTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowHeight = value.arrowHeight + if (valueHolderForArrowHeight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowHeightTmpValue = valueHolderForArrowHeight! + if (valueHolderForArrowHeightTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowHeightTmpValueForIdx0 = valueHolderForArrowHeightTmpValue as string + valueSerializer.writeString(valueHolderForArrowHeightTmpValueForIdx0) + } else if (valueHolderForArrowHeightTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowHeightTmpValueForIdx1 = valueHolderForArrowHeightTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowHeightTmpValueForIdx1) + } else if (valueHolderForArrowHeightTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowHeightTmpValueForIdx2 = valueHolderForArrowHeightTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowHeightTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRadius = value.radius + if (valueHolderForRadius !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRadiusTmpValue = valueHolderForRadius! + if (valueHolderForRadiusTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForRadiusTmpValueForIdx0 = valueHolderForRadiusTmpValue as string + valueSerializer.writeString(valueHolderForRadiusTmpValueForIdx0) + } else if (valueHolderForRadiusTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForRadiusTmpValueForIdx1 = valueHolderForRadiusTmpValue as number + valueSerializer.writeNumber(valueHolderForRadiusTmpValueForIdx1) + } else if (valueHolderForRadiusTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForRadiusTmpValueForIdx2 = valueHolderForRadiusTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShadow = value.shadow + if (valueHolderForShadow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShadowTmpValue = valueHolderForShadow! + if (valueHolderForShadowTmpValue instanceof ShadowOptions) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForShadowTmpValueForIdx0 = valueHolderForShadowTmpValue as ShadowOptions + ShadowOptions_serializer.write(valueSerializer, valueHolderForShadowTmpValueForIdx0) + } else if (valueHolderForShadowTmpValue instanceof ShadowStyle) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForShadowTmpValueForIdx1 = valueHolderForShadowTmpValue as ShadowStyle + valueSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueHolderForShadowTmpValueForIdx1)) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle + if (valueHolderForBackgroundBlurStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) + valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFocusable = value.focusable + if (valueHolderForFocusable !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFocusableTmpValue = valueHolderForFocusable! + valueSerializer.writeBoolean(valueHolderForFocusableTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTransition = value.transition + if (valueHolderForTransition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTransitionTmpValue = valueHolderForTransition! + TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillDismiss = value.onWillDismiss + if (valueHolderForOnWillDismiss !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! + if (valueHolderForOnWillDismissTmpValue instanceof boolean) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOnWillDismissTmpValueForIdx0 = valueHolderForOnWillDismissTmpValue as boolean + valueSerializer.writeBoolean(valueHolderForOnWillDismissTmpValueForIdx0) + } else if (valueHolderForOnWillDismissTmpValue instanceof ((value0: DismissPopupAction) => void)) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOnWillDismissTmpValueForIdx1 = valueHolderForOnWillDismissTmpValue as ((value0: DismissPopupAction) => void) + valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableHoverMode = value.enableHoverMode + if (valueHolderForEnableHoverMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! + valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFollowTransformOfTarget = value.followTransformOfTarget + if (valueHolderForFollowTransformOfTarget !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFollowTransformOfTargetTmpValue = valueHolderForFollowTransformOfTarget! + valueSerializer.writeBoolean(valueHolderForFollowTransformOfTargetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): PopupCommonOptions { + let valueDeserializer : DeserializerBase = buffer + const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let placementTmpBuf : Placement | undefined + if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) + } + const placementTmpResult : Placement | undefined = placementTmpBuf + const popupColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let popupColorTmpBuf : ResourceColor | undefined + if ((popupColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const popupColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let popupColorTmpBuf_ : Color | number | string | Resource | undefined + if (popupColorTmpBuf_UnionSelector == (0).toChar()) { + popupColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (popupColorTmpBuf_UnionSelector == (1).toChar()) { + popupColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (popupColorTmpBuf_UnionSelector == (2).toChar()) { + popupColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (popupColorTmpBuf_UnionSelector == (3).toChar()) { + popupColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for popupColorTmpBuf_ has to be chosen through deserialisation.") + } + popupColorTmpBuf = (popupColorTmpBuf_ as Color | number | string | Resource) + } + const popupColorTmpResult : ResourceColor | undefined = popupColorTmpBuf + const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableArrowTmpBuf : boolean | undefined + if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableArrowTmpBuf = valueDeserializer.readBoolean() + } + const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf + const autoCancelTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let autoCancelTmpBuf : boolean | undefined + if ((autoCancelTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + autoCancelTmpBuf = valueDeserializer.readBoolean() + } + const autoCancelTmpResult : boolean | undefined = autoCancelTmpBuf + const onStateChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onStateChangeTmpBuf : PopupStateChangeCallback | undefined + if ((onStateChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onStateChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onStateChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onStateChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onStateChangeTmpBuf = (event: PopupStateChangeParam):void => { + const onStateChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onStateChangeTmpBuf_BufArgsSerializer.writeInt32(onStateChangeTmpBuf_BufResource.resourceId); + onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCall); + onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCallSync); + PopupStateChangeParam_serializer.write(onStateChangeTmpBuf_BufArgsSerializer, event); + InteropNativeModule._CallCallback(-1444325632, onStateChangeTmpBuf_BufArgsSerializer.asBuffer(), onStateChangeTmpBuf_BufArgsSerializer.length()); + onStateChangeTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onStateChangeTmpResult : PopupStateChangeCallback | undefined = onStateChangeTmpBuf + const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowOffsetTmpBuf : Length | undefined + if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowOffsetTmpBuf_ : string | number | Resource | undefined + if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { + arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") + } + arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) + } + const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf + const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let showInSubWindowTmpBuf : boolean | undefined + if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + showInSubWindowTmpBuf = valueDeserializer.readBoolean() + } + const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf + const maskTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let maskTmpBuf : boolean | PopupMaskType | undefined + if ((maskTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const maskTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let maskTmpBuf_ : boolean | PopupMaskType | undefined + if (maskTmpBuf_UnionSelector == (0).toChar()) { + maskTmpBuf_ = valueDeserializer.readBoolean() + } else if (maskTmpBuf_UnionSelector == (1).toChar()) { + maskTmpBuf_ = PopupMaskType_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for maskTmpBuf_ has to be chosen through deserialisation.") + } + maskTmpBuf = (maskTmpBuf_ as boolean | PopupMaskType) + } + const maskTmpResult : boolean | PopupMaskType | undefined = maskTmpBuf + const targetSpaceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let targetSpaceTmpBuf : Length | undefined + if ((targetSpaceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const targetSpaceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let targetSpaceTmpBuf_ : string | number | Resource | undefined + if (targetSpaceTmpBuf_UnionSelector == (0).toChar()) { + targetSpaceTmpBuf_ = (valueDeserializer.readString() as string) + } else if (targetSpaceTmpBuf_UnionSelector == (1).toChar()) { + targetSpaceTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (targetSpaceTmpBuf_UnionSelector == (2).toChar()) { + targetSpaceTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for targetSpaceTmpBuf_ has to be chosen through deserialisation.") + } + targetSpaceTmpBuf = (targetSpaceTmpBuf_ as string | number | Resource) + } + const targetSpaceTmpResult : Length | undefined = targetSpaceTmpBuf + const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetTmpBuf : Position | undefined + if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + offsetTmpBuf = Position_serializer.read(valueDeserializer) + } + const offsetTmpResult : Position | undefined = offsetTmpBuf + const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let widthTmpBuf : Dimension | undefined + if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let widthTmpBuf_ : string | number | Resource | undefined + if (widthTmpBuf_UnionSelector == (0).toChar()) { + widthTmpBuf_ = (valueDeserializer.readString() as string) + } else if (widthTmpBuf_UnionSelector == (1).toChar()) { + widthTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (widthTmpBuf_UnionSelector == (2).toChar()) { + widthTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") + } + widthTmpBuf = (widthTmpBuf_ as string | number | Resource) + } + const widthTmpResult : Dimension | undefined = widthTmpBuf + const arrowPointPositionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowPointPositionTmpBuf : ArrowPointPosition | undefined + if ((arrowPointPositionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + arrowPointPositionTmpBuf = TypeChecker.ArrowPointPosition_FromNumeric(valueDeserializer.readInt32()) + } + const arrowPointPositionTmpResult : ArrowPointPosition | undefined = arrowPointPositionTmpBuf + const arrowWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowWidthTmpBuf : Dimension | undefined + if ((arrowWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowWidthTmpBuf_ : string | number | Resource | undefined + if (arrowWidthTmpBuf_UnionSelector == (0).toChar()) { + arrowWidthTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowWidthTmpBuf_UnionSelector == (1).toChar()) { + arrowWidthTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowWidthTmpBuf_UnionSelector == (2).toChar()) { + arrowWidthTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowWidthTmpBuf_ has to be chosen through deserialisation.") + } + arrowWidthTmpBuf = (arrowWidthTmpBuf_ as string | number | Resource) + } + const arrowWidthTmpResult : Dimension | undefined = arrowWidthTmpBuf + const arrowHeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowHeightTmpBuf : Dimension | undefined + if ((arrowHeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowHeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowHeightTmpBuf_ : string | number | Resource | undefined + if (arrowHeightTmpBuf_UnionSelector == (0).toChar()) { + arrowHeightTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowHeightTmpBuf_UnionSelector == (1).toChar()) { + arrowHeightTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowHeightTmpBuf_UnionSelector == (2).toChar()) { + arrowHeightTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowHeightTmpBuf_ has to be chosen through deserialisation.") + } + arrowHeightTmpBuf = (arrowHeightTmpBuf_ as string | number | Resource) + } + const arrowHeightTmpResult : Dimension | undefined = arrowHeightTmpBuf + const radiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let radiusTmpBuf : Dimension | undefined + if ((radiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const radiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let radiusTmpBuf_ : string | number | Resource | undefined + if (radiusTmpBuf_UnionSelector == (0).toChar()) { + radiusTmpBuf_ = (valueDeserializer.readString() as string) + } else if (radiusTmpBuf_UnionSelector == (1).toChar()) { + radiusTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (radiusTmpBuf_UnionSelector == (2).toChar()) { + radiusTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for radiusTmpBuf_ has to be chosen through deserialisation.") + } + radiusTmpBuf = (radiusTmpBuf_ as string | number | Resource) + } + const radiusTmpResult : Dimension | undefined = radiusTmpBuf + const shadowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let shadowTmpBuf : ShadowOptions | ShadowStyle | undefined + if ((shadowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const shadowTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let shadowTmpBuf_ : ShadowOptions | ShadowStyle | undefined + if (shadowTmpBuf_UnionSelector == (0).toChar()) { + shadowTmpBuf_ = ShadowOptions_serializer.read(valueDeserializer) + } else if (shadowTmpBuf_UnionSelector == (1).toChar()) { + shadowTmpBuf_ = TypeChecker.ShadowStyle_FromNumeric(valueDeserializer.readInt32()) + } else { + throw new Error("One of the branches for shadowTmpBuf_ has to be chosen through deserialisation.") + } + shadowTmpBuf = (shadowTmpBuf_ as ShadowOptions | ShadowStyle) + } + const shadowTmpResult : ShadowOptions | ShadowStyle | undefined = shadowTmpBuf + const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundBlurStyleTmpBuf : BlurStyle | undefined + if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) + } + const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf + const focusableTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let focusableTmpBuf : boolean | undefined + if ((focusableTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + focusableTmpBuf = valueDeserializer.readBoolean() + } + const focusableTmpResult : boolean | undefined = focusableTmpBuf + const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let transitionTmpBuf : TransitionEffect | undefined + if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) + } + const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf + const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillDismissTmpBuf : boolean | ((value0: DismissPopupAction) => void) | undefined + if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillDismissTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let onWillDismissTmpBuf_ : boolean | ((value0: DismissPopupAction) => void) | undefined + if (onWillDismissTmpBuf_UnionSelector == (0).toChar()) { + onWillDismissTmpBuf_ = valueDeserializer.readBoolean() + } else if (onWillDismissTmpBuf_UnionSelector == (1).toChar()) { + const onWillDismissTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillDismissTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() + const onWillDismissTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() + onWillDismissTmpBuf_ = (value0: DismissPopupAction):void => { + const onWillDismissTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillDismissTmpBuf_BufUBufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufUBufResource.resourceId); + onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCall); + onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCallSync); + DismissPopupAction_serializer.write(onWillDismissTmpBuf_BufUBufArgsSerializer, value0); + InteropNativeModule._CallCallback(-2004166751, onWillDismissTmpBuf_BufUBufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufUBufArgsSerializer.length()); + onWillDismissTmpBuf_BufUBufArgsSerializer.release(); + return; + } + } else { + throw new Error("One of the branches for onWillDismissTmpBuf_ has to be chosen through deserialisation.") + } + onWillDismissTmpBuf = (onWillDismissTmpBuf_ as boolean | ((value0: DismissPopupAction) => void)) + } + const onWillDismissTmpResult : boolean | ((value0: DismissPopupAction) => void) | undefined = onWillDismissTmpBuf + const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableHoverModeTmpBuf : boolean | undefined + if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableHoverModeTmpBuf = valueDeserializer.readBoolean() + } + const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf + const followTransformOfTargetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let followTransformOfTargetTmpBuf : boolean | undefined + if ((followTransformOfTargetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + followTransformOfTargetTmpBuf = valueDeserializer.readBoolean() + } + const followTransformOfTargetTmpResult : boolean | undefined = followTransformOfTargetTmpBuf + let value : PopupCommonOptions = ({placement: placementTmpResult, popupColor: popupColorTmpResult, enableArrow: enableArrowTmpResult, autoCancel: autoCancelTmpResult, onStateChange: onStateChangeTmpResult, arrowOffset: arrowOffsetTmpResult, showInSubWindow: showInSubWindowTmpResult, mask: maskTmpResult, targetSpace: targetSpaceTmpResult, offset: offsetTmpResult, width: widthTmpResult, arrowPointPosition: arrowPointPositionTmpResult, arrowWidth: arrowWidthTmpResult, arrowHeight: arrowHeightTmpResult, radius: radiusTmpResult, shadow: shadowTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, focusable: focusableTmpResult, transition: transitionTmpResult, onWillDismiss: onWillDismissTmpResult, enableHoverMode: enableHoverModeTmpResult, followTransformOfTarget: followTransformOfTargetTmpResult} as PopupCommonOptions) + return value + } +} +export class PopupMessageOptions_serializer { + public static write(buffer: SerializerBase, value: PopupMessageOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForTextColor = value.textColor + if (valueHolderForTextColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTextColorTmpValue = valueHolderForTextColor! + if (valueHolderForTextColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTextColorTmpValueForIdx0 = valueHolderForTextColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForTextColorTmpValueForIdx0)) + } else if (valueHolderForTextColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTextColorTmpValueForIdx1 = valueHolderForTextColorTmpValue as number + valueSerializer.writeNumber(valueHolderForTextColorTmpValueForIdx1) + } else if (valueHolderForTextColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForTextColorTmpValueForIdx2 = valueHolderForTextColorTmpValue as string + valueSerializer.writeString(valueHolderForTextColorTmpValueForIdx2) + } else if (valueHolderForTextColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForTextColorTmpValueForIdx3 = valueHolderForTextColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForTextColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFont = value.font + if (valueHolderForFont !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFontTmpValue = valueHolderForFont! + Font_serializer.write(valueSerializer, valueHolderForFontTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): PopupMessageOptions { + let valueDeserializer : DeserializerBase = buffer + const textColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let textColorTmpBuf : ResourceColor | undefined + if ((textColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const textColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let textColorTmpBuf_ : Color | number | string | Resource | undefined + if (textColorTmpBuf_UnionSelector == (0).toChar()) { + textColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (textColorTmpBuf_UnionSelector == (1).toChar()) { + textColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (textColorTmpBuf_UnionSelector == (2).toChar()) { + textColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (textColorTmpBuf_UnionSelector == (3).toChar()) { + textColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for textColorTmpBuf_ has to be chosen through deserialisation.") + } + textColorTmpBuf = (textColorTmpBuf_ as Color | number | string | Resource) + } + const textColorTmpResult : ResourceColor | undefined = textColorTmpBuf + const fontTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fontTmpBuf : Font | undefined + if ((fontTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + fontTmpBuf = Font_serializer.read(valueDeserializer) + } + const fontTmpResult : Font | undefined = fontTmpBuf + let value : PopupMessageOptions = ({textColor: textColorTmpResult, font: fontTmpResult} as PopupMessageOptions) + return value + } +} +export class SheetOptions_serializer { + public static write(buffer: SerializerBase, value: SheetOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForBackgroundColor = value.backgroundColor + if (valueHolderForBackgroundColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! + if (valueHolderForBackgroundColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) + } else if (valueHolderForBackgroundColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number + valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) + } else if (valueHolderForBackgroundColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string + valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) + } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnAppear = value.onAppear + if (valueHolderForOnAppear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnAppearTmpValue = valueHolderForOnAppear! + valueSerializer.holdAndWriteCallback(valueHolderForOnAppearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnDisappear = value.onDisappear + if (valueHolderForOnDisappear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnDisappearTmpValue = valueHolderForOnDisappear! + valueSerializer.holdAndWriteCallback(valueHolderForOnDisappearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillAppear = value.onWillAppear + if (valueHolderForOnWillAppear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillAppearTmpValue = valueHolderForOnWillAppear! + valueSerializer.holdAndWriteCallback(valueHolderForOnWillAppearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillDisappear = value.onWillDisappear + if (valueHolderForOnWillDisappear !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillDisappearTmpValue = valueHolderForOnWillDisappear! + valueSerializer.holdAndWriteCallback(valueHolderForOnWillDisappearTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForHeight = value.height + if (valueHolderForHeight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHeightTmpValue = valueHolderForHeight! + if (valueHolderForHeightTmpValue instanceof SheetSize) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForHeightTmpValueForIdx0 = valueHolderForHeightTmpValue as SheetSize + valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForHeightTmpValueForIdx0)) + } else if (valueHolderForHeightTmpValue instanceof Length) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForHeightTmpValueForIdx1 = valueHolderForHeightTmpValue as Length + if (valueHolderForHeightTmpValueForIdx1 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForHeightTmpValueForIdx1ForIdx0 = valueHolderForHeightTmpValueForIdx1 as string + valueSerializer.writeString(valueHolderForHeightTmpValueForIdx1ForIdx0) + } else if (valueHolderForHeightTmpValueForIdx1 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForHeightTmpValueForIdx1ForIdx1 = valueHolderForHeightTmpValueForIdx1 as number + valueSerializer.writeNumber(valueHolderForHeightTmpValueForIdx1ForIdx1) + } else if (valueHolderForHeightTmpValueForIdx1 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForHeightTmpValueForIdx1ForIdx2 = valueHolderForHeightTmpValueForIdx1 as Resource + Resource_serializer.write(valueSerializer, valueHolderForHeightTmpValueForIdx1ForIdx2) + } + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDragBar = value.dragBar + if (valueHolderForDragBar !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDragBarTmpValue = valueHolderForDragBar! + valueSerializer.writeBoolean(valueHolderForDragBarTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForMaskColor = value.maskColor + if (valueHolderForMaskColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForMaskColorTmpValue = valueHolderForMaskColor! + if (valueHolderForMaskColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForMaskColorTmpValueForIdx0 = valueHolderForMaskColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForMaskColorTmpValueForIdx0)) + } else if (valueHolderForMaskColorTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForMaskColorTmpValueForIdx1 = valueHolderForMaskColorTmpValue as number + valueSerializer.writeNumber(valueHolderForMaskColorTmpValueForIdx1) + } else if (valueHolderForMaskColorTmpValue instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForMaskColorTmpValueForIdx2 = valueHolderForMaskColorTmpValue as string + valueSerializer.writeString(valueHolderForMaskColorTmpValueForIdx2) + } else if (valueHolderForMaskColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForMaskColorTmpValueForIdx3 = valueHolderForMaskColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForMaskColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDetents = value.detents + if (valueHolderForDetents !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDetentsTmpValue = valueHolderForDetents! + const valueHolderForDetentsTmpValue_0 = valueHolderForDetentsTmpValue[0] + if (valueHolderForDetentsTmpValue_0 instanceof SheetSize) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForDetentsTmpValue_0ForIdx0 = valueHolderForDetentsTmpValue_0 as SheetSize + valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForDetentsTmpValue_0ForIdx0)) + } else if (valueHolderForDetentsTmpValue_0 instanceof Length) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForDetentsTmpValue_0ForIdx1 = valueHolderForDetentsTmpValue_0 as Length + if (valueHolderForDetentsTmpValue_0ForIdx1 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForDetentsTmpValue_0ForIdx1ForIdx0 = valueHolderForDetentsTmpValue_0ForIdx1 as string + valueSerializer.writeString(valueHolderForDetentsTmpValue_0ForIdx1ForIdx0) + } else if (valueHolderForDetentsTmpValue_0ForIdx1 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForDetentsTmpValue_0ForIdx1ForIdx1 = valueHolderForDetentsTmpValue_0ForIdx1 as number + valueSerializer.writeNumber(valueHolderForDetentsTmpValue_0ForIdx1ForIdx1) + } else if (valueHolderForDetentsTmpValue_0ForIdx1 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForDetentsTmpValue_0ForIdx1ForIdx2 = valueHolderForDetentsTmpValue_0ForIdx1 as Resource + Resource_serializer.write(valueSerializer, valueHolderForDetentsTmpValue_0ForIdx1ForIdx2) + } + } + const valueHolderForDetentsTmpValue_1 = valueHolderForDetentsTmpValue[1] + if (valueHolderForDetentsTmpValue_1 !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDetentsTmpValue_1TmpValue = valueHolderForDetentsTmpValue_1! + if (valueHolderForDetentsTmpValue_1TmpValue instanceof SheetSize) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForDetentsTmpValue_1TmpValueForIdx0 = valueHolderForDetentsTmpValue_1TmpValue as SheetSize + valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForDetentsTmpValue_1TmpValueForIdx0)) + } else if (valueHolderForDetentsTmpValue_1TmpValue instanceof Length) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForDetentsTmpValue_1TmpValueForIdx1 = valueHolderForDetentsTmpValue_1TmpValue as Length + if (valueHolderForDetentsTmpValue_1TmpValueForIdx1 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx0 = valueHolderForDetentsTmpValue_1TmpValueForIdx1 as string + valueSerializer.writeString(valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx0) + } else if (valueHolderForDetentsTmpValue_1TmpValueForIdx1 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx1 = valueHolderForDetentsTmpValue_1TmpValueForIdx1 as number + valueSerializer.writeNumber(valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx1) + } else if (valueHolderForDetentsTmpValue_1TmpValueForIdx1 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx2 = valueHolderForDetentsTmpValue_1TmpValueForIdx1 as Resource + Resource_serializer.write(valueSerializer, valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx2) + } + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDetentsTmpValue_2 = valueHolderForDetentsTmpValue[2] + if (valueHolderForDetentsTmpValue_2 !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDetentsTmpValue_2TmpValue = valueHolderForDetentsTmpValue_2! + if (valueHolderForDetentsTmpValue_2TmpValue instanceof SheetSize) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForDetentsTmpValue_2TmpValueForIdx0 = valueHolderForDetentsTmpValue_2TmpValue as SheetSize + valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForDetentsTmpValue_2TmpValueForIdx0)) + } else if (valueHolderForDetentsTmpValue_2TmpValue instanceof Length) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForDetentsTmpValue_2TmpValueForIdx1 = valueHolderForDetentsTmpValue_2TmpValue as Length + if (valueHolderForDetentsTmpValue_2TmpValueForIdx1 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx0 = valueHolderForDetentsTmpValue_2TmpValueForIdx1 as string + valueSerializer.writeString(valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx0) + } else if (valueHolderForDetentsTmpValue_2TmpValueForIdx1 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx1 = valueHolderForDetentsTmpValue_2TmpValueForIdx1 as number + valueSerializer.writeNumber(valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx1) + } else if (valueHolderForDetentsTmpValue_2TmpValueForIdx1 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx2 = valueHolderForDetentsTmpValue_2TmpValueForIdx1 as Resource + Resource_serializer.write(valueSerializer, valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx2) + } + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBlurStyle = value.blurStyle + if (valueHolderForBlurStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBlurStyleTmpValue = (valueHolderForBlurStyle as BlurStyle) + valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBlurStyleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShowClose = value.showClose + if (valueHolderForShowClose !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShowCloseTmpValue = valueHolderForShowClose! + if (valueHolderForShowCloseTmpValue instanceof boolean) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForShowCloseTmpValueForIdx0 = valueHolderForShowCloseTmpValue as boolean + valueSerializer.writeBoolean(valueHolderForShowCloseTmpValueForIdx0) + } else if (valueHolderForShowCloseTmpValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForShowCloseTmpValueForIdx1 = valueHolderForShowCloseTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForShowCloseTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPreferType = value.preferType + if (valueHolderForPreferType !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPreferTypeTmpValue = (valueHolderForPreferType as SheetType) + valueSerializer.writeInt32(TypeChecker.SheetType_ToNumeric(valueHolderForPreferTypeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTitle = value.title + if (valueHolderForTitle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTitleTmpValue = valueHolderForTitle! + if (valueHolderForTitleTmpValue instanceof SheetTitleOptions) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTitleTmpValueForIdx0 = valueHolderForTitleTmpValue as SheetTitleOptions + SheetTitleOptions_serializer.write(valueSerializer, valueHolderForTitleTmpValueForIdx0) + } else if (valueHolderForTitleTmpValue instanceof CustomBuilder) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTitleTmpValueForIdx1 = valueHolderForTitleTmpValue as CustomBuilder + valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForTitleTmpValueForIdx1)) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShouldDismiss = value.shouldDismiss + if (valueHolderForShouldDismiss !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShouldDismissTmpValue = valueHolderForShouldDismiss! + valueSerializer.holdAndWriteCallback(valueHolderForShouldDismissTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillDismiss = value.onWillDismiss + if (valueHolderForOnWillDismiss !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! + valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillSpringBackWhenDismiss = value.onWillSpringBackWhenDismiss + if (valueHolderForOnWillSpringBackWhenDismiss !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillSpringBackWhenDismissTmpValue = valueHolderForOnWillSpringBackWhenDismiss! + valueSerializer.holdAndWriteCallback(valueHolderForOnWillSpringBackWhenDismissTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableOutsideInteractive = value.enableOutsideInteractive + if (valueHolderForEnableOutsideInteractive !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableOutsideInteractiveTmpValue = valueHolderForEnableOutsideInteractive! + valueSerializer.writeBoolean(valueHolderForEnableOutsideInteractiveTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForWidth = value.width + if (valueHolderForWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForWidthTmpValue = valueHolderForWidth! + if (valueHolderForWidthTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string + valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) + } else if (valueHolderForWidthTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number + valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) + } else if (valueHolderForWidthTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBorderWidth = value.borderWidth + if (valueHolderForBorderWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBorderWidthTmpValue = valueHolderForBorderWidth! + if (valueHolderForBorderWidthTmpValue instanceof Dimension) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderWidthTmpValueForIdx0 = valueHolderForBorderWidthTmpValue as Dimension + if (valueHolderForBorderWidthTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderWidthTmpValueForIdx0ForIdx0 = valueHolderForBorderWidthTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForBorderWidthTmpValueForIdx0ForIdx0) + } else if (valueHolderForBorderWidthTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderWidthTmpValueForIdx0ForIdx1 = valueHolderForBorderWidthTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForBorderWidthTmpValueForIdx0ForIdx1) + } else if (valueHolderForBorderWidthTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBorderWidthTmpValueForIdx0ForIdx2 = valueHolderForBorderWidthTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForBorderWidthTmpValueForIdx0ForIdx2) + } + } else if (valueHolderForBorderWidthTmpValue instanceof EdgeWidths) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderWidthTmpValueForIdx1 = valueHolderForBorderWidthTmpValue as EdgeWidths + EdgeWidths_serializer.write(valueSerializer, valueHolderForBorderWidthTmpValueForIdx1) + } else if (valueHolderForBorderWidthTmpValue instanceof LocalizedEdgeWidths) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBorderWidthTmpValueForIdx2 = valueHolderForBorderWidthTmpValue as LocalizedEdgeWidths + LocalizedEdgeWidths_serializer.write(valueSerializer, valueHolderForBorderWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBorderColor = value.borderColor + if (valueHolderForBorderColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBorderColorTmpValue = valueHolderForBorderColor! + if (valueHolderForBorderColorTmpValue instanceof ResourceColor) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderColorTmpValueForIdx0 = valueHolderForBorderColorTmpValue as ResourceColor + if (valueHolderForBorderColorTmpValueForIdx0 instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderColorTmpValueForIdx0ForIdx0 = valueHolderForBorderColorTmpValueForIdx0 as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBorderColorTmpValueForIdx0ForIdx0)) + } else if (valueHolderForBorderColorTmpValueForIdx0 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderColorTmpValueForIdx0ForIdx1 = valueHolderForBorderColorTmpValueForIdx0 as number + valueSerializer.writeNumber(valueHolderForBorderColorTmpValueForIdx0ForIdx1) + } else if (valueHolderForBorderColorTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBorderColorTmpValueForIdx0ForIdx2 = valueHolderForBorderColorTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForBorderColorTmpValueForIdx0ForIdx2) + } else if (valueHolderForBorderColorTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForBorderColorTmpValueForIdx0ForIdx3 = valueHolderForBorderColorTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForBorderColorTmpValueForIdx0ForIdx3) + } + } else if (valueHolderForBorderColorTmpValue instanceof EdgeColors) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderColorTmpValueForIdx1 = valueHolderForBorderColorTmpValue as EdgeColors + EdgeColors_serializer.write(valueSerializer, valueHolderForBorderColorTmpValueForIdx1) + } else if (valueHolderForBorderColorTmpValue instanceof LocalizedEdgeColors) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForBorderColorTmpValueForIdx2 = valueHolderForBorderColorTmpValue as LocalizedEdgeColors + LocalizedEdgeColors_serializer.write(valueSerializer, valueHolderForBorderColorTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBorderStyle = value.borderStyle + if (valueHolderForBorderStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBorderStyleTmpValue = valueHolderForBorderStyle! + if (valueHolderForBorderStyleTmpValue instanceof BorderStyle) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForBorderStyleTmpValueForIdx0 = valueHolderForBorderStyleTmpValue as BorderStyle + valueSerializer.writeInt32(TypeChecker.BorderStyle_ToNumeric(valueHolderForBorderStyleTmpValueForIdx0)) + } else if (valueHolderForBorderStyleTmpValue instanceof EdgeStyles) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForBorderStyleTmpValueForIdx1 = valueHolderForBorderStyleTmpValue as EdgeStyles + EdgeStyles_serializer.write(valueSerializer, valueHolderForBorderStyleTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShadow = value.shadow + if (valueHolderForShadow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShadowTmpValue = valueHolderForShadow! + if (valueHolderForShadowTmpValue instanceof ShadowOptions) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForShadowTmpValueForIdx0 = valueHolderForShadowTmpValue as ShadowOptions + ShadowOptions_serializer.write(valueSerializer, valueHolderForShadowTmpValueForIdx0) + } else if (valueHolderForShadowTmpValue instanceof ShadowStyle) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForShadowTmpValueForIdx1 = valueHolderForShadowTmpValue as ShadowStyle + valueSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueHolderForShadowTmpValueForIdx1)) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnHeightDidChange = value.onHeightDidChange + if (valueHolderForOnHeightDidChange !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnHeightDidChangeTmpValue = valueHolderForOnHeightDidChange! + valueSerializer.holdAndWriteCallback(valueHolderForOnHeightDidChangeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForMode = value.mode + if (valueHolderForMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForModeTmpValue = (valueHolderForMode as SheetMode) + valueSerializer.writeInt32(TypeChecker.SheetMode_ToNumeric(valueHolderForModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForScrollSizeMode = value.scrollSizeMode + if (valueHolderForScrollSizeMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForScrollSizeModeTmpValue = (valueHolderForScrollSizeMode as ScrollSizeMode) + valueSerializer.writeInt32(TypeChecker.ScrollSizeMode_ToNumeric(valueHolderForScrollSizeModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnDetentsDidChange = value.onDetentsDidChange + if (valueHolderForOnDetentsDidChange !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnDetentsDidChangeTmpValue = valueHolderForOnDetentsDidChange! + valueSerializer.holdAndWriteCallback(valueHolderForOnDetentsDidChangeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWidthDidChange = value.onWidthDidChange + if (valueHolderForOnWidthDidChange !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWidthDidChangeTmpValue = valueHolderForOnWidthDidChange! + valueSerializer.holdAndWriteCallback(valueHolderForOnWidthDidChangeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnTypeDidChange = value.onTypeDidChange + if (valueHolderForOnTypeDidChange !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnTypeDidChangeTmpValue = valueHolderForOnTypeDidChange! + valueSerializer.holdAndWriteCallback(valueHolderForOnTypeDidChangeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForUiContext = value.uiContext + if (valueHolderForUiContext !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForUiContextTmpValue = valueHolderForUiContext! + UIContext_serializer.write(valueSerializer, valueHolderForUiContextTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForKeyboardAvoidMode = value.keyboardAvoidMode + if (valueHolderForKeyboardAvoidMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForKeyboardAvoidModeTmpValue = (valueHolderForKeyboardAvoidMode as SheetKeyboardAvoidMode) + valueSerializer.writeInt32(TypeChecker.SheetKeyboardAvoidMode_ToNumeric(valueHolderForKeyboardAvoidModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableHoverMode = value.enableHoverMode + if (valueHolderForEnableHoverMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! + valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForHoverModeArea = value.hoverModeArea + if (valueHolderForHoverModeArea !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForHoverModeAreaTmpValue = (valueHolderForHoverModeArea as HoverModeAreaType) + valueSerializer.writeInt32(TypeChecker.HoverModeAreaType_ToNumeric(valueHolderForHoverModeAreaTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOffset = value.offset + if (valueHolderForOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetTmpValue = valueHolderForOffset! + Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEffectEdge = value.effectEdge + if (valueHolderForEffectEdge !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEffectEdgeTmpValue = valueHolderForEffectEdge! + valueSerializer.writeNumber(valueHolderForEffectEdgeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRadius = value.radius + if (valueHolderForRadius !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRadiusTmpValue = valueHolderForRadius! + if (valueHolderForRadiusTmpValue instanceof LengthMetrics) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForRadiusTmpValueForIdx0 = valueHolderForRadiusTmpValue as LengthMetrics + LengthMetrics_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx0) + } else if (valueHolderForRadiusTmpValue instanceof BorderRadiuses) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForRadiusTmpValueForIdx1 = valueHolderForRadiusTmpValue as BorderRadiuses + BorderRadiuses_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx1) + } else if (valueHolderForRadiusTmpValue instanceof LocalizedBorderRadiuses) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForRadiusTmpValueForIdx2 = valueHolderForRadiusTmpValue as LocalizedBorderRadiuses + LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForDetentSelection = value.detentSelection + if (valueHolderForDetentSelection !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForDetentSelectionTmpValue = valueHolderForDetentSelection! + if (valueHolderForDetentSelectionTmpValue instanceof SheetSize) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForDetentSelectionTmpValueForIdx0 = valueHolderForDetentSelectionTmpValue as SheetSize + valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForDetentSelectionTmpValueForIdx0)) + } else if (valueHolderForDetentSelectionTmpValue instanceof Length) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForDetentSelectionTmpValueForIdx1 = valueHolderForDetentSelectionTmpValue as Length + if (valueHolderForDetentSelectionTmpValueForIdx1 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForDetentSelectionTmpValueForIdx1ForIdx0 = valueHolderForDetentSelectionTmpValueForIdx1 as string + valueSerializer.writeString(valueHolderForDetentSelectionTmpValueForIdx1ForIdx0) + } else if (valueHolderForDetentSelectionTmpValueForIdx1 instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForDetentSelectionTmpValueForIdx1ForIdx1 = valueHolderForDetentSelectionTmpValueForIdx1 as number + valueSerializer.writeNumber(valueHolderForDetentSelectionTmpValueForIdx1ForIdx1) + } else if (valueHolderForDetentSelectionTmpValueForIdx1 instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForDetentSelectionTmpValueForIdx1ForIdx2 = valueHolderForDetentSelectionTmpValueForIdx1 as Resource + Resource_serializer.write(valueSerializer, valueHolderForDetentSelectionTmpValueForIdx1ForIdx2) + } + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShowInSubWindow = value.showInSubWindow + if (valueHolderForShowInSubWindow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! + valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPlacement = value.placement + if (valueHolderForPlacement !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) + valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPlacementOnTarget = value.placementOnTarget + if (valueHolderForPlacementOnTarget !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPlacementOnTargetTmpValue = valueHolderForPlacementOnTarget! + valueSerializer.writeBoolean(valueHolderForPlacementOnTargetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): SheetOptions { + let valueDeserializer : DeserializerBase = buffer + const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundColorTmpBuf : ResourceColor | undefined + if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined + if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { + backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { + backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { + backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") + } + backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) + } + const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf + const onAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onAppearTmpBuf : (() => void) | undefined + if ((onAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onAppearTmpBuf = ():void => { + const onAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onAppearTmpBuf_BufArgsSerializer.writeInt32(onAppearTmpBuf_BufResource.resourceId); + onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCall); + onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onAppearTmpBuf_BufArgsSerializer.asBuffer(), onAppearTmpBuf_BufArgsSerializer.length()); + onAppearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onAppearTmpResult : (() => void) | undefined = onAppearTmpBuf + const onDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onDisappearTmpBuf : (() => void) | undefined + if ((onDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onDisappearTmpBuf = ():void => { + const onDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onDisappearTmpBuf_BufArgsSerializer.writeInt32(onDisappearTmpBuf_BufResource.resourceId); + onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCall); + onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onDisappearTmpBuf_BufArgsSerializer.asBuffer(), onDisappearTmpBuf_BufArgsSerializer.length()); + onDisappearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onDisappearTmpResult : (() => void) | undefined = onDisappearTmpBuf + const onWillAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillAppearTmpBuf : (() => void) | undefined + if ((onWillAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onWillAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onWillAppearTmpBuf = ():void => { + const onWillAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillAppearTmpBuf_BufArgsSerializer.writeInt32(onWillAppearTmpBuf_BufResource.resourceId); + onWillAppearTmpBuf_BufArgsSerializer.writePointer(onWillAppearTmpBuf_BufCall); + onWillAppearTmpBuf_BufArgsSerializer.writePointer(onWillAppearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onWillAppearTmpBuf_BufArgsSerializer.asBuffer(), onWillAppearTmpBuf_BufArgsSerializer.length()); + onWillAppearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onWillAppearTmpResult : (() => void) | undefined = onWillAppearTmpBuf + const onWillDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillDisappearTmpBuf : (() => void) | undefined + if ((onWillDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onWillDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onWillDisappearTmpBuf = ():void => { + const onWillDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillDisappearTmpBuf_BufArgsSerializer.writeInt32(onWillDisappearTmpBuf_BufResource.resourceId); + onWillDisappearTmpBuf_BufArgsSerializer.writePointer(onWillDisappearTmpBuf_BufCall); + onWillDisappearTmpBuf_BufArgsSerializer.writePointer(onWillDisappearTmpBuf_BufCallSync); + InteropNativeModule._CallCallback(-1867723152, onWillDisappearTmpBuf_BufArgsSerializer.asBuffer(), onWillDisappearTmpBuf_BufArgsSerializer.length()); + onWillDisappearTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onWillDisappearTmpResult : (() => void) | undefined = onWillDisappearTmpBuf + const heightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let heightTmpBuf : SheetSize | Length | undefined + if ((heightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const heightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let heightTmpBuf_ : SheetSize | Length | undefined + if (heightTmpBuf_UnionSelector == (0).toChar()) { + heightTmpBuf_ = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) + } else if (heightTmpBuf_UnionSelector == (1).toChar()) { + const heightTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let heightTmpBuf_BufU : string | number | Resource | undefined + if (heightTmpBuf_BufUUnionSelector == (0).toChar()) { + heightTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (heightTmpBuf_BufUUnionSelector == (1).toChar()) { + heightTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (heightTmpBuf_BufUUnionSelector == (2).toChar()) { + heightTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for heightTmpBuf_BufU has to be chosen through deserialisation.") + } + heightTmpBuf_ = (heightTmpBuf_BufU as string | number | Resource) + } else { + throw new Error("One of the branches for heightTmpBuf_ has to be chosen through deserialisation.") + } + heightTmpBuf = (heightTmpBuf_ as SheetSize | Length) + } + const heightTmpResult : SheetSize | Length | undefined = heightTmpBuf + const dragBarTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let dragBarTmpBuf : boolean | undefined + if ((dragBarTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + dragBarTmpBuf = valueDeserializer.readBoolean() + } + const dragBarTmpResult : boolean | undefined = dragBarTmpBuf + const maskColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let maskColorTmpBuf : ResourceColor | undefined + if ((maskColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const maskColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let maskColorTmpBuf_ : Color | number | string | Resource | undefined + if (maskColorTmpBuf_UnionSelector == (0).toChar()) { + maskColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (maskColorTmpBuf_UnionSelector == (1).toChar()) { + maskColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (maskColorTmpBuf_UnionSelector == (2).toChar()) { + maskColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (maskColorTmpBuf_UnionSelector == (3).toChar()) { + maskColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for maskColorTmpBuf_ has to be chosen through deserialisation.") + } + maskColorTmpBuf = (maskColorTmpBuf_ as Color | number | string | Resource) + } + const maskColorTmpResult : ResourceColor | undefined = maskColorTmpBuf + const detentsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let detentsTmpBuf : TripleLengthDetents | undefined + if ((detentsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const detentsTmpBuf_Value0TempBufUnionSelector : int32 = valueDeserializer.readInt8() + let detentsTmpBuf_Value0TempBuf : SheetSize | Length | undefined + if (detentsTmpBuf_Value0TempBufUnionSelector == (0).toChar()) { + detentsTmpBuf_Value0TempBuf = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) + } else if (detentsTmpBuf_Value0TempBufUnionSelector == (1).toChar()) { + const detentsTmpBuf_Value0TempBufBufUUnionSelector : int32 = valueDeserializer.readInt8() + let detentsTmpBuf_Value0TempBufBufU : string | number | Resource | undefined + if (detentsTmpBuf_Value0TempBufBufUUnionSelector == (0).toChar()) { + detentsTmpBuf_Value0TempBufBufU = (valueDeserializer.readString() as string) + } else if (detentsTmpBuf_Value0TempBufBufUUnionSelector == (1).toChar()) { + detentsTmpBuf_Value0TempBufBufU = (valueDeserializer.readNumber() as number) + } else if (detentsTmpBuf_Value0TempBufBufUUnionSelector == (2).toChar()) { + detentsTmpBuf_Value0TempBufBufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for detentsTmpBuf_Value0TempBufBufU has to be chosen through deserialisation.") + } + detentsTmpBuf_Value0TempBuf = (detentsTmpBuf_Value0TempBufBufU as string | number | Resource) + } else { + throw new Error("One of the branches for detentsTmpBuf_Value0TempBuf has to be chosen through deserialisation.") + } + const detentsTmpBuf_Value0 : SheetSize | Length = (detentsTmpBuf_Value0TempBuf as SheetSize | Length) + const detentsTmpBuf_Value1TempBuf_runtimeType = valueDeserializer.readInt8().toInt() + let detentsTmpBuf_Value1TempBuf : SheetSize | Length | undefined + if ((detentsTmpBuf_Value1TempBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const detentsTmpBuf_Value1TempBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let detentsTmpBuf_Value1TempBuf_ : SheetSize | Length | undefined + if (detentsTmpBuf_Value1TempBuf_UnionSelector == (0).toChar()) { + detentsTmpBuf_Value1TempBuf_ = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) + } else if (detentsTmpBuf_Value1TempBuf_UnionSelector == (1).toChar()) { + const detentsTmpBuf_Value1TempBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let detentsTmpBuf_Value1TempBuf_BufU : string | number | Resource | undefined + if (detentsTmpBuf_Value1TempBuf_BufUUnionSelector == (0).toChar()) { + detentsTmpBuf_Value1TempBuf_BufU = (valueDeserializer.readString() as string) + } else if (detentsTmpBuf_Value1TempBuf_BufUUnionSelector == (1).toChar()) { + detentsTmpBuf_Value1TempBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (detentsTmpBuf_Value1TempBuf_BufUUnionSelector == (2).toChar()) { + detentsTmpBuf_Value1TempBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for detentsTmpBuf_Value1TempBuf_BufU has to be chosen through deserialisation.") + } + detentsTmpBuf_Value1TempBuf_ = (detentsTmpBuf_Value1TempBuf_BufU as string | number | Resource) + } else { + throw new Error("One of the branches for detentsTmpBuf_Value1TempBuf_ has to be chosen through deserialisation.") + } + detentsTmpBuf_Value1TempBuf = (detentsTmpBuf_Value1TempBuf_ as SheetSize | Length) + } + const detentsTmpBuf_Value1 : SheetSize | Length | undefined = detentsTmpBuf_Value1TempBuf + const detentsTmpBuf_Value2TempBuf_runtimeType = valueDeserializer.readInt8().toInt() + let detentsTmpBuf_Value2TempBuf : SheetSize | Length | undefined + if ((detentsTmpBuf_Value2TempBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const detentsTmpBuf_Value2TempBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let detentsTmpBuf_Value2TempBuf_ : SheetSize | Length | undefined + if (detentsTmpBuf_Value2TempBuf_UnionSelector == (0).toChar()) { + detentsTmpBuf_Value2TempBuf_ = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) + } else if (detentsTmpBuf_Value2TempBuf_UnionSelector == (1).toChar()) { + const detentsTmpBuf_Value2TempBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let detentsTmpBuf_Value2TempBuf_BufU : string | number | Resource | undefined + if (detentsTmpBuf_Value2TempBuf_BufUUnionSelector == (0).toChar()) { + detentsTmpBuf_Value2TempBuf_BufU = (valueDeserializer.readString() as string) + } else if (detentsTmpBuf_Value2TempBuf_BufUUnionSelector == (1).toChar()) { + detentsTmpBuf_Value2TempBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (detentsTmpBuf_Value2TempBuf_BufUUnionSelector == (2).toChar()) { + detentsTmpBuf_Value2TempBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for detentsTmpBuf_Value2TempBuf_BufU has to be chosen through deserialisation.") + } + detentsTmpBuf_Value2TempBuf_ = (detentsTmpBuf_Value2TempBuf_BufU as string | number | Resource) + } else { + throw new Error("One of the branches for detentsTmpBuf_Value2TempBuf_ has to be chosen through deserialisation.") + } + detentsTmpBuf_Value2TempBuf = (detentsTmpBuf_Value2TempBuf_ as SheetSize | Length) + } + const detentsTmpBuf_Value2 : SheetSize | Length | undefined = detentsTmpBuf_Value2TempBuf + detentsTmpBuf = ([detentsTmpBuf_Value0, detentsTmpBuf_Value1, detentsTmpBuf_Value2] as TripleLengthDetents) + } + const detentsTmpResult : TripleLengthDetents | undefined = detentsTmpBuf + const blurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let blurStyleTmpBuf : BlurStyle | undefined + if ((blurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + blurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) + } + const blurStyleTmpResult : BlurStyle | undefined = blurStyleTmpBuf + const showCloseTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let showCloseTmpBuf : boolean | Resource | undefined + if ((showCloseTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const showCloseTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let showCloseTmpBuf_ : boolean | Resource | undefined + if (showCloseTmpBuf_UnionSelector == (0).toChar()) { + showCloseTmpBuf_ = valueDeserializer.readBoolean() + } else if (showCloseTmpBuf_UnionSelector == (1).toChar()) { + showCloseTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for showCloseTmpBuf_ has to be chosen through deserialisation.") + } + showCloseTmpBuf = (showCloseTmpBuf_ as boolean | Resource) + } + const showCloseTmpResult : boolean | Resource | undefined = showCloseTmpBuf + const preferTypeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let preferTypeTmpBuf : SheetType | undefined + if ((preferTypeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + preferTypeTmpBuf = TypeChecker.SheetType_FromNumeric(valueDeserializer.readInt32()) + } + const preferTypeTmpResult : SheetType | undefined = preferTypeTmpBuf + const titleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let titleTmpBuf : SheetTitleOptions | CustomBuilder | undefined + if ((titleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const titleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let titleTmpBuf_ : SheetTitleOptions | CustomBuilder | undefined + if (titleTmpBuf_UnionSelector == (0).toChar()) { + titleTmpBuf_ = SheetTitleOptions_serializer.read(valueDeserializer) + } else if (titleTmpBuf_UnionSelector == (1).toChar()) { + const titleTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const titleTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() + const titleTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() + titleTmpBuf_ = ():void => { + const titleTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); + titleTmpBuf_BufUBufArgsSerializer.writeInt32(titleTmpBuf_BufUBufResource.resourceId); + titleTmpBuf_BufUBufArgsSerializer.writePointer(titleTmpBuf_BufUBufCall); + titleTmpBuf_BufUBufArgsSerializer.writePointer(titleTmpBuf_BufUBufCallSync); + InteropNativeModule._CallCallback(737226752, titleTmpBuf_BufUBufArgsSerializer.asBuffer(), titleTmpBuf_BufUBufArgsSerializer.length()); + titleTmpBuf_BufUBufArgsSerializer.release(); + return; + } + } else { + throw new Error("One of the branches for titleTmpBuf_ has to be chosen through deserialisation.") + } + titleTmpBuf = (titleTmpBuf_ as SheetTitleOptions | CustomBuilder) + } + const titleTmpResult : SheetTitleOptions | CustomBuilder | undefined = titleTmpBuf + const shouldDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let shouldDismissTmpBuf : ((sheetDismiss: SheetDismiss) => void) | undefined + if ((shouldDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const shouldDismissTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const shouldDismissTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const shouldDismissTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + shouldDismissTmpBuf = (sheetDismiss: SheetDismiss):void => { + const shouldDismissTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + shouldDismissTmpBuf_BufArgsSerializer.writeInt32(shouldDismissTmpBuf_BufResource.resourceId); + shouldDismissTmpBuf_BufArgsSerializer.writePointer(shouldDismissTmpBuf_BufCall); + shouldDismissTmpBuf_BufArgsSerializer.writePointer(shouldDismissTmpBuf_BufCallSync); + SheetDismiss_serializer.write(shouldDismissTmpBuf_BufArgsSerializer, sheetDismiss); + InteropNativeModule._CallCallback(22609082, shouldDismissTmpBuf_BufArgsSerializer.asBuffer(), shouldDismissTmpBuf_BufArgsSerializer.length()); + shouldDismissTmpBuf_BufArgsSerializer.release(); + return; + } + } + const shouldDismissTmpResult : ((sheetDismiss: SheetDismiss) => void) | undefined = shouldDismissTmpBuf + const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillDismissTmpBuf : ((value0: DismissSheetAction) => void) | undefined + if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillDismissTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillDismissTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onWillDismissTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onWillDismissTmpBuf = (value0: DismissSheetAction):void => { + const onWillDismissTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillDismissTmpBuf_BufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufResource.resourceId); + onWillDismissTmpBuf_BufArgsSerializer.writePointer(onWillDismissTmpBuf_BufCall); + onWillDismissTmpBuf_BufArgsSerializer.writePointer(onWillDismissTmpBuf_BufCallSync); + DismissSheetAction_serializer.write(onWillDismissTmpBuf_BufArgsSerializer, value0); + InteropNativeModule._CallCallback(889549796, onWillDismissTmpBuf_BufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufArgsSerializer.length()); + onWillDismissTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onWillDismissTmpResult : ((value0: DismissSheetAction) => void) | undefined = onWillDismissTmpBuf + const onWillSpringBackWhenDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillSpringBackWhenDismissTmpBuf : ((value0: SpringBackAction) => void) | undefined + if ((onWillSpringBackWhenDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillSpringBackWhenDismissTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillSpringBackWhenDismissTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onWillSpringBackWhenDismissTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onWillSpringBackWhenDismissTmpBuf = (value0: SpringBackAction):void => { + const onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.writeInt32(onWillSpringBackWhenDismissTmpBuf_BufResource.resourceId); + onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.writePointer(onWillSpringBackWhenDismissTmpBuf_BufCall); + onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.writePointer(onWillSpringBackWhenDismissTmpBuf_BufCallSync); + SpringBackAction_serializer.write(onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer, value0); + InteropNativeModule._CallCallback(1536231691, onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.asBuffer(), onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.length()); + onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onWillSpringBackWhenDismissTmpResult : ((value0: SpringBackAction) => void) | undefined = onWillSpringBackWhenDismissTmpBuf + const enableOutsideInteractiveTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableOutsideInteractiveTmpBuf : boolean | undefined + if ((enableOutsideInteractiveTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableOutsideInteractiveTmpBuf = valueDeserializer.readBoolean() + } + const enableOutsideInteractiveTmpResult : boolean | undefined = enableOutsideInteractiveTmpBuf + const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let widthTmpBuf : Dimension | undefined + if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let widthTmpBuf_ : string | number | Resource | undefined + if (widthTmpBuf_UnionSelector == (0).toChar()) { + widthTmpBuf_ = (valueDeserializer.readString() as string) + } else if (widthTmpBuf_UnionSelector == (1).toChar()) { + widthTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (widthTmpBuf_UnionSelector == (2).toChar()) { + widthTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") + } + widthTmpBuf = (widthTmpBuf_ as string | number | Resource) + } + const widthTmpResult : Dimension | undefined = widthTmpBuf + const borderWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let borderWidthTmpBuf : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined + if ((borderWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const borderWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let borderWidthTmpBuf_ : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined + if (borderWidthTmpBuf_UnionSelector == (0).toChar()) { + const borderWidthTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let borderWidthTmpBuf_BufU : string | number | Resource | undefined + if (borderWidthTmpBuf_BufUUnionSelector == (0).toChar()) { + borderWidthTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (borderWidthTmpBuf_BufUUnionSelector == (1).toChar()) { + borderWidthTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (borderWidthTmpBuf_BufUUnionSelector == (2).toChar()) { + borderWidthTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderWidthTmpBuf_BufU has to be chosen through deserialisation.") + } + borderWidthTmpBuf_ = (borderWidthTmpBuf_BufU as string | number | Resource) + } else if (borderWidthTmpBuf_UnionSelector == (1).toChar()) { + borderWidthTmpBuf_ = EdgeWidths_serializer.read(valueDeserializer) + } else if (borderWidthTmpBuf_UnionSelector == (2).toChar()) { + borderWidthTmpBuf_ = LocalizedEdgeWidths_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderWidthTmpBuf_ has to be chosen through deserialisation.") + } + borderWidthTmpBuf = (borderWidthTmpBuf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) + } + const borderWidthTmpResult : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined = borderWidthTmpBuf + const borderColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let borderColorTmpBuf : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined + if ((borderColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const borderColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let borderColorTmpBuf_ : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined + if (borderColorTmpBuf_UnionSelector == (0).toChar()) { + const borderColorTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let borderColorTmpBuf_BufU : Color | number | string | Resource | undefined + if (borderColorTmpBuf_BufUUnionSelector == (0).toChar()) { + borderColorTmpBuf_BufU = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (borderColorTmpBuf_BufUUnionSelector == (1).toChar()) { + borderColorTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (borderColorTmpBuf_BufUUnionSelector == (2).toChar()) { + borderColorTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (borderColorTmpBuf_BufUUnionSelector == (3).toChar()) { + borderColorTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderColorTmpBuf_BufU has to be chosen through deserialisation.") + } + borderColorTmpBuf_ = (borderColorTmpBuf_BufU as Color | number | string | Resource) + } else if (borderColorTmpBuf_UnionSelector == (1).toChar()) { + borderColorTmpBuf_ = EdgeColors_serializer.read(valueDeserializer) + } else if (borderColorTmpBuf_UnionSelector == (2).toChar()) { + borderColorTmpBuf_ = LocalizedEdgeColors_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderColorTmpBuf_ has to be chosen through deserialisation.") + } + borderColorTmpBuf = (borderColorTmpBuf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) + } + const borderColorTmpResult : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined = borderColorTmpBuf + const borderStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let borderStyleTmpBuf : BorderStyle | EdgeStyles | undefined + if ((borderStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const borderStyleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let borderStyleTmpBuf_ : BorderStyle | EdgeStyles | undefined + if (borderStyleTmpBuf_UnionSelector == (0).toChar()) { + borderStyleTmpBuf_ = TypeChecker.BorderStyle_FromNumeric(valueDeserializer.readInt32()) + } else if (borderStyleTmpBuf_UnionSelector == (1).toChar()) { + borderStyleTmpBuf_ = EdgeStyles_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for borderStyleTmpBuf_ has to be chosen through deserialisation.") + } + borderStyleTmpBuf = (borderStyleTmpBuf_ as BorderStyle | EdgeStyles) + } + const borderStyleTmpResult : BorderStyle | EdgeStyles | undefined = borderStyleTmpBuf + const shadowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let shadowTmpBuf : ShadowOptions | ShadowStyle | undefined + if ((shadowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const shadowTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let shadowTmpBuf_ : ShadowOptions | ShadowStyle | undefined + if (shadowTmpBuf_UnionSelector == (0).toChar()) { + shadowTmpBuf_ = ShadowOptions_serializer.read(valueDeserializer) + } else if (shadowTmpBuf_UnionSelector == (1).toChar()) { + shadowTmpBuf_ = TypeChecker.ShadowStyle_FromNumeric(valueDeserializer.readInt32()) + } else { + throw new Error("One of the branches for shadowTmpBuf_ has to be chosen through deserialisation.") + } + shadowTmpBuf = (shadowTmpBuf_ as ShadowOptions | ShadowStyle) + } + const shadowTmpResult : ShadowOptions | ShadowStyle | undefined = shadowTmpBuf + const onHeightDidChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onHeightDidChangeTmpBuf : ((value0: number) => void) | undefined + if ((onHeightDidChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onHeightDidChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onHeightDidChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onHeightDidChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onHeightDidChangeTmpBuf = (value0: number):void => { + const onHeightDidChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onHeightDidChangeTmpBuf_BufArgsSerializer.writeInt32(onHeightDidChangeTmpBuf_BufResource.resourceId); + onHeightDidChangeTmpBuf_BufArgsSerializer.writePointer(onHeightDidChangeTmpBuf_BufCall); + onHeightDidChangeTmpBuf_BufArgsSerializer.writePointer(onHeightDidChangeTmpBuf_BufCallSync); + onHeightDidChangeTmpBuf_BufArgsSerializer.writeNumber(value0); + InteropNativeModule._CallCallback(36519084, onHeightDidChangeTmpBuf_BufArgsSerializer.asBuffer(), onHeightDidChangeTmpBuf_BufArgsSerializer.length()); + onHeightDidChangeTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onHeightDidChangeTmpResult : ((value0: number) => void) | undefined = onHeightDidChangeTmpBuf + const modeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let modeTmpBuf : SheetMode | undefined + if ((modeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + modeTmpBuf = TypeChecker.SheetMode_FromNumeric(valueDeserializer.readInt32()) + } + const modeTmpResult : SheetMode | undefined = modeTmpBuf + const scrollSizeModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let scrollSizeModeTmpBuf : ScrollSizeMode | undefined + if ((scrollSizeModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + scrollSizeModeTmpBuf = TypeChecker.ScrollSizeMode_FromNumeric(valueDeserializer.readInt32()) + } + const scrollSizeModeTmpResult : ScrollSizeMode | undefined = scrollSizeModeTmpBuf + const onDetentsDidChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onDetentsDidChangeTmpBuf : ((value0: number) => void) | undefined + if ((onDetentsDidChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onDetentsDidChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onDetentsDidChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onDetentsDidChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onDetentsDidChangeTmpBuf = (value0: number):void => { + const onDetentsDidChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onDetentsDidChangeTmpBuf_BufArgsSerializer.writeInt32(onDetentsDidChangeTmpBuf_BufResource.resourceId); + onDetentsDidChangeTmpBuf_BufArgsSerializer.writePointer(onDetentsDidChangeTmpBuf_BufCall); + onDetentsDidChangeTmpBuf_BufArgsSerializer.writePointer(onDetentsDidChangeTmpBuf_BufCallSync); + onDetentsDidChangeTmpBuf_BufArgsSerializer.writeNumber(value0); + InteropNativeModule._CallCallback(36519084, onDetentsDidChangeTmpBuf_BufArgsSerializer.asBuffer(), onDetentsDidChangeTmpBuf_BufArgsSerializer.length()); + onDetentsDidChangeTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onDetentsDidChangeTmpResult : ((value0: number) => void) | undefined = onDetentsDidChangeTmpBuf + const onWidthDidChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWidthDidChangeTmpBuf : ((value0: number) => void) | undefined + if ((onWidthDidChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWidthDidChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWidthDidChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onWidthDidChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onWidthDidChangeTmpBuf = (value0: number):void => { + const onWidthDidChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWidthDidChangeTmpBuf_BufArgsSerializer.writeInt32(onWidthDidChangeTmpBuf_BufResource.resourceId); + onWidthDidChangeTmpBuf_BufArgsSerializer.writePointer(onWidthDidChangeTmpBuf_BufCall); + onWidthDidChangeTmpBuf_BufArgsSerializer.writePointer(onWidthDidChangeTmpBuf_BufCallSync); + onWidthDidChangeTmpBuf_BufArgsSerializer.writeNumber(value0); + InteropNativeModule._CallCallback(36519084, onWidthDidChangeTmpBuf_BufArgsSerializer.asBuffer(), onWidthDidChangeTmpBuf_BufArgsSerializer.length()); + onWidthDidChangeTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onWidthDidChangeTmpResult : ((value0: number) => void) | undefined = onWidthDidChangeTmpBuf + const onTypeDidChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onTypeDidChangeTmpBuf : ((value0: SheetType) => void) | undefined + if ((onTypeDidChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onTypeDidChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onTypeDidChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onTypeDidChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onTypeDidChangeTmpBuf = (value0: SheetType):void => { + const onTypeDidChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onTypeDidChangeTmpBuf_BufArgsSerializer.writeInt32(onTypeDidChangeTmpBuf_BufResource.resourceId); + onTypeDidChangeTmpBuf_BufArgsSerializer.writePointer(onTypeDidChangeTmpBuf_BufCall); + onTypeDidChangeTmpBuf_BufArgsSerializer.writePointer(onTypeDidChangeTmpBuf_BufCallSync); + onTypeDidChangeTmpBuf_BufArgsSerializer.writeInt32(TypeChecker.SheetType_ToNumeric(value0)); + InteropNativeModule._CallCallback(-224451112, onTypeDidChangeTmpBuf_BufArgsSerializer.asBuffer(), onTypeDidChangeTmpBuf_BufArgsSerializer.length()); + onTypeDidChangeTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onTypeDidChangeTmpResult : ((value0: SheetType) => void) | undefined = onTypeDidChangeTmpBuf + const uiContextTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let uiContextTmpBuf : UIContext | undefined + if ((uiContextTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + uiContextTmpBuf = (UIContext_serializer.read(valueDeserializer) as UIContext) + } + const uiContextTmpResult : UIContext | undefined = uiContextTmpBuf + const keyboardAvoidModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let keyboardAvoidModeTmpBuf : SheetKeyboardAvoidMode | undefined + if ((keyboardAvoidModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + keyboardAvoidModeTmpBuf = TypeChecker.SheetKeyboardAvoidMode_FromNumeric(valueDeserializer.readInt32()) + } + const keyboardAvoidModeTmpResult : SheetKeyboardAvoidMode | undefined = keyboardAvoidModeTmpBuf + const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableHoverModeTmpBuf : boolean | undefined + if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableHoverModeTmpBuf = valueDeserializer.readBoolean() + } + const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf + const hoverModeAreaTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let hoverModeAreaTmpBuf : HoverModeAreaType | undefined + if ((hoverModeAreaTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + hoverModeAreaTmpBuf = TypeChecker.HoverModeAreaType_FromNumeric(valueDeserializer.readInt32()) + } + const hoverModeAreaTmpResult : HoverModeAreaType | undefined = hoverModeAreaTmpBuf + const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetTmpBuf : Position | undefined + if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + offsetTmpBuf = Position_serializer.read(valueDeserializer) + } + const offsetTmpResult : Position | undefined = offsetTmpBuf + const effectEdgeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let effectEdgeTmpBuf : number | undefined + if ((effectEdgeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + effectEdgeTmpBuf = (valueDeserializer.readNumber() as number) + } + const effectEdgeTmpResult : number | undefined = effectEdgeTmpBuf + const radiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let radiusTmpBuf : LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses | undefined + if ((radiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const radiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let radiusTmpBuf_ : LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses | undefined + if (radiusTmpBuf_UnionSelector == (0).toChar()) { + radiusTmpBuf_ = (LengthMetrics_serializer.read(valueDeserializer) as LengthMetrics) + } else if (radiusTmpBuf_UnionSelector == (1).toChar()) { + radiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) + } else if (radiusTmpBuf_UnionSelector == (2).toChar()) { + radiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for radiusTmpBuf_ has to be chosen through deserialisation.") + } + radiusTmpBuf = (radiusTmpBuf_ as LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses) + } + const radiusTmpResult : LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses | undefined = radiusTmpBuf + const detentSelectionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let detentSelectionTmpBuf : SheetSize | Length | undefined + if ((detentSelectionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const detentSelectionTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let detentSelectionTmpBuf_ : SheetSize | Length | undefined + if (detentSelectionTmpBuf_UnionSelector == (0).toChar()) { + detentSelectionTmpBuf_ = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) + } else if (detentSelectionTmpBuf_UnionSelector == (1).toChar()) { + const detentSelectionTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let detentSelectionTmpBuf_BufU : string | number | Resource | undefined + if (detentSelectionTmpBuf_BufUUnionSelector == (0).toChar()) { + detentSelectionTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (detentSelectionTmpBuf_BufUUnionSelector == (1).toChar()) { + detentSelectionTmpBuf_BufU = (valueDeserializer.readNumber() as number) + } else if (detentSelectionTmpBuf_BufUUnionSelector == (2).toChar()) { + detentSelectionTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for detentSelectionTmpBuf_BufU has to be chosen through deserialisation.") + } + detentSelectionTmpBuf_ = (detentSelectionTmpBuf_BufU as string | number | Resource) + } else { + throw new Error("One of the branches for detentSelectionTmpBuf_ has to be chosen through deserialisation.") + } + detentSelectionTmpBuf = (detentSelectionTmpBuf_ as SheetSize | Length) + } + const detentSelectionTmpResult : SheetSize | Length | undefined = detentSelectionTmpBuf + const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let showInSubWindowTmpBuf : boolean | undefined + if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + showInSubWindowTmpBuf = valueDeserializer.readBoolean() + } + const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf + const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let placementTmpBuf : Placement | undefined + if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) + } + const placementTmpResult : Placement | undefined = placementTmpBuf + const placementOnTargetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let placementOnTargetTmpBuf : boolean | undefined + if ((placementOnTargetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + placementOnTargetTmpBuf = valueDeserializer.readBoolean() + } + const placementOnTargetTmpResult : boolean | undefined = placementOnTargetTmpBuf + let value : SheetOptions = ({backgroundColor: backgroundColorTmpResult, onAppear: onAppearTmpResult, onDisappear: onDisappearTmpResult, onWillAppear: onWillAppearTmpResult, onWillDisappear: onWillDisappearTmpResult, height: heightTmpResult, dragBar: dragBarTmpResult, maskColor: maskColorTmpResult, detents: detentsTmpResult, blurStyle: blurStyleTmpResult, showClose: showCloseTmpResult, preferType: preferTypeTmpResult, title: titleTmpResult, shouldDismiss: shouldDismissTmpResult, onWillDismiss: onWillDismissTmpResult, onWillSpringBackWhenDismiss: onWillSpringBackWhenDismissTmpResult, enableOutsideInteractive: enableOutsideInteractiveTmpResult, width: widthTmpResult, borderWidth: borderWidthTmpResult, borderColor: borderColorTmpResult, borderStyle: borderStyleTmpResult, shadow: shadowTmpResult, onHeightDidChange: onHeightDidChangeTmpResult, mode: modeTmpResult, scrollSizeMode: scrollSizeModeTmpResult, onDetentsDidChange: onDetentsDidChangeTmpResult, onWidthDidChange: onWidthDidChangeTmpResult, onTypeDidChange: onTypeDidChangeTmpResult, uiContext: uiContextTmpResult, keyboardAvoidMode: keyboardAvoidModeTmpResult, enableHoverMode: enableHoverModeTmpResult, hoverModeArea: hoverModeAreaTmpResult, offset: offsetTmpResult, effectEdge: effectEdgeTmpResult, radius: radiusTmpResult, detentSelection: detentSelectionTmpResult, showInSubWindow: showInSubWindowTmpResult, placement: placementTmpResult, placementOnTarget: placementOnTargetTmpResult} as SheetOptions) + return value + } +} +export class TouchEvent_serializer { + public static write(buffer: SerializerBase, value: TouchEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): TouchEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return TouchEventInternal.fromPtr(ptr) + } +} +export class AccessibilityHoverEvent_serializer { + public static write(buffer: SerializerBase, value: AccessibilityHoverEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): AccessibilityHoverEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return AccessibilityHoverEventInternal.fromPtr(ptr) + } +} +export class AxisEvent_serializer { + public static write(buffer: SerializerBase, value: AxisEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): AxisEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return AxisEventInternal.fromPtr(ptr) + } +} +export class BaseEvent_serializer { + public static write(buffer: SerializerBase, value: BaseEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): BaseEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return BaseEventInternal.fromPtr(ptr) + } +} +export class ClickEvent_serializer { + public static write(buffer: SerializerBase, value: ClickEvent): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): ClickEvent { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return ClickEventInternal.fromPtr(ptr) + } +} +export class PopupOptions_serializer { + public static write(buffer: SerializerBase, value: PopupOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForMessage = value.message + valueSerializer.writeString(valueHolderForMessage) + const valueHolderForPlacement = value.placement + if (valueHolderForPlacement !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) + valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPrimaryButton = value.primaryButton + if (valueHolderForPrimaryButton !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPrimaryButtonTmpValue = valueHolderForPrimaryButton! + PopupButton_serializer.write(valueSerializer, valueHolderForPrimaryButtonTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForSecondaryButton = value.secondaryButton + if (valueHolderForSecondaryButton !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForSecondaryButtonTmpValue = valueHolderForSecondaryButton! + PopupButton_serializer.write(valueSerializer, valueHolderForSecondaryButtonTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnStateChange = value.onStateChange + if (valueHolderForOnStateChange !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnStateChangeTmpValue = valueHolderForOnStateChange! + valueSerializer.holdAndWriteCallback(valueHolderForOnStateChangeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowOffset = value.arrowOffset + if (valueHolderForArrowOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! + if (valueHolderForArrowOffsetTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string + valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) + } else if (valueHolderForArrowOffsetTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) + } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShowInSubWindow = value.showInSubWindow + if (valueHolderForShowInSubWindow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! + valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForMask = value.mask + if (valueHolderForMask !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForMaskTmpValue = valueHolderForMask! + if (valueHolderForMaskTmpValue instanceof boolean) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForMaskTmpValueForIdx0 = valueHolderForMaskTmpValue as boolean + valueSerializer.writeBoolean(valueHolderForMaskTmpValueForIdx0) + } else if (valueHolderForMaskTmpValue instanceof PopupMaskType) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForMaskTmpValueForIdx1 = valueHolderForMaskTmpValue as PopupMaskType + PopupMaskType_serializer.write(valueSerializer, valueHolderForMaskTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForMessageOptions = value.messageOptions + if (valueHolderForMessageOptions !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForMessageOptionsTmpValue = valueHolderForMessageOptions! + PopupMessageOptions_serializer.write(valueSerializer, valueHolderForMessageOptionsTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTargetSpace = value.targetSpace + if (valueHolderForTargetSpace !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTargetSpaceTmpValue = valueHolderForTargetSpace! + if (valueHolderForTargetSpaceTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTargetSpaceTmpValueForIdx0 = valueHolderForTargetSpaceTmpValue as string + valueSerializer.writeString(valueHolderForTargetSpaceTmpValueForIdx0) + } else if (valueHolderForTargetSpaceTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTargetSpaceTmpValueForIdx1 = valueHolderForTargetSpaceTmpValue as number + valueSerializer.writeNumber(valueHolderForTargetSpaceTmpValueForIdx1) + } else if (valueHolderForTargetSpaceTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForTargetSpaceTmpValueForIdx2 = valueHolderForTargetSpaceTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForTargetSpaceTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableArrow = value.enableArrow + if (valueHolderForEnableArrow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! + valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOffset = value.offset + if (valueHolderForOffset !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOffsetTmpValue = valueHolderForOffset! + Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForPopupColor = value.popupColor + if (valueHolderForPopupColor !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPopupColorTmpValue = valueHolderForPopupColor! + if (valueHolderForPopupColorTmpValue instanceof Color) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPopupColorTmpValueForIdx0 = valueHolderForPopupColorTmpValue as Color + valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForPopupColorTmpValueForIdx0)) + } else if (valueHolderForPopupColorTmpValue instanceof string) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPopupColorTmpValueForIdx1 = valueHolderForPopupColorTmpValue as string + valueSerializer.writeString(valueHolderForPopupColorTmpValueForIdx1) + } else if (valueHolderForPopupColorTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForPopupColorTmpValueForIdx2 = valueHolderForPopupColorTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForPopupColorTmpValueForIdx2) + } else if (valueHolderForPopupColorTmpValue instanceof number) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForPopupColorTmpValueForIdx3 = valueHolderForPopupColorTmpValue as number + valueSerializer.writeNumber(valueHolderForPopupColorTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForAutoCancel = value.autoCancel + if (valueHolderForAutoCancel !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForAutoCancelTmpValue = valueHolderForAutoCancel! + valueSerializer.writeBoolean(valueHolderForAutoCancelTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForWidth = value.width + if (valueHolderForWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForWidthTmpValue = valueHolderForWidth! + if (valueHolderForWidthTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string + valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) + } else if (valueHolderForWidthTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number + valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) + } else if (valueHolderForWidthTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowPointPosition = value.arrowPointPosition + if (valueHolderForArrowPointPosition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowPointPositionTmpValue = (valueHolderForArrowPointPosition as ArrowPointPosition) + valueSerializer.writeInt32(TypeChecker.ArrowPointPosition_ToNumeric(valueHolderForArrowPointPositionTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowWidth = value.arrowWidth + if (valueHolderForArrowWidth !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowWidthTmpValue = valueHolderForArrowWidth! + if (valueHolderForArrowWidthTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowWidthTmpValueForIdx0 = valueHolderForArrowWidthTmpValue as string + valueSerializer.writeString(valueHolderForArrowWidthTmpValueForIdx0) + } else if (valueHolderForArrowWidthTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowWidthTmpValueForIdx1 = valueHolderForArrowWidthTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowWidthTmpValueForIdx1) + } else if (valueHolderForArrowWidthTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowWidthTmpValueForIdx2 = valueHolderForArrowWidthTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowWidthTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForArrowHeight = value.arrowHeight + if (valueHolderForArrowHeight !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForArrowHeightTmpValue = valueHolderForArrowHeight! + if (valueHolderForArrowHeightTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForArrowHeightTmpValueForIdx0 = valueHolderForArrowHeightTmpValue as string + valueSerializer.writeString(valueHolderForArrowHeightTmpValueForIdx0) + } else if (valueHolderForArrowHeightTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForArrowHeightTmpValueForIdx1 = valueHolderForArrowHeightTmpValue as number + valueSerializer.writeNumber(valueHolderForArrowHeightTmpValueForIdx1) + } else if (valueHolderForArrowHeightTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForArrowHeightTmpValueForIdx2 = valueHolderForArrowHeightTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForArrowHeightTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForRadius = value.radius + if (valueHolderForRadius !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForRadiusTmpValue = valueHolderForRadius! + if (valueHolderForRadiusTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForRadiusTmpValueForIdx0 = valueHolderForRadiusTmpValue as string + valueSerializer.writeString(valueHolderForRadiusTmpValueForIdx0) + } else if (valueHolderForRadiusTmpValue instanceof number) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForRadiusTmpValueForIdx1 = valueHolderForRadiusTmpValue as number + valueSerializer.writeNumber(valueHolderForRadiusTmpValueForIdx1) + } else if (valueHolderForRadiusTmpValue instanceof Resource) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForRadiusTmpValueForIdx2 = valueHolderForRadiusTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx2) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForShadow = value.shadow + if (valueHolderForShadow !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForShadowTmpValue = valueHolderForShadow! + if (valueHolderForShadowTmpValue instanceof ShadowOptions) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForShadowTmpValueForIdx0 = valueHolderForShadowTmpValue as ShadowOptions + ShadowOptions_serializer.write(valueSerializer, valueHolderForShadowTmpValueForIdx0) + } else if (valueHolderForShadowTmpValue instanceof ShadowStyle) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForShadowTmpValueForIdx1 = valueHolderForShadowTmpValue as ShadowStyle + valueSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueHolderForShadowTmpValueForIdx1)) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle + if (valueHolderForBackgroundBlurStyle !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) + valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForTransition = value.transition + if (valueHolderForTransition !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTransitionTmpValue = valueHolderForTransition! + TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnWillDismiss = value.onWillDismiss + if (valueHolderForOnWillDismiss !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! + if (valueHolderForOnWillDismissTmpValue instanceof boolean) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForOnWillDismissTmpValueForIdx0 = valueHolderForOnWillDismissTmpValue as boolean + valueSerializer.writeBoolean(valueHolderForOnWillDismissTmpValueForIdx0) + } else if (valueHolderForOnWillDismissTmpValue instanceof ((value0: DismissPopupAction) => void)) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForOnWillDismissTmpValueForIdx1 = valueHolderForOnWillDismissTmpValue as ((value0: DismissPopupAction) => void) + valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForEnableHoverMode = value.enableHoverMode + if (valueHolderForEnableHoverMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! + valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFollowTransformOfTarget = value.followTransformOfTarget + if (valueHolderForFollowTransformOfTarget !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFollowTransformOfTargetTmpValue = valueHolderForFollowTransformOfTarget! + valueSerializer.writeBoolean(valueHolderForFollowTransformOfTargetTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForKeyboardAvoidMode = value.keyboardAvoidMode + if (valueHolderForKeyboardAvoidMode !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForKeyboardAvoidModeTmpValue = (valueHolderForKeyboardAvoidMode as KeyboardAvoidMode) + valueSerializer.writeInt32(TypeChecker.KeyboardAvoidMode_ToNumeric(valueHolderForKeyboardAvoidModeTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): PopupOptions { + let valueDeserializer : DeserializerBase = buffer + const messageTmpResult : string = (valueDeserializer.readString() as string) + const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let placementTmpBuf : Placement | undefined + if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) + } + const placementTmpResult : Placement | undefined = placementTmpBuf + const primaryButtonTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let primaryButtonTmpBuf : PopupButton | undefined + if ((primaryButtonTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + primaryButtonTmpBuf = PopupButton_serializer.read(valueDeserializer) + } + const primaryButtonTmpResult : PopupButton | undefined = primaryButtonTmpBuf + const secondaryButtonTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let secondaryButtonTmpBuf : PopupButton | undefined + if ((secondaryButtonTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + secondaryButtonTmpBuf = PopupButton_serializer.read(valueDeserializer) + } + const secondaryButtonTmpResult : PopupButton | undefined = secondaryButtonTmpBuf + const onStateChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onStateChangeTmpBuf : PopupStateChangeCallback | undefined + if ((onStateChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onStateChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onStateChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onStateChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onStateChangeTmpBuf = (event: PopupStateChangeParam):void => { + const onStateChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onStateChangeTmpBuf_BufArgsSerializer.writeInt32(onStateChangeTmpBuf_BufResource.resourceId); + onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCall); + onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCallSync); + PopupStateChangeParam_serializer.write(onStateChangeTmpBuf_BufArgsSerializer, event); + InteropNativeModule._CallCallback(-1444325632, onStateChangeTmpBuf_BufArgsSerializer.asBuffer(), onStateChangeTmpBuf_BufArgsSerializer.length()); + onStateChangeTmpBuf_BufArgsSerializer.release(); + return; + } + } + const onStateChangeTmpResult : PopupStateChangeCallback | undefined = onStateChangeTmpBuf + const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowOffsetTmpBuf : Length | undefined + if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowOffsetTmpBuf_ : string | number | Resource | undefined + if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { + arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { + arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") + } + arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) + } + const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf + const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let showInSubWindowTmpBuf : boolean | undefined + if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + showInSubWindowTmpBuf = valueDeserializer.readBoolean() + } + const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf + const maskTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let maskTmpBuf : boolean | PopupMaskType | undefined + if ((maskTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const maskTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let maskTmpBuf_ : boolean | PopupMaskType | undefined + if (maskTmpBuf_UnionSelector == (0).toChar()) { + maskTmpBuf_ = valueDeserializer.readBoolean() + } else if (maskTmpBuf_UnionSelector == (1).toChar()) { + maskTmpBuf_ = PopupMaskType_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for maskTmpBuf_ has to be chosen through deserialisation.") + } + maskTmpBuf = (maskTmpBuf_ as boolean | PopupMaskType) + } + const maskTmpResult : boolean | PopupMaskType | undefined = maskTmpBuf + const messageOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let messageOptionsTmpBuf : PopupMessageOptions | undefined + if ((messageOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + messageOptionsTmpBuf = PopupMessageOptions_serializer.read(valueDeserializer) + } + const messageOptionsTmpResult : PopupMessageOptions | undefined = messageOptionsTmpBuf + const targetSpaceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let targetSpaceTmpBuf : Length | undefined + if ((targetSpaceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const targetSpaceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let targetSpaceTmpBuf_ : string | number | Resource | undefined + if (targetSpaceTmpBuf_UnionSelector == (0).toChar()) { + targetSpaceTmpBuf_ = (valueDeserializer.readString() as string) + } else if (targetSpaceTmpBuf_UnionSelector == (1).toChar()) { + targetSpaceTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (targetSpaceTmpBuf_UnionSelector == (2).toChar()) { + targetSpaceTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for targetSpaceTmpBuf_ has to be chosen through deserialisation.") + } + targetSpaceTmpBuf = (targetSpaceTmpBuf_ as string | number | Resource) + } + const targetSpaceTmpResult : Length | undefined = targetSpaceTmpBuf + const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableArrowTmpBuf : boolean | undefined + if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableArrowTmpBuf = valueDeserializer.readBoolean() + } + const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf + const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let offsetTmpBuf : Position | undefined + if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + offsetTmpBuf = Position_serializer.read(valueDeserializer) + } + const offsetTmpResult : Position | undefined = offsetTmpBuf + const popupColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let popupColorTmpBuf : Color | string | Resource | number | undefined + if ((popupColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const popupColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let popupColorTmpBuf_ : Color | string | Resource | number | undefined + if (popupColorTmpBuf_UnionSelector == (0).toChar()) { + popupColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) + } else if (popupColorTmpBuf_UnionSelector == (1).toChar()) { + popupColorTmpBuf_ = (valueDeserializer.readString() as string) + } else if (popupColorTmpBuf_UnionSelector == (2).toChar()) { + popupColorTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else if (popupColorTmpBuf_UnionSelector == (3).toChar()) { + popupColorTmpBuf_ = (valueDeserializer.readNumber() as number) + } else { + throw new Error("One of the branches for popupColorTmpBuf_ has to be chosen through deserialisation.") + } + popupColorTmpBuf = (popupColorTmpBuf_ as Color | string | Resource | number) + } + const popupColorTmpResult : Color | string | Resource | number | undefined = popupColorTmpBuf + const autoCancelTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let autoCancelTmpBuf : boolean | undefined + if ((autoCancelTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + autoCancelTmpBuf = valueDeserializer.readBoolean() + } + const autoCancelTmpResult : boolean | undefined = autoCancelTmpBuf + const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let widthTmpBuf : Dimension | undefined + if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let widthTmpBuf_ : string | number | Resource | undefined + if (widthTmpBuf_UnionSelector == (0).toChar()) { + widthTmpBuf_ = (valueDeserializer.readString() as string) + } else if (widthTmpBuf_UnionSelector == (1).toChar()) { + widthTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (widthTmpBuf_UnionSelector == (2).toChar()) { + widthTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") + } + widthTmpBuf = (widthTmpBuf_ as string | number | Resource) + } + const widthTmpResult : Dimension | undefined = widthTmpBuf + const arrowPointPositionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowPointPositionTmpBuf : ArrowPointPosition | undefined + if ((arrowPointPositionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + arrowPointPositionTmpBuf = TypeChecker.ArrowPointPosition_FromNumeric(valueDeserializer.readInt32()) + } + const arrowPointPositionTmpResult : ArrowPointPosition | undefined = arrowPointPositionTmpBuf + const arrowWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowWidthTmpBuf : Dimension | undefined + if ((arrowWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowWidthTmpBuf_ : string | number | Resource | undefined + if (arrowWidthTmpBuf_UnionSelector == (0).toChar()) { + arrowWidthTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowWidthTmpBuf_UnionSelector == (1).toChar()) { + arrowWidthTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowWidthTmpBuf_UnionSelector == (2).toChar()) { + arrowWidthTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowWidthTmpBuf_ has to be chosen through deserialisation.") + } + arrowWidthTmpBuf = (arrowWidthTmpBuf_ as string | number | Resource) + } + const arrowWidthTmpResult : Dimension | undefined = arrowWidthTmpBuf + const arrowHeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let arrowHeightTmpBuf : Dimension | undefined + if ((arrowHeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const arrowHeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let arrowHeightTmpBuf_ : string | number | Resource | undefined + if (arrowHeightTmpBuf_UnionSelector == (0).toChar()) { + arrowHeightTmpBuf_ = (valueDeserializer.readString() as string) + } else if (arrowHeightTmpBuf_UnionSelector == (1).toChar()) { + arrowHeightTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (arrowHeightTmpBuf_UnionSelector == (2).toChar()) { + arrowHeightTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for arrowHeightTmpBuf_ has to be chosen through deserialisation.") + } + arrowHeightTmpBuf = (arrowHeightTmpBuf_ as string | number | Resource) + } + const arrowHeightTmpResult : Dimension | undefined = arrowHeightTmpBuf + const radiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let radiusTmpBuf : Dimension | undefined + if ((radiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const radiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let radiusTmpBuf_ : string | number | Resource | undefined + if (radiusTmpBuf_UnionSelector == (0).toChar()) { + radiusTmpBuf_ = (valueDeserializer.readString() as string) + } else if (radiusTmpBuf_UnionSelector == (1).toChar()) { + radiusTmpBuf_ = (valueDeserializer.readNumber() as number) + } else if (radiusTmpBuf_UnionSelector == (2).toChar()) { + radiusTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for radiusTmpBuf_ has to be chosen through deserialisation.") + } + radiusTmpBuf = (radiusTmpBuf_ as string | number | Resource) + } + const radiusTmpResult : Dimension | undefined = radiusTmpBuf + const shadowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let shadowTmpBuf : ShadowOptions | ShadowStyle | undefined + if ((shadowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const shadowTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let shadowTmpBuf_ : ShadowOptions | ShadowStyle | undefined + if (shadowTmpBuf_UnionSelector == (0).toChar()) { + shadowTmpBuf_ = ShadowOptions_serializer.read(valueDeserializer) + } else if (shadowTmpBuf_UnionSelector == (1).toChar()) { + shadowTmpBuf_ = TypeChecker.ShadowStyle_FromNumeric(valueDeserializer.readInt32()) + } else { + throw new Error("One of the branches for shadowTmpBuf_ has to be chosen through deserialisation.") + } + shadowTmpBuf = (shadowTmpBuf_ as ShadowOptions | ShadowStyle) + } + const shadowTmpResult : ShadowOptions | ShadowStyle | undefined = shadowTmpBuf + const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let backgroundBlurStyleTmpBuf : BlurStyle | undefined + if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) + } + const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf + const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let transitionTmpBuf : TransitionEffect | undefined + if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) + } + const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf + const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onWillDismissTmpBuf : boolean | ((value0: DismissPopupAction) => void) | undefined + if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onWillDismissTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let onWillDismissTmpBuf_ : boolean | ((value0: DismissPopupAction) => void) | undefined + if (onWillDismissTmpBuf_UnionSelector == (0).toChar()) { + onWillDismissTmpBuf_ = valueDeserializer.readBoolean() + } else if (onWillDismissTmpBuf_UnionSelector == (1).toChar()) { + const onWillDismissTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onWillDismissTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() + const onWillDismissTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() + onWillDismissTmpBuf_ = (value0: DismissPopupAction):void => { + const onWillDismissTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); + onWillDismissTmpBuf_BufUBufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufUBufResource.resourceId); + onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCall); + onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCallSync); + DismissPopupAction_serializer.write(onWillDismissTmpBuf_BufUBufArgsSerializer, value0); + InteropNativeModule._CallCallback(-2004166751, onWillDismissTmpBuf_BufUBufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufUBufArgsSerializer.length()); + onWillDismissTmpBuf_BufUBufArgsSerializer.release(); + return; + } + } else { + throw new Error("One of the branches for onWillDismissTmpBuf_ has to be chosen through deserialisation.") + } + onWillDismissTmpBuf = (onWillDismissTmpBuf_ as boolean | ((value0: DismissPopupAction) => void)) + } + const onWillDismissTmpResult : boolean | ((value0: DismissPopupAction) => void) | undefined = onWillDismissTmpBuf + const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let enableHoverModeTmpBuf : boolean | undefined + if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + enableHoverModeTmpBuf = valueDeserializer.readBoolean() + } + const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf + const followTransformOfTargetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let followTransformOfTargetTmpBuf : boolean | undefined + if ((followTransformOfTargetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + followTransformOfTargetTmpBuf = valueDeserializer.readBoolean() + } + const followTransformOfTargetTmpResult : boolean | undefined = followTransformOfTargetTmpBuf + const keyboardAvoidModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let keyboardAvoidModeTmpBuf : KeyboardAvoidMode | undefined + if ((keyboardAvoidModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + keyboardAvoidModeTmpBuf = TypeChecker.KeyboardAvoidMode_FromNumeric(valueDeserializer.readInt32()) + } + const keyboardAvoidModeTmpResult : KeyboardAvoidMode | undefined = keyboardAvoidModeTmpBuf + let value : PopupOptions = ({message: messageTmpResult, placement: placementTmpResult, primaryButton: primaryButtonTmpResult, secondaryButton: secondaryButtonTmpResult, onStateChange: onStateChangeTmpResult, arrowOffset: arrowOffsetTmpResult, showInSubWindow: showInSubWindowTmpResult, mask: maskTmpResult, messageOptions: messageOptionsTmpResult, targetSpace: targetSpaceTmpResult, enableArrow: enableArrowTmpResult, offset: offsetTmpResult, popupColor: popupColorTmpResult, autoCancel: autoCancelTmpResult, width: widthTmpResult, arrowPointPosition: arrowPointPositionTmpResult, arrowWidth: arrowWidthTmpResult, arrowHeight: arrowHeightTmpResult, radius: radiusTmpResult, shadow: shadowTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, transition: transitionTmpResult, onWillDismiss: onWillDismissTmpResult, enableHoverMode: enableHoverModeTmpResult, followTransformOfTarget: followTransformOfTargetTmpResult, keyboardAvoidMode: keyboardAvoidModeTmpResult} as PopupOptions) + return value + } +} +export interface AccessibilityHoverEvent { + type: AccessibilityHoverType + x: number + y: number + displayX: number + displayY: number + windowX: number + windowY: number +} +export class AccessibilityHoverEventInternal extends BaseEventInternal implements MaterializedBase,AccessibilityHoverEvent { + get type(): AccessibilityHoverType { + return this.getType() + } + set type(type: AccessibilityHoverType) { + this.setType(type) + } + get x(): number { + return this.getX() + } + set x(x: number) { + this.setX(x) + } + get y(): number { + return this.getY() + } + set y(y: number) { + this.setY(y) + } + get displayX(): number { + return this.getDisplayX() + } + set displayX(displayX: number) { + this.setDisplayX(displayX) + } + get displayY(): number { + return this.getDisplayY() + } + set displayY(displayY: number) { + this.setDisplayY(displayY) + } + get windowX(): number { + return this.getWindowX() + } + set windowX(windowX: number) { + this.setWindowX(windowX) + } + get windowY(): number { + return this.getWindowY() + } + set windowY(windowY: number) { + this.setWindowY(windowY) + } + constructor(peerPtr: KPointer) { + super(peerPtr) + } + constructor() { + this(AccessibilityHoverEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): AccessibilityHoverEventInternal { + return new AccessibilityHoverEventInternal(ptr) + } + private getType(): AccessibilityHoverType { + return this.getType_serialize() + } + private setType(type: AccessibilityHoverType): void { + const type_casted = type as (AccessibilityHoverType) + this.setType_serialize(type_casted) + return + } + private getX(): number { + return this.getX_serialize() + } + private setX(x: number): void { + const x_casted = x as (number) + this.setX_serialize(x_casted) + return + } + private getY(): number { + return this.getY_serialize() + } + private setY(y: number): void { + const y_casted = y as (number) + this.setY_serialize(y_casted) + return + } + private getDisplayX(): number { + return this.getDisplayX_serialize() + } + private setDisplayX(displayX: number): void { + const displayX_casted = displayX as (number) + this.setDisplayX_serialize(displayX_casted) + return + } + private getDisplayY(): number { + return this.getDisplayY_serialize() + } + private setDisplayY(displayY: number): void { + const displayY_casted = displayY as (number) + this.setDisplayY_serialize(displayY_casted) + return + } + private getWindowX(): number { + return this.getWindowX_serialize() + } + private setWindowX(windowX: number): void { + const windowX_casted = windowX as (number) + this.setWindowX_serialize(windowX_casted) + return + } + private getWindowY(): number { + return this.getWindowY_serialize() + } + private setWindowY(windowY: number): void { + const windowY_casted = windowY as (number) + this.setWindowY_serialize(windowY_casted) + return + } + private getType_serialize(): AccessibilityHoverType { + const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getType(this.peer!.ptr) + return TypeChecker.AccessibilityHoverType_FromNumeric(retval) + } + private setType_serialize(type: AccessibilityHoverType): void { + ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setType(this.peer!.ptr, TypeChecker.AccessibilityHoverType_ToNumeric(type)) + } + private getX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getX(this.peer!.ptr) + return retval + } + private setX_serialize(x: number): void { + ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setX(this.peer!.ptr, x) + } + private getY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getY(this.peer!.ptr) + return retval + } + private setY_serialize(y: number): void { + ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setY(this.peer!.ptr, y) + } + private getDisplayX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getDisplayX(this.peer!.ptr) + return retval + } + private setDisplayX_serialize(displayX: number): void { + ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setDisplayX(this.peer!.ptr, displayX) + } + private getDisplayY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getDisplayY(this.peer!.ptr) + return retval + } + private setDisplayY_serialize(displayY: number): void { + ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setDisplayY(this.peer!.ptr, displayY) + } + private getWindowX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getWindowX(this.peer!.ptr) + return retval + } + private setWindowX_serialize(windowX: number): void { + ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setWindowX(this.peer!.ptr, windowX) + } + private getWindowY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getWindowY(this.peer!.ptr) + return retval + } + private setWindowY_serialize(windowY: number): void { + ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setWindowY(this.peer!.ptr, windowY) + } +} +export interface AxisEvent { + action: AxisAction + displayX: number + displayY: number + windowX: number + windowY: number + x: number + y: number + scrollStep?: number | undefined + propagation: (() => void) + getHorizontalAxisValue(): number + getVerticalAxisValue(): number +} +export class AxisEventInternal extends BaseEventInternal implements MaterializedBase,AxisEvent { + get action(): AxisAction { + return this.getAction() + } + set action(action: AxisAction) { + this.setAction(action) + } + get displayX(): number { + return this.getDisplayX() + } + set displayX(displayX: number) { + this.setDisplayX(displayX) + } + get displayY(): number { + return this.getDisplayY() + } + set displayY(displayY: number) { + this.setDisplayY(displayY) + } + get windowX(): number { + return this.getWindowX() + } + set windowX(windowX: number) { + this.setWindowX(windowX) + } + get windowY(): number { + return this.getWindowY() + } + set windowY(windowY: number) { + this.setWindowY(windowY) + } + get x(): number { + return this.getX() + } + set x(x: number) { + this.setX(x) + } + get y(): number { + return this.getY() + } + set y(y: number) { + this.setY(y) + } + get scrollStep(): number | undefined { + return this.getScrollStep() + } + set scrollStep(scrollStep: number | undefined) { + const scrollStep_NonNull = (scrollStep as number) + this.setScrollStep(scrollStep_NonNull) + } + get propagation(): (() => void) { + return this.getPropagation() + } + set propagation(propagation: (() => void)) { + this.setPropagation(propagation) + } + constructor(peerPtr: KPointer) { + super(peerPtr) + } + constructor() { + this(AxisEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._AxisEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._AxisEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): AxisEventInternal { + return new AxisEventInternal(ptr) + } + public getHorizontalAxisValue(): number { + return this.getHorizontalAxisValue_serialize() + } + public getVerticalAxisValue(): number { + return this.getVerticalAxisValue_serialize() + } + private getAction(): AxisAction { + return this.getAction_serialize() + } + private setAction(action: AxisAction): void { + const action_casted = action as (AxisAction) + this.setAction_serialize(action_casted) + return + } + private getDisplayX(): number { + return this.getDisplayX_serialize() + } + private setDisplayX(displayX: number): void { + const displayX_casted = displayX as (number) + this.setDisplayX_serialize(displayX_casted) + return + } + private getDisplayY(): number { + return this.getDisplayY_serialize() + } + private setDisplayY(displayY: number): void { + const displayY_casted = displayY as (number) + this.setDisplayY_serialize(displayY_casted) + return + } + private getWindowX(): number { + return this.getWindowX_serialize() + } + private setWindowX(windowX: number): void { + const windowX_casted = windowX as (number) + this.setWindowX_serialize(windowX_casted) + return + } + private getWindowY(): number { + return this.getWindowY_serialize() + } + private setWindowY(windowY: number): void { + const windowY_casted = windowY as (number) + this.setWindowY_serialize(windowY_casted) + return + } + private getX(): number { + return this.getX_serialize() + } + private setX(x: number): void { + const x_casted = x as (number) + this.setX_serialize(x_casted) + return + } + private getY(): number { + return this.getY_serialize() + } + private setY(y: number): void { + const y_casted = y as (number) + this.setY_serialize(y_casted) + return + } + private getScrollStep(): number | undefined { + return this.getScrollStep_serialize() + } + private setScrollStep(scrollStep: number | undefined): void { + const scrollStep_casted = scrollStep as (number | undefined) + this.setScrollStep_serialize(scrollStep_casted) + return + } + private getPropagation(): (() => void) { + return this.getPropagation_serialize() + } + private setPropagation(propagation: (() => void)): void { + const propagation_casted = propagation as ((() => void)) + this.setPropagation_serialize(propagation_casted) + return + } + private getHorizontalAxisValue_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getHorizontalAxisValue(this.peer!.ptr) + return retval + } + private getVerticalAxisValue_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getVerticalAxisValue(this.peer!.ptr) + return retval + } + private getAction_serialize(): AxisAction { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getAction(this.peer!.ptr) + return TypeChecker.AxisAction_FromNumeric(retval) + } + private setAction_serialize(action: AxisAction): void { + ArkUIGeneratedNativeModule._AxisEvent_setAction(this.peer!.ptr, TypeChecker.AxisAction_ToNumeric(action)) + } + private getDisplayX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getDisplayX(this.peer!.ptr) + return retval + } + private setDisplayX_serialize(displayX: number): void { + ArkUIGeneratedNativeModule._AxisEvent_setDisplayX(this.peer!.ptr, displayX) + } + private getDisplayY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getDisplayY(this.peer!.ptr) + return retval + } + private setDisplayY_serialize(displayY: number): void { + ArkUIGeneratedNativeModule._AxisEvent_setDisplayY(this.peer!.ptr, displayY) + } + private getWindowX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getWindowX(this.peer!.ptr) + return retval + } + private setWindowX_serialize(windowX: number): void { + ArkUIGeneratedNativeModule._AxisEvent_setWindowX(this.peer!.ptr, windowX) + } + private getWindowY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getWindowY(this.peer!.ptr) + return retval + } + private setWindowY_serialize(windowY: number): void { + ArkUIGeneratedNativeModule._AxisEvent_setWindowY(this.peer!.ptr, windowY) + } + private getX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getX(this.peer!.ptr) + return retval + } + private setX_serialize(x: number): void { + ArkUIGeneratedNativeModule._AxisEvent_setX(this.peer!.ptr, x) + } + private getY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getY(this.peer!.ptr) + return retval + } + private setY_serialize(y: number): void { + ArkUIGeneratedNativeModule._AxisEvent_setY(this.peer!.ptr, y) + } + private getScrollStep_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getScrollStep(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setScrollStep_serialize(scrollStep: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (scrollStep !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const scrollStepTmpValue = scrollStep! + thisSerializer.writeNumber(scrollStepTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AxisEvent_setScrollStep(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._AxisEvent_getPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setPropagation_serialize(propagation: (() => void)): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(propagation) + ArkUIGeneratedNativeModule._AxisEvent_setPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface ClickEvent { + displayX: number + displayY: number + windowX: number + windowY: number + x: number + y: number + hand?: InteractionHand | undefined + preventDefault: (() => void) +} +export class ClickEventInternal extends BaseEventInternal implements MaterializedBase,ClickEvent { + get displayX(): number { + return this.getDisplayX() + } + set displayX(displayX: number) { + this.setDisplayX(displayX) + } + get displayY(): number { + return this.getDisplayY() + } + set displayY(displayY: number) { + this.setDisplayY(displayY) + } + get windowX(): number { + return this.getWindowX() + } + set windowX(windowX: number) { + this.setWindowX(windowX) + } + get windowY(): number { + return this.getWindowY() + } + set windowY(windowY: number) { + this.setWindowY(windowY) + } + get x(): number { + return this.getX() + } + set x(x: number) { + this.setX(x) + } + get y(): number { + return this.getY() + } + set y(y: number) { + this.setY(y) + } + get hand(): InteractionHand | undefined { + return this.getHand() + } + set hand(hand: InteractionHand | undefined) { + const hand_NonNull = (hand as InteractionHand) + this.setHand(hand_NonNull) + } + get preventDefault(): (() => void) { + return this.getPreventDefault() + } + set preventDefault(preventDefault: (() => void)) { + this.setPreventDefault(preventDefault) + } + constructor(peerPtr: KPointer) { + super(peerPtr) + } + constructor() { + this(ClickEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._ClickEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ClickEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): ClickEventInternal { + return new ClickEventInternal(ptr) + } + private getDisplayX(): number { + return this.getDisplayX_serialize() + } + private setDisplayX(displayX: number): void { + const displayX_casted = displayX as (number) + this.setDisplayX_serialize(displayX_casted) + return + } + private getDisplayY(): number { + return this.getDisplayY_serialize() + } + private setDisplayY(displayY: number): void { + const displayY_casted = displayY as (number) + this.setDisplayY_serialize(displayY_casted) + return + } + private getWindowX(): number { + return this.getWindowX_serialize() + } + private setWindowX(windowX: number): void { + const windowX_casted = windowX as (number) + this.setWindowX_serialize(windowX_casted) + return + } + private getWindowY(): number { + return this.getWindowY_serialize() + } + private setWindowY(windowY: number): void { + const windowY_casted = windowY as (number) + this.setWindowY_serialize(windowY_casted) + return + } + private getX(): number { + return this.getX_serialize() + } + private setX(x: number): void { + const x_casted = x as (number) + this.setX_serialize(x_casted) + return + } + private getY(): number { + return this.getY_serialize() + } + private setY(y: number): void { + const y_casted = y as (number) + this.setY_serialize(y_casted) + return + } + private getHand(): InteractionHand | undefined { + return this.getHand_serialize() + } + private setHand(hand: InteractionHand | undefined): void { + const hand_casted = hand as (InteractionHand | undefined) + this.setHand_serialize(hand_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) + return + } + private getDisplayX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ClickEvent_getDisplayX(this.peer!.ptr) + return retval + } + private setDisplayX_serialize(displayX: number): void { + ArkUIGeneratedNativeModule._ClickEvent_setDisplayX(this.peer!.ptr, displayX) + } + private getDisplayY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ClickEvent_getDisplayY(this.peer!.ptr) + return retval + } + private setDisplayY_serialize(displayY: number): void { + ArkUIGeneratedNativeModule._ClickEvent_setDisplayY(this.peer!.ptr, displayY) + } + private getWindowX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ClickEvent_getWindowX(this.peer!.ptr) + return retval + } + private setWindowX_serialize(windowX: number): void { + ArkUIGeneratedNativeModule._ClickEvent_setWindowX(this.peer!.ptr, windowX) + } + private getWindowY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ClickEvent_getWindowY(this.peer!.ptr) + return retval + } + private setWindowY_serialize(windowY: number): void { + ArkUIGeneratedNativeModule._ClickEvent_setWindowY(this.peer!.ptr, windowY) + } + private getX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ClickEvent_getX(this.peer!.ptr) + return retval + } + private setX_serialize(x: number): void { + ArkUIGeneratedNativeModule._ClickEvent_setX(this.peer!.ptr, x) + } + private getY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ClickEvent_getY(this.peer!.ptr) + return retval + } + private setY_serialize(y: number): void { + ArkUIGeneratedNativeModule._ClickEvent_setY(this.peer!.ptr, y) + } + private getHand_serialize(): InteractionHand | undefined { + const retval = ArkUIGeneratedNativeModule._ClickEvent_getHand(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : InteractionHand | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = TypeChecker.InteractionHand_FromNumeric(retvalDeserializer.readInt32()) + } + const returnResult : InteractionHand | undefined = buffer + return returnResult + } + private setHand_serialize(hand: InteractionHand | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (hand !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const handTmpValue = (hand as InteractionHand) + thisSerializer.writeInt32(TypeChecker.InteractionHand_ToNumeric(handTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._ClickEvent_setHand(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + 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 : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(preventDefault) + ArkUIGeneratedNativeModule._ClickEvent_setPreventDefault(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface FocusAxisEvent { + axisMap: Map + stopPropagation: (() => void) +} +export class FocusAxisEventInternal extends BaseEventInternal implements MaterializedBase,FocusAxisEvent { + get axisMap(): Map { + return this.getAxisMap() + } + set axisMap(axisMap: Map) { + this.setAxisMap(axisMap) + } + get stopPropagation(): (() => void) { + return this.getStopPropagation() + } + set stopPropagation(stopPropagation: (() => void)) { + this.setStopPropagation(stopPropagation) + } + constructor(peerPtr: KPointer) { + super(peerPtr) + } + constructor() { + this(FocusAxisEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._FocusAxisEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._FocusAxisEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): FocusAxisEventInternal { + return new FocusAxisEventInternal(ptr) + } + private getAxisMap(): Map { + return this.getAxisMap_serialize() + } + private setAxisMap(axisMap: Map): void { + const axisMap_casted = axisMap as (Map) + this.setAxisMap_serialize(axisMap_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 getAxisMap_serialize(): Map { + const retval = ArkUIGeneratedNativeModule._FocusAxisEvent_getAxisMap(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const bufferSizeVar : int32 = retvalDeserializer.readInt32() + let buffer : Map = new Map() + // TODO: TS map resize + for (let bufferIVar = 0; bufferIVar < bufferSizeVar; bufferIVar++) { + const bufferKeyVar : AxisModel = TypeChecker.AxisModel_FromNumeric(retvalDeserializer.readInt32()) + const bufferValueVar : number = (retvalDeserializer.readNumber() as number) + buffer.set(bufferKeyVar, bufferValueVar) + } + const returnResult : Map = buffer + return returnResult + } + private setAxisMap_serialize(axisMap: Map): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + thisSerializer.writeInt32((axisMap.size).toInt()) + for (const pair of axisMap) { + const axisMapKeyVar = pair[0] + const axisMapValueVar = pair[1] + thisSerializer.writeInt32(TypeChecker.AxisModel_ToNumeric(axisMapKeyVar)) + thisSerializer.writeNumber(axisMapValueVar) + } + ArkUIGeneratedNativeModule._FocusAxisEvent_setAxisMap(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getStopPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._FocusAxisEvent_getStopPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setStopPropagation_serialize(stopPropagation: (() => void)): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(stopPropagation) + ArkUIGeneratedNativeModule._FocusAxisEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface HoverEvent { + x?: number | undefined + y?: number | undefined + windowX?: number | undefined + windowY?: number | undefined + displayX?: number | undefined + displayY?: number | undefined + stopPropagation: (() => void) +} +export class HoverEventInternal extends BaseEventInternal implements MaterializedBase,HoverEvent { + get x(): number | undefined { + return this.getX() + } + set x(x: number | undefined) { + const x_NonNull = (x as number) + this.setX(x_NonNull) + } + get y(): number | undefined { + return this.getY() + } + set y(y: number | undefined) { + const y_NonNull = (y as number) + this.setY(y_NonNull) + } + get windowX(): number | undefined { + return this.getWindowX() + } + set windowX(windowX: number | undefined) { + const windowX_NonNull = (windowX as number) + this.setWindowX(windowX_NonNull) + } + get windowY(): number | undefined { + return this.getWindowY() + } + set windowY(windowY: number | undefined) { + const windowY_NonNull = (windowY as number) + this.setWindowY(windowY_NonNull) + } + get displayX(): number | undefined { + return this.getDisplayX() + } + set displayX(displayX: number | undefined) { + const displayX_NonNull = (displayX as number) + this.setDisplayX(displayX_NonNull) + } + get displayY(): number | undefined { + return this.getDisplayY() + } + set displayY(displayY: number | undefined) { + const displayY_NonNull = (displayY as number) + this.setDisplayY(displayY_NonNull) + } + get stopPropagation(): (() => void) { + return this.getStopPropagation() + } + set stopPropagation(stopPropagation: (() => void)) { + this.setStopPropagation(stopPropagation) + } + constructor(peerPtr: KPointer) { + super(peerPtr) + } + constructor() { + this(HoverEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._HoverEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._HoverEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): HoverEventInternal { + return new HoverEventInternal(ptr) + } + private getX(): number | undefined { + return this.getX_serialize() + } + private setX(x: number | undefined): void { + const x_casted = x as (number | undefined) + this.setX_serialize(x_casted) + return + } + private getY(): number | undefined { + return this.getY_serialize() + } + private setY(y: number | undefined): void { + const y_casted = y as (number | undefined) + this.setY_serialize(y_casted) + return + } + private getWindowX(): number | undefined { + return this.getWindowX_serialize() + } + private setWindowX(windowX: number | undefined): void { + const windowX_casted = windowX as (number | undefined) + this.setWindowX_serialize(windowX_casted) + return + } + private getWindowY(): number | undefined { + return this.getWindowY_serialize() + } + private setWindowY(windowY: number | undefined): void { + const windowY_casted = windowY as (number | undefined) + this.setWindowY_serialize(windowY_casted) + return + } + private getDisplayX(): number | undefined { + return this.getDisplayX_serialize() + } + private setDisplayX(displayX: number | undefined): void { + const displayX_casted = displayX as (number | undefined) + this.setDisplayX_serialize(displayX_casted) + return + } + private getDisplayY(): number | undefined { + return this.getDisplayY_serialize() + } + private setDisplayY(displayY: number | undefined): void { + const displayY_casted = displayY as (number | undefined) + this.setDisplayY_serialize(displayY_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 getX_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._HoverEvent_getX(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setX_serialize(x: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (x !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const xTmpValue = x! + thisSerializer.writeNumber(xTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._HoverEvent_setX(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getY_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._HoverEvent_getY(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setY_serialize(y: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (y !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const yTmpValue = y! + thisSerializer.writeNumber(yTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._HoverEvent_setY(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getWindowX_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._HoverEvent_getWindowX(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setWindowX_serialize(windowX: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (windowX !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const windowXTmpValue = windowX! + thisSerializer.writeNumber(windowXTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._HoverEvent_setWindowX(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getWindowY_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._HoverEvent_getWindowY(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setWindowY_serialize(windowY: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (windowY !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const windowYTmpValue = windowY! + thisSerializer.writeNumber(windowYTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._HoverEvent_setWindowY(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getDisplayX_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._HoverEvent_getDisplayX(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setDisplayX_serialize(displayX: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (displayX !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const displayXTmpValue = displayX! + thisSerializer.writeNumber(displayXTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._HoverEvent_setDisplayX(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getDisplayY_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._HoverEvent_getDisplayY(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setDisplayY_serialize(displayY: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (displayY !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const displayYTmpValue = displayY! + thisSerializer.writeNumber(displayYTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._HoverEvent_setDisplayY(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + 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 : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(stopPropagation) + ArkUIGeneratedNativeModule._HoverEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface MouseEvent { + button: MouseButton + action: MouseAction + displayX: number + displayY: number + windowX: number + windowY: number + x: number + y: number + stopPropagation: (() => void) + rawDeltaX?: number | undefined + rawDeltaY?: number | undefined + pressedButtons?: Array | undefined +} +export class MouseEventInternal extends BaseEventInternal implements MaterializedBase,MouseEvent { + get button(): MouseButton { + return this.getButton() + } + set button(button: MouseButton) { + this.setButton(button) + } + get action(): MouseAction { + return this.getAction() + } + set action(action: MouseAction) { + this.setAction(action) + } + get displayX(): number { + return this.getDisplayX() + } + set displayX(displayX: number) { + this.setDisplayX(displayX) + } + get displayY(): number { + return this.getDisplayY() + } + set displayY(displayY: number) { + this.setDisplayY(displayY) + } + get windowX(): number { + return this.getWindowX() + } + set windowX(windowX: number) { + this.setWindowX(windowX) + } + get windowY(): number { + return this.getWindowY() + } + set windowY(windowY: number) { + this.setWindowY(windowY) + } + get x(): number { + return this.getX() + } + set x(x: number) { + this.setX(x) + } + get y(): number { + return this.getY() + } + set y(y: number) { + this.setY(y) + } + get stopPropagation(): (() => void) { + return this.getStopPropagation() + } + set stopPropagation(stopPropagation: (() => void)) { + this.setStopPropagation(stopPropagation) + } + get rawDeltaX(): number | undefined { + return this.getRawDeltaX() + } + set rawDeltaX(rawDeltaX: number | undefined) { + const rawDeltaX_NonNull = (rawDeltaX as number) + this.setRawDeltaX(rawDeltaX_NonNull) + } + get rawDeltaY(): number | undefined { + return this.getRawDeltaY() + } + set rawDeltaY(rawDeltaY: number | undefined) { + const rawDeltaY_NonNull = (rawDeltaY as number) + this.setRawDeltaY(rawDeltaY_NonNull) + } + get pressedButtons(): Array | undefined { + return this.getPressedButtons() + } + set pressedButtons(pressedButtons: Array | undefined) { + const pressedButtons_NonNull = (pressedButtons as Array) + this.setPressedButtons(pressedButtons_NonNull) + } + constructor(peerPtr: KPointer) { + super(peerPtr) + } + constructor() { + this(MouseEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._MouseEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._MouseEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): MouseEventInternal { + return new MouseEventInternal(ptr) + } + private getButton(): MouseButton { + return this.getButton_serialize() + } + private setButton(button: MouseButton): void { + const button_casted = button as (MouseButton) + this.setButton_serialize(button_casted) + return + } + private getAction(): MouseAction { + return this.getAction_serialize() + } + private setAction(action: MouseAction): void { + const action_casted = action as (MouseAction) + this.setAction_serialize(action_casted) + return + } + private getDisplayX(): number { + return this.getDisplayX_serialize() + } + private setDisplayX(displayX: number): void { + const displayX_casted = displayX as (number) + this.setDisplayX_serialize(displayX_casted) + return + } + private getDisplayY(): number { + return this.getDisplayY_serialize() + } + private setDisplayY(displayY: number): void { + const displayY_casted = displayY as (number) + this.setDisplayY_serialize(displayY_casted) + return + } + private getWindowX(): number { + return this.getWindowX_serialize() + } + private setWindowX(windowX: number): void { + const windowX_casted = windowX as (number) + this.setWindowX_serialize(windowX_casted) + return + } + private getWindowY(): number { + return this.getWindowY_serialize() + } + private setWindowY(windowY: number): void { + const windowY_casted = windowY as (number) + this.setWindowY_serialize(windowY_casted) + return + } + private getX(): number { + return this.getX_serialize() + } + private setX(x: number): void { + const x_casted = x as (number) + this.setX_serialize(x_casted) + return + } + private getY(): number { + return this.getY_serialize() + } + private setY(y: number): void { + const y_casted = y as (number) + 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) + return + } + private getRawDeltaX(): number | undefined { + return this.getRawDeltaX_serialize() + } + private setRawDeltaX(rawDeltaX: number | undefined): void { + const rawDeltaX_casted = rawDeltaX as (number | undefined) + this.setRawDeltaX_serialize(rawDeltaX_casted) + return + } + private getRawDeltaY(): number | undefined { + return this.getRawDeltaY_serialize() + } + private setRawDeltaY(rawDeltaY: number | undefined): void { + const rawDeltaY_casted = rawDeltaY as (number | undefined) + this.setRawDeltaY_serialize(rawDeltaY_casted) + return + } + private getPressedButtons(): Array | undefined { + return this.getPressedButtons_serialize() + } + private setPressedButtons(pressedButtons: Array | undefined): void { + const pressedButtons_casted = pressedButtons as (Array | undefined) + this.setPressedButtons_serialize(pressedButtons_casted) + return + } + private getButton_serialize(): MouseButton { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getButton(this.peer!.ptr) + return TypeChecker.MouseButton_FromNumeric(retval) + } + private setButton_serialize(button: MouseButton): void { + ArkUIGeneratedNativeModule._MouseEvent_setButton(this.peer!.ptr, TypeChecker.MouseButton_ToNumeric(button)) + } + private getAction_serialize(): MouseAction { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getAction(this.peer!.ptr) + return TypeChecker.MouseAction_FromNumeric(retval) + } + private setAction_serialize(action: MouseAction): void { + ArkUIGeneratedNativeModule._MouseEvent_setAction(this.peer!.ptr, TypeChecker.MouseAction_ToNumeric(action)) + } + private getDisplayX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getDisplayX(this.peer!.ptr) + return retval + } + private setDisplayX_serialize(displayX: number): void { + ArkUIGeneratedNativeModule._MouseEvent_setDisplayX(this.peer!.ptr, displayX) + } + private getDisplayY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getDisplayY(this.peer!.ptr) + return retval + } + private setDisplayY_serialize(displayY: number): void { + ArkUIGeneratedNativeModule._MouseEvent_setDisplayY(this.peer!.ptr, displayY) + } + private getWindowX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getWindowX(this.peer!.ptr) + return retval + } + private setWindowX_serialize(windowX: number): void { + ArkUIGeneratedNativeModule._MouseEvent_setWindowX(this.peer!.ptr, windowX) + } + private getWindowY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getWindowY(this.peer!.ptr) + return retval + } + private setWindowY_serialize(windowY: number): void { + ArkUIGeneratedNativeModule._MouseEvent_setWindowY(this.peer!.ptr, windowY) + } + private getX_serialize(): number { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getX(this.peer!.ptr) + return retval + } + private setX_serialize(x: number): void { + ArkUIGeneratedNativeModule._MouseEvent_setX(this.peer!.ptr, x) + } + private getY_serialize(): number { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getY(this.peer!.ptr) + return retval + } + 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 : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(stopPropagation) + ArkUIGeneratedNativeModule._MouseEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getRawDeltaX_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getRawDeltaX(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setRawDeltaX_serialize(rawDeltaX: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (rawDeltaX !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const rawDeltaXTmpValue = rawDeltaX! + thisSerializer.writeNumber(rawDeltaXTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._MouseEvent_setRawDeltaX(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getRawDeltaY_serialize(): number | undefined { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getRawDeltaY(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : number | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + buffer = (retvalDeserializer.readNumber() as number) + } + const returnResult : number | undefined = buffer + return returnResult + } + private setRawDeltaY_serialize(rawDeltaY: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (rawDeltaY !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const rawDeltaYTmpValue = rawDeltaY! + thisSerializer.writeNumber(rawDeltaYTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._MouseEvent_setRawDeltaY(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getPressedButtons_serialize(): Array | undefined { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getPressedButtons(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const buffer_runtimeType = retvalDeserializer.readInt8().toInt() + let buffer : Array | undefined + if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { + const buffer_Length : int32 = retvalDeserializer.readInt32() + let buffer_ : Array = new Array(buffer_Length) + for (let buffer_BufCounterI = 0; buffer_BufCounterI < buffer_Length; buffer_BufCounterI++) { + buffer_[buffer_BufCounterI] = TypeChecker.MouseButton_FromNumeric(retvalDeserializer.readInt32()) + } + buffer = buffer_ + } + const returnResult : Array | undefined = buffer + return returnResult + } + private setPressedButtons_serialize(pressedButtons: Array | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (pressedButtons !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const pressedButtonsTmpValue = pressedButtons! + thisSerializer.writeInt32((pressedButtonsTmpValue.length).toInt()) + for (let pressedButtonsTmpValueCounterI = 0; pressedButtonsTmpValueCounterI < pressedButtonsTmpValue.length; pressedButtonsTmpValueCounterI++) { + const pressedButtonsTmpValueTmpElement : MouseButton = pressedButtonsTmpValue[pressedButtonsTmpValueCounterI] + thisSerializer.writeInt32(TypeChecker.MouseButton_ToNumeric(pressedButtonsTmpValueTmpElement)) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._MouseEvent_setPressedButtons(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface TouchEvent { + type: TouchType + touches: Array + changedTouches: Array + stopPropagation: (() => void) + preventDefault: (() => void) + getHistoricalPoints(): Array +} +export class TouchEventInternal extends BaseEventInternal implements MaterializedBase,TouchEvent { + get type(): TouchType { + return this.getType() + } + set type(type: TouchType) { + this.setType(type) + } + get touches(): Array { + return this.getTouches() + } + set touches(touches: Array) { + this.setTouches(touches) + } + get changedTouches(): Array { + return this.getChangedTouches() + } + set changedTouches(changedTouches: Array) { + this.setChangedTouches(changedTouches) + } + get stopPropagation(): (() => void) { + return this.getStopPropagation() + } + set stopPropagation(stopPropagation: (() => void)) { + this.setStopPropagation(stopPropagation) + } + get preventDefault(): (() => void) { + return this.getPreventDefault() + } + set preventDefault(preventDefault: (() => void)) { + this.setPreventDefault(preventDefault) + } + constructor(peerPtr: KPointer) { + super(peerPtr) + } + constructor() { + this(TouchEventInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._TouchEvent_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._TouchEvent_getFinalizer() + } + public static fromPtr(ptr: KPointer): TouchEventInternal { + return new TouchEventInternal(ptr) + } + public getHistoricalPoints(): Array { + return this.getHistoricalPoints_serialize() + } + private getType(): TouchType { + return this.getType_serialize() + } + private setType(type: TouchType): void { + const type_casted = type as (TouchType) + this.setType_serialize(type_casted) + return + } + private getTouches(): Array { + return this.getTouches_serialize() + } + private setTouches(touches: Array): void { + const touches_casted = touches as (Array) + this.setTouches_serialize(touches_casted) + return + } + private getChangedTouches(): Array { + return this.getChangedTouches_serialize() + } + private setChangedTouches(changedTouches: Array): void { + const changedTouches_casted = changedTouches as (Array) + this.setChangedTouches_serialize(changedTouches_casted) + 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) + return + } + private getHistoricalPoints_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getHistoricalPoints(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const bufferLength : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(bufferLength) + for (let bufferBufCounterI = 0; bufferBufCounterI < bufferLength; bufferBufCounterI++) { + buffer[bufferBufCounterI] = HistoricalPoint_serializer.read(retvalDeserializer) + } + const returnResult : Array = buffer + return returnResult + } + private getType_serialize(): TouchType { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getType(this.peer!.ptr) + return TypeChecker.TouchType_FromNumeric(retval) + } + private setType_serialize(type: TouchType): void { + ArkUIGeneratedNativeModule._TouchEvent_setType(this.peer!.ptr, TypeChecker.TouchType_ToNumeric(type)) + } + private getTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getTouches(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const bufferLength : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(bufferLength) + for (let bufferBufCounterI = 0; bufferBufCounterI < bufferLength; bufferBufCounterI++) { + buffer[bufferBufCounterI] = TouchObject_serializer.read(retvalDeserializer) + } + const returnResult : Array = buffer + return returnResult + } + private setTouches_serialize(touches: Array): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + thisSerializer.writeInt32((touches.length).toInt()) + for (let touchesCounterI = 0; touchesCounterI < touches.length; touchesCounterI++) { + const touchesTmpElement : TouchObject = touches[touchesCounterI] + TouchObject_serializer.write(thisSerializer, touchesTmpElement) + } + ArkUIGeneratedNativeModule._TouchEvent_setTouches(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private getChangedTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getChangedTouches(this.peer!.ptr) + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const bufferLength : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(bufferLength) + for (let bufferBufCounterI = 0; bufferBufCounterI < bufferLength; bufferBufCounterI++) { + buffer[bufferBufCounterI] = TouchObject_serializer.read(retvalDeserializer) + } + const returnResult : Array = buffer + return returnResult + } + private setChangedTouches_serialize(changedTouches: Array): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + thisSerializer.writeInt32((changedTouches.length).toInt()) + for (let changedTouchesCounterI = 0; changedTouchesCounterI < changedTouches.length; changedTouchesCounterI++) { + const changedTouchesTmpElement : TouchObject = changedTouches[changedTouchesCounterI] + TouchObject_serializer.write(thisSerializer, changedTouchesTmpElement) + } + ArkUIGeneratedNativeModule._TouchEvent_setChangedTouches(this.peer!.ptr, thisSerializer.asBuffer(), 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 : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(stopPropagation) + ArkUIGeneratedNativeModule._TouchEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), 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 : SerializerBase = SerializerBase.hold() + thisSerializer.holdAndWriteCallback(preventDefault) + ArkUIGeneratedNativeModule._TouchEvent_setPreventDefault(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export namespace cursorControl { + export function setCursor(value: pointer.PointerStyle): void { + GlobalScope.cursorControl_setCursor(value) + } + export function restoreDefault(): void { + GlobalScope.cursorControl_restoreDefault() + } +} +export namespace focusControl { + export function requestFocus(value: string): boolean { + return GlobalScope.focusControl_requestFocus(value) + } +} diff --git a/arkoala-arkts/arkui/src/component/containerSpan.ets b/arkoala-arkts/arkui/generated/component/containerSpan.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/containerSpan.ets rename to arkoala-arkts/arkui/generated/component/containerSpan.ets index 45ea27a119ea1b9c62ecd17dcd7995c9c8fad57c..24eef898b185d5f255eb10baa300cfb5c304ff74 100644 --- a/arkoala-arkts/arkui/src/component/containerSpan.ets +++ b/arkoala-arkts/arkui/generated/component/containerSpan.ets @@ -22,13 +22,13 @@ import { int32, int64, float32 } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkContainerSpanPeer extends PeerNode { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/contentSlot.ets b/arkoala-arkts/arkui/generated/component/contentSlot.ets similarity index 95% rename from arkoala-arkts/arkui/src/component/contentSlot.ets rename to arkoala-arkts/arkui/generated/component/contentSlot.ets index 90dedfd4b90541fa8ff36cdda9265dd26e57c9ea..8e4a15c073757583bfc29c9819a8889c996f5c80 100644 --- a/arkoala-arkts/arkui/src/component/contentSlot.ets +++ b/arkoala-arkts/arkui/generated/component/contentSlot.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Content } from "./../generated/ohos.arkui.node" +import { Content } from "./../framework/ohos.arkui.node" export interface ContentSlotAttribute { } export type ContentSlotInterface = (content: Content) => ContentSlotAttribute; diff --git a/arkoala-arkts/arkui/src/component/counter.ets b/arkoala-arkts/arkui/generated/component/counter.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/counter.ets rename to arkoala-arkts/arkui/generated/component/counter.ets index 859a7118582f2975f4edf971797a0c5f3871294d..e6a472702e6509996c1827f75c8fb736f5980345 100644 --- a/arkoala-arkts/arkui/src/component/counter.ets +++ b/arkoala-arkts/arkui/generated/component/counter.ets @@ -23,13 +23,13 @@ import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkCounterPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/generated/component/customComponent.ets b/arkoala-arkts/arkui/generated/component/customComponent.ets new file mode 100644 index 0000000000000000000000000000000000000000..ad0908e48f1db4190e504c94b91a85ce57c01e09 --- /dev/null +++ b/arkoala-arkts/arkui/generated/component/customComponent.ets @@ -0,0 +1,188 @@ +/* + * 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 { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" +import { GeometryInfo_serializer, Layoutable_serializer, Measurable_serializer, SizeResult_serializer, GeometryInfo, Layoutable, LayoutableInternal, Measurable, MeasurableInternal, SizeResult } from "./common" +import { ConstraintSizeOptions_serializer, ConstraintSizeOptions } from "./units" +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { unsafeCast, int32, int64, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./../CallbackTransformer" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { ComponentBuilder } from "@koalaui/builderLambda" +export interface LayoutCallback { + onPlaceChildren(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void + onMeasureSize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult +} +export class LayoutCallbackInternal implements MaterializedBase,LayoutCallback { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, LayoutCallbackInternal.getFinalizer()) + } + constructor() { + this(LayoutCallbackInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._LayoutCallback_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._LayoutCallback_getFinalizer() + } + public static fromPtr(ptr: KPointer): LayoutCallbackInternal { + return new LayoutCallbackInternal(ptr) + } + public onPlaceChildren(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void { + const selfLayoutInfo_casted = selfLayoutInfo as (GeometryInfo) + const children_casted = children as (Array) + const constraint_casted = constraint as (ConstraintSizeOptions) + this.onPlaceChildren_serialize(selfLayoutInfo_casted, children_casted, constraint_casted) + return + } + public onMeasureSize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult { + const selfLayoutInfo_casted = selfLayoutInfo as (GeometryInfo) + const children_casted = children as (Array) + const constraint_casted = constraint as (ConstraintSizeOptions) + return this.onMeasureSize_serialize(selfLayoutInfo_casted, children_casted, constraint_casted) + } + private onPlaceChildren_serialize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + GeometryInfo_serializer.write(thisSerializer, selfLayoutInfo) + thisSerializer.writeInt32((children.length).toInt()) + for (let childrenCounterI = 0; childrenCounterI < children.length; childrenCounterI++) { + const childrenTmpElement : Layoutable = children[childrenCounterI] + Layoutable_serializer.write(thisSerializer, childrenTmpElement) + } + ConstraintSizeOptions_serializer.write(thisSerializer, constraint) + ArkUIGeneratedNativeModule._LayoutCallback_onPlaceChildren(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private onMeasureSize_serialize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult { + const thisSerializer : SerializerBase = SerializerBase.hold() + GeometryInfo_serializer.write(thisSerializer, selfLayoutInfo) + thisSerializer.writeInt32((children.length).toInt()) + for (let childrenCounterI = 0; childrenCounterI < children.length; childrenCounterI++) { + const childrenTmpElement : Measurable = children[childrenCounterI] + Measurable_serializer.write(thisSerializer, childrenTmpElement) + } + ConstraintSizeOptions_serializer.write(thisSerializer, constraint) + const retval = ArkUIGeneratedNativeModule._LayoutCallback_onMeasureSize(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) + const returnResult : SizeResult = SizeResult_serializer.read(retvalDeserializer) + return returnResult + } +} +export interface PageLifeCycle { + onPageShow(): void + onPageHide(): void + onBackPress(): boolean + pageTransition(): void + onNewParam(param: Object | undefined): void +} +export class PageLifeCycleInternal implements MaterializedBase,PageLifeCycle { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, PageLifeCycleInternal.getFinalizer()) + } + constructor() { + this(PageLifeCycleInternal.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._PageLifeCycle_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._PageLifeCycle_getFinalizer() + } + public static fromPtr(ptr: KPointer): PageLifeCycleInternal { + return new PageLifeCycleInternal(ptr) + } + public onPageShow(): void { + this.onPageShow_serialize() + return + } + public onPageHide(): void { + this.onPageHide_serialize() + return + } + public onBackPress(): boolean { + return this.onBackPress_serialize() + } + public pageTransition(): void { + this.pageTransition_serialize() + return + } + public onNewParam(param: Object | undefined): void { + const param_casted = param as (Object | undefined) + this.onNewParam_serialize(param_casted) + return + } + private onPageShow_serialize(): void { + ArkUIGeneratedNativeModule._PageLifeCycle_onPageShow(this.peer!.ptr) + } + private onPageHide_serialize(): void { + ArkUIGeneratedNativeModule._PageLifeCycle_onPageHide(this.peer!.ptr) + } + private onBackPress_serialize(): boolean { + const retval = ArkUIGeneratedNativeModule._PageLifeCycle_onBackPress(this.peer!.ptr) + return retval + } + private pageTransition_serialize(): void { + ArkUIGeneratedNativeModule._PageLifeCycle_pageTransition(this.peer!.ptr) + } + private onNewParam_serialize(param: Object | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (param !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const paramTmpValue = param! + thisSerializer.holdAndWriteObject(paramTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._PageLifeCycle_onNewParam(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export class LayoutCallback_serializer { + public static write(buffer: SerializerBase, value: LayoutCallback): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): LayoutCallback { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return LayoutCallbackInternal.fromPtr(ptr) + } +} +export class PageLifeCycle_serializer { + public static write(buffer: SerializerBase, value: PageLifeCycle): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): PageLifeCycle { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return PageLifeCycleInternal.fromPtr(ptr) + } +} diff --git a/arkoala-arkts/arkui/src/component/customDialogController.ets b/arkoala-arkts/arkui/generated/component/customDialogController.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/customDialogController.ets rename to arkoala-arkts/arkui/generated/component/customDialogController.ets index a046e994ddc1834b807ba827db206cae9cb12123..b9daf3800b0df0ceea4a76b710e98b200c99c6ab 100644 --- a/arkoala-arkts/arkui/src/component/customDialogController.ets +++ b/arkoala-arkts/arkui/generated/component/customDialogController.ets @@ -28,10 +28,10 @@ import { ExtendableComponent, ExtendableComponent_serializer } from "./extendabl import { DialogAlignment } from "./alertDialog" import { Offset, ResourceColor, Dimension, BorderRadiuses, EdgeWidths, EdgeColors, EdgeStyles, Offset_serializer, BorderRadiuses_serializer, EdgeWidths_serializer, EdgeColors_serializer, EdgeStyles_serializer } from "./units" import { Color, BorderStyle } from "./enums" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { Rectangle, AnimateParam, ShadowOptions, ShadowStyle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, KeyboardAvoidMode, HoverModeAreaType, Rectangle_serializer, AnimateParam_serializer, ShadowOptions_serializer, BackgroundBlurStyleOptions_serializer, BackgroundEffectOptions_serializer } from "./common" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" -import { LevelMode, ImmersiveMode, LevelOrder, LevelOrder_serializer } from "./../generated/ohos.promptAction" +import { LengthMetrics, LengthMetrics_serializer } from "./../framework/arkui.Graphics" +import { LevelMode, ImmersiveMode, LevelOrder, LevelOrder_serializer } from "./../framework/ohos.promptAction" export class CustomDialogControllerInternal { public static fromPtr(ptr: KPointer): CustomDialogController { return new CustomDialogController(false, ptr) diff --git a/arkoala-arkts/arkui/src/component/dataPanel.ets b/arkoala-arkts/arkui/generated/component/dataPanel.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/dataPanel.ets rename to arkoala-arkts/arkui/generated/component/dataPanel.ets index fcccb26ee3542588965e45c9ad7b774afeadf8fb..3ed0503ae493491406f2d45aeb258b94ae2893d9 100644 --- a/arkoala-arkts/arkui/src/component/dataPanel.ets +++ b/arkoala-arkts/arkui/generated/component/dataPanel.ets @@ -20,18 +20,18 @@ import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, MultiShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor, Length } from "./units" import { Color } from "./enums" -import { ContentModifier, AttributeModifier, hookDataPanelContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookDataPanelContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class LinearGradientInternal { public static fromPtr(ptr: KPointer): LinearGradient { return new LinearGradient(false, ptr) diff --git a/arkoala-arkts/arkui/src/component/datePicker.ets b/arkoala-arkts/arkui/generated/component/datePicker.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/datePicker.ets rename to arkoala-arkts/arkui/generated/component/datePicker.ets index 44d6f3e96386c00e137ad5e6efae9f6d5ee83209..d1d85d27415317d07bece67dc72f456eadeab1b1 100644 --- a/arkoala-arkts/arkui/src/component/datePicker.ets +++ b/arkoala-arkts/arkui/generated/component/datePicker.ets @@ -24,16 +24,16 @@ import { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTe import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { CrownSensitivity, Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, Offset, VoidCallback } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { DialogAlignment } from "./alertDialog" -import { intl } from "./../generated/ohos.intl" +import { intl } from "./../framework/ohos.intl" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class DatePickerDialogInternal { public static fromPtr(ptr: KPointer): DatePickerDialog { return new DatePickerDialog(ptr) diff --git a/arkoala-arkts/arkui/src/component/divider.ets b/arkoala-arkts/arkui/generated/component/divider.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/divider.ets rename to arkoala-arkts/arkui/generated/component/divider.ets index 3eef6f88f63bd79f498fa5d2c2581314d5bfaf3b..6e62dfee7cb1c21704d4bb9358ca57aba8dbe12d 100644 --- a/arkoala-arkts/arkui/src/component/divider.ets +++ b/arkoala-arkts/arkui/generated/component/divider.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32 } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -25,13 +25,13 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor } from "./units" import { Color, LineCapStyle } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkDividerPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/effectComponent.ets b/arkoala-arkts/arkui/generated/component/effectComponent.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/effectComponent.ets rename to arkoala-arkts/arkui/generated/component/effectComponent.ets index 0451f29c8a0942001c36cbd26f9ca5d4b4559adb..7be8e7fe30535cde371abde825a15b4dd673516b 100644 --- a/arkoala-arkts/arkui/src/component/effectComponent.ets +++ b/arkoala-arkts/arkui/generated/component/effectComponent.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkEffectComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/ellipse.ets b/arkoala-arkts/arkui/generated/component/ellipse.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/ellipse.ets rename to arkoala-arkts/arkui/generated/component/ellipse.ets index c1d5021729772958cc9cf2227e7b262ef43ee40b..6fa0d45a7b1cad8f3b0ea7f90be22cfb302cea12 100644 --- a/arkoala-arkts/arkui/src/component/ellipse.ets +++ b/arkoala-arkts/arkui/generated/component/ellipse.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonShapeMethodModifier, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkEllipsePeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/embeddedComponent.ets b/arkoala-arkts/arkui/generated/component/embeddedComponent.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/embeddedComponent.ets rename to arkoala-arkts/arkui/generated/component/embeddedComponent.ets index 1c5257bd0a02fef24a63e814b79ef80492c7a7ba..47666d0ff3490b59b289f714ad6ad92936cb141e 100644 --- a/arkoala-arkts/arkui/src/component/embeddedComponent.ets +++ b/arkoala-arkts/arkui/generated/component/embeddedComponent.ets @@ -17,21 +17,21 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer } from "@koalaui/interop" -import { Want_serializer, Want } from "./../generated/ohos.app.ability.Want" +import { Want_serializer, Want } from "./../framework/ohos.app.ability.Want" import { int32, int64, float32 } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, TerminationInfo, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { ErrorCallback, BusinessError } from "./../generated/ohos.base" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ErrorCallback, BusinessError } from "./../framework/ohos.base" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { EmbeddedType } from "./enums" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkEmbeddedComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/enums.ets b/arkoala-arkts/arkui/generated/component/enums.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/enums.ets rename to arkoala-arkts/arkui/generated/component/enums.ets index 64e20bb59fbcf97e4e8dc56c97b75df7a0ce2b15..5697b4867679ef3d95c137f351c057d69f8cba4f 100644 --- a/arkoala-arkts/arkui/src/component/enums.ets +++ b/arkoala-arkts/arkui/generated/component/enums.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { curves } from "./../generated/ohos.curves" +import { curves } from "./../framework/ohos.curves" export enum CheckBoxShape { CIRCLE = 0, ROUNDED_SQUARE = 1 diff --git a/arkoala-arkts/arkui/src/component/extendableComponent.ets b/arkoala-arkts/arkui/generated/component/extendableComponent.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/extendableComponent.ets rename to arkoala-arkts/arkui/generated/component/extendableComponent.ets index 340471558bf8a6d9dfbfd9ac33ee30176fb7dcf4..c6ca27dccbc921597cf95ec5de9dd2781215e5e0 100644 --- a/arkoala-arkts/arkui/src/component/extendableComponent.ets +++ b/arkoala-arkts/arkui/generated/component/extendableComponent.ets @@ -16,9 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { uiObserver_NavDestinationInfo_serializer, uiObserver_NavigationInfo_serializer, uiObserver_RouterPageInfo_serializer, uiObserver } from "./../generated/ohos.arkui.observer" +import { uiObserver_NavDestinationInfo_serializer, uiObserver_NavigationInfo_serializer, uiObserver_RouterPageInfo_serializer, uiObserver } from "./../framework/ohos.arkui.observer" import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { UIContext, UIContextInternal } from "./../generated/ohos.arkui.UIContext" +import { UIContext, UIContextInternal } from "./../framework/ohos.arkui.UIContext" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" diff --git a/arkoala-arkts/arkui/src/component/flex.ets b/arkoala-arkts/arkui/generated/component/flex.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/flex.ets rename to arkoala-arkts/arkui/generated/component/flex.ets index 9ae8116c6ff2205f65d3a3317b21139451e1bd2e..db3d9a6106280dda7a2d8220fd9f784e202dc703 100644 --- a/arkoala-arkts/arkui/src/component/flex.ets +++ b/arkoala-arkts/arkui/generated/component/flex.ets @@ -22,15 +22,15 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { FlexDirection, FlexWrap, FlexAlign, ItemAlign } from "./enums" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" +import { LengthMetrics, LengthMetrics_serializer } from "./../framework/arkui.Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkFlexPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/flowItem.ets b/arkoala-arkts/arkui/generated/component/flowItem.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/flowItem.ets rename to arkoala-arkts/arkui/generated/component/flowItem.ets index 42cf6b5ea1b0a763c22229af1be8b91f50dc0f8f..ecdaaf828953b6b107f50fb2a7868b64b5d6eff5 100644 --- a/arkoala-arkts/arkui/src/component/flowItem.ets +++ b/arkoala-arkts/arkui/generated/component/flowItem.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkFlowItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/focus.ets b/arkoala-arkts/arkui/generated/component/focus.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/focus.ets rename to arkoala-arkts/arkui/generated/component/focus.ets index 616bcb62238fa09a3c8d4b7e80cbb201f2e3452f..7abce7e4b7e35a2427d61b407dcd5ee03706d9c2 100644 --- a/arkoala-arkts/arkui/src/component/focus.ets +++ b/arkoala-arkts/arkui/generated/component/focus.ets @@ -20,7 +20,7 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr, SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetrics, ColorMetrics, LengthMetrics_serializer, ColorMetrics_serializer } from "./../generated/arkui.Graphics" +import { LengthMetrics, ColorMetrics, LengthMetrics_serializer, ColorMetrics_serializer } from "./../framework/arkui.Graphics" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" export interface FocusBoxStyle { diff --git a/arkoala-arkts/arkui/src/component/folderStack.ets b/arkoala-arkts/arkui/generated/component/folderStack.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/folderStack.ets rename to arkoala-arkts/arkui/generated/component/folderStack.ets index 1aa6d683f855519ca3f4f4d7bcb49255b079f0e1..6f344df290ed343f6391bf2a1cad616917e23129 100644 --- a/arkoala-arkts/arkui/src/component/folderStack.ets +++ b/arkoala-arkts/arkui/generated/component/folderStack.ets @@ -23,14 +23,14 @@ import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { Alignment, FoldStatus, AppRotation } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { window } from "./../generated/ohos.window" +import { window } from "./../framework/ohos.window" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkFolderStackPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/formComponent.ets b/arkoala-arkts/arkui/generated/component/formComponent.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/formComponent.ets rename to arkoala-arkts/arkui/generated/component/formComponent.ets index 64770e9e0ba1fb8b9e3c0c6a0e4062b6a43d62b0..9cdd4e83ec5ede9e5ed1d2e9192d82f9586db6f0 100644 --- a/arkoala-arkts/arkui/src/component/formComponent.ets +++ b/arkoala-arkts/arkui/generated/component/formComponent.ets @@ -24,14 +24,14 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { Visibility } from "./enums" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Want, Want_serializer } from "./../generated/ohos.app.ability.Want" +import { Want, Want_serializer } from "./../framework/ohos.app.ability.Want" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkFormComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/formLink.ets b/arkoala-arkts/arkui/generated/component/formLink.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/formLink.ets rename to arkoala-arkts/arkui/generated/component/formLink.ets index c5bea530747e99b452c1cef514ecae62c45ddd87..1d0e3e9b26cd4c4e062044df6cbcea2da44df74d 100644 --- a/arkoala-arkts/arkui/src/component/formLink.ets +++ b/arkoala-arkts/arkui/generated/component/formLink.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkFormLinkPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/gauge.ets b/arkoala-arkts/arkui/generated/component/gauge.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/gauge.ets rename to arkoala-arkts/arkui/generated/component/gauge.ets index 4bd33cf951c7e548db441a824ece0e68a5a38447..5fa41c4ac1c2a65cf5c992ac097416b5e5cbc24e 100644 --- a/arkoala-arkts/arkui/src/component/gauge.ets +++ b/arkoala-arkts/arkui/generated/component/gauge.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { LinearGradient_serializer, LinearGradient } from "./dataPanel" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" @@ -27,13 +27,13 @@ import { ArkCommonMethodPeer, CommonMethod, MultiShadowOptions, CommonConfigurat import { ResourceColor, Length, ResourceStr, Dimension } from "./units" import { Color } from "./enums" import { CustomBuilder } from "./builder" -import { ContentModifier, AttributeModifier, hookGaugeContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookGaugeContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkGaugePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/gesture.ets b/arkoala-arkts/arkui/generated/component/gesture.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/gesture.ets rename to arkoala-arkts/arkui/generated/component/gesture.ets diff --git a/arkoala-arkts/arkui/src/component/gesture.extra.ets b/arkoala-arkts/arkui/generated/component/gesture.extra.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/gesture.extra.ets rename to arkoala-arkts/arkui/generated/component/gesture.extra.ets diff --git a/arkoala-arkts/arkui/src/component/grid.ets b/arkoala-arkts/arkui/generated/component/grid.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/grid.ets rename to arkoala-arkts/arkui/generated/component/grid.ets index f56e30a5626f962a3aad47ab2d8a002aa8aae760..c8e74ee4809035b6aeccfeb84ea434b183635e9a 100644 --- a/arkoala-arkts/arkui/src/component/grid.ets +++ b/arkoala-arkts/arkui/generated/component/grid.ets @@ -18,7 +18,7 @@ import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { Scroller_serializer, OnScrollFrameBeginCallback, Scroller } from "./scroll" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -27,13 +27,13 @@ import { ArkScrollableCommonMethodPeer, ScrollableCommonMethod, OnItemDragStartC import { Length } from "./units" import { ScrollState } from "./list" import { ScrollSource } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkGridPeer extends ArkScrollableCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/gridCol.ets b/arkoala-arkts/arkui/generated/component/gridCol.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/gridCol.ets rename to arkoala-arkts/arkui/generated/component/gridCol.ets index f57bd744d8894612c79652f5980853716e7b1f19..79c67e80c5315e1be7d2bc99364a857b8905872a 100644 --- a/arkoala-arkts/arkui/src/component/gridCol.ets +++ b/arkoala-arkts/arkui/generated/component/gridCol.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkGridColPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/gridItem.ets b/arkoala-arkts/arkui/generated/component/gridItem.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/gridItem.ets rename to arkoala-arkts/arkui/generated/component/gridItem.ets index 612624c10406a25aae1788609f7f13c54b8b61cb..8065c7c29af8cfcb911f56c76cf8a25e9f541fff 100644 --- a/arkoala-arkts/arkui/src/component/gridItem.ets +++ b/arkoala-arkts/arkui/generated/component/gridItem.ets @@ -22,13 +22,13 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkGridItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/gridRow.ets b/arkoala-arkts/arkui/generated/component/gridRow.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/gridRow.ets rename to arkoala-arkts/arkui/generated/component/gridRow.ets index 0933e74dde4a91302b5510697c6b7ad66300e4ef..9ec7e8039023758b72b79ff14ed9bf33da0a72de 100644 --- a/arkoala-arkts/arkui/src/component/gridRow.ets +++ b/arkoala-arkts/arkui/generated/component/gridRow.ets @@ -23,15 +23,15 @@ import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ItemAlign } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkGridRowPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/hyperlink.ets b/arkoala-arkts/arkui/generated/component/hyperlink.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/hyperlink.ets rename to arkoala-arkts/arkui/generated/component/hyperlink.ets index 40d4c6bd589e83149dfa8e7e8758cff266fce0a3..b02e675da4159e6a611108129142d5ba3fef1be4 100644 --- a/arkoala-arkts/arkui/src/component/hyperlink.ets +++ b/arkoala-arkts/arkui/generated/component/hyperlink.ets @@ -17,20 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32 } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkHyperlinkPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/idlize.ets b/arkoala-arkts/arkui/generated/component/idlize.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/idlize.ets rename to arkoala-arkts/arkui/generated/component/idlize.ets index 0cf9c921f3e6a3c744b09fd9bbf013bcdaa629e1..114ca2e82c6bea8f27b6032cd83781b5f74b3eca 100644 --- a/arkoala-arkts/arkui/src/component/idlize.ets +++ b/arkoala-arkts/arkui/generated/component/idlize.ets @@ -21,10 +21,10 @@ import { AnimateParam_serializer, TranslateOptions_serializer, AnimateParam, Tra import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { SizeOptions_serializer, Length, SizeOptions, Position_serializer, Position, ResourceColor, ResourceStr, ConstraintSizeOptions } from "./units" import { Color } from "./enums" -import { ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" +import { ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "#handwritten" import { ButtonConfiguration } from "./button" import { CheckBoxConfiguration } from "./checkbox" import { DataPanelConfiguration } from "./dataPanel" @@ -38,22 +38,22 @@ import { SliderConfiguration } from "./slider" import { TextClockConfiguration } from "./textClock" import { TextTimerConfiguration } from "./textTimer" import { ToggleConfiguration } from "./toggle" -import { image } from "./../generated/ohos.multimedia.image" -import { FontOptions_serializer, FontInfo_serializer, FontOptions, FontInfo } from "./../generated/ohos.font" -import { MeasureOptions_serializer, MeasureOptions } from "./../generated/ohos.measure" +import { image } from "./../framework/ohos.multimedia.image" +import { FontOptions_serializer, FontInfo_serializer, FontOptions, FontInfo } from "./../framework/ohos.font" +import { MeasureOptions_serializer, MeasureOptions } from "./../framework/ohos.measure" import { NavigationOptions_serializer, NavPathStack, NavPathStackInternal, NavPathInfo, NavPathInfoInternal, NavigationOptions } from "./navigation" -import { Frame_serializer, Frame, Size, Size_serializer } from "./../generated/arkui.Graphics" +import { Frame_serializer, Frame, Size, Size_serializer } from "./../framework/arkui.Graphics" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { curves, curves_ICurve_serializer } from "./../generated/ohos.curves" +import { curves, curves_ICurve_serializer } from "./../framework/ohos.curves" import { CustomDialogController } from "./customDialogController" import { CustomBuilder } from "./builder" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" -import { GlobalScope } from "./../generated/GlobalScope" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" +import { GlobalScope } from "./../framework/GlobalScope" export class AnimationExtender { private static SetClipRect_serialize(node: KPointer, x: float, y: float, width: float, height: float): void { ArkUIGeneratedNativeModule._AnimationExtender_SetClipRect(node, x, y, width, height) diff --git a/arkoala-arkts/arkui/src/component/image.ets b/arkoala-arkts/arkui/generated/component/image.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/image.ets rename to arkoala-arkts/arkui/generated/component/image.ets index 64adfc2909993c4e2f9f787f7f67a008b8f8d3c5..5a2a6aa2f94d3b9a35e30481dc4ca2c446fe8211 100644 --- a/arkoala-arkts/arkui/src/component/image.ets +++ b/arkoala-arkts/arkui/generated/component/image.ets @@ -20,25 +20,25 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, DeserializerBase, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { image_PixelMap_serializer, image } from "./../generated/ohos.multimedia.image" -import { Resource_serializer, Resource } from "./../generated/resource" -import { DrawableDescriptor_serializer, DrawableDescriptor } from "./../generated/ohos.arkui.drawableDescriptor" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" +import { Resource_serializer, Resource } from "./../framework/resource" +import { DrawableDescriptor_serializer, DrawableDescriptor } from "./../framework/ohos.arkui.drawableDescriptor" import { ImageAIOptions_serializer, ImageAnalyzerConfig_serializer, ImageAnalyzerConfig, ImageAIOptions } from "./imageCommon" -import { ColorMetrics_serializer, ColorMetrics } from "./../generated/arkui.Graphics" -import { matrix4_Matrix4Transit_serializer, matrix4 } from "./../generated/ohos.matrix4" +import { ColorMetrics_serializer, ColorMetrics } from "./../framework/arkui.Graphics" +import { matrix4_Matrix4Transit_serializer, matrix4 } from "./../framework/ohos.matrix4" import { ColorFilter_serializer, ResourceColor, ColorFilter, ResourceStr, EdgeWidths, EdgeWidths_serializer } from "./units" -import { drawing_ColorFilter_serializer, drawing, drawing_Lattice_serializer } from "./../generated/ohos.graphics.drawing" +import { drawing_ColorFilter_serializer, drawing, drawing_Lattice_serializer } from "./../framework/ohos.graphics.drawing" import { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { Color, ImageFit, ImageRepeat, CopyOptions } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { BusinessError, BusinessError_serializer } from "./../generated/ohos.base" +import { BusinessError, BusinessError_serializer } from "./../framework/ohos.base" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ColorContentInternal { public static fromPtr(ptr: KPointer): ColorContent { return new ColorContent(ptr) diff --git a/arkoala-arkts/arkui/src/component/imageAnimator.ets b/arkoala-arkts/arkui/generated/component/imageAnimator.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/imageAnimator.ets rename to arkoala-arkts/arkui/generated/component/imageAnimator.ets index 1016e574583693ce8e3ebf5d0e5a94da42bc81d3..764517e1a8b4b4c3d995eaa5f6e888410bf7822e 100644 --- a/arkoala-arkts/arkui/src/component/imageAnimator.ets +++ b/arkoala-arkts/arkui/generated/component/imageAnimator.ets @@ -23,15 +23,15 @@ import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { AnimationStatus, FillMode } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource, Resource_serializer } from "./../generated/resource" -import { image, image_PixelMap_serializer } from "./../generated/ohos.multimedia.image" +import { Resource, Resource_serializer } from "./../framework/resource" +import { image, image_PixelMap_serializer } from "./../framework/ohos.multimedia.image" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkImageAnimatorPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/imageCommon.ets b/arkoala-arkts/arkui/generated/component/imageCommon.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/imageCommon.ets rename to arkoala-arkts/arkui/generated/component/imageCommon.ets diff --git a/arkoala-arkts/arkui/src/component/imageSpan.ets b/arkoala-arkts/arkui/generated/component/imageSpan.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/imageSpan.ets rename to arkoala-arkts/arkui/generated/component/imageSpan.ets index 510c26a502a89fa09211ec4dd6f7624dc7e457e1..b05bce931ae7c81b5cb9df8cc9e4d52918e884be 100644 --- a/arkoala-arkts/arkui/src/component/imageSpan.ets +++ b/arkoala-arkts/arkui/generated/component/imageSpan.ets @@ -17,10 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" -import { image_PixelMap_serializer, image } from "./../generated/ohos.multimedia.image" +import { Resource_serializer, Resource } from "./../framework/resource" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" import { ColorFilter_serializer, ColorFilter, ResourceStr } from "./units" -import { drawing_ColorFilter_serializer, drawing } from "./../generated/ohos.graphics.drawing" +import { drawing_ColorFilter_serializer, drawing } from "./../framework/ohos.graphics.drawing" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -28,14 +28,14 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkBaseSpanPeer, BaseSpan, ArkBaseSpanComponent, ArkBaseSpanStyle, BaseSpanModifier } from "./span" import { ImageSpanAlignment, ImageFit } from "./enums" import { ImageErrorCallback, ImageError } from "./image" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkImageSpanPeer extends ArkBaseSpanPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/indicatorcomponent.ets b/arkoala-arkts/arkui/generated/component/indicatorcomponent.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/indicatorcomponent.ets rename to arkoala-arkts/arkui/generated/component/indicatorcomponent.ets index 91bd10ec124c81b6ea3c122f26d5069465b085c1..617a05e37b5657bc6953fa1dbc8679e141b9ffd7 100644 --- a/arkoala-arkts/arkui/src/component/indicatorcomponent.ets +++ b/arkoala-arkts/arkui/generated/component/indicatorcomponent.ets @@ -24,12 +24,12 @@ import { DotIndicator_serializer, DigitIndicator_serializer, DotIndicator, Digit import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class IndicatorComponentControllerInternal { public static fromPtr(ptr: KPointer): IndicatorComponentController { return new IndicatorComponentController(ptr) diff --git a/arkoala-arkts/arkui/src/component/inspector.ets b/arkoala-arkts/arkui/generated/component/inspector.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/inspector.ets rename to arkoala-arkts/arkui/generated/component/inspector.ets index 86cdcdd9cce90316169372c98e48ec340b4e0b60..87700c41bc71f7ca37fedc52561556da31723d81 100644 --- a/arkoala-arkts/arkui/src/component/inspector.ets +++ b/arkoala-arkts/arkui/generated/component/inspector.ets @@ -18,7 +18,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { NativeBuffer, KInt, KPointer, KBoolean, KStringPtr } from "@koalaui/interop" -import { GlobalScope } from "./../generated/GlobalScope" +import { GlobalScope } from "./../framework/GlobalScope" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" export function setAppBgColor(value: string): void { diff --git a/arkoala-arkts/arkui/src/component/lazyForEach.ets b/arkoala-arkts/arkui/generated/component/lazyForEach.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/lazyForEach.ets rename to arkoala-arkts/arkui/generated/component/lazyForEach.ets diff --git a/arkoala-arkts/arkui/src/component/lazyGridLayout.ets b/arkoala-arkts/arkui/generated/component/lazyGridLayout.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/lazyGridLayout.ets rename to arkoala-arkts/arkui/generated/component/lazyGridLayout.ets diff --git a/arkoala-arkts/arkui/src/component/line.ets b/arkoala-arkts/arkui/generated/component/line.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/line.ets rename to arkoala-arkts/arkui/generated/component/line.ets index f6bb5057174adad55a0c7ddf6532e61ddd6061dd..1106ae5390ee9c3cf30f5827061fd178220369d6 100644 --- a/arkoala-arkts/arkui/src/component/line.ets +++ b/arkoala-arkts/arkui/generated/component/line.ets @@ -17,20 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonShapeMethodModifier, CommonMethodModifier } from "./common" import { Length } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkLinePeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/linearindicator.ets b/arkoala-arkts/arkui/generated/component/linearindicator.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/linearindicator.ets rename to arkoala-arkts/arkui/generated/component/linearindicator.ets index 2fe1113dd9bf1ee9d87c52ae750de0817198935a..a440f1d57ef6e818ff42db3a6120e8965097b0c5 100644 --- a/arkoala-arkts/arkui/src/component/linearindicator.ets +++ b/arkoala-arkts/arkui/generated/component/linearindicator.ets @@ -23,13 +23,13 @@ import { CallbackTransformer } from "./../CallbackTransformer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetrics, ColorMetrics, LengthMetrics_serializer, ColorMetrics_serializer } from "./../generated/arkui.Graphics" +import { LengthMetrics, ColorMetrics, LengthMetrics_serializer, ColorMetrics_serializer } from "./../framework/arkui.Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class LinearIndicatorControllerInternal { public static fromPtr(ptr: KPointer): LinearIndicatorController { return new LinearIndicatorController(ptr) diff --git a/arkoala-arkts/arkui/src/component/list.ets b/arkoala-arkts/arkui/generated/component/list.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/list.ets rename to arkoala-arkts/arkui/generated/component/list.ets index e184e3b7811f5c3471159f883054768b78724e33..a5228e37369984716ea12ab8d132cbb89f877f9c 100644 --- a/arkoala-arkts/arkui/src/component/list.ets +++ b/arkoala-arkts/arkui/generated/component/list.ets @@ -19,20 +19,20 @@ import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr, Finalizable } from "@koalaui/interop" import { ChildrenMainSize_serializer, ArkScrollableCommonMethodPeer, ScrollableCommonMethod, ChildrenMainSize, OnItemDragStartCallback, ItemDragInfo, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, ScrollableCommonMethodModifier, CommonMethodModifier, RectResult_serializer, RectResult } from "./common" import { LengthConstrain_serializer, LengthConstrain, Dimension, Length, ResourceColor } from "./units" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Axis, ScrollSource, Color } from "./enums" import { OnScrollFrameBeginCallback, Scroller, Scroller_serializer, ScrollerInternal, ScrollAlign } from "./scroll" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkListPeer extends ArkScrollableCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/listItem.ets b/arkoala-arkts/arkui/generated/component/listItem.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/listItem.ets rename to arkoala-arkts/arkui/generated/component/listItem.ets index 370b6c79d286909a54442382c21b3edeb0763328..ea8f657676004f42ba0197968bce05b1caece70b 100644 --- a/arkoala-arkts/arkui/src/component/listItem.ets +++ b/arkoala-arkts/arkui/generated/component/listItem.ets @@ -22,17 +22,17 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent, ComponentContent_serializer } from "./../generated/arkui.ComponentContent" +import { ComponentContent, ComponentContent_serializer } from "./../framework/arkui.ComponentContent" import { Length } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkListItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/listItemGroup.ets b/arkoala-arkts/arkui/generated/component/listItemGroup.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/listItemGroup.ets rename to arkoala-arkts/arkui/generated/component/listItemGroup.ets index e1802c0ddcd32688e223dbe406d0548162ac1787..c136c0ea55ce61e78a0df4332665fff524679ebf 100644 --- a/arkoala-arkts/arkui/src/component/listItemGroup.ets +++ b/arkoala-arkts/arkui/generated/component/listItemGroup.ets @@ -23,15 +23,15 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent, ComponentContent_serializer } from "./../generated/arkui.ComponentContent" +import { ComponentContent, ComponentContent_serializer } from "./../framework/arkui.ComponentContent" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkListItemGroupPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/loadingProgress.ets b/arkoala-arkts/arkui/generated/component/loadingProgress.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/loadingProgress.ets rename to arkoala-arkts/arkui/generated/component/loadingProgress.ets index 972fdc45bd57f33be2b443a4406d95e28c30ffec..5e29d8c5c30ca1b6221d281f55f593152092c02a 100644 --- a/arkoala-arkts/arkui/src/component/loadingProgress.ets +++ b/arkoala-arkts/arkui/generated/component/loadingProgress.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -25,13 +25,13 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor } from "./units" import { Color } from "./enums" -import { ContentModifier, AttributeModifier, hookLoadingProgressContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookLoadingProgressContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkLoadingProgressPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/locationButton.ets b/arkoala-arkts/arkui/generated/component/locationButton.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/locationButton.ets rename to arkoala-arkts/arkui/generated/component/locationButton.ets diff --git a/arkoala-arkts/arkui/src/component/marquee.ets b/arkoala-arkts/arkui/generated/component/marquee.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/marquee.ets rename to arkoala-arkts/arkui/generated/component/marquee.ets index 732d9c50279d99b297a401def3ddea53d65107ac..f4fc4b44b5233165c1f1a9867b7539b16773332c 100644 --- a/arkoala-arkts/arkui/src/component/marquee.ets +++ b/arkoala-arkts/arkui/generated/component/marquee.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -25,13 +25,13 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor, Length } from "./units" import { Color, FontWeight, MarqueeUpdateStrategy } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkMarqueePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/matrix2d.ets b/arkoala-arkts/arkui/generated/component/matrix2d.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/matrix2d.ets rename to arkoala-arkts/arkui/generated/component/matrix2d.ets index bb12ff0c361355cc5d799787fffff76e0bf06bf4..452241038d097d53dc4730b6e644edc9a2aada2f 100644 --- a/arkoala-arkts/arkui/src/component/matrix2d.ets +++ b/arkoala-arkts/arkui/generated/component/matrix2d.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { LengthMetricsUnit } from "./../generated/arkui.Graphics" +import { LengthMetricsUnit } from "./../framework/arkui.Graphics" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" diff --git a/arkoala-arkts/arkui/src/component/mediaCachedImage.ets b/arkoala-arkts/arkui/generated/component/mediaCachedImage.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/mediaCachedImage.ets rename to arkoala-arkts/arkui/generated/component/mediaCachedImage.ets index d962c4f881df1c2293d92b6dc152149260ee92fa..0f0855a3c26cde09e09c9276372abddf60806410 100644 --- a/arkoala-arkts/arkui/src/component/mediaCachedImage.ets +++ b/arkoala-arkts/arkui/generated/component/mediaCachedImage.ets @@ -17,23 +17,23 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { image_PixelMap_serializer, image } from "./../generated/ohos.multimedia.image" -import { Resource_serializer, Resource } from "./../generated/resource" -import { DrawableDescriptor_serializer, DrawableDescriptor } from "./../generated/ohos.arkui.drawableDescriptor" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" +import { Resource_serializer, Resource } from "./../framework/resource" +import { DrawableDescriptor_serializer, DrawableDescriptor } from "./../framework/ohos.arkui.drawableDescriptor" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkImagePeer, ImageAttribute, ArkImageComponent, ArkImageStyle, ImageModifier } from "./image" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceStr } from "./units" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkMediaCachedImagePeer extends ArkImagePeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/menu.ets b/arkoala-arkts/arkui/generated/component/menu.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/menu.ets rename to arkoala-arkts/arkui/generated/component/menu.ets index dffcb8d6889039d0237e382984ab495dc26db9b1..b037cbc4964c09ab485e5688b6e3ed934e3974f9 100644 --- a/arkoala-arkts/arkui/src/component/menu.ets +++ b/arkoala-arkts/arkui/generated/component/menu.ets @@ -18,20 +18,20 @@ import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer } from "@koalaui/interop" import { Font_serializer, BorderRadiuses_serializer, DividerStyleOptions_serializer, Font, ResourceColor, Dimension, BorderRadiuses, DividerStyleOptions } from "./units" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32 } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkMenuPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/menuItem.ets b/arkoala-arkts/arkui/generated/component/menuItem.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/menuItem.ets rename to arkoala-arkts/arkui/generated/component/menuItem.ets index f59ce432ad4bc83db92ee6dbea428ea48abf5784..ddafc7fc51a49b625b7cd306d4297fca24344e04 100644 --- a/arkoala-arkts/arkui/src/component/menuItem.ets +++ b/arkoala-arkts/arkui/generated/component/menuItem.ets @@ -18,22 +18,22 @@ import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { Resource_serializer, Resource } from "./../generated/resource" -import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { Resource_serializer, Resource } from "./../framework/resource" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" import { Font_serializer, ResourceStr, Font, ResourceColor } from "./units" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { CustomBuilder } from "./builder" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkMenuItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/menuItemGroup.ets b/arkoala-arkts/arkui/generated/component/menuItemGroup.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/menuItemGroup.ets rename to arkoala-arkts/arkui/generated/component/menuItemGroup.ets index 3f9778f601358755548b670acb375f012a7135c9..d412f80593360d4a567d41fb9b93ad0c853abd45 100644 --- a/arkoala-arkts/arkui/src/component/menuItemGroup.ets +++ b/arkoala-arkts/arkui/generated/component/menuItemGroup.ets @@ -22,16 +22,16 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceStr } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { CustomBuilder } from "./builder" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkMenuItemGroupPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/navDestination.ets b/arkoala-arkts/arkui/generated/component/navDestination.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/navDestination.ets rename to arkoala-arkts/arkui/generated/component/navDestination.ets index 77e59519417ecb59f6272880d42cbf750abca6ac..1d1ca22b70c26e623d0d0ae812180f7a1db7070d 100644 --- a/arkoala-arkts/arkui/src/component/navDestination.ets +++ b/arkoala-arkts/arkui/generated/component/navDestination.ets @@ -21,26 +21,26 @@ import { NavPathInfo, NavPathInfoInternal, NavPathStack, NavPathStackInternal, N import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" -import { image_PixelMap_serializer, image } from "./../generated/ohos.multimedia.image" -import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" -import { window_SystemBarStyle_serializer, window } from "./../generated/ohos.window" +import { Resource_serializer, Resource } from "./../framework/resource" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" +import { window_SystemBarStyle_serializer, window } from "./../framework/ohos.window" import { Scroller_serializer, Scroller } from "./scroll" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, LayoutSafeAreaType, LayoutSafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceStr, Length, ResourceColor } from "./units" import { CustomBuilder } from "./builder" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { TitleHeight, Color } from "./enums" -import { LengthMetrics } from "./../generated/arkui.Graphics" -import { TextModifier } from "./../generated/arkui.TextModifier" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { LengthMetrics } from "./../framework/arkui.Graphics" +import { TextModifier } from "./../framework/arkui.TextModifier" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { curves } from "./../generated/ohos.curves" +import { curves } from "./../framework/ohos.curves" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export interface NavDestinationContext { pathInfo: NavPathInfo pathStack: NavPathStack diff --git a/arkoala-arkts/arkui/src/component/navigation.ets b/arkoala-arkts/arkui/generated/component/navigation.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/navigation.ets rename to arkoala-arkts/arkui/generated/component/navigation.ets index 7e3f17366a0be0ffa493f5ac0bc2ee64e8aab1c1..b469e60078f8991afaa9961d4fb185bc3e52730d 100644 --- a/arkoala-arkts/arkui/src/component/navigation.ets +++ b/arkoala-arkts/arkui/generated/component/navigation.ets @@ -21,24 +21,24 @@ import { VoidCallback, Length, Dimension, ResourceStr, ResourceColor } from "./u import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { Bindable_Arkui_Component_Units_Length_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, LayoutSafeAreaType, LayoutSafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, BackgroundBlurStyleOptions_serializer, BackgroundEffectOptions_serializer } from "./common" -import { image_PixelMap_serializer, image } from "./../generated/ohos.multimedia.image" -import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" -import { window_SystemBarStyle_serializer, window } from "./../generated/ohos.window" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" +import { window_SystemBarStyle_serializer, window } from "./../framework/ohos.window" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { CustomBuilder, PageMapBuilder } from "./builder" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { TitleHeight, Color } from "./enums" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" -import { TextModifier, TextModifier_serializer } from "./../generated/arkui.TextModifier" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { LengthMetrics, LengthMetrics_serializer } from "./../framework/arkui.Graphics" +import { TextModifier, TextModifier_serializer } from "./../framework/arkui.TextModifier" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NavDestinationContext, NavDestinationMode, NavDestinationContext_serializer } from "./navDestination" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export interface NavigationTransitionProxy { from: NavContentInfo to: NavContentInfo diff --git a/arkoala-arkts/arkui/src/component/navigator.ets b/arkoala-arkts/arkui/generated/component/navigator.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/navigator.ets rename to arkoala-arkts/arkui/generated/component/navigator.ets diff --git a/arkoala-arkts/arkui/src/component/nodeContainer.ets b/arkoala-arkts/arkui/generated/component/nodeContainer.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/nodeContainer.ets rename to arkoala-arkts/arkui/generated/component/nodeContainer.ets index a8317be67a2c2cb392622e4e1ec1a35e2bd071fc..50e825432ae0f80575e71b4e616abda94c11d00e 100644 --- a/arkoala-arkts/arkui/src/component/nodeContainer.ets +++ b/arkoala-arkts/arkui/generated/component/nodeContainer.ets @@ -17,19 +17,19 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer } from "@koalaui/interop" -import { NodeController_serializer, NodeController } from "./../generated/ohos.arkui.node" +import { NodeController_serializer, NodeController } from "./../framework/ohos.arkui.node" import { int32, int64, float32 } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkNodeContainerPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/pageTransition.ets b/arkoala-arkts/arkui/generated/component/pageTransition.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/pageTransition.ets rename to arkoala-arkts/arkui/generated/component/pageTransition.ets index 19fea1e29a5ae0983212916c14f65366264bedfb..3991cff0444de5f830f6ea7716d119557d2b38b9 100644 --- a/arkoala-arkts/arkui/src/component/pageTransition.ets +++ b/arkoala-arkts/arkui/generated/component/pageTransition.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { curves } from "./../generated/ohos.curves" +import { curves } from "./../framework/ohos.curves" export enum RouteType { NONE = 0, None = 0, diff --git a/arkoala-arkts/arkui/src/component/particle.ets b/arkoala-arkts/arkui/generated/component/particle.ets similarity index 94% rename from arkoala-arkts/arkui/src/component/particle.ets rename to arkoala-arkts/arkui/generated/component/particle.ets index de53e307f25a0e8e046154eb27bb0e854182b717..95419c762f2f180d71cc0f723ac5763d6cb8ad95 100644 --- a/arkoala-arkts/arkui/src/component/particle.ets +++ b/arkoala-arkts/arkui/generated/component/particle.ets @@ -21,10 +21,10 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { VP, Dimension, ResourceStr, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ImageFit, Color } from "./enums" -import { curves } from "./../generated/ohos.curves" -import { Vector2T, LengthMetrics } from "./../generated/arkui.Graphics" +import { curves } from "./../framework/ohos.curves" +import { Vector2T, LengthMetrics } from "./../framework/arkui.Graphics" export interface VelocityOptions { speed: [ number, number ]; angle: [ number, number ]; diff --git a/arkoala-arkts/arkui/src/component/pasteButton.ets b/arkoala-arkts/arkui/generated/component/pasteButton.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/pasteButton.ets rename to arkoala-arkts/arkui/generated/component/pasteButton.ets diff --git a/arkoala-arkts/arkui/src/component/path.ets b/arkoala-arkts/arkui/generated/component/path.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/path.ets rename to arkoala-arkts/arkui/generated/component/path.ets index 9755f0ab4a050349c59e450e63366f3bf5c07e29..40893d8536905b6ee435edb246a2993cfab5be10 100644 --- a/arkoala-arkts/arkui/src/component/path.ets +++ b/arkoala-arkts/arkui/generated/component/path.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonShapeMethodModifier, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkPathPeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/patternLock.ets b/arkoala-arkts/arkui/generated/component/patternLock.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/patternLock.ets rename to arkoala-arkts/arkui/generated/component/patternLock.ets index 93b354b468de5c0d901bc4d48c840d364b72cab4..8b4ee21cbe820f20b33fa219d1770018fa982abe 100644 --- a/arkoala-arkts/arkui/src/component/patternLock.ets +++ b/arkoala-arkts/arkui/generated/component/patternLock.ets @@ -20,19 +20,19 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, DeserializerBase, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { Length, ResourceColor } from "./units" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" +import { LengthMetrics, LengthMetrics_serializer } from "./../framework/arkui.Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class PatternLockControllerInternal { public static fromPtr(ptr: KPointer): PatternLockController { return new PatternLockController(ptr) diff --git a/arkoala-arkts/arkui/src/component/pluginComponent.ets b/arkoala-arkts/arkui/generated/component/pluginComponent.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/pluginComponent.ets rename to arkoala-arkts/arkui/generated/component/pluginComponent.ets index 45523ef7dc759d044ef363badafda23bd06a2d6b..16fe33ed0517de96674f827df6a0d104fc4b1c2c 100644 --- a/arkoala-arkts/arkui/src/component/pluginComponent.ets +++ b/arkoala-arkts/arkui/generated/component/pluginComponent.ets @@ -23,13 +23,13 @@ import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkPluginComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/polygon.ets b/arkoala-arkts/arkui/generated/component/polygon.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/polygon.ets rename to arkoala-arkts/arkui/generated/component/polygon.ets index 3cbc32d665d0140db061e85f6d4fa179a95cea78..49aa97cdf1079501c47dedb8eaaf870820f30cd3 100644 --- a/arkoala-arkts/arkui/src/component/polygon.ets +++ b/arkoala-arkts/arkui/generated/component/polygon.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -25,13 +25,13 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonShapeMethodModifier, CommonMethodModifier } from "./common" import { ShapePoint } from "./line" import { Length } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkPolygonPeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/polyline.ets b/arkoala-arkts/arkui/generated/component/polyline.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/polyline.ets rename to arkoala-arkts/arkui/generated/component/polyline.ets index 71fdc8e12b13d5cb9c7b98a9d93055411c921283..9ce26dd35f0b2911610e1c37263417c6971d6afa 100644 --- a/arkoala-arkts/arkui/src/component/polyline.ets +++ b/arkoala-arkts/arkui/generated/component/polyline.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -25,13 +25,13 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonShapeMethodModifier, CommonMethodModifier } from "./common" import { ShapePoint } from "./line" import { Length } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkPolylinePeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/progress.ets b/arkoala-arkts/arkui/generated/component/progress.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/progress.ets rename to arkoala-arkts/arkui/generated/component/progress.ets index 5be69b2cee5e045293a2285779892e04d14520c6..b81a61d87d61fecdd0f0c589e044da2e15e75630 100644 --- a/arkoala-arkts/arkui/src/component/progress.ets +++ b/arkoala-arkts/arkui/generated/component/progress.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { LinearGradient_serializer, LinearGradient } from "./dataPanel" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" @@ -26,14 +26,14 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor, Length, PX, VP, LPX, Font, Font_serializer } from "./units" import { Color } from "./enums" -import { ContentModifier, AttributeModifier, hookProgressContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookProgressContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" +import { LengthMetrics, LengthMetrics_serializer } from "./../framework/arkui.Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkProgressPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/qrcode.ets b/arkoala-arkts/arkui/generated/component/qrcode.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/qrcode.ets rename to arkoala-arkts/arkui/generated/component/qrcode.ets index 78cfda3ed78efb64c1ed578f0ca100e9114d726e..f486f2a069c5a3112ef3e92df9ae95366ce54c24 100644 --- a/arkoala-arkts/arkui/src/component/qrcode.ets +++ b/arkoala-arkts/arkui/generated/component/qrcode.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32 } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -25,13 +25,13 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor, ResourceStr } from "./units" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkQRCodePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/radio.ets b/arkoala-arkts/arkui/generated/component/radio.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/radio.ets rename to arkoala-arkts/arkui/generated/component/radio.ets index 63b54242fbd84512cb9c4f53bc58c1bb9dc15530..fa1dfa56c7fff2bf5f3a34a0eb3147cde38dedf6 100644 --- a/arkoala-arkts/arkui/src/component/radio.ets +++ b/arkoala-arkts/arkui/generated/component/radio.ets @@ -22,17 +22,17 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ContentModifier, AttributeModifier, hookRadioContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookRadioContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" import { ResourceColor } from "./units" import { Color } from "./enums" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRadioPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/rating.ets b/arkoala-arkts/arkui/generated/component/rating.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/rating.ets rename to arkoala-arkts/arkui/generated/component/rating.ets index ecd47ec75743ac93ca7c4db91569a0d67d19411e..ce13236de97be83f0613bdff706a33532ab142e9 100644 --- a/arkoala-arkts/arkui/src/component/rating.ets +++ b/arkoala-arkts/arkui/generated/component/rating.ets @@ -22,15 +22,15 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Number_serializer } from "./common" -import { ContentModifier, AttributeModifier, hookRatingContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookRatingContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceStr } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRatingPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/rect.ets b/arkoala-arkts/arkui/generated/component/rect.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/rect.ets rename to arkoala-arkts/arkui/generated/component/rect.ets index 23ddb20c64ac28111dd2f1ded2f875185676bda5..d12517d6889b427659894d593968836efea9be13 100644 --- a/arkoala-arkts/arkui/src/component/rect.ets +++ b/arkoala-arkts/arkui/generated/component/rect.ets @@ -22,15 +22,15 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonShapeMethodModifier, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRectPeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/refresh.ets b/arkoala-arkts/arkui/generated/component/refresh.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/refresh.ets rename to arkoala-arkts/arkui/generated/component/refresh.ets index 39167cc3599cd8367ed618bd0afcf2f6dea21a47..ffa669a6cfd381fbcfd132baef064ba52ff693f9 100644 --- a/arkoala-arkts/arkui/src/component/refresh.ets +++ b/arkoala-arkts/arkui/generated/component/refresh.ets @@ -22,17 +22,17 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Boolean_serializer } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceStr } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { CustomBuilder } from "./builder" -import { ComponentContent, ComponentContent_serializer } from "./../generated/arkui.ComponentContent" +import { ComponentContent, ComponentContent_serializer } from "./../framework/arkui.ComponentContent" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRefreshPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/relativeContainer.ets b/arkoala-arkts/arkui/generated/component/relativeContainer.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/relativeContainer.ets rename to arkoala-arkts/arkui/generated/component/relativeContainer.ets index ea4608bc9449c941019211bb7cef93f58a2d4943..914ab4a5a9c39340889cd8fc3d1d789556a61840 100644 --- a/arkoala-arkts/arkui/src/component/relativeContainer.ets +++ b/arkoala-arkts/arkui/generated/component/relativeContainer.ets @@ -22,16 +22,16 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Dimension } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource, Resource_serializer } from "./../framework/resource" import { Axis } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRelativeContainerPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/remoteWindow.ets b/arkoala-arkts/arkui/generated/component/remoteWindow.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/remoteWindow.ets rename to arkoala-arkts/arkui/generated/component/remoteWindow.ets index 4b748269e9e5b4495206517167ccfad41bb6be10..c7f7bddff8bfc2085a59e886d89a843dbbb93327 100644 --- a/arkoala-arkts/arkui/src/component/remoteWindow.ets +++ b/arkoala-arkts/arkui/generated/component/remoteWindow.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRemoteWindowPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/repeat.ets b/arkoala-arkts/arkui/generated/component/repeat.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/repeat.ets rename to arkoala-arkts/arkui/generated/component/repeat.ets diff --git a/arkoala-arkts/arkui/src/component/richEditor.ets b/arkoala-arkts/arkui/generated/component/richEditor.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/richEditor.ets rename to arkoala-arkts/arkui/generated/component/richEditor.ets index 5f1fe294ba29cad9f9ed9035b35a006a58203fbf..46275d2a2276a9f586dc08bfb66eaa3a3bd82f0f 100644 --- a/arkoala-arkts/arkui/src/component/richEditor.ets +++ b/arkoala-arkts/arkui/generated/component/richEditor.ets @@ -22,25 +22,25 @@ import { PreviewText_serializer, TextEditControllerEx, TextEditControllerExInter import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { VoidCallback, ResourceColor, ResourceStr, Font, Length, Dimension, Padding, BorderRadiuses, Font_serializer, Padding_serializer, BorderRadiuses_serializer } from "./units" import { CopyOptions, Color, BarState, ResponseType, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit } from "./enums" import { EnterKeyType, SubmitEvent } from "./textInput" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { CustomBuilder } from "./builder" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { DecorationStyleInterface, DecorationStyleInterface_serializer, StyledString, StyledStringInternal, MutableStyledString, MutableStyledStringInternal } from "./styledString" import { TextBackgroundStyle, TextBackgroundStyle_serializer } from "./span" -import { image, image_PixelMap_serializer } from "./../generated/ohos.multimedia.image" +import { image, image_PixelMap_serializer } from "./../framework/ohos.multimedia.image" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./symbolglyph" import { GestureEvent, GestureEvent_serializer } from "./gesture" -import { ColorMetrics, ColorMetrics_serializer } from "./../generated/arkui.Graphics" +import { ColorMetrics, ColorMetrics_serializer } from "./../framework/arkui.Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" import { CustomNodeBuilder } from "./idlize" export class RichEditorBaseControllerInternal { public static fromPtr(ptr: KPointer): RichEditorBaseController { diff --git a/arkoala-arkts/arkui/src/component/richText.ets b/arkoala-arkts/arkui/generated/component/richText.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/richText.ets rename to arkoala-arkts/arkui/generated/component/richText.ets index 03150f7f3f03c33e9087d5de24b8164428ba3a5c..45de18bf2824a87211b5ff3ceb3717668dfc6dca 100644 --- a/arkoala-arkts/arkui/src/component/richText.ets +++ b/arkoala-arkts/arkui/generated/component/richText.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRichTextPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/rootScene.ets b/arkoala-arkts/arkui/generated/component/rootScene.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/rootScene.ets rename to arkoala-arkts/arkui/generated/component/rootScene.ets index 70a7382cafe3c98f6dc6754d6c327c67604e503f..ed1683203cfc8173d3c3554497a94adc7b6990ec 100644 --- a/arkoala-arkts/arkui/src/component/rootScene.ets +++ b/arkoala-arkts/arkui/generated/component/rootScene.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRootScenePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/row.ets b/arkoala-arkts/arkui/generated/component/row.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/row.ets rename to arkoala-arkts/arkui/generated/component/row.ets index fc5730958e4b64ae217a72f3f24dd4937ea9b253..b7fbfecd78fa9aead83b4acd172b40d0cd5cebad 100644 --- a/arkoala-arkts/arkui/src/component/row.ets +++ b/arkoala-arkts/arkui/generated/component/row.ets @@ -23,13 +23,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { VerticalAlign, FlexAlign } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRowPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/rowSplit.ets b/arkoala-arkts/arkui/generated/component/rowSplit.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/rowSplit.ets rename to arkoala-arkts/arkui/generated/component/rowSplit.ets index 486356d1e42f584147aab261570ec3b86650dffb..a22335fad0e454499462e14c4bf06b2ab863afa1 100644 --- a/arkoala-arkts/arkui/src/component/rowSplit.ets +++ b/arkoala-arkts/arkui/generated/component/rowSplit.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkRowSplitPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/saveButton.ets b/arkoala-arkts/arkui/generated/component/saveButton.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/saveButton.ets rename to arkoala-arkts/arkui/generated/component/saveButton.ets diff --git a/arkoala-arkts/arkui/src/component/screen.ets b/arkoala-arkts/arkui/generated/component/screen.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/screen.ets rename to arkoala-arkts/arkui/generated/component/screen.ets index a69f99e57b8d83dce024ff55048370faafa8539e..518a15b90742f2013e6b85a366139bc1d6bc9dbc 100644 --- a/arkoala-arkts/arkui/src/component/screen.ets +++ b/arkoala-arkts/arkui/generated/component/screen.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkScreenPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/scroll.ets b/arkoala-arkts/arkui/generated/component/scroll.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/scroll.ets rename to arkoala-arkts/arkui/generated/component/scroll.ets index 8efa2c1fb694eab2c982be003879e10a2e5481db..ce03f963d6d796325e142af4d13b9d0422393c54 100644 --- a/arkoala-arkts/arkui/src/component/scroll.ets +++ b/arkoala-arkts/arkui/generated/component/scroll.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { RectResult_serializer, RectResult, NestedScrollOptions_serializer, EdgeEffectOptions_serializer, ArkScrollableCommonMethodPeer, ScrollableCommonMethod, NestedScrollOptions, CommonMethod, EdgeEffectOptions, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, ScrollableCommonMethodModifier, CommonMethodModifier } from "./common" import { Edge, ScrollSource, BarState, Color, EdgeEffect } from "./enums" import { Length, VoidCallback, Dimension } from "./units" @@ -27,14 +27,14 @@ import { CallbackTransformer } from "./../CallbackTransformer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ScrollState, ScrollSnapAlign } from "./list" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" -import { curves, curves_ICurve_serializer } from "./../generated/ohos.curves" +import { LengthMetrics, LengthMetrics_serializer } from "./../framework/arkui.Graphics" +import { curves, curves_ICurve_serializer } from "./../framework/ohos.curves" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ScrollerInternal { public static fromPtr(ptr: KPointer): Scroller { return new Scroller(ptr) diff --git a/arkoala-arkts/arkui/src/component/scrollBar.ets b/arkoala-arkts/arkui/generated/component/scrollBar.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/scrollBar.ets rename to arkoala-arkts/arkui/generated/component/scrollBar.ets index 0a533eb7e131aaf297def8873817709b4a7d64a3..6da3c3d9d881e585ff49b98be084265c4e35d8e1 100644 --- a/arkoala-arkts/arkui/src/component/scrollBar.ets +++ b/arkoala-arkts/arkui/generated/component/scrollBar.ets @@ -22,15 +22,15 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Scroller, Scroller_serializer } from "./scroll" import { BarState } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkScrollBarPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/search.ets b/arkoala-arkts/arkui/generated/component/search.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/search.ets rename to arkoala-arkts/arkui/generated/component/search.ets index 40e316b21da3fad91c46d58a395062fecd2b2f2c..8ae7a9cac6301f39c9eecefaa1bd581b5f877d3a 100644 --- a/arkoala-arkts/arkui/src/component/search.ets +++ b/arkoala-arkts/arkui/generated/component/search.ets @@ -17,8 +17,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr, Finalizable } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" -import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { Resource_serializer, Resource } from "./../framework/resource" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" import { CaretStyle_serializer, EditMenuOptions_serializer, CaretStyle, EditableTextOnChangeCallback, PreviewText, TextChangeOptions, InsertValue, DeleteValue, EditMenuOptions, AutoCapitalizationMode, EditableTextChangeValue, KeyboardAppearance } from "./textCommon" import { Font_serializer, ResourceColor, Dimension, Font, ResourceStr, Length } from "./units" import { TextDecorationOptions_serializer, ArkCommonMethodPeer, CommonMethod, TextDecorationOptions, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_String_serializer, SelectionOptions_serializer, TextContentControllerBase, TextContentControllerBaseInternal, SelectionOptions } from "./common" @@ -29,14 +29,14 @@ import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Color, CopyOptions, TextAlign } from "./enums" import { EnterKeyType, SubmitEvent, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./textInput" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { CustomBuilder } from "./builder" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkSearchPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/securityComponent.ets b/arkoala-arkts/arkui/generated/component/securityComponent.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/securityComponent.ets rename to arkoala-arkts/arkui/generated/component/securityComponent.ets index 0be835616b1ba1f4307387876c773f6370d4a0b9..58db5200e1ca1fc08060aec43270d9a1baff305d 100644 --- a/arkoala-arkts/arkui/src/component/securityComponent.ets +++ b/arkoala-arkts/arkui/generated/component/securityComponent.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { FontStyle, FontWeight, Color, BorderStyle } from "./enums" export enum SecurityComponentLayoutDirection { HORIZONTAL = 0, diff --git a/arkoala-arkts/arkui/src/component/select.ets b/arkoala-arkts/arkui/generated/component/select.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/select.ets rename to arkoala-arkts/arkui/generated/component/select.ets index 9e3241b1b86d17f9d18e23e09e5d991fd64970e1..2aed71ef24c83d75a4a31107909b06b65e029bda 100644 --- a/arkoala-arkts/arkui/src/component/select.ets +++ b/arkoala-arkts/arkui/generated/component/select.ets @@ -17,25 +17,25 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { Bindable_Number_serializer, Bindable_Global_Resource_Resource_serializer, Bindable_String_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, BlurStyle, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { Font_serializer, DividerStyleOptions_serializer, Offset_serializer, ResourceStr, Font, ResourceColor, Length, Dimension, DividerStyleOptions, Offset, EdgeOutlineWidths, EdgeColors, EdgeOutlineWidths_serializer, EdgeColors_serializer } from "./units" import { DividerOptions_serializer, DividerOptions } from "./textPicker" -import { TextModifier_serializer, TextModifier } from "./../generated/arkui.TextModifier" -import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { TextModifier_serializer, TextModifier } from "./../framework/arkui.TextModifier" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Color, OptionWidthMode } from "./enums" import { ControlSize } from "./button" -import { ContentModifier, AttributeModifier, hookSelectContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookSelectContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkSelectPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/shape.ets b/arkoala-arkts/arkui/generated/component/shape.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/shape.ets rename to arkoala-arkts/arkui/generated/component/shape.ets index 83efaa8b6fb328244edf0c17dbe9e02261a19af4..9927facea6484df1c7c55bb59972a7a6a03e609c 100644 --- a/arkoala-arkts/arkui/src/component/shape.ets +++ b/arkoala-arkts/arkui/generated/component/shape.ets @@ -17,8 +17,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { image_PixelMap_serializer, image } from "./../generated/ohos.multimedia.image" -import { Resource_serializer, Resource } from "./../generated/resource" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -26,13 +26,13 @@ import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor, Length } from "./units" import { Color, LineCapStyle, LineJoinStyle } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkShapePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/sidebar.ets b/arkoala-arkts/arkui/generated/component/sidebar.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/sidebar.ets rename to arkoala-arkts/arkui/generated/component/sidebar.ets index b3555ccb2d999e22eeb3961da04417f94e9d1c47..f1c54a185a4f38ccca7eb2eb20d86c2976407373 100644 --- a/arkoala-arkts/arkui/src/component/sidebar.ets +++ b/arkoala-arkts/arkui/generated/component/sidebar.ets @@ -18,20 +18,20 @@ import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { Bindable_Boolean_serializer, Bindable_Number_serializer, DividerStyle_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, DividerStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Length, Dimension } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { image, image_PixelMap_serializer } from "./../generated/ohos.multimedia.image" +import { image, image_PixelMap_serializer } from "./../framework/ohos.multimedia.image" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkSideBarContainerPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/slider.ets b/arkoala-arkts/arkui/generated/component/slider.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/slider.ets rename to arkoala-arkts/arkui/generated/component/slider.ets index ea9050044533399bea9caabb2914eeb1fa3fbb20..467e9d4a7016b656e15643eeb0fdeb59824578f5 100644 --- a/arkoala-arkts/arkui/src/component/slider.ets +++ b/arkoala-arkts/arkui/generated/component/slider.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { LinearGradient_serializer, LinearGradient } from "./dataPanel" import { SizeOptions_serializer, ResourceColor, Length, Dimension, SizeOptions, ResourceStr } from "./units" import { int32, int64, float32, unsafeCast } from "@koalaui/common" @@ -26,13 +26,13 @@ import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Number_serializer } from "./common" import { Color, CrownSensitivity, Axis } from "./enums" -import { ContentModifier, AttributeModifier, hookSliderContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookSliderContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkSliderPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/span.ets b/arkoala-arkts/arkui/generated/component/span.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/span.ets rename to arkoala-arkts/arkui/generated/component/span.ets index f50338a068a94b56b842fb6859a53b966c36a24c..d04f3ca2cef3c2d2371b3d88a9296952016d3e28 100644 --- a/arkoala-arkts/arkui/src/component/span.ets +++ b/arkoala-arkts/arkui/generated/component/span.ets @@ -17,23 +17,23 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { LengthMetrics_serializer, LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics_serializer, LengthMetrics } from "./../framework/arkui.Graphics" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ShadowOptions_serializer, ShadowOptions, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { Font_serializer, Font, ResourceColor, Length, Dimension, BorderRadiuses, BorderRadiuses_serializer } from "./units" import { DecorationStyleInterface_serializer, DecorationStyleInterface } from "./styledString" import { Color, FontStyle, FontWeight, TextCase } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkBaseSpanPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/stack.ets b/arkoala-arkts/arkui/generated/component/stack.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/stack.ets rename to arkoala-arkts/arkui/generated/component/stack.ets index 29a266a2529585c01e527eb6d3833a5749488160..c4eb27ff4fa4ae64208a6ce6e0aeab72a2c86980 100644 --- a/arkoala-arkts/arkui/src/component/stack.ets +++ b/arkoala-arkts/arkui/generated/component/stack.ets @@ -23,13 +23,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Alignment } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkStackPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/stateManagement.ets b/arkoala-arkts/arkui/generated/component/stateManagement.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/stateManagement.ets rename to arkoala-arkts/arkui/generated/component/stateManagement.ets diff --git a/arkoala-arkts/arkui/src/component/stepper.ets b/arkoala-arkts/arkui/generated/component/stepper.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/stepper.ets rename to arkoala-arkts/arkui/generated/component/stepper.ets index f8567051052df73630846f25404ed31b5b57b544..1bffc07510b8a84cf1674eb0edee451bb78a9ea4 100644 --- a/arkoala-arkts/arkui/src/component/stepper.ets +++ b/arkoala-arkts/arkui/generated/component/stepper.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Number_serializer } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkStepperPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/stepperItem.ets b/arkoala-arkts/arkui/generated/component/stepperItem.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/stepperItem.ets rename to arkoala-arkts/arkui/generated/component/stepperItem.ets index edf8112ecde7b1cafd0e90f023ccf76a76daf84c..833fd0c8cba7a306b5f19a4545d7cdd4e6d1f117 100644 --- a/arkoala-arkts/arkui/src/component/stepperItem.ets +++ b/arkoala-arkts/arkui/generated/component/stepperItem.ets @@ -22,13 +22,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkStepperItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/styledString.ets b/arkoala-arkts/arkui/generated/component/styledString.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/styledString.ets rename to arkoala-arkts/arkui/generated/component/styledString.ets index 47490060d308840213e85fb36dd9f68f02ac3994..c908041ae91f03b2fc5581927d9166c81cdf12ef 100644 --- a/arkoala-arkts/arkui/src/component/styledString.ets +++ b/arkoala-arkts/arkui/generated/component/styledString.ets @@ -21,12 +21,12 @@ import { TextBackgroundStyle_serializer, TextBackgroundStyle } from "./span" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { LengthMetrics, LengthMetricsInternal, DrawContext, DrawContextInternal, LengthMetrics_serializer } from "./../generated/arkui.Graphics" -import { Resource_serializer, Resource } from "./../generated/resource" +import { LengthMetrics, LengthMetricsInternal, DrawContext, DrawContextInternal, LengthMetrics_serializer } from "./../framework/arkui.Graphics" +import { Resource_serializer, Resource } from "./../framework/resource" import { TextDecorationType, Color, TextDecorationStyle, ImageSpanAlignment, ImageFit, TextAlign, TextOverflow, WordBreak, FontStyle, FontWeight } from "./enums" import { ResourceColor, SizeOptions_serializer, ColorFilter_serializer, SizeOptions, ColorFilter, ColorFilterInternal, ResourceStr, Padding, BorderRadiuses, Padding_serializer, BorderRadiuses_serializer } from "./units" -import { drawing_ColorFilter_serializer, drawing } from "./../generated/ohos.graphics.drawing" -import { image, image_PixelMap_serializer } from "./../generated/ohos.multimedia.image" +import { drawing_ColorFilter_serializer, drawing } from "./../framework/ohos.graphics.drawing" +import { image, image_PixelMap_serializer } from "./../framework/ohos.multimedia.image" import { LeadingMarginPlaceholder_serializer, LeadingMarginPlaceholder } from "./richEditor" import { ShadowOptions_serializer, ShadowOptions, ClickEvent, ClickEvent_serializer } from "./common" import { memo, memo_stable } from "@koalaui/runtime/annotations" diff --git a/arkoala-arkts/arkui/src/component/swiper.ets b/arkoala-arkts/arkui/generated/component/swiper.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/swiper.ets rename to arkoala-arkts/arkui/generated/component/swiper.ets index afffe15daba8e65390eb19357c410342375413c2..7cda80787beead5ee2e8023a9a5446a9e4de10f6 100644 --- a/arkoala-arkts/arkui/src/component/swiper.ets +++ b/arkoala-arkts/arkui/generated/component/swiper.ets @@ -23,18 +23,18 @@ import { CallbackTransformer } from "./../CallbackTransformer" import { VoidCallback, Length, ResourceColor, VP, Font, Font_serializer } from "./units" import { Bindable_Number_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { IndicatorComponentController_serializer, IndicatorComponentController } from "./indicatorcomponent" -import { curves_ICurve_serializer, curves } from "./../generated/ohos.curves" -import { Resource_serializer, Resource } from "./../generated/resource" +import { curves_ICurve_serializer, curves } from "./../framework/ohos.curves" +import { Resource_serializer, Resource } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { EdgeEffect, PageFlipMode, Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" +import { LengthMetrics, LengthMetrics_serializer } from "./../framework/arkui.Graphics" export interface SwiperContentTransitionProxy { selectedIndex: number index: number diff --git a/arkoala-arkts/arkui/src/component/symbolSpan.ets b/arkoala-arkts/arkui/generated/component/symbolSpan.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/symbolSpan.ets rename to arkoala-arkts/arkui/generated/component/symbolSpan.ets index 28a0372e9ceed4dd41ac03d053c4fb97c2143053..7e1d1c2f7e83970b913851e269a4053f88604054 100644 --- a/arkoala-arkts/arkui/src/component/symbolSpan.ets +++ b/arkoala-arkts/arkui/generated/component/symbolSpan.ets @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32 } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" @@ -26,13 +26,13 @@ import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonM import { ResourceColor } from "./units" import { Color, FontWeight } from "./enums" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./symbolglyph" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/symbolglyph.ets b/arkoala-arkts/arkui/generated/component/symbolglyph.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/symbolglyph.ets rename to arkoala-arkts/arkui/generated/component/symbolglyph.ets index f254050e283a3cb0d9494ceb44d09ab515f54a10..ebf4357946d2388c374c9a4b747bf1d5d5aebdae 100644 --- a/arkoala-arkts/arkui/src/component/symbolglyph.ets +++ b/arkoala-arkts/arkui/generated/component/symbolglyph.ets @@ -20,18 +20,18 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, DeserializerBase, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ResourceColor } from "./units" import { Color, FontWeight } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class SymbolEffectInternal { public static fromPtr(ptr: KPointer): SymbolEffect { return new SymbolEffect(ptr) diff --git a/arkoala-arkts/arkui/src/component/tabContent.ets b/arkoala-arkts/arkui/generated/component/tabContent.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/tabContent.ets rename to arkoala-arkts/arkui/generated/component/tabContent.ets index 2a47bdb491596b8c4e430f7d1f831f1c8645e5c9..ea091d680580e857f7d2b889fdc211667ff3dcd3 100644 --- a/arkoala-arkts/arkui/src/component/tabContent.ets +++ b/arkoala-arkts/arkui/generated/component/tabContent.ets @@ -16,25 +16,25 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { ComponentContent_serializer, ComponentContent } from "./../generated/arkui.ComponentContent" -import { Resource_serializer, Resource } from "./../generated/resource" +import { ComponentContent_serializer, ComponentContent } from "./../framework/arkui.ComponentContent" +import { Resource_serializer, Resource } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { CustomBuilder } from "./builder" import { VoidCallback, ResourceColor, Length, ResourceStr, Font, Padding, Dimension, LocalizedPadding, Font_serializer, Padding_serializer, LocalizedPadding_serializer } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Color, TextOverflow, TextHeightAdaptivePolicy, VerticalAlign } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class TabBarSymbolInternal { public static fromPtr(ptr: KPointer): TabBarSymbol { return new TabBarSymbol(ptr) diff --git a/arkoala-arkts/arkui/src/component/tabs.ets b/arkoala-arkts/arkui/generated/component/tabs.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/tabs.ets rename to arkoala-arkts/arkui/generated/component/tabs.ets index c93ddec048372b4a3aefdcbdc72cda2ba2d94cb1..ee180da93bfb6f24dc5df388623a7c6c6581daff 100644 --- a/arkoala-arkts/arkui/src/component/tabs.ets +++ b/arkoala-arkts/arkui/generated/component/tabs.ets @@ -21,17 +21,17 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPoin import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { TranslateOptions_serializer, TranslateOptions, DividerStyle_serializer, BackgroundEffectOptions_serializer, BackgroundBlurStyleOptions_serializer, ArkCommonMethodPeer, CommonMethod, DividerStyle, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions, BlurStyleOptions, BlurStyleActivePolicy, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Number_serializer } from "./common" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { Length, ResourceColor, Dimension } from "./units" import { EdgeEffect, Color, PageFlipMode } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export interface TabContentTransitionProxy { from: number to: number diff --git a/arkoala-arkts/arkui/src/component/text.ets b/arkoala-arkts/arkui/generated/component/text.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/text.ets rename to arkoala-arkts/arkui/generated/component/text.ets index dd55d035509e3648c094169fdc161b1eb7ec0a45..fa130ffb0c3c1ecc45a52da2ed38bd0ccf0270ab 100644 --- a/arkoala-arkts/arkui/src/component/text.ets +++ b/arkoala-arkts/arkui/generated/component/text.ets @@ -22,21 +22,21 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, DeserializerBase, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" -import { LengthMetrics_serializer, LengthMetrics } from "./../generated/arkui.Graphics" +import { Resource_serializer, Resource } from "./../framework/resource" +import { LengthMetrics_serializer, LengthMetrics } from "./../framework/arkui.Graphics" import { ShadowOptions_serializer, ArkCommonMethodPeer, CommonMethod, ShadowOptions, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { Font_serializer, ResourceColor, Length, Font, VoidCallback } from "./units" import { SelectionMenuOptions_serializer, SelectionMenuOptions, MenuOnAppearCallback, MenuCallback, PreviewMenuOptions } from "./richEditor" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { Color, FontStyle, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, FontWeight, TextOverflow } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { CustomBuilder } from "./builder" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class TextControllerInternal { public static fromPtr(ptr: KPointer): TextController { return new TextController(ptr) diff --git a/arkoala-arkts/arkui/src/component/textArea.ets b/arkoala-arkts/arkui/generated/component/textArea.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/textArea.ets rename to arkoala-arkts/arkui/generated/component/textArea.ets index af23045df7d18b826d3a8ed9be48a4ee8cc3f96d..35d07a0dd9f0a7b72cd58be6fc2e69c5844b5d54 100644 --- a/arkoala-arkts/arkui/src/component/textArea.ets +++ b/arkoala-arkts/arkui/generated/component/textArea.ets @@ -17,11 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr, Finalizable } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { Font_serializer, ResourceColor, Font, Length, ResourceStr, Dimension } from "./units" import { CaretStyle_serializer, EditMenuOptions_serializer, CaretStyle, EditableTextOnChangeCallback, PreviewText, TextChangeOptions, InsertValue, DeleteValue, EditMenuOptions, AutoCapitalizationMode, EditableTextChangeValue, KeyboardAppearance } from "./textCommon" import { TextDecorationOptions_serializer, InputCounterOptions_serializer, ArkCommonMethodPeer, CommonMethod, TextDecorationOptions, InputCounterOptions, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Arkui_Component_Units_ResourceStr_serializer, Bindable_Global_Resource_Resource_serializer, Bindable_String_serializer, SelectionOptions_serializer, TextContentControllerBase, TextContentControllerBaseInternal, SelectionOptions } from "./common" -import { LengthMetrics_serializer, LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics_serializer, LengthMetrics } from "./../framework/arkui.Graphics" import { KeyboardOptions_serializer, PasteEvent, KeyboardOptions } from "./richEditor" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" @@ -29,14 +29,14 @@ import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Color, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode } from "./enums" import { EnterKeyType, SubmitEvent, ContentType } from "./textInput" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { CustomBuilder } from "./builder" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkTextAreaPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/textClock.ets b/arkoala-arkts/arkui/generated/component/textClock.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/textClock.ets rename to arkoala-arkts/arkui/generated/component/textClock.ets index aace570b49e87821947f716181fd8df2fb08583f..a850c964d2270a578361194dfea84865f47b6e4e 100644 --- a/arkoala-arkts/arkui/src/component/textClock.ets +++ b/arkoala-arkts/arkui/generated/component/textClock.ets @@ -20,19 +20,19 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, DeserializerBase, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ShadowOptions_serializer, ArkCommonMethodPeer, CommonMethod, ShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { intl_DateTimeOptions_serializer, intl } from "./../generated/ohos.intl" +import { intl_DateTimeOptions_serializer, intl } from "./../framework/ohos.intl" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ResourceStr, ResourceColor, Length } from "./units" import { Color, FontStyle, FontWeight } from "./enums" -import { ContentModifier, AttributeModifier, hookTextClockContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookTextClockContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class TextClockControllerInternal { public static fromPtr(ptr: KPointer): TextClockController { return new TextClockController(ptr) diff --git a/arkoala-arkts/arkui/src/component/textCommon.ets b/arkoala-arkts/arkui/generated/component/textCommon.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/textCommon.ets rename to arkoala-arkts/arkui/generated/component/textCommon.ets index b653f44fb83aa4f40394c0483cba8e054e1ab355..3abb73d8c33f173d80088d30c1a65ce4b1d1590a 100644 --- a/arkoala-arkts/arkui/src/component/textCommon.ets +++ b/arkoala-arkts/arkui/generated/component/textCommon.ets @@ -22,7 +22,7 @@ import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { StyledString, StyledStringInternal, MutableStyledString, MutableStyledStringInternal, DecorationStyleInterface, StyledString_serializer, DecorationStyleInterface_serializer } from "./styledString" import { SelectionOptions_serializer, SelectionOptions } from "./common" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ResourceStr, ResourceColor, Length } from "./units" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" diff --git a/arkoala-arkts/arkui/src/component/textInput.ets b/arkoala-arkts/arkui/generated/component/textInput.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/textInput.ets rename to arkoala-arkts/arkui/generated/component/textInput.ets index 99c79a6b669ccfb5c4d87d5032185fe8d9d14080..ee47c28a58f06f816d77067452fd9229a991e6ad 100644 --- a/arkoala-arkts/arkui/src/component/textInput.ets +++ b/arkoala-arkts/arkui/generated/component/textInput.ets @@ -20,7 +20,7 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, DeserializerBase, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { Font_serializer, ResourceColor, Dimension, Font, Length, ResourceStr } from "./units" import { CaretStyle_serializer, EditMenuOptions_serializer, EditableTextOnChangeCallback, PreviewText, TextChangeOptions, CaretStyle, InsertValue, DeleteValue, EditMenuOptions, AutoCapitalizationMode, EditableTextChangeValue, KeyboardAppearance } from "./textCommon" import { CancelButtonOptions_serializer, CancelButtonSymbolOptions_serializer, CancelButtonOptions, CancelButtonSymbolOptions } from "./search" @@ -30,12 +30,12 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { Color, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, EllipsisMode } from "./enums" import { CustomBuilder } from "./builder" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export interface SubmitEvent { text: string keepEditableState(): void diff --git a/arkoala-arkts/arkui/src/component/textPicker.ets b/arkoala-arkts/arkui/generated/component/textPicker.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/textPicker.ets rename to arkoala-arkts/arkui/generated/component/textPicker.ets index 93bd8bae6364518632b60e8ffbf46d49445963a5..d885a91e47969a161ef2e1f0675fc633cc6d26f9 100644 --- a/arkoala-arkts/arkui/src/component/textPicker.ets +++ b/arkoala-arkts/arkui/generated/component/textPicker.ets @@ -21,19 +21,19 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPoin import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTextStyle, Bindable, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Arkui_Component_Units_ResourceStr_serializer, Bindable_Array_Arkui_Component_Units_ResourceStr_serializer, Bindable_Number_serializer, Bindable_Array_Number_serializer, PickerDialogButtonStyle_serializer, Rectangle_serializer, BackgroundBlurStyleOptions_serializer, BackgroundEffectOptions_serializer, ShadowOptions_serializer } from "./common" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { Dimension, ResourceStr, ResourceColor, Offset, Font_serializer, Font, Offset_serializer } from "./units" import { CrownSensitivity, Color, TextOverflow } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" +import { LengthMetrics, LengthMetrics_serializer } from "./../framework/arkui.Graphics" import { DialogAlignment } from "./alertDialog" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class TextPickerDialogInternal { public static fromPtr(ptr: KPointer): TextPickerDialog { return new TextPickerDialog(ptr) diff --git a/arkoala-arkts/arkui/src/component/textTimer.ets b/arkoala-arkts/arkui/generated/component/textTimer.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/textTimer.ets rename to arkoala-arkts/arkui/generated/component/textTimer.ets index a73b15b73c7b5ce781fa5bad08b48c5310d5c71b..1fae68a3c69757251b814f6435aa5879ad7bde2f 100644 --- a/arkoala-arkts/arkui/src/component/textTimer.ets +++ b/arkoala-arkts/arkui/generated/component/textTimer.ets @@ -20,18 +20,18 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, DeserializerBase, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ShadowOptions_serializer, ArkCommonMethodPeer, CommonMethod, ShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ResourceColor, Length, ResourceStr } from "./units" import { Color, FontStyle, FontWeight } from "./enums" -import { ContentModifier, AttributeModifier, hookTextTimerContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookTextTimerContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class TextTimerControllerInternal { public static fromPtr(ptr: KPointer): TextTimerController { return new TextTimerController(ptr) diff --git a/arkoala-arkts/arkui/src/component/timePicker.ets b/arkoala-arkts/arkui/generated/component/timePicker.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/timePicker.ets rename to arkoala-arkts/arkui/generated/component/timePicker.ets index eac974a7c303a67a7a381e9020eb854dd7cbf3c4..da3635b0aa7cdff5dfb0ca4b0aa04a1eb14f121c 100644 --- a/arkoala-arkts/arkui/src/component/timePicker.ets +++ b/arkoala-arkts/arkui/generated/component/timePicker.ets @@ -21,19 +21,19 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPoin import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTextStyle, Bindable, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Date_serializer } from "./common" -import { intl_DateTimeOptions_serializer, intl } from "./../generated/ohos.intl" +import { intl_DateTimeOptions_serializer, intl } from "./../framework/ohos.intl" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { CrownSensitivity, Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { DialogAlignment } from "./alertDialog" import { Offset, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class TimePickerDialogInternal { public static fromPtr(ptr: KPointer): TimePickerDialog { return new TimePickerDialog(ptr) diff --git a/arkoala-arkts/arkui/src/component/toggle.ets b/arkoala-arkts/arkui/generated/component/toggle.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/toggle.ets rename to arkoala-arkts/arkui/generated/component/toggle.ets index 9407431af31b614d024be9200c6bfe06fba95da4..619b82b69a492806f4413b8115348a13efac3b68 100644 --- a/arkoala-arkts/arkui/src/component/toggle.ets +++ b/arkoala-arkts/arkui/generated/component/toggle.ets @@ -17,21 +17,21 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Boolean_serializer } from "./common" -import { ContentModifier, AttributeModifier, hookToggleContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, hookToggleContentModifier, UICommonBase, AttributeUpdater } from "#handwritten" import { ResourceColor } from "./units" import { Color } from "./enums" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkTogglePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/uiExtensionComponent.ets b/arkoala-arkts/arkui/generated/component/uiExtensionComponent.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/uiExtensionComponent.ets rename to arkoala-arkts/arkui/generated/component/uiExtensionComponent.ets index a22fab6bb904b5e72aeabee87d4471d587329856..950724b1a2309207b0f1d58e687fc13c1918231f 100644 --- a/arkoala-arkts/arkui/src/component/uiExtensionComponent.ets +++ b/arkoala-arkts/arkui/generated/component/uiExtensionComponent.ets @@ -20,18 +20,18 @@ import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" -import { Want_serializer, Want } from "./../generated/ohos.app.ability.Want" +import { Want_serializer, Want } from "./../framework/ohos.app.ability.Want" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, TerminationInfo, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { ErrorCallback, BusinessError } from "./../generated/ohos.base" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ErrorCallback, BusinessError } from "./../framework/ohos.base" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { ComponentContent, ComponentContent_serializer } from "./../generated/arkui.ComponentContent" +import { ComponentContent, ComponentContent_serializer } from "./../framework/arkui.ComponentContent" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export interface UIExtensionProxy { send(data: Map): void sendSync(data: Map): Map diff --git a/arkoala-arkts/arkui/src/component/units.ets b/arkoala-arkts/arkui/generated/component/units.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/units.ets rename to arkoala-arkts/arkui/generated/component/units.ets index 5e03adcd54182e77cfd76e66d2337f86d4362793..82561bce23f2c7d0709f9a520ff4261a8b38fd0c 100644 --- a/arkoala-arkts/arkui/src/component/units.ets +++ b/arkoala-arkts/arkui/generated/component/units.ets @@ -22,8 +22,8 @@ import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource, Resource_serializer } from "./../generated/resource" -import { LengthMetrics, LengthMetricsUnit, ColorMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" +import { Resource, Resource_serializer } from "./../framework/resource" +import { LengthMetrics, LengthMetricsUnit, ColorMetrics, LengthMetrics_serializer } from "./../framework/arkui.Graphics" import { Color, BorderStyle, FontWeight, FontStyle, DividerMode } from "./enums" import { OutlineStyle } from "./common" export class ColorFilterInternal { @@ -57,7 +57,7 @@ export class ColorFilter implements MaterializedBase { return ArkUIGeneratedNativeModule._ColorFilter_getFinalizer() } } -export { Resource } from "./../generated/resource" +export { Resource } from "./../framework/resource" export type Length = string | number | Resource; export type PX = string; export type VP = string | number; @@ -152,9 +152,9 @@ export interface LengthConstrain { maxLength: Length; } export type VoidCallback = () => void; -export { LengthMetricsUnit } from "./../generated/arkui.Graphics" -export { LengthMetrics } from "./../generated/arkui.Graphics" -export { ColorMetrics } from "./../generated/arkui.Graphics" +export { LengthMetricsUnit } from "./../framework/arkui.Graphics" +export { LengthMetrics } from "./../framework/arkui.Graphics" +export { ColorMetrics } from "./../framework/arkui.Graphics" export interface Font { size?: Length; weight?: FontWeight | number | string; diff --git a/arkoala-arkts/arkui/src/component/video.ets b/arkoala-arkts/arkui/generated/component/video.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/video.ets rename to arkoala-arkts/arkui/generated/component/video.ets index e19e3dfb7f54f51d67c18f25e1dba0d0bdcec69a..e55da69026ef61a1208de592f40a0141dd50f390 100644 --- a/arkoala-arkts/arkui/src/component/video.ets +++ b/arkoala-arkts/arkui/generated/component/video.ets @@ -21,20 +21,20 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, toPeerPtr, KPoin import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { ImageAnalyzerConfig_serializer, ImageAnalyzerConfig, ImageAIOptions, ImageAIOptions_serializer } from "./imageCommon" -import { ColorMetrics_serializer, ColorMetrics } from "./../generated/arkui.Graphics" +import { ColorMetrics_serializer, ColorMetrics } from "./../framework/arkui.Graphics" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { ImageFit } from "./enums" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource, Resource_serializer } from "./../generated/resource" -import { image, image_PixelMap_serializer } from "./../generated/ohos.multimedia.image" +import { Resource, Resource_serializer } from "./../framework/resource" +import { image, image_PixelMap_serializer } from "./../framework/ohos.multimedia.image" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class VideoControllerInternal { public static fromPtr(ptr: KPointer): VideoController { return new VideoController(ptr) diff --git a/arkoala-arkts/arkui/src/component/waterFlow.ets b/arkoala-arkts/arkui/generated/component/waterFlow.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/waterFlow.ets rename to arkoala-arkts/arkui/generated/component/waterFlow.ets index 84849ea0a97970b6fc50f2538114077b08acb7a0..e55b33eca96a02f5593e1a98367cd75dddc252cf 100644 --- a/arkoala-arkts/arkui/src/component/waterFlow.ets +++ b/arkoala-arkts/arkui/generated/component/waterFlow.ets @@ -21,21 +21,21 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { ConstraintSizeOptions_serializer, ConstraintSizeOptions, Length, Dimension, Padding, Padding_serializer } from "./units" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer, Resource } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkScrollableCommonMethodPeer, ScrollableCommonMethod, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, ScrollableCommonMethodModifier, CommonMethodModifier } from "./common" import { FlexDirection, ScrollSource } from "./enums" import { OnScrollFrameBeginCallback, Scroller, Scroller_serializer } from "./scroll" import { ScrollState } from "./list" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent, ComponentContent_serializer } from "./../generated/arkui.ComponentContent" +import { ComponentContent, ComponentContent_serializer } from "./../framework/arkui.ComponentContent" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class WaterFlowSectionsInternal { public static fromPtr(ptr: KPointer): WaterFlowSections { return new WaterFlowSections(ptr) diff --git a/arkoala-arkts/arkui/src/component/web.ets b/arkoala-arkts/arkui/generated/component/web.ets similarity index 100% rename from arkoala-arkts/arkui/src/component/web.ets rename to arkoala-arkts/arkui/generated/component/web.ets diff --git a/arkoala-arkts/arkui/src/component/windowScene.ets b/arkoala-arkts/arkui/generated/component/windowScene.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/windowScene.ets rename to arkoala-arkts/arkui/generated/component/windowScene.ets index 0f63b9ac73afabd2b00ed333f16772d5b335e562..45200c110722062260e03a6906c627469caa8f77 100644 --- a/arkoala-arkts/arkui/src/component/windowScene.ets +++ b/arkoala-arkts/arkui/generated/component/windowScene.ets @@ -23,14 +23,14 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { Resource } from "./../generated/resource" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { Resource } from "./../framework/resource" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkWindowScenePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/withTheme.ets b/arkoala-arkts/arkui/generated/component/withTheme.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/withTheme.ets rename to arkoala-arkts/arkui/generated/component/withTheme.ets index 808946f9e567deec5a752319de4ecd105adb9af3..0a6a50231668fe05b2981a00d7603648bdad8b76 100644 --- a/arkoala-arkts/arkui/src/component/withTheme.ets +++ b/arkoala-arkts/arkui/generated/component/withTheme.ets @@ -21,15 +21,15 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { CustomTheme, CustomTheme_serializer } from "./../generated/ohos.arkui.theme" +import { CustomTheme, CustomTheme_serializer } from "./../framework/ohos.arkui.theme" import { ThemeColorMode } from "./common" -import { UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" +import { UICommonBase, AttributeModifier, AttributeUpdater } from "#handwritten" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class ArkWithThemePeer extends PeerNode { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala-arkts/arkui/src/component/xcomponent.ets b/arkoala-arkts/arkui/generated/component/xcomponent.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/xcomponent.ets rename to arkoala-arkts/arkui/generated/component/xcomponent.ets index bf277fd49354e8f01b32a30fbea6af5eca88e1b4..be086b0a7245f87b95f4290805830ded5fafce85 100644 --- a/arkoala-arkts/arkui/src/component/xcomponent.ets +++ b/arkoala-arkts/arkui/generated/component/xcomponent.ets @@ -25,13 +25,13 @@ import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, UICommonBase, AttributeUpdater } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { XComponentType } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { AttributeUpdaterFlag } from "./../framework/AttributeUpdater" export class XComponentControllerInternal { public static fromPtr(ptr: KPointer): XComponentController { return new XComponentController(ptr) diff --git a/arkoala-arkts/arkui/src/generated/AttributeUpdater.ets b/arkoala-arkts/arkui/generated/framework/AttributeUpdater.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/AttributeUpdater.ets rename to arkoala-arkts/arkui/generated/framework/AttributeUpdater.ets diff --git a/arkoala-arkts/arkui/src/generated/EnumsImpl.ets b/arkoala-arkts/arkui/generated/framework/EnumsImpl.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/EnumsImpl.ets rename to arkoala-arkts/arkui/generated/framework/EnumsImpl.ets diff --git a/arkoala-arkts/arkui/src/generated/GlobalScope.ets b/arkoala-arkts/arkui/generated/framework/GlobalScope.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/GlobalScope.ets rename to arkoala-arkts/arkui/generated/framework/GlobalScope.ets diff --git a/arkoala-arkts/arkui/src/generated/application.BaseContext.ets b/arkoala-arkts/arkui/generated/framework/application.BaseContext.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/application.BaseContext.ets rename to arkoala-arkts/arkui/generated/framework/application.BaseContext.ets diff --git a/arkoala-arkts/arkui/src/generated/application.Context.ets b/arkoala-arkts/arkui/generated/framework/application.Context.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/application.Context.ets rename to arkoala-arkts/arkui/generated/framework/application.Context.ets diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ets b/arkoala-arkts/arkui/generated/framework/arkts/ArkUIGeneratedNativeModule.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ets rename to arkoala-arkts/arkui/generated/framework/arkts/ArkUIGeneratedNativeModule.ets diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ets b/arkoala-arkts/arkui/generated/framework/arkts/ArkUINativeModule.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ets rename to arkoala-arkts/arkui/generated/framework/arkts/ArkUINativeModule.ets diff --git a/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ets b/arkoala-arkts/arkui/generated/framework/arkts/TestNativeModule.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ets rename to arkoala-arkts/arkui/generated/framework/arkts/TestNativeModule.ets diff --git a/arkoala-arkts/arkui/src/generated/arkts/index.ets b/arkoala-arkts/arkui/generated/framework/arkts/index.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkts/index.ets rename to arkoala-arkts/arkui/generated/framework/arkts/index.ets diff --git a/arkoala-arkts/arkui/src/generated/arkts/type_check.ets b/arkoala-arkts/arkui/generated/framework/arkts/type_check.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/arkts/type_check.ets rename to arkoala-arkts/arkui/generated/framework/arkts/type_check.ets index d0f966388042627ff97b24e84bc7954d3bf77aeb..7ce7071d7d4ec043495ab457a177e0f435c6b851 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/type_check.ets +++ b/arkoala-arkts/arkui/generated/framework/arkts/type_check.ets @@ -22,7 +22,7 @@ import { AccessibilityHoverType, Alignment, AnimationStatus, AppRotation, ArrowP import { AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, TouchEvent, ChainStyle, ContentClipMode, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, GestureModifier, UIGestureEvent, HapticFeedbackMode, HoverModeAreaType, KeyboardAvoidMode, Layoutable, Measurable, GeometryInfo, SizeResult, LayoutPolicy, LayoutSafeAreaEdge, LayoutSafeAreaType, RectResult, CommonConfiguration, TranslateOptions, ScaleOptions, RotateOptions, MenuPolicy, MenuPreviewMode, ModalTransition, NestedScrollOptions, OutlineStyle, PixelMapMock, PopupStateChangeParam, PreDragStatus, ProgressMask, PopupCommonOptions, MenuOptions, RepeatMode, SelectionOptions, SafeAreaEdge, SafeAreaType, ScrollResult, ScrollSizeMode, TextContentControllerBase, ShadowStyle, ShadowType, SheetKeyboardAvoidMode, SheetMode, SheetSize, SheetType, SourceType, CaretOffset, TextContentControllerOptions, ThemeColorMode, TouchTestInfo, TouchTestStrategy, TransitionEdge, TransitionEffect, AsymmetricTransitionOption, AnimateParam, TransitionHierarchyStrategy, UICommonEvent, ClickEvent, KeyEvent, HoverCallback, HoverEvent, MouseEvent, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback, SheetOptions, AlignRuleOption, BackgroundBrightnessOptions, BackgroundImageOptions, BackgroundOptions, Bindable, BlurOptions, ChildrenMainSize, ClickEffect, CrownEvent, DateRange, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, ModifierKeyStateGetter, Rectangle, DragInteractionOptions, DragItemInfo, DrawModifier, DropOptions, EdgeEffectOptions, ExpectedFrameRateRange, FocusMovement, ForegroundEffectOptions, GeometryTransitionOptions, InputCounterOptions, InvertOptions, ItemDragInfo, FractionStop, LinearGradientBlurOptions, LinearGradientOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, MeasureResult, MotionBlurAnchor, MotionBlurOptions, MotionPathOptions, OverlayOffset, PixelRoundPolicy, PopupButton, PreviewConfiguration, SheetDismiss, SpringBackAction, StateStyles, SystemAdaptiveOptions, ShadowOptions, TouchObject, TouchResult, BackgroundBlurStyleOptions, BlurStyleOptions, BackgroundEffectOptions, ContentCoverOptions, BindOptions, ContextMenuAnimationOptions, AnimationNumberRange, MultiShadowOptions, DragPreviewOptions, FadingEdgeOptions, ForegroundBlurStyleOptions, HistoricalPoint, LightSource, LocalizedAlignRuleOptions, MenuElement, OverlayOptions, PopupMaskType, ReuseOptions, ReuseIdCallback, sharedTransitionOptions, SheetTitleOptions, TerminationInfo, TextDecorationOptions, DividerStyle, PixelStretchEffectOptions, PointLightStyle, RadialGradientOptions, SweepGradientOptions, TipsOptions, BorderImageOption, ContextMenuOptions, BorderRadiusType, CustomPopupOptions, PopupStateChangeCallback, EventTarget, FocusAxisEvent, BaseEvent, LayoutChild, PickerDialogButtonStyle, PickerTextStyle, PopupMessageOptions, TripleLengthDetents, AccessibilityHoverEvent, AxisEvent, PopupOptions } from "./../../component/common" import { AnimationMode, BarMode, BarPosition, LayoutStyle, TabContentTransitionProxy, TabsAnimationEvent, TabsCacheMode, TabsController, TabContentAnimatedTransition, TabsOptions, BarGridColumnOptions, ScrollableBarModeOptions } from "./../../component/tabs" import { ArrowPosition, AvoidanceMode, MenuAlignType, MenuItemConfiguration, SelectOption, MenuOutlineOptions } from "./../../component/select" -import { AttributeModifier, ContentModifier, CustomStyles } from "./../../handwritten" +import { AttributeModifier, ContentModifier, CustomStyles } from "#handwritten" import { AttributeUpdaterFlag } from "./../AttributeUpdater" import { AutoCapitalizationMode, KeyboardAppearance, LayoutManager, PositionWithAffinity, MenuType, TextEditControllerEx, PreviewText, StyledStringController, StyledStringChangedListener, TextBaseController, TextRange, TextDataDetectorType, TextDeleteDirection, TextMenuOptions, TextMenuItemId, TextMenuShowMode, TextMenuItem, DeleteValue, EditMenuOptions, OnCreateMenuCallback, OnMenuItemClickCallback, FontSettingOptions, InsertValue, StyledStringChangeValue, OnDidChangeCallback, DecorationStyleResult, TextChangeOptions, CaretStyle, EditableTextChangeValue, TextDataDetectorConfig } from "./../../component/textCommon" import { BadgePosition, BadgeStyle, BadgeParamWithNumber, BadgeParam, BadgeParamWithString } from "./../../component/badge" diff --git a/arkoala-arkts/arkui/src/generated/arkui.CommonModifier.ets b/arkoala-arkts/arkui/generated/framework/arkui.CommonModifier.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.CommonModifier.ets rename to arkoala-arkts/arkui/generated/framework/arkui.CommonModifier.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.ComponentContent.ets b/arkoala-arkts/arkui/generated/framework/arkui.ComponentContent.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.ComponentContent.ets rename to arkoala-arkts/arkui/generated/framework/arkui.ComponentContent.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.Content.ets b/arkoala-arkts/arkui/generated/framework/arkui.Content.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.Content.ets rename to arkoala-arkts/arkui/generated/framework/arkui.Content.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.FrameNode.ets b/arkoala-arkts/arkui/generated/framework/arkui.FrameNode.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.FrameNode.ets rename to arkoala-arkts/arkui/generated/framework/arkui.FrameNode.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.Graphics.ets b/arkoala-arkts/arkui/generated/framework/arkui.Graphics.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.Graphics.ets rename to arkoala-arkts/arkui/generated/framework/arkui.Graphics.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.ImageModifier.ets b/arkoala-arkts/arkui/generated/framework/arkui.ImageModifier.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.ImageModifier.ets rename to arkoala-arkts/arkui/generated/framework/arkui.ImageModifier.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.NodeController.ets b/arkoala-arkts/arkui/generated/framework/arkui.NodeController.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.NodeController.ets rename to arkoala-arkts/arkui/generated/framework/arkui.NodeController.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.RenderNode.ets b/arkoala-arkts/arkui/generated/framework/arkui.RenderNode.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.RenderNode.ets rename to arkoala-arkts/arkui/generated/framework/arkui.RenderNode.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.SymbolGlyphModifier.ets b/arkoala-arkts/arkui/generated/framework/arkui.SymbolGlyphModifier.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.SymbolGlyphModifier.ets rename to arkoala-arkts/arkui/generated/framework/arkui.SymbolGlyphModifier.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.TextModifier.ets b/arkoala-arkts/arkui/generated/framework/arkui.TextModifier.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.TextModifier.ets rename to arkoala-arkts/arkui/generated/framework/arkui.TextModifier.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.nodecontent.ets b/arkoala-arkts/arkui/generated/framework/arkui.nodecontent.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.nodecontent.ets rename to arkoala-arkts/arkui/generated/framework/arkui.nodecontent.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorConsume.ets b/arkoala-arkts/arkui/generated/framework/arkui.stateManagement.decorators.decoratorConsume.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorConsume.ets rename to arkoala-arkts/arkui/generated/framework/arkui.stateManagement.decorators.decoratorConsume.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorProvide.ets b/arkoala-arkts/arkui/generated/framework/arkui.stateManagement.decorators.decoratorProvide.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorProvide.ets rename to arkoala-arkts/arkui/generated/framework/arkui.stateManagement.decorators.decoratorProvide.ets diff --git a/arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorWatch.ets b/arkoala-arkts/arkui/generated/framework/arkui.stateManagement.decorators.decoratorWatch.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorWatch.ets rename to arkoala-arkts/arkui/generated/framework/arkui.stateManagement.decorators.decoratorWatch.ets diff --git a/arkoala-arkts/arkui/src/generated/base.ets b/arkoala-arkts/arkui/generated/framework/base.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/base.ets rename to arkoala-arkts/arkui/generated/framework/base.ets diff --git a/arkoala-arkts/arkui/sdk/generated/index.ets b/arkoala-arkts/arkui/generated/framework/index.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/index.ets rename to arkoala-arkts/arkui/generated/framework/index.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.app.ability.Want.ets b/arkoala-arkts/arkui/generated/framework/ohos.app.ability.Want.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.app.ability.Want.ets rename to arkoala-arkts/arkui/generated/framework/ohos.app.ability.Want.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.app.ability.common.ets b/arkoala-arkts/arkui/generated/framework/ohos.app.ability.common.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.app.ability.common.ets rename to arkoala-arkts/arkui/generated/framework/ohos.app.ability.common.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.UIContext.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.UIContext.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.UIContext.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.UIContext.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.drawableDescriptor.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.drawableDescriptor.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.drawableDescriptor.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.drawableDescriptor.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.node.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.node.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.node.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.node.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.observer.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.observer.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.observer.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.observer.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.shape.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.shape.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.shape.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.shape.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.theme.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.theme.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.theme.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.theme.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.base.ets b/arkoala-arkts/arkui/generated/framework/ohos.base.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.base.ets rename to arkoala-arkts/arkui/generated/framework/ohos.base.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.curves.ets b/arkoala-arkts/arkui/generated/framework/ohos.curves.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.curves.ets rename to arkoala-arkts/arkui/generated/framework/ohos.curves.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.data.unifiedDataChannel.ets b/arkoala-arkts/arkui/generated/framework/ohos.data.unifiedDataChannel.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.data.unifiedDataChannel.ets rename to arkoala-arkts/arkui/generated/framework/ohos.data.unifiedDataChannel.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.data.uniformTypeDescriptor.ets b/arkoala-arkts/arkui/generated/framework/ohos.data.uniformTypeDescriptor.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.data.uniformTypeDescriptor.ets rename to arkoala-arkts/arkui/generated/framework/ohos.data.uniformTypeDescriptor.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.font.ets b/arkoala-arkts/arkui/generated/framework/ohos.font.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.font.ets rename to arkoala-arkts/arkui/generated/framework/ohos.font.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.graphics.common2D.ets b/arkoala-arkts/arkui/generated/framework/ohos.graphics.common2D.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.graphics.common2D.ets rename to arkoala-arkts/arkui/generated/framework/ohos.graphics.common2D.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.graphics.drawing.ets b/arkoala-arkts/arkui/generated/framework/ohos.graphics.drawing.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.graphics.drawing.ets rename to arkoala-arkts/arkui/generated/framework/ohos.graphics.drawing.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.graphics.text.ets b/arkoala-arkts/arkui/generated/framework/ohos.graphics.text.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.graphics.text.ets rename to arkoala-arkts/arkui/generated/framework/ohos.graphics.text.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.graphics.uiEffect.ets b/arkoala-arkts/arkui/generated/framework/ohos.graphics.uiEffect.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.graphics.uiEffect.ets rename to arkoala-arkts/arkui/generated/framework/ohos.graphics.uiEffect.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.intl.ets b/arkoala-arkts/arkui/generated/framework/ohos.intl.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.intl.ets rename to arkoala-arkts/arkui/generated/framework/ohos.intl.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.matrix4.ets b/arkoala-arkts/arkui/generated/framework/ohos.matrix4.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.matrix4.ets rename to arkoala-arkts/arkui/generated/framework/ohos.matrix4.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.measure.ets b/arkoala-arkts/arkui/generated/framework/ohos.measure.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.measure.ets rename to arkoala-arkts/arkui/generated/framework/ohos.measure.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.multimedia.image.ets b/arkoala-arkts/arkui/generated/framework/ohos.multimedia.image.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.multimedia.image.ets rename to arkoala-arkts/arkui/generated/framework/ohos.multimedia.image.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.multimodalInput.intentionCode.ets b/arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.intentionCode.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.multimodalInput.intentionCode.ets rename to arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.intentionCode.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.multimodalInput.pointer.ets b/arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.pointer.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.multimodalInput.pointer.ets rename to arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.pointer.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.promptAction.ets b/arkoala-arkts/arkui/generated/framework/ohos.promptAction.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.promptAction.ets rename to arkoala-arkts/arkui/generated/framework/ohos.promptAction.ets diff --git a/arkoala-arkts/arkui/src/generated/ohos.window.ets b/arkoala-arkts/arkui/generated/framework/ohos.window.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/ohos.window.ets rename to arkoala-arkts/arkui/generated/framework/ohos.window.ets diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ets b/arkoala-arkts/arkui/generated/framework/peers/CallbackDeserializeCall.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ets rename to arkoala-arkts/arkui/generated/framework/peers/CallbackDeserializeCall.ets diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackKind.ets b/arkoala-arkts/arkui/generated/framework/peers/CallbackKind.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/peers/CallbackKind.ets rename to arkoala-arkts/arkui/generated/framework/peers/CallbackKind.ets diff --git a/arkoala-arkts/arkui/src/generated/resource.ets b/arkoala-arkts/arkui/generated/framework/resource.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/resource.ets rename to arkoala-arkts/arkui/generated/framework/resource.ets diff --git a/arkoala-arkts/arkui/src/generated/searchOps.ets b/arkoala-arkts/arkui/generated/framework/searchOps.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/searchOps.ets rename to arkoala-arkts/arkui/generated/framework/searchOps.ets diff --git a/arkoala-arkts/arkui/src/generated/stateManagement.ets b/arkoala-arkts/arkui/generated/framework/stateManagement.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/stateManagement.ets rename to arkoala-arkts/arkui/generated/framework/stateManagement.ets diff --git a/arkoala-arkts/arkui/src/generated/textFieldOps.ets b/arkoala-arkts/arkui/generated/framework/textFieldOps.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/textFieldOps.ets rename to arkoala-arkts/arkui/generated/framework/textFieldOps.ets diff --git a/arkoala-arkts/arkui/package.json b/arkoala-arkts/arkui/package.json index 0a5ffe45208350ac48c945cd4f570ae85d6f7091..6200cdc1416daa6f102c27fdde03d91b73dbee26 100644 --- a/arkoala-arkts/arkui/package.json +++ b/arkoala-arkts/arkui/package.json @@ -4,8 +4,8 @@ "description": "", "scripts": { "interface-sdk:download": "node scripts/download-interface-sdk.mjs", - "clean": "rimraf build build-sdk", - "copy:abc": "mkdir -p ../build/bootPandaFiles/ && cp ./build/arkui.abc ../build/bootPandaFiles/arkui.abc", - "build": "node ../../ui2abc/fast-arktsc --simultaneous --config ./ui2abcconfig.json --compiler ../../incremental/tools/panda/arkts/ui2abc --link-name ./build/arkui.abc && ninja ${NINJA_OPTIONS} -f build/build.ninja && npm run copy:abc" + "clean": "rimraf prepared build build-sdk build-impl", + "copy:abc": "mkdir -p ../build/bootPandaFiles/ && cp ../arkui/build/arkui.abc ../build/bootPandaFiles/arkui.abc", + "build": "node ../tools/prepare.mjs .. && node ../../ui2abc/fast-arktsc --simultaneous --config ./ui2abcconfig.json --compiler ../../incremental/tools/panda/arkts/ui2abc --link-name ./build/arkui.abc && ninja ${NINJA_OPTIONS} -f build/build.ninja && npm run copy:abc" } } diff --git a/arkoala-arkts/arkui/sdk/component/actionSheet.ets b/arkoala-arkts/arkui/sdk/component/actionSheet.ets index fd23400350542ac119a07570200b44504b35630c..35c9c44c26baef3af7e616a50a954b0515366809 100644 --- a/arkoala-arkts/arkui/sdk/component/actionSheet.ets +++ b/arkoala-arkts/arkui/sdk/component/actionSheet.ets @@ -20,12 +20,12 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { VoidCallback, ResourceStr, ResourceColor, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles } from "./units" import { DismissReason, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, TransitionEffect, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./common" import { DialogButtonStyle, Color, BorderStyle } from "./enums" import { DialogAlignment } from "./alertDialog" -import { LevelMode, ImmersiveMode, LevelOrder } from "./../generated/ohos.promptAction" +import { LevelMode, ImmersiveMode, LevelOrder } from "./../framework/ohos.promptAction" export declare interface SheetInfo { title: string | Resource; icon?: string | Resource; diff --git a/arkoala-arkts/arkui/sdk/component/alertDialog.ets b/arkoala-arkts/arkui/sdk/component/alertDialog.ets index 4b4d74e90f5ceba4266539c5ab680159ffefe335..733f3cc6ce5e3a4bd86d7e01eba995222455e89c 100644 --- a/arkoala-arkts/arkui/sdk/component/alertDialog.ets +++ b/arkoala-arkts/arkui/sdk/component/alertDialog.ets @@ -22,10 +22,10 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { DialogButtonStyle, Color, WordBreak, BorderStyle } from "./enums" import { ResourceStr, ResourceColor, VoidCallback, Offset, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { DismissDialogAction } from "./actionSheet" import { Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, TransitionEffect, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./common" -import { LevelMode, ImmersiveMode, LevelOrder } from "./../generated/ohos.promptAction" +import { LevelMode, ImmersiveMode, LevelOrder } from "./../framework/ohos.promptAction" export enum DialogAlignment { TOP = 0, Top = 0, diff --git a/arkoala-arkts/arkui/sdk/component/alphabetIndexer.ets b/arkoala-arkts/arkui/sdk/component/alphabetIndexer.ets index 4f944d5d70e54c543cc2886507a0c6eece91e38f..e60414d2b9471fd014fafd8b40203f190f5a1f56 100644 --- a/arkoala-arkts/arkui/sdk/component/alphabetIndexer.ets +++ b/arkoala-arkts/arkui/sdk/component/alphabetIndexer.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { Bindable, CommonMethod, BlurStyle, ArkCommonMethodStyle } from "./common" import { ResourceColor, Font, Position, Length } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum IndexerAlign { LEFT = 0, diff --git a/arkoala-arkts/arkui/sdk/component/animator.ets b/arkoala-arkts/arkui/sdk/component/animator.ets index 3a99ef6569c1f496c916d2ecf097ca3a40327512..a78d4e8c6116b39a56d65826e25c5025c4959ef4 100644 --- a/arkoala-arkts/arkui/sdk/component/animator.ets +++ b/arkoala-arkts/arkui/sdk/component/animator.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AnimationStatus, FillMode, PlayMode } from "./enums" -import { curves } from "./../generated/ohos.curves" +import { curves } from "./../framework/ohos.curves" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare class SpringProp { constructor(mass: number, stiffness: number, damping: number) diff --git a/arkoala-arkts/arkui/sdk/component/badge.ets b/arkoala-arkts/arkui/sdk/component/badge.ets index 3769454f9c8115f53c0663674b032e65de803b91..a405f8e9e0b62346908aac4cda253687758ea2b6 100644 --- a/arkoala-arkts/arkui/sdk/component/badge.ets +++ b/arkoala-arkts/arkui/sdk/component/badge.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, ResourceStr, Length, Position } from "./units" import { Color, FontWeight } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum BadgePosition { diff --git a/arkoala-arkts/arkui/sdk/component/blank.ets b/arkoala-arkts/arkui/sdk/component/blank.ets index d5e5feb62e886f4723bb551f2f226066bd7dbef4..41d7b21f614ed80f7b90f51d9c5c04a1833d2c5a 100644 --- a/arkoala-arkts/arkui/sdk/component/blank.ets +++ b/arkoala-arkts/arkui/sdk/component/blank.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceColor } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export interface BlankAttribute extends CommonMethod { color(value: ResourceColor | undefined): this { diff --git a/arkoala-arkts/arkui/sdk/component/button.ets b/arkoala-arkts/arkui/sdk/component/button.ets index f6ab79aa2fbfd7e8917cbbb40ebd72dbe61e14cd..a8fa4f1f1d2cce1df03582ea08719f7ce27ea4fb 100644 --- a/arkoala-arkts/arkui/sdk/component/button.ets +++ b/arkoala-arkts/arkui/sdk/component/button.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonConfiguration, CommonMethod, ArkCommonMethodStyle } from "./common" import { TextOverflow, TextHeightAdaptivePolicy, Color, FontWeight, FontStyle } from "./enums" import { ResourceStr, Font, ResourceColor, Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum ButtonType { CAPSULE = 0, diff --git a/arkoala-arkts/arkui/sdk/component/calendarPicker.ets b/arkoala-arkts/arkui/sdk/component/calendarPicker.ets index b126d4c49127b1092a4471e96f696f2a20c830ba..3069fc2f838348e0d6828155a279b566bd582a9a 100644 --- a/arkoala-arkts/arkui/sdk/component/calendarPicker.ets +++ b/arkoala-arkts/arkui/sdk/component/calendarPicker.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { DateRange, CommonMethod, PickerTextStyle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Offset, VoidCallback, ResourceColor } from "./units" diff --git a/arkoala-arkts/arkui/sdk/component/canvas.ets b/arkoala-arkts/arkui/sdk/component/canvas.ets index d55251afaf04cedcde7d5feb70dfa5580b7f380f..5d2d85ab2b2922aca4eddb20ffdd954d5885cc34 100644 --- a/arkoala-arkts/arkui/sdk/component/canvas.ets +++ b/arkoala-arkts/arkui/sdk/component/canvas.ets @@ -20,10 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetricsUnit, LengthMetrics, Size } from "./../generated/arkui.Graphics" +import { LengthMetricsUnit, LengthMetrics, Size } from "./../framework/arkui.Graphics" import { Matrix2D } from "./matrix2d" -import { image } from "./../generated/ohos.multimedia.image" -import { FrameNode } from "./../generated/arkui.FrameNode" +import { image } from "./../framework/ohos.multimedia.image" +import { FrameNode } from "./../framework/arkui.FrameNode" import { ImageAnalyzerConfig, ImageAIOptions } from "./imageCommon" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { VoidCallback } from "./units" diff --git a/arkoala-arkts/arkui/sdk/component/checkbox.ets b/arkoala-arkts/arkui/sdk/component/checkbox.ets index 2f6858a6090dd06ea1cd698f8de511b98dbb211b..2e039670276fcf5310f78084b2d07e978059c909 100644 --- a/arkoala-arkts/arkui/sdk/component/checkbox.ets +++ b/arkoala-arkts/arkui/sdk/component/checkbox.ets @@ -24,7 +24,7 @@ import { CustomBuilder } from "./builder" import { CommonConfiguration, CommonMethod, Bindable, ArkCommonMethodStyle } from "./common" import { ResourceColor, MarkStyle } from "./units" import { Color, CheckBoxShape } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface CheckboxOptions { name?: string; diff --git a/arkoala-arkts/arkui/sdk/component/checkboxgroup.ets b/arkoala-arkts/arkui/sdk/component/checkboxgroup.ets index b4f474f1145be234808a2e14e6eb8385832782cf..5602c109bdf5e265121ab40fcf64cd8a40e13049 100644 --- a/arkoala-arkts/arkui/sdk/component/checkboxgroup.ets +++ b/arkoala-arkts/arkui/sdk/component/checkboxgroup.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, Bindable, ArkCommonMethodStyle } from "./common" import { ResourceColor, MarkStyle } from "./units" import { Color, CheckBoxShape } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum SelectStatus { ALL = 0, diff --git a/arkoala-arkts/arkui/sdk/component/column.ets b/arkoala-arkts/arkui/sdk/component/column.ets index 194eac71390d2254517bd0063827a6ab322d5fa2..88ed91401818aeea7834dab02a8e42d9d4fb427c 100644 --- a/arkoala-arkts/arkui/sdk/component/column.ets +++ b/arkoala-arkts/arkui/sdk/component/column.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonMethod, PointLightStyle, ArkCommonMethodStyle } from "./common" import { HorizontalAlign, FlexAlign } from "./enums" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/columnSplit.ets b/arkoala-arkts/arkui/sdk/component/columnSplit.ets index 386785beec02745695e90d6991bff85f79a11013..f534ec95b102f1e188fc948a184f4c710256590b 100644 --- a/arkoala-arkts/arkui/sdk/component/columnSplit.ets +++ b/arkoala-arkts/arkui/sdk/component/columnSplit.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Dimension } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface ColumnSplitDividerStyle { diff --git a/arkoala-arkts/arkui/sdk/component/common.ets b/arkoala-arkts/arkui/sdk/component/common.ets index 79787b1a6e44fbee98e1f9346d2841a8f267d0d1..3227e705d684cf0591b91e090940c774e983f963 100644 --- a/arkoala-arkts/arkui/sdk/component/common.ets +++ b/arkoala-arkts/arkui/sdk/component/common.ets @@ -22,33 +22,33 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { TransitionType, TextDecorationType, Color, TextDecorationStyle, PlayMode, SharedTransitionEffectType, GradientDirection, HorizontalAlign, VerticalAlign, FontWeight, FontStyle, ColoringStrategy, InteractionHand, MouseButton, MouseAction, AccessibilityHoverType, TouchType, AxisAction, KeyType, KeySource, AxisModel, CrownAction, BorderStyle, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, ImageRepeat, Alignment, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, FocusDrawLevel, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, BarState, CrownSensitivity, EdgeEffect, ScrollSource, IlluminatedType } from "./enums" import { Position, ConstraintSizeOptions, ResourceColor, Length, Bias, Area, Font, BorderRadiuses, EdgeWidths, LocalizedEdgeWidths, SizeOptions, VoidCallback, ResourceStr, Dimension, EdgeColors, LocalizedEdgeColors, EdgeStyles, LocalizedBorderRadiuses, Padding, EdgeOutlineWidths, ChainWeightOptions, LocalizedPadding, BorderOptions, OutlineOptions, EdgeOutlineStyles, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, DirectionalEdgesT } from "./units" -import { Resource } from "./../generated/resource" -import { Context } from "./../generated/application.Context" -import { curves } from "./../generated/ohos.curves" -import { DrawContext, LengthMetrics } from "./../generated/arkui.Graphics" -import { image } from "./../generated/ohos.multimedia.image" +import { Resource } from "./../framework/resource" +import { Context } from "./../framework/application.Context" +import { curves } from "./../framework/ohos.curves" +import { DrawContext, LengthMetrics } from "./../framework/arkui.Graphics" +import { image } from "./../framework/ohos.multimedia.image" import { CustomBuilder } from "./builder" -import { pointer } from "./../generated/ohos.multimodalInput.pointer" +import { pointer } from "./../framework/ohos.multimodalInput.pointer" import { ButtonType, ButtonStyleMode, ButtonRole } from "./button" import { BaseGestureEvent, GestureRecognizer, GestureJudgeResult, GestureInfo, GestureType, Gesture, GestureMask, GestureHandler, GesturePriority } from "./gesture" -import { unifiedDataChannel } from "./../generated/ohos.data.unifiedDataChannel" -import { uniformTypeDescriptor } from "./../generated/ohos.data.uniformTypeDescriptor" -import { IntentionCode } from "./../generated/ohos.multimodalInput.intentionCode" -import { UIContext } from "./../generated/ohos.arkui.UIContext" +import { unifiedDataChannel } from "./../framework/ohos.data.unifiedDataChannel" +import { uniformTypeDescriptor } from "./../framework/ohos.data.uniformTypeDescriptor" +import { IntentionCode } from "./../framework/ohos.multimodalInput.intentionCode" +import { UIContext } from "./../framework/ohos.arkui.UIContext" import { CustomStyles, ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" import { StyledString } from "./styledString" import { ResizableOptions } from "./image" -import { uiEffect } from "./../generated/ohos.graphics.uiEffect" +import { uiEffect } from "./../framework/ohos.graphics.uiEffect" import { FocusBoxStyle, FocusPriority } from "./focus" -import { CircleShape, EllipseShape, PathShape, RectShape } from "./../generated/ohos.arkui.shape" -import { ComponentContent } from "./../generated/arkui.ComponentContent" -import { uiObserver } from "./../generated/ohos.arkui.observer" -import { promptAction } from "./../generated/ohos.promptAction" +import { CircleShape, EllipseShape, PathShape, RectShape } from "./../framework/ohos.arkui.shape" +import { ComponentContent } from "./../framework/arkui.ComponentContent" +import { uiObserver } from "./../framework/ohos.arkui.observer" +import { promptAction } from "./../framework/ohos.promptAction" import { TextRange } from "./textCommon" import { ScrollState } from "./list" -import { Want } from "./../generated/ohos.app.ability.Want" -import { intl } from "./../generated/ohos.intl" +import { Want } from "./../framework/ohos.app.ability.Want" +import { intl } from "./../framework/ohos.intl" export declare interface TransitionOptions { type?: TransitionType; opacity?: number; @@ -81,7 +81,7 @@ export type ReuseIdCallback = () => string; export declare interface ReuseOptions { reuseId?: ReuseIdCallback; } -export { Context } from "./../generated/application.Context" +export { Context } from "./../framework/application.Context" export declare interface Configuration { readonly colorMode: string; readonly fontScale: number; @@ -2676,8 +2676,8 @@ export declare interface MeasureResult extends SizeResult { export type NavDestinationInfo = uiObserver.NavDestinationInfo; export type NavigationInfo = uiObserver.NavigationInfo; export type RouterPageInfo = uiObserver.RouterPageInfo; -export { UIContext } from "./../generated/ohos.arkui.UIContext" -export { DrawContext } from "./../generated/arkui.Graphics" +export { UIContext } from "./../framework/ohos.arkui.UIContext" +export { DrawContext } from "./../framework/arkui.Graphics" export type VisualEffect = uiEffect.VisualEffect; export type Filter = uiEffect.Filter; export type Blender = uiEffect.Blender; diff --git a/arkoala-arkts/arkui/sdk/component/contentSlot.ets b/arkoala-arkts/arkui/sdk/component/contentSlot.ets index 13ab3689deeb17dca2aa0b90e146c1cafe1b516b..3282da961b963a0347644b14556630cc18c9e531 100644 --- a/arkoala-arkts/arkui/sdk/component/contentSlot.ets +++ b/arkoala-arkts/arkui/sdk/component/contentSlot.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Content } from "./../generated/ohos.arkui.node" +import { Content } from "./../framework/ohos.arkui.node" export declare interface ContentSlotAttribute { } export type ContentSlotInterface = (content: Content) => ContentSlotAttribute; diff --git a/arkoala-arkts/arkui/sdk/component/customDialogController.ets b/arkoala-arkts/arkui/sdk/component/customDialogController.ets index 436da0cc7ba0ff6ee1ca3238126fb2bae04f81e3..0527c039242cdad85c30b3d84bedfd09bdb7d968 100644 --- a/arkoala-arkts/arkui/sdk/component/customDialogController.ets +++ b/arkoala-arkts/arkui/sdk/component/customDialogController.ets @@ -26,10 +26,10 @@ import { ExtendableComponent } from "./extendableComponent" import { DialogAlignment } from "./alertDialog" import { Offset, ResourceColor, Dimension, BorderRadiuses, EdgeWidths, EdgeColors, EdgeStyles } from "./units" import { Color, BorderStyle } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { Rectangle, AnimateParam, ShadowOptions, ShadowStyle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, KeyboardAvoidMode, HoverModeAreaType } from "./common" -import { LengthMetrics } from "./../generated/arkui.Graphics" -import { LevelMode, ImmersiveMode, LevelOrder } from "./../generated/ohos.promptAction" +import { LengthMetrics } from "./../framework/arkui.Graphics" +import { LevelMode, ImmersiveMode, LevelOrder } from "./../framework/ohos.promptAction" export declare interface CustomDialogControllerOptions { builder: CustomBuilder | ExtendableComponent; cancel?: (() => void); diff --git a/arkoala-arkts/arkui/sdk/component/dataPanel.ets b/arkoala-arkts/arkui/sdk/component/dataPanel.ets index 481c86f65ce65a9d6954c9d61085412f4770d449..1fe2ef934d4605eebcb91f706740ca296de3b738 100644 --- a/arkoala-arkts/arkui/sdk/component/dataPanel.ets +++ b/arkoala-arkts/arkui/sdk/component/dataPanel.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, Length } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { MultiShadowOptions, CommonConfiguration, CommonMethod, ArkCommonMethodStyle } from "./common" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum DataPanelType { diff --git a/arkoala-arkts/arkui/sdk/component/datePicker.ets b/arkoala-arkts/arkui/sdk/component/datePicker.ets index 44d946a5317a05e0c3032fe66f63dfd733ebb524..4c0a80a0a7ac9b0146dc4eb39d6441f2ee81122d 100644 --- a/arkoala-arkts/arkui/sdk/component/datePicker.ets +++ b/arkoala-arkts/arkui/sdk/component/datePicker.ets @@ -24,9 +24,9 @@ import { Bindable, CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Recta import { CrownSensitivity, Color } from "./enums" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { ResourceColor, Offset, VoidCallback } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { DialogAlignment } from "./alertDialog" -import { intl } from "./../generated/ohos.intl" +import { intl } from "./../framework/ohos.intl" export declare interface DatePickerResult { year?: number; month?: number; diff --git a/arkoala-arkts/arkui/sdk/component/divider.ets b/arkoala-arkts/arkui/sdk/component/divider.ets index 8279811828d6f9d90ac42a2397360b0901f2648f..5f14da962eaab53e18481a608ddc9cb93ed04850 100644 --- a/arkoala-arkts/arkui/sdk/component/divider.ets +++ b/arkoala-arkts/arkui/sdk/component/divider.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceColor } from "./units" import { Color, LineCapStyle } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export interface DividerAttribute extends CommonMethod { vertical(value: boolean | undefined): this { diff --git a/arkoala-arkts/arkui/sdk/component/embeddedComponent.ets b/arkoala-arkts/arkui/sdk/component/embeddedComponent.ets index a24a61ef4cf46768fe836617e7358a8e373a36e6..ab3a5620bf04f9c29da1113deeaa9b63d8cbcb3a 100644 --- a/arkoala-arkts/arkui/sdk/component/embeddedComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/embeddedComponent.ets @@ -21,9 +21,9 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { TerminationInfo, CommonMethod, ArkCommonMethodStyle } from "./common" -import { ErrorCallback, BusinessError } from "./../generated/ohos.base" +import { ErrorCallback, BusinessError } from "./../framework/ohos.base" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { Want } from "./../generated/ohos.app.ability.Want" +import { Want } from "./../framework/ohos.app.ability.Want" import { EmbeddedType } from "./enums" export interface EmbeddedComponentAttribute extends CommonMethod { onTerminated(value: ((value0: TerminationInfo) => void) | undefined): this { diff --git a/arkoala-arkts/arkui/sdk/component/enums.ets b/arkoala-arkts/arkui/sdk/component/enums.ets index 6cc01eeeb0576583940a31ad35ad82360c88a5c6..9c42377470fd5cfcbc23d1ebf82c85277305261d 100644 --- a/arkoala-arkts/arkui/sdk/component/enums.ets +++ b/arkoala-arkts/arkui/sdk/component/enums.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { curves } from "./../generated/ohos.curves" +import { curves } from "./../framework/ohos.curves" export enum CheckBoxShape { CIRCLE = 0, ROUNDED_SQUARE = 1 diff --git a/arkoala-arkts/arkui/sdk/component/extendableComponent.ets b/arkoala-arkts/arkui/sdk/component/extendableComponent.ets index 3d0e3bc04d5467b0bd951448ac0f5abd7a06a4ed..da6a9e677dfc42691d539768e55cdd241ad88bf2 100644 --- a/arkoala-arkts/arkui/sdk/component/extendableComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/extendableComponent.ets @@ -20,12 +20,13 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { UIContext } from "./../generated/ohos.arkui.UIContext" -import { uiObserver } from "./../generated/ohos.arkui.observer" +import { UIContext } from "./../framework/ohos.arkui.UIContext" +import { uiObserver } from "./../framework/ohos.arkui.observer" export declare interface LifeCycle { aboutToAppear(): void aboutToDisappear(): void onDidBuild(): void + @memo build(): void } export declare abstract class ExtendableComponent implements LifeCycle { diff --git a/arkoala-arkts/arkui/sdk/component/flex.ets b/arkoala-arkts/arkui/sdk/component/flex.ets index 460d2944a8f570a52d81c9cbcd7818ea17bb7f0c..72d7499b151329979f4c6291841b7f21bf4b5320 100644 --- a/arkoala-arkts/arkui/sdk/component/flex.ets +++ b/arkoala-arkts/arkui/sdk/component/flex.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { FlexDirection, FlexWrap, FlexAlign, ItemAlign } from "./enums" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics } from "./../framework/arkui.Graphics" import { CommonMethod, PointLightStyle, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface FlexOptions { diff --git a/arkoala-arkts/arkui/sdk/component/focus.ets b/arkoala-arkts/arkui/sdk/component/focus.ets index 9e0471ef5664f68a6937450e8f037dfefad19651..43c26d6476c87e14008d7e3c5426c75230083093 100644 --- a/arkoala-arkts/arkui/sdk/component/focus.ets +++ b/arkoala-arkts/arkui/sdk/component/focus.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetrics, ColorMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics, ColorMetrics } from "./../framework/arkui.Graphics" export declare interface FocusBoxStyle { margin?: LengthMetrics; strokeColor?: ColorMetrics; diff --git a/arkoala-arkts/arkui/sdk/component/folderStack.ets b/arkoala-arkts/arkui/sdk/component/folderStack.ets index 78983cf89c07d2961f0b9b7d23b04b4bf870491a..3368ce1d4bf44e7dbf8cd9b827cceac47d345592 100644 --- a/arkoala-arkts/arkui/sdk/component/folderStack.ets +++ b/arkoala-arkts/arkui/sdk/component/folderStack.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { window } from "./../generated/ohos.window" +import { window } from "./../framework/ohos.window" import { FoldStatus, Alignment, AppRotation } from "./enums" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/formComponent.ets b/arkoala-arkts/arkui/sdk/component/formComponent.ets index ad3d2d6e32b9222f48353a965b07a4dd16990e91..1c43b09d61c86203180ffd68dcedbe71d228ff28 100644 --- a/arkoala-arkts/arkui/sdk/component/formComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/formComponent.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Want } from "./../generated/ohos.app.ability.Want" +import { Want } from "./../framework/ohos.app.ability.Want" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { Visibility } from "./enums" import { VoidCallback } from "./units" diff --git a/arkoala-arkts/arkui/sdk/component/gauge.ets b/arkoala-arkts/arkui/sdk/component/gauge.ets index 840fbec3e8837347fe093150ce07c0db4812af50..1868c640d402a0b32796a5335d45384904e71a7f 100644 --- a/arkoala-arkts/arkui/sdk/component/gauge.ets +++ b/arkoala-arkts/arkui/sdk/component/gauge.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { MultiShadowOptions, CommonConfiguration, CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceStr, Dimension, ResourceColor, Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { Color } from "./enums" import { LinearGradient } from "./dataPanel" import { CustomBuilder } from "./builder" diff --git a/arkoala-arkts/arkui/sdk/component/grid.ets b/arkoala-arkts/arkui/sdk/component/grid.ets index 2c128b0dd59601a8b999a3c67a14e808c2e4b5a3..419c6e10112a082e97ac26a578d4d0e4e0671c86 100644 --- a/arkoala-arkts/arkui/sdk/component/grid.ets +++ b/arkoala-arkts/arkui/sdk/component/grid.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ItemDragInfo, ScrollableCommonMethod, OnItemDragStartCallback, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodStyle, ArkCommonMethodStyle } from "./common" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { OnScrollFrameBeginCallback, Scroller } from "./scroll" import { ScrollState } from "./list" import { ScrollSource } from "./enums" diff --git a/arkoala-arkts/arkui/sdk/component/gridRow.ets b/arkoala-arkts/arkui/sdk/component/gridRow.ets index cad55fe60d06dd027c4e28d5a23e684631d4291e..b5e8602bd59b764bec07bf789f0c9c63f2516d12 100644 --- a/arkoala-arkts/arkui/sdk/component/gridRow.ets +++ b/arkoala-arkts/arkui/sdk/component/gridRow.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ItemAlign } from "./enums" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/hyperlink.ets b/arkoala-arkts/arkui/sdk/component/hyperlink.ets index 517bbb5bc9b26c0fd60f8b24854fdb39df2e587a..cbbcd75a9469a42696049144beb977a5bd53cfae 100644 --- a/arkoala-arkts/arkui/sdk/component/hyperlink.ets +++ b/arkoala-arkts/arkui/sdk/component/hyperlink.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export interface HyperlinkAttribute extends CommonMethod { color(value: Color | number | string | Resource | undefined): this { diff --git a/arkoala-arkts/arkui/sdk/component/idlize.ets b/arkoala-arkts/arkui/sdk/component/idlize.ets index ca51904cb2e442f3ab9be47b58f4b32ec8b7d7a7..f94d93023729259f1b4c236e0310aae02468b434 100644 --- a/arkoala-arkts/arkui/sdk/component/idlize.ets +++ b/arkoala-arkts/arkui/sdk/component/idlize.ets @@ -20,9 +20,9 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { curves } from "./../generated/ohos.curves" +import { curves } from "./../framework/ohos.curves" import { AnimateParam, TranslateOptions, TouchEvent, GeometryInfo, Measurable, SizeResult, Layoutable, ClickEvent } from "./common" -import { Size, Frame } from "./../generated/arkui.Graphics" +import { Size, Frame } from "./../framework/arkui.Graphics" import { ButtonConfiguration } from "./button" import { CheckBoxConfiguration } from "./checkbox" import { DataPanelConfiguration } from "./dataPanel" @@ -39,12 +39,12 @@ import { ToggleConfiguration } from "./toggle" import { ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" import { CustomDialogController } from "./customDialogController" import { CustomBuilder } from "./builder" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ResourceStr, ResourceColor, Position, Length, SizeOptions, ConstraintSizeOptions } from "./units" import { Color } from "./enums" -import { image } from "./../generated/ohos.multimedia.image" -import { FontOptions, FontInfo } from "./../generated/ohos.font" -import { MeasureOptions } from "./../generated/ohos.measure" +import { image } from "./../framework/ohos.multimedia.image" +import { FontOptions, FontInfo } from "./../framework/ohos.font" +import { MeasureOptions } from "./../framework/ohos.measure" import { NavPathStack, NavPathInfo, NavigationOptions } from "./navigation" export type Callback_Extender_OnProgress = (value: float) => void; export type Callback_Extender_OnFinish = () => void; diff --git a/arkoala-arkts/arkui/sdk/component/image.ets b/arkoala-arkts/arkui/sdk/component/image.ets index d8d8850bb44a614221fa1a18c54ba197bc8f8b86..fd3725134cd84503f301a09e1b626507eda908c8 100644 --- a/arkoala-arkts/arkui/sdk/component/image.ets +++ b/arkoala-arkts/arkui/sdk/component/image.ets @@ -20,18 +20,18 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { drawing } from "./../generated/ohos.graphics.drawing" -import { image } from "./../generated/ohos.multimedia.image" -import { matrix4 } from "./../generated/ohos.matrix4" +import { drawing } from "./../framework/ohos.graphics.drawing" +import { image } from "./../framework/ohos.multimedia.image" +import { matrix4 } from "./../framework/ohos.matrix4" import { CommonMethod, PointLightStyle, ArkCommonMethodStyle } from "./common" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ResourceColor, ColorFilter, EdgeWidths, ResourceStr } from "./units" import { Color, ImageFit, ImageRepeat, CopyOptions } from "./enums" -import { ColorMetrics } from "./../generated/arkui.Graphics" +import { ColorMetrics } from "./../framework/arkui.Graphics" import { ImageAnalyzerConfig, ImageAIOptions } from "./imageCommon" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { BusinessError } from "./../generated/ohos.base" -import { DrawableDescriptor } from "./../generated/ohos.arkui.drawableDescriptor" +import { BusinessError } from "./../framework/ohos.base" +import { DrawableDescriptor } from "./../framework/ohos.arkui.drawableDescriptor" export type DrawingColorFilter = drawing.ColorFilter; export type ResolutionQuality = image.ResolutionQuality; export type DrawingLattice = drawing.Lattice; diff --git a/arkoala-arkts/arkui/sdk/component/imageAnimator.ets b/arkoala-arkts/arkui/sdk/component/imageAnimator.ets index 27938a1131c1a15227732a85199cec7345a8a25e..a8339cb7cb3227e9f5a3aea813125f72498baaba 100644 --- a/arkoala-arkts/arkui/sdk/component/imageAnimator.ets +++ b/arkoala-arkts/arkui/sdk/component/imageAnimator.ets @@ -20,8 +20,8 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" -import { image } from "./../generated/ohos.multimedia.image" +import { Resource } from "./../framework/resource" +import { image } from "./../framework/ohos.multimedia.image" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AnimationStatus, FillMode } from "./enums" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/imageSpan.ets b/arkoala-arkts/arkui/sdk/component/imageSpan.ets index 12d76ff1508a132538fbaae54fcc15ff523ae3a2..491fbeb25e0aa4e000e609a0b0147e4b6543d4f5 100644 --- a/arkoala-arkts/arkui/sdk/component/imageSpan.ets +++ b/arkoala-arkts/arkui/sdk/component/imageSpan.ets @@ -23,12 +23,12 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { BaseSpan, ArkBaseSpanStyle } from "./span" import { ImageSpanAlignment, ImageFit } from "./enums" import { ColorFilter, ResourceStr } from "./units" -import { drawing } from "./../generated/ohos.graphics.drawing" +import { drawing } from "./../framework/ohos.graphics.drawing" import { ImageErrorCallback, ImageError } from "./image" -import { image } from "./../generated/ohos.multimedia.image" +import { image } from "./../framework/ohos.multimedia.image" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" export interface ImageSpanAttribute extends BaseSpan { verticalAlign(value: ImageSpanAlignment | undefined): this { throw new Error("Unimplemented method verticalAlign") diff --git a/arkoala-arkts/arkui/sdk/component/line.ets b/arkoala-arkts/arkui/sdk/component/line.ets index e640ba473a3cc778970182e91f8c3463c852925c..7df45d371ea2f45031520e89e5266bcf97ae075e 100644 --- a/arkoala-arkts/arkui/sdk/component/line.ets +++ b/arkoala-arkts/arkui/sdk/component/line.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export type ShapePoint = [ diff --git a/arkoala-arkts/arkui/sdk/component/linearindicator.ets b/arkoala-arkts/arkui/sdk/component/linearindicator.ets index 657eda0bb9656251a2f5d26497cac855b43009fe..6c153e31d17367511dae770dd6abbb34261fb0de 100644 --- a/arkoala-arkts/arkui/sdk/component/linearindicator.ets +++ b/arkoala-arkts/arkui/sdk/component/linearindicator.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetrics, ColorMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics, ColorMetrics } from "./../framework/arkui.Graphics" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare class LinearIndicatorController { diff --git a/arkoala-arkts/arkui/sdk/component/list.ets b/arkoala-arkts/arkui/sdk/component/list.ets index a60c6b086565a660e7501fcecd391ab660f44e09..5c6fe547190d3b37aa5c93aad1b0f3e62a0d2a02 100644 --- a/arkoala-arkts/arkui/sdk/component/list.ets +++ b/arkoala-arkts/arkui/sdk/component/list.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Length, ResourceColor, LengthConstrain, Dimension } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { Scroller, ScrollAlign, OnScrollFrameBeginCallback } from "./scroll" import { RectResult, ItemDragInfo, ScrollableCommonMethod, ChildrenMainSize, OnItemDragStartCallback, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodStyle, ArkCommonMethodStyle } from "./common" import { Color, Axis, ScrollSource } from "./enums" diff --git a/arkoala-arkts/arkui/sdk/component/listItem.ets b/arkoala-arkts/arkui/sdk/component/listItem.ets index 35951e88214f284d0d9de90c47a4704ab7146b87..493754f469f74aa3a1e4893600c1058c1a7a41a0 100644 --- a/arkoala-arkts/arkui/sdk/component/listItem.ets +++ b/arkoala-arkts/arkui/sdk/component/listItem.ets @@ -21,9 +21,9 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent } from "./../generated/arkui.ComponentContent" +import { ComponentContent } from "./../framework/arkui.ComponentContent" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonMethod, Bindable, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum SwipeEdgeEffect { diff --git a/arkoala-arkts/arkui/sdk/component/listItemGroup.ets b/arkoala-arkts/arkui/sdk/component/listItemGroup.ets index 5f5f4c7597a7e56b617a785290a461fbe62e40fa..f35b8d792da46ae419f70ed30d2431266fc83c0d 100644 --- a/arkoala-arkts/arkui/sdk/component/listItemGroup.ets +++ b/arkoala-arkts/arkui/sdk/component/listItemGroup.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent } from "./../generated/arkui.ComponentContent" +import { ComponentContent } from "./../framework/arkui.ComponentContent" import { CommonMethod, ChildrenMainSize, ArkCommonMethodStyle } from "./common" import { ListDividerOptions } from "./list" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/loadingProgress.ets b/arkoala-arkts/arkui/sdk/component/loadingProgress.ets index d31a1f4aa6ccd02d490a54bc01a7610a9074c3ce..9e8baa5ba39aa1d16c169143ca2c018c53c0011a 100644 --- a/arkoala-arkts/arkui/sdk/component/loadingProgress.ets +++ b/arkoala-arkts/arkui/sdk/component/loadingProgress.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, CommonConfiguration, ArkCommonMethodStyle } from "./common" import { ResourceColor } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum LoadingProgressStyle { DEFAULT = 0, diff --git a/arkoala-arkts/arkui/sdk/component/marquee.ets b/arkoala-arkts/arkui/sdk/component/marquee.ets index fe5985a9d371f85fcdd81a8f1baecea1deebb6eb..bb0eebed2e390fae49b9ed0f8b6553b27456f9d6 100644 --- a/arkoala-arkts/arkui/sdk/component/marquee.ets +++ b/arkoala-arkts/arkui/sdk/component/marquee.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceColor, Length } from "./units" import { Color, FontWeight, MarqueeUpdateStrategy } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface MarqueeOptions { start: boolean; diff --git a/arkoala-arkts/arkui/sdk/component/matrix2d.ets b/arkoala-arkts/arkui/sdk/component/matrix2d.ets index 988491f9da006d7d9aedc985aeefb1bdc2f151a3..4292dcd33b44608fa38d2733e6206e1c1753872c 100644 --- a/arkoala-arkts/arkui/sdk/component/matrix2d.ets +++ b/arkoala-arkts/arkui/sdk/component/matrix2d.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetricsUnit } from "./../generated/arkui.Graphics" +import { LengthMetricsUnit } from "./../framework/arkui.Graphics" export declare class Matrix2D { constructor() constructor(unit: LengthMetricsUnit) diff --git a/arkoala-arkts/arkui/sdk/component/mediaCachedImage.ets b/arkoala-arkts/arkui/sdk/component/mediaCachedImage.ets index 98a7b75fab24acb0f1bfb581026e47a837e15784..e0c25106ada3a77306591aa2bdc8e2ace9bd44d1 100644 --- a/arkoala-arkts/arkui/sdk/component/mediaCachedImage.ets +++ b/arkoala-arkts/arkui/sdk/component/mediaCachedImage.ets @@ -23,10 +23,10 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { ImageAttribute, ArkImageStyle } from "./image" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { image } from "./../generated/ohos.multimedia.image" +import { image } from "./../framework/ohos.multimedia.image" import { ResourceStr } from "./units" -import { Resource } from "./../generated/resource" -import { DrawableDescriptor } from "./../generated/ohos.arkui.drawableDescriptor" +import { Resource } from "./../framework/resource" +import { DrawableDescriptor } from "./../framework/ohos.arkui.drawableDescriptor" export declare interface ASTCResource { sources: Array; column: number; diff --git a/arkoala-arkts/arkui/sdk/component/menu.ets b/arkoala-arkts/arkui/sdk/component/menu.ets index ee5855463f60dae12638c54e78f66f70f56f705c..1386533f073d99ad0bfad64fa95cb945f8c8228d 100644 --- a/arkoala-arkts/arkui/sdk/component/menu.ets +++ b/arkoala-arkts/arkui/sdk/component/menu.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { Font, ResourceColor, Dimension, BorderRadiuses, DividerStyleOptions } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum SubMenuExpandingMode { SIDE_EXPAND = 0, diff --git a/arkoala-arkts/arkui/sdk/component/menuItem.ets b/arkoala-arkts/arkui/sdk/component/menuItem.ets index d30413c386f0f6ff87c1cd6d8afbf9da1bf4c58c..c157a5a8cf473d10eb427d5cb28a6918d93bf136 100644 --- a/arkoala-arkts/arkui/sdk/component/menuItem.ets +++ b/arkoala-arkts/arkui/sdk/component/menuItem.ets @@ -21,8 +21,8 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceStr, Font, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { Resource } from "./../framework/resource" +import { SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" import { CustomBuilder } from "./builder" import { CommonMethod, Bindable, ArkCommonMethodStyle } from "./common" import { Color } from "./enums" diff --git a/arkoala-arkts/arkui/sdk/component/menuItemGroup.ets b/arkoala-arkts/arkui/sdk/component/menuItemGroup.ets index fdd50eb151fe2f1a2a199d96930e1109c614062d..d26e0de204eec9b0a3fb9f3f640571a612807cf5 100644 --- a/arkoala-arkts/arkui/sdk/component/menuItemGroup.ets +++ b/arkoala-arkts/arkui/sdk/component/menuItemGroup.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceStr } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CustomBuilder } from "./builder" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/navDestination.ets b/arkoala-arkts/arkui/sdk/component/navDestination.ets index b08a5817ec9c96a771c493f64d8e6871ec51af64..c1887c932bd2ff7a10fba81c00fde89e9fed4978 100644 --- a/arkoala-arkts/arkui/sdk/component/navDestination.ets +++ b/arkoala-arkts/arkui/sdk/component/navDestination.ets @@ -20,17 +20,17 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CustomBuilder } from "./builder" import { TitleHeight } from "./enums" import { Length, ResourceStr } from "./units" import { NavPathInfo, NavPathStack, NavigationMenuItem, NavigationOperation, NavigationTitleOptions, NavigationMenuOptions, ToolbarItem, NavigationToolbarOptions } from "./navigation" import { Scroller } from "./scroll" -import { curves } from "./../generated/ohos.curves" +import { curves } from "./../framework/ohos.curves" import { CommonMethod, LayoutSafeAreaType, LayoutSafeAreaEdge, ArkCommonMethodStyle } from "./common" -import { image } from "./../generated/ohos.multimedia.image" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" -import { window } from "./../generated/ohos.window" +import { image } from "./../framework/ohos.multimedia.image" +import { SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" +import { window } from "./../framework/ohos.window" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export type Orientation = object; export declare interface NavDestinationCommonTitle { diff --git a/arkoala-arkts/arkui/sdk/component/navigation.ets b/arkoala-arkts/arkui/sdk/component/navigation.ets index 76c495dce20c3d59dbaa0e640b18439955bc88fa..b096e7850bfabd3696f501dafa901ad90d3a22bb 100644 --- a/arkoala-arkts/arkui/sdk/component/navigation.ets +++ b/arkoala-arkts/arkui/sdk/component/navigation.ets @@ -20,17 +20,17 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { window } from "./../generated/ohos.window" -import { Resource } from "./../generated/resource" +import { window } from "./../framework/ohos.window" +import { Resource } from "./../framework/resource" import { CustomBuilder, PageMapBuilder } from "./builder" import { TitleHeight, Color } from "./enums" import { Length, ResourceStr, ResourceColor, Dimension, VoidCallback } from "./units" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" import { NavDestinationContext, NavDestinationMode } from "./navDestination" import { BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, CommonMethod, Bindable, LayoutSafeAreaType, LayoutSafeAreaEdge, ArkCommonMethodStyle } from "./common" -import { LengthMetrics } from "./../generated/arkui.Graphics" -import { TextModifier } from "./../generated/arkui.TextModifier" -import { image } from "./../generated/ohos.multimedia.image" +import { LengthMetrics } from "./../framework/arkui.Graphics" +import { TextModifier } from "./../framework/arkui.TextModifier" +import { image } from "./../framework/ohos.multimedia.image" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export type SystemBarStyle = window.SystemBarStyle; export declare interface NavigationCommonTitle { diff --git a/arkoala-arkts/arkui/sdk/component/nodeContainer.ets b/arkoala-arkts/arkui/sdk/component/nodeContainer.ets index bc3962086f593e0d6122bbea12d36940ce018041..d15a47760683186d92249ecab634c01a528a5d7f 100644 --- a/arkoala-arkts/arkui/sdk/component/nodeContainer.ets +++ b/arkoala-arkts/arkui/sdk/component/nodeContainer.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { NodeController } from "./../generated/ohos.arkui.node" +import { NodeController } from "./../framework/ohos.arkui.node" export interface NodeContainerAttribute extends CommonMethod { attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { throw new Error("Unimplemented method attributeModifier") diff --git a/arkoala-arkts/arkui/sdk/component/pageTransition.ets b/arkoala-arkts/arkui/sdk/component/pageTransition.ets index 84fea68dfe90fa9169c9bd932548b52f90ee0a51..4bb12e982492d6b2f506a55739f2d55d86ee5760 100644 --- a/arkoala-arkts/arkui/sdk/component/pageTransition.ets +++ b/arkoala-arkts/arkui/sdk/component/pageTransition.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { curves } from "./../generated/ohos.curves" +import { curves } from "./../framework/ohos.curves" export enum RouteType { NONE = 0, None = 0, diff --git a/arkoala-arkts/arkui/sdk/component/particle.ets b/arkoala-arkts/arkui/sdk/component/particle.ets index c5fa894415686988d12cecd031c4f642d0f9a801..22302491e7874da32010b952f4cc70e0ededd471 100644 --- a/arkoala-arkts/arkui/sdk/component/particle.ets +++ b/arkoala-arkts/arkui/sdk/component/particle.ets @@ -21,10 +21,10 @@ import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { VP, Dimension, ResourceStr, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ImageFit, Color } from "./enums" -import { curves } from "./../generated/ohos.curves" -import { Vector2T, LengthMetrics } from "./../generated/arkui.Graphics" +import { curves } from "./../framework/ohos.curves" +import { Vector2T, LengthMetrics } from "./../framework/arkui.Graphics" export declare interface VelocityOptions { speed: [ number, number ]; angle: [ number, number ]; diff --git a/arkoala-arkts/arkui/sdk/component/patternLock.ets b/arkoala-arkts/arkui/sdk/component/patternLock.ets index 8e5d71f9e9f0db268ad9bd0bb456907b778fc4b5..6f3d4fb4a86eb2d8a66e116aad552813380d7547 100644 --- a/arkoala-arkts/arkui/sdk/component/patternLock.ets +++ b/arkoala-arkts/arkui/sdk/component/patternLock.ets @@ -22,8 +22,8 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, Length } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { Resource } from "./../framework/resource" +import { LengthMetrics } from "./../framework/arkui.Graphics" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum PatternLockChallengeResult { diff --git a/arkoala-arkts/arkui/sdk/component/polygon.ets b/arkoala-arkts/arkui/sdk/component/polygon.ets index 0d51bfc2b656ab5f6af722a3b3fdf1f225db090d..9444afdad4b574bad3a70f98431638df4e2863d7 100644 --- a/arkoala-arkts/arkui/sdk/component/polygon.ets +++ b/arkoala-arkts/arkui/sdk/component/polygon.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" import { ShapePoint } from "./line" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface PolygonOptions { } diff --git a/arkoala-arkts/arkui/sdk/component/polyline.ets b/arkoala-arkts/arkui/sdk/component/polyline.ets index 4d4023d269ddd525c1a910458944e5a914148924..228dd0d522ddfbeeb5a705d7ef125de219357ebb 100644 --- a/arkoala-arkts/arkui/sdk/component/polyline.ets +++ b/arkoala-arkts/arkui/sdk/component/polyline.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" import { ShapePoint } from "./line" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface PolylineOptions { } diff --git a/arkoala-arkts/arkui/sdk/component/progress.ets b/arkoala-arkts/arkui/sdk/component/progress.ets index c20d95dad1216ce2bd65c3eba3ed3ab35c3f1172..41c4f9c9bd7b1a9423015c54945b5c88e248b6ab 100644 --- a/arkoala-arkts/arkui/sdk/component/progress.ets +++ b/arkoala-arkts/arkui/sdk/component/progress.ets @@ -21,9 +21,9 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Length, PX, VP, LPX, ResourceColor, Font } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { Color } from "./enums" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics } from "./../framework/arkui.Graphics" import { CommonMethod, CommonConfiguration, ArkCommonMethodStyle } from "./common" import { LinearGradient } from "./dataPanel" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/qrcode.ets b/arkoala-arkts/arkui/sdk/component/qrcode.ets index 0d754db34af5cb0fa7eca141baf5880511a2febb..9b4f495d9f3349e05b0aab8513b7300da926c990 100644 --- a/arkoala-arkts/arkui/sdk/component/qrcode.ets +++ b/arkoala-arkts/arkui/sdk/component/qrcode.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceColor, ResourceStr } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export interface QRCodeAttribute extends CommonMethod { color(value: ResourceColor | undefined): this { diff --git a/arkoala-arkts/arkui/sdk/component/radio.ets b/arkoala-arkts/arkui/sdk/component/radio.ets index 7d7acaf221e0055bbac07b0ba37b6d7209130c40..e26cb7bc67fd4c6fb5d96c450d2b80680e8e3b18 100644 --- a/arkoala-arkts/arkui/sdk/component/radio.ets +++ b/arkoala-arkts/arkui/sdk/component/radio.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" import { ResourceColor } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodStyle } from "./common" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum RadioIndicatorType { diff --git a/arkoala-arkts/arkui/sdk/component/rating.ets b/arkoala-arkts/arkui/sdk/component/rating.ets index d066a00b09793d499fe57450420642e0d50525dd..130dad449a8e27993b98a79e5613e14bb09bb02c 100644 --- a/arkoala-arkts/arkui/sdk/component/rating.ets +++ b/arkoala-arkts/arkui/sdk/component/rating.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Bindable, CommonConfiguration, CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceStr } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface RatingOptions { rating: number | Bindable | undefined; diff --git a/arkoala-arkts/arkui/sdk/component/rect.ets b/arkoala-arkts/arkui/sdk/component/rect.ets index ac68a8a21f393007c8f013e7da47d08ee0275073..32b7da586c61e57768e69ce7b5d58499d005d23d 100644 --- a/arkoala-arkts/arkui/sdk/component/rect.ets +++ b/arkoala-arkts/arkui/sdk/component/rect.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export type RadiusItem = [ diff --git a/arkoala-arkts/arkui/sdk/component/refresh.ets b/arkoala-arkts/arkui/sdk/component/refresh.ets index 76167acaceca5bb23fffc2b9d54c0eb917be3597..33efcf5af741a1045dabb9f5497018cd9d70e646 100644 --- a/arkoala-arkts/arkui/sdk/component/refresh.ets +++ b/arkoala-arkts/arkui/sdk/component/refresh.ets @@ -22,9 +22,9 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Bindable, CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceStr } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CustomBuilder } from "./builder" -import { ComponentContent } from "./../generated/arkui.ComponentContent" +import { ComponentContent } from "./../framework/arkui.ComponentContent" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum RefreshStatus { INACTIVE = 0, diff --git a/arkoala-arkts/arkui/sdk/component/relativeContainer.ets b/arkoala-arkts/arkui/sdk/component/relativeContainer.ets index 1100e6c7f20357f7267e09a2f21cb005522abd0b..acac3ed3f8f944641c0c1f4c971ec140f7d30df6 100644 --- a/arkoala-arkts/arkui/sdk/component/relativeContainer.ets +++ b/arkoala-arkts/arkui/sdk/component/relativeContainer.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Dimension } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { Axis } from "./enums" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/richEditor.ets b/arkoala-arkts/arkui/sdk/component/richEditor.ets index 98afb1a53eb0270e6b3579cd8ac7f91a83dc4b17..15b451238b87c2ea90ae819499a694cbdb3abb23 100644 --- a/arkoala-arkts/arkui/sdk/component/richEditor.ets +++ b/arkoala-arkts/arkui/sdk/component/richEditor.ets @@ -22,15 +22,15 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, Length, ResourceStr, Dimension, VoidCallback, Padding, BorderRadiuses, Font } from "./units" import { Color, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, CopyOptions, BarState, ResponseType } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { DecorationStyleInterface, StyledString, MutableStyledString } from "./styledString" import { ShadowOptions, ClickEvent, HoverEvent, HapticFeedbackMode, SelectionOptions, RectResult, CommonMethod, ArkCommonMethodStyle } from "./common" import { TextBackgroundStyle } from "./span" -import { image } from "./../generated/ohos.multimedia.image" +import { image } from "./../framework/ohos.multimedia.image" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./symbolglyph" import { DecorationStyleResult, TextRange, MenuType, TextEditControllerEx, LayoutManager, PreviewText, StyledStringController, StyledStringChangedListener, TextDataDetectorConfig, OnDidChangeCallback, EditMenuOptions, KeyboardAppearance } from "./textCommon" import { GestureEvent } from "./gesture" -import { ColorMetrics } from "./../generated/arkui.Graphics" +import { ColorMetrics } from "./../framework/arkui.Graphics" import { CustomBuilder } from "./builder" import { EnterKeyType, SubmitEvent } from "./textInput" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/scroll.ets b/arkoala-arkts/arkui/sdk/component/scroll.ets index 2b0380bd45525037fa88fa451bdd17ef070ea968..bc68d94b740c11e274414122cfac7cfa5b2e8c26 100644 --- a/arkoala-arkts/arkui/sdk/component/scroll.ets +++ b/arkoala-arkts/arkui/sdk/component/scroll.ets @@ -20,10 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { LengthMetrics } from "./../generated/arkui.Graphics" -import { curves } from "./../generated/ohos.curves" +import { LengthMetrics } from "./../framework/arkui.Graphics" +import { curves } from "./../framework/ohos.curves" import { Dimension, Length, VoidCallback } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { Edge, ScrollSource, BarState, Color, EdgeEffect } from "./enums" import { RectResult, ScrollableCommonMethod, NestedScrollOptions, CommonMethod, EdgeEffectOptions, ArkScrollableCommonMethodStyle, ArkCommonMethodStyle } from "./common" import { ScrollSnapAlign, ScrollState } from "./list" diff --git a/arkoala-arkts/arkui/sdk/component/search.ets b/arkoala-arkts/arkui/sdk/component/search.ets index 953b28c81e3c204fc8847d818a533a714ff5df1d..399cad2d29670ae6fc1600d48f669ecca4e72a88 100644 --- a/arkoala-arkts/arkui/sdk/component/search.ets +++ b/arkoala-arkts/arkui/sdk/component/search.ets @@ -22,9 +22,9 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { TextContentControllerBase, SelectionOptions, Bindable, CommonMethod, TextDecorationOptions, ArkCommonMethodStyle } from "./common" import { ResourceStr, Length, ResourceColor, Dimension, Font } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { Color, CopyOptions, TextAlign } from "./enums" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" import { SubmitEvent, EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./textInput" import { InsertValue, DeleteValue, EditableTextChangeValue, CaretStyle, EditableTextOnChangeCallback, PreviewText, TextChangeOptions, EditMenuOptions, AutoCapitalizationMode, KeyboardAppearance } from "./textCommon" import { PasteEvent, KeyboardOptions } from "./richEditor" diff --git a/arkoala-arkts/arkui/sdk/component/securityComponent.ets b/arkoala-arkts/arkui/sdk/component/securityComponent.ets index b14b14778ba727943da3554ea369724f5e8cd6fa..fbbcd9d9b4ddfb9fe6a75e8d7d5a9acfe2d5c745 100644 --- a/arkoala-arkts/arkui/sdk/component/securityComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/securityComponent.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { FontStyle, FontWeight, Color, BorderStyle } from "./enums" export enum SecurityComponentLayoutDirection { HORIZONTAL = 0, diff --git a/arkoala-arkts/arkui/sdk/component/select.ets b/arkoala-arkts/arkui/sdk/component/select.ets index 91c279116fd79102b93fffe985035f6780e0e943..67c015f46190be188af7b204fe426c14b2bed6c7 100644 --- a/arkoala-arkts/arkui/sdk/component/select.ets +++ b/arkoala-arkts/arkui/sdk/component/select.ets @@ -21,14 +21,14 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceStr, Dimension, EdgeOutlineWidths, ResourceColor, EdgeColors, Font, Length, DividerStyleOptions, Offset } from "./units" -import { Resource } from "./../generated/resource" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { Resource } from "./../framework/resource" +import { SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" import { Color, OptionWidthMode } from "./enums" import { CommonMethod, Bindable, BlurStyle, CommonConfiguration, ArkCommonMethodStyle } from "./common" import { ControlSize } from "./button" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { DividerOptions } from "./textPicker" -import { TextModifier } from "./../generated/arkui.TextModifier" +import { TextModifier } from "./../framework/arkui.TextModifier" export declare interface SelectOption { value: ResourceStr; icon?: ResourceStr; diff --git a/arkoala-arkts/arkui/sdk/component/shape.ets b/arkoala-arkts/arkui/sdk/component/shape.ets index dd64e63ef714f4fa3c9e16afed4ddff6eec4cf20..ba6de691a85136030e2919031a82e84d7bf70618 100644 --- a/arkoala-arkts/arkui/sdk/component/shape.ets +++ b/arkoala-arkts/arkui/sdk/component/shape.ets @@ -21,11 +21,11 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Length, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { Color, LineCapStyle, LineJoinStyle } from "./enums" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { image } from "./../generated/ohos.multimedia.image" +import { image } from "./../framework/ohos.multimedia.image" export declare interface ViewportRect { x?: Length; y?: Length; diff --git a/arkoala-arkts/arkui/sdk/component/sidebar.ets b/arkoala-arkts/arkui/sdk/component/sidebar.ets index e53f289d78fefd04750ae701ded451c8dae885e8..ff3c1a817f8940b75956991c9b7906a2b3663406 100644 --- a/arkoala-arkts/arkui/sdk/component/sidebar.ets +++ b/arkoala-arkts/arkui/sdk/component/sidebar.ets @@ -20,8 +20,8 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { image } from "./../generated/ohos.multimedia.image" -import { Resource } from "./../generated/resource" +import { image } from "./../framework/ohos.multimedia.image" +import { Resource } from "./../framework/resource" import { CommonMethod, Bindable, DividerStyle, ArkCommonMethodStyle } from "./common" import { Length, Dimension } from "./units" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/slider.ets b/arkoala-arkts/arkui/sdk/component/slider.ets index ffa4a38a5d36947eec1ba6c26d7f6bc6cf6ef47a..d7d780247953c2bde6bf6c74f18e77d817035206 100644 --- a/arkoala-arkts/arkui/sdk/component/slider.ets +++ b/arkoala-arkts/arkui/sdk/component/slider.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { Bindable, CommonConfiguration, CommonMethod, ArkCommonMethodStyle } from "./common" import { Axis, Color, CrownSensitivity } from "./enums" import { ResourceStr, ResourceColor, Length, Dimension, SizeOptions } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { LinearGradient } from "./dataPanel" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum SliderStyle { diff --git a/arkoala-arkts/arkui/sdk/component/span.ets b/arkoala-arkts/arkui/sdk/component/span.ets index 97b60d5d80a6955caa2c62299856328d4f31a4b6..d76ed532f1195c102a710a8377b84e7be1564cf5 100644 --- a/arkoala-arkts/arkui/sdk/component/span.ets +++ b/arkoala-arkts/arkui/sdk/component/span.ets @@ -22,9 +22,9 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, Dimension, BorderRadiuses, Font, Length } from "./units" import { Color, FontStyle, FontWeight, TextCase } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CommonMethod, ShadowOptions, ArkCommonMethodStyle } from "./common" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics } from "./../framework/arkui.Graphics" import { DecorationStyleInterface } from "./styledString" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface TextBackgroundStyle { diff --git a/arkoala-arkts/arkui/sdk/component/styledString.ets b/arkoala-arkts/arkui/sdk/component/styledString.ets index 405e59652f280af0b7e3044771bf42588ae97ac7..23aad14e73e9ad0c662286e16306ac809843b8d9 100644 --- a/arkoala-arkts/arkui/sdk/component/styledString.ets +++ b/arkoala-arkts/arkui/sdk/component/styledString.ets @@ -22,14 +22,14 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, ResourceStr, SizeOptions, ColorFilter, Padding, BorderRadiuses } from "./units" import { Color, FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit } from "./enums" -import { Resource } from "./../generated/resource" -import { LengthMetrics, DrawContext } from "./../generated/arkui.Graphics" +import { Resource } from "./../framework/resource" +import { LengthMetrics, DrawContext } from "./../framework/arkui.Graphics" import { ShadowOptions, ClickEvent } from "./common" import { TextBackgroundStyle } from "./span" import { GestureEvent } from "./gesture" import { LeadingMarginPlaceholder } from "./richEditor" -import { image } from "./../generated/ohos.multimedia.image" -import { drawing } from "./../generated/ohos.graphics.drawing" +import { image } from "./../framework/ohos.multimedia.image" +import { drawing } from "./../framework/ohos.graphics.drawing" export type StyledStringMarshallingValue = UserDataSpan; export type StyledStringMarshallCallback = (marshallableVal: UserDataSpan) => NativeBuffer; export type StyledStringUnmarshallCallback = (buf: NativeBuffer) => UserDataSpan; diff --git a/arkoala-arkts/arkui/sdk/component/swiper.ets b/arkoala-arkts/arkui/sdk/component/swiper.ets index fd2ecf5b2e27a024ffe47021c79adcde4d9a374c..666cec0d2b3743ca6f00237db3d85dbb0065322f 100644 --- a/arkoala-arkts/arkui/sdk/component/swiper.ets +++ b/arkoala-arkts/arkui/sdk/component/swiper.ets @@ -21,12 +21,12 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { VoidCallback, Length, ResourceColor, VP, Font } from "./units" -import { Resource } from "./../generated/resource" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { Resource } from "./../framework/resource" +import { LengthMetrics } from "./../framework/arkui.Graphics" import { Color, EdgeEffect, PageFlipMode } from "./enums" import { CommonMethod, Bindable, ArkCommonMethodStyle } from "./common" import { IndicatorComponentController } from "./indicatorcomponent" -import { curves } from "./../generated/ohos.curves" +import { curves } from "./../framework/ohos.curves" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare class SwiperController { constructor() diff --git a/arkoala-arkts/arkui/sdk/component/symbolSpan.ets b/arkoala-arkts/arkui/sdk/component/symbolSpan.ets index ef26b1ad603e1d7e01bef51025b7c4c2480d7596..bfc4da791bb2cb935bff95f54e19889f24768b1b 100644 --- a/arkoala-arkts/arkui/sdk/component/symbolSpan.ets +++ b/arkoala-arkts/arkui/sdk/component/symbolSpan.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ResourceColor } from "./units" import { Color, FontWeight } from "./enums" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./symbolglyph" diff --git a/arkoala-arkts/arkui/sdk/component/symbolglyph.ets b/arkoala-arkts/arkui/sdk/component/symbolglyph.ets index 293da7a5e2434b82b5d857994518a253ece27052..890f2870e9aa592b8c8e39b98d1b473a06adcddf 100644 --- a/arkoala-arkts/arkui/sdk/component/symbolglyph.ets +++ b/arkoala-arkts/arkui/sdk/component/symbolglyph.ets @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ResourceColor } from "./units" import { Color, FontWeight } from "./enums" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/tabContent.ets b/arkoala-arkts/arkui/sdk/component/tabContent.ets index 67d96ba0962956377c9b6ee0786785c49808fae2..f1546c33c39ed8c0643a3703e32f1a57bf220bf7 100644 --- a/arkoala-arkts/arkui/sdk/component/tabContent.ets +++ b/arkoala-arkts/arkui/sdk/component/tabContent.ets @@ -22,9 +22,9 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, Length, ResourceStr, Font, Padding, Dimension, LocalizedPadding, VoidCallback } from "./units" import { Color, TextOverflow, TextHeightAdaptivePolicy, VerticalAlign } from "./enums" -import { Resource } from "./../generated/resource" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" -import { ComponentContent } from "./../generated/arkui.ComponentContent" +import { Resource } from "./../framework/resource" +import { SymbolGlyphModifier } from "./../framework/arkui.SymbolGlyphModifier" +import { ComponentContent } from "./../framework/arkui.ComponentContent" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { CustomBuilder } from "./builder" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/tabs.ets b/arkoala-arkts/arkui/sdk/component/tabs.ets index cfd3b872ec4325c32f03646cf899f3458ed03ec5..6046f5ba9eac8f99d2633c150950fc71e2ac8896 100644 --- a/arkoala-arkts/arkui/sdk/component/tabs.ets +++ b/arkoala-arkts/arkui/sdk/component/tabs.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { TranslateOptions, Bindable, CommonMethod, DividerStyle, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions, ArkCommonMethodStyle } from "./common" import { Dimension, Length, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { EdgeEffect, Color, PageFlipMode } from "./enums" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum BarMode { diff --git a/arkoala-arkts/arkui/sdk/component/text.ets b/arkoala-arkts/arkui/sdk/component/text.ets index 9dabc878c71e334dd46983ce9dcbcbd56859aedd..46d72fbaa37c7aa26a345fb2e306af7edadc75d4 100644 --- a/arkoala-arkts/arkui/sdk/component/text.ets +++ b/arkoala-arkts/arkui/sdk/component/text.ets @@ -23,8 +23,8 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { TextOverflow, Color, FontStyle, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, FontWeight } from "./enums" import { CommonMethod, ShadowOptions, ArkCommonMethodStyle } from "./common" import { ResourceColor, Length, Font } from "./units" -import { Resource } from "./../generated/resource" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { Resource } from "./../framework/resource" +import { LengthMetrics } from "./../framework/arkui.Graphics" import { DecorationStyleInterface, StyledString } from "./styledString" import { TextDataDetectorConfig, EditMenuOptions, FontSettingOptions, LayoutManager } from "./textCommon" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" diff --git a/arkoala-arkts/arkui/sdk/component/textArea.ets b/arkoala-arkts/arkui/sdk/component/textArea.ets index 90dd124f9ab4feb6573bb2c2999c7c0c790239e3..34645f24095ebd9b8efd0d9ca44f9bd84ec26666 100644 --- a/arkoala-arkts/arkui/sdk/component/textArea.ets +++ b/arkoala-arkts/arkui/sdk/component/textArea.ets @@ -22,12 +22,12 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { TextContentControllerBase, SelectionOptions, Bindable, CommonMethod, TextDecorationOptions, InputCounterOptions, ArkCommonMethodStyle } from "./common" import { ResourceStr, ResourceColor, Font, Length, Dimension } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { EnterKeyType, SubmitEvent, ContentType } from "./textInput" import { PasteEvent, KeyboardOptions } from "./richEditor" import { InsertValue, DeleteValue, EditableTextChangeValue, CaretStyle, EditableTextOnChangeCallback, PreviewText, TextChangeOptions, EditMenuOptions, AutoCapitalizationMode, KeyboardAppearance } from "./textCommon" import { Color, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode } from "./enums" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics } from "./../framework/arkui.Graphics" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { CustomBuilder } from "./builder" export declare class TextAreaController extends TextContentControllerBase { diff --git a/arkoala-arkts/arkui/sdk/component/textClock.ets b/arkoala-arkts/arkui/sdk/component/textClock.ets index 1161000d1901c860011951e4efa39993747d4fd0..5b5c3d2dee8576ed72ac0a4f1fa4488834706828 100644 --- a/arkoala-arkts/arkui/sdk/component/textClock.ets +++ b/arkoala-arkts/arkui/sdk/component/textClock.ets @@ -22,10 +22,10 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonConfiguration, CommonMethod, ShadowOptions, ArkCommonMethodStyle } from "./common" import { ResourceStr, ResourceColor, Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { Color, FontStyle, FontWeight } from "./enums" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { intl } from "./../generated/ohos.intl" +import { intl } from "./../framework/ohos.intl" export declare class TextClockController { constructor() start(): void diff --git a/arkoala-arkts/arkui/sdk/component/textCommon.ets b/arkoala-arkts/arkui/sdk/component/textCommon.ets index eeccf483dab479e170b764aa8e926051d61a1345..f56421f157e6a7bf0233a94ae4032b67b1e5702d 100644 --- a/arkoala-arkts/arkui/sdk/component/textCommon.ets +++ b/arkoala-arkts/arkui/sdk/component/textCommon.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, Length, ResourceStr } from "./units" import { Color, TextDecorationType, TextDecorationStyle } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { DecorationStyleInterface, StyledString, MutableStyledString } from "./styledString" import { SelectionOptions } from "./common" export enum TextDataDetectorType { diff --git a/arkoala-arkts/arkui/sdk/component/textInput.ets b/arkoala-arkts/arkui/sdk/component/textInput.ets index de6c1bcf7265ea056ea377d525a323f1b9a37456..ca4a4606fb6a95a2a8629d3ae79d1f5f49c6d2c8 100644 --- a/arkoala-arkts/arkui/sdk/component/textInput.ets +++ b/arkoala-arkts/arkui/sdk/component/textInput.ets @@ -22,7 +22,7 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { ResourceColor, ResourceStr, Dimension, Font, Length } from "./units" import { Color, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, EllipsisMode } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { TextContentControllerBase, SelectionOptions, Bindable, CommonMethod, TextDecorationOptions, InputCounterOptions, ArkCommonMethodStyle } from "./common" import { PasteEvent, KeyboardOptions } from "./richEditor" import { InsertValue, DeleteValue, EditableTextChangeValue, EditableTextOnChangeCallback, PreviewText, TextChangeOptions, CaretStyle, EditMenuOptions, AutoCapitalizationMode, KeyboardAppearance } from "./textCommon" diff --git a/arkoala-arkts/arkui/sdk/component/textPicker.ets b/arkoala-arkts/arkui/sdk/component/textPicker.ets index 4bf5a07dd257f0ba34986020978cca1544db3e05..84e888a1e34c7cce7ca5157df2fc4a01fccbcf76 100644 --- a/arkoala-arkts/arkui/sdk/component/textPicker.ets +++ b/arkoala-arkts/arkui/sdk/component/textPicker.ets @@ -20,10 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ResourceStr, Dimension, ResourceColor, Offset } from "./units" import { Bindable, PickerTextStyle, CommonMethod, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodStyle } from "./common" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics } from "./../framework/arkui.Graphics" import { Color, TextOverflow, CrownSensitivity } from "./enums" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { DialogAlignment } from "./alertDialog" diff --git a/arkoala-arkts/arkui/sdk/component/textTimer.ets b/arkoala-arkts/arkui/sdk/component/textTimer.ets index e6eee4730e86af3852a5cdd64687dba1f6a38ea9..c9f93d4cdda9cbab681458a7c51c6ca6c2292f6d 100644 --- a/arkoala-arkts/arkui/sdk/component/textTimer.ets +++ b/arkoala-arkts/arkui/sdk/component/textTimer.ets @@ -23,7 +23,7 @@ import { ComponentBuilder } from "@koalaui/builderLambda" import { CommonConfiguration, CommonMethod, ShadowOptions, ArkCommonMethodStyle } from "./common" import { ResourceColor, Length, ResourceStr } from "./units" import { Color, FontStyle, FontWeight } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare class TextTimerController { constructor() diff --git a/arkoala-arkts/arkui/sdk/component/timePicker.ets b/arkoala-arkts/arkui/sdk/component/timePicker.ets index ea68819a3e538d2d1de6e759179276d34b86d818..7aa88ee6a5055550b14794a0ad437c78972ec083 100644 --- a/arkoala-arkts/arkui/sdk/component/timePicker.ets +++ b/arkoala-arkts/arkui/sdk/component/timePicker.ets @@ -21,12 +21,12 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Bindable, CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodStyle } from "./common" -import { intl } from "./../generated/ohos.intl" +import { intl } from "./../framework/ohos.intl" import { CrownSensitivity, Color } from "./enums" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { DialogAlignment } from "./alertDialog" import { Offset, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" export declare interface TimePickerResult { hour: number; minute: number; diff --git a/arkoala-arkts/arkui/sdk/component/toggle.ets b/arkoala-arkts/arkui/sdk/component/toggle.ets index b1d788c842e96922bf2700139301d2e67411aa09..a15d75562349a38ea6b2951f46060c16c980c694 100644 --- a/arkoala-arkts/arkui/sdk/component/toggle.ets +++ b/arkoala-arkts/arkui/sdk/component/toggle.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { ResourceColor } from "./units" import { Color } from "./enums" import { CommonConfiguration, Bindable, CommonMethod, ArkCommonMethodStyle } from "./common" diff --git a/arkoala-arkts/arkui/sdk/component/uiExtensionComponent.ets b/arkoala-arkts/arkui/sdk/component/uiExtensionComponent.ets index a2de528e69170d59fdb779fc646fb4523369147c..f2c6f1ea42d7912c9ec113c64308d5ceb998d090 100644 --- a/arkoala-arkts/arkui/sdk/component/uiExtensionComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/uiExtensionComponent.ets @@ -20,11 +20,11 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { ComponentContent } from "./../generated/arkui.ComponentContent" +import { ComponentContent } from "./../framework/arkui.ComponentContent" import { TerminationInfo, CommonMethod, ArkCommonMethodStyle } from "./common" -import { ErrorCallback, BusinessError } from "./../generated/ohos.base" +import { ErrorCallback, BusinessError } from "./../framework/ohos.base" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { Want } from "./../generated/ohos.app.ability.Want" +import { Want } from "./../framework/ohos.app.ability.Want" export enum DpiFollowStrategy { FOLLOW_HOST_DPI = 0, FOLLOW_UI_EXTENSION_ABILITY_DPI = 1 diff --git a/arkoala-arkts/arkui/sdk/component/units.ets b/arkoala-arkts/arkui/sdk/component/units.ets index cee0bf35055ffee39f3842ff03cde4d76559cd83..9a04e6491bf0686ee4d131d592c6c1f61fa6e606 100644 --- a/arkoala-arkts/arkui/sdk/component/units.ets +++ b/arkoala-arkts/arkui/sdk/component/units.ets @@ -20,11 +20,11 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" -import { LengthMetrics, LengthMetricsUnit, ColorMetrics } from "./../generated/arkui.Graphics" +import { Resource } from "./../framework/resource" +import { LengthMetrics, LengthMetricsUnit, ColorMetrics } from "./../framework/arkui.Graphics" import { Color, BorderStyle, FontWeight, FontStyle, DividerMode } from "./enums" import { OutlineStyle } from "./common" -export { Resource } from "./../generated/resource" +export { Resource } from "./../framework/resource" export type Length = string | number | Resource; export type PX = string; export type VP = string | number; @@ -119,9 +119,9 @@ export declare interface LengthConstrain { maxLength: Length; } export type VoidCallback = () => void; -export { LengthMetricsUnit } from "./../generated/arkui.Graphics" -export { LengthMetrics } from "./../generated/arkui.Graphics" -export { ColorMetrics } from "./../generated/arkui.Graphics" +export { LengthMetricsUnit } from "./../framework/arkui.Graphics" +export { LengthMetrics } from "./../framework/arkui.Graphics" +export { ColorMetrics } from "./../framework/arkui.Graphics" export declare interface Font { size?: Length; weight?: FontWeight | number | string; diff --git a/arkoala-arkts/arkui/sdk/component/video.ets b/arkoala-arkts/arkui/sdk/component/video.ets index de5b50eaa5eee0e1326d37e1a0b0524d947f2caa..3c23f5e16818fa1a7cd58a0242aaf64595edb3bc 100644 --- a/arkoala-arkts/arkui/sdk/component/video.ets +++ b/arkoala-arkts/arkui/sdk/component/video.ets @@ -20,13 +20,13 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { Resource } from "./../generated/resource" -import { image } from "./../generated/ohos.multimedia.image" +import { Resource } from "./../framework/resource" +import { image } from "./../framework/ohos.multimedia.image" import { ImageAIOptions, ImageAnalyzerConfig } from "./imageCommon" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ImageFit } from "./enums" import { VoidCallback } from "./units" -import { ColorMetrics } from "./../generated/arkui.Graphics" +import { ColorMetrics } from "./../framework/arkui.Graphics" import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum SeekMode { PREVIOUS_KEYFRAME = 0, diff --git a/arkoala-arkts/arkui/sdk/component/waterFlow.ets b/arkoala-arkts/arkui/sdk/component/waterFlow.ets index 577831a260cc8ab4a06a0440f1c32613c24968e2..e2c2cf847246c9e4a411f3897edd424fae8c70c3 100644 --- a/arkoala-arkts/arkui/sdk/component/waterFlow.ets +++ b/arkoala-arkts/arkui/sdk/component/waterFlow.ets @@ -21,9 +21,9 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { Dimension, Padding, ConstraintSizeOptions, Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "./../framework/resource" import { CustomBuilder } from "./builder" -import { ComponentContent } from "./../generated/arkui.ComponentContent" +import { ComponentContent } from "./../framework/arkui.ComponentContent" import { Scroller, OnScrollFrameBeginCallback } from "./scroll" import { ScrollableCommonMethod, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodStyle, ArkCommonMethodStyle } from "./common" import { FlexDirection, ScrollSource } from "./enums" diff --git a/arkoala-arkts/arkui/sdk/component/withTheme.ets b/arkoala-arkts/arkui/sdk/component/withTheme.ets index 04b450b12e9c1c798da2cb834939d33192dc1d8a..88685d58624ebd9f3066e9c94211ce3dfb8ba015 100644 --- a/arkoala-arkts/arkui/sdk/component/withTheme.ets +++ b/arkoala-arkts/arkui/sdk/component/withTheme.ets @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" -import { CustomTheme } from "./../generated/ohos.arkui.theme" +import { CustomTheme } from "./../framework/ohos.arkui.theme" import { ThemeColorMode } from "./common" import { UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface WithThemeOptions { diff --git a/arkoala-arkts/arkui/sdk/generated/AttributeUpdater.ets b/arkoala-arkts/arkui/sdk/framework/AttributeUpdater.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/AttributeUpdater.ets rename to arkoala-arkts/arkui/sdk/framework/AttributeUpdater.ets diff --git a/arkoala-arkts/arkui/sdk/generated/application.BaseContext.ets b/arkoala-arkts/arkui/sdk/framework/application.BaseContext.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/application.BaseContext.ets rename to arkoala-arkts/arkui/sdk/framework/application.BaseContext.ets diff --git a/arkoala-arkts/arkui/sdk/generated/application.Context.ets b/arkoala-arkts/arkui/sdk/framework/application.Context.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/application.Context.ets rename to arkoala-arkts/arkui/sdk/framework/application.Context.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.CommonModifier.ets b/arkoala-arkts/arkui/sdk/framework/arkui.CommonModifier.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.CommonModifier.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.CommonModifier.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.ComponentContent.ets b/arkoala-arkts/arkui/sdk/framework/arkui.ComponentContent.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.ComponentContent.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.ComponentContent.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.Content.ets b/arkoala-arkts/arkui/sdk/framework/arkui.Content.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.Content.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.Content.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.FrameNode.ets b/arkoala-arkts/arkui/sdk/framework/arkui.FrameNode.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.FrameNode.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.FrameNode.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.Graphics.ets b/arkoala-arkts/arkui/sdk/framework/arkui.Graphics.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.Graphics.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.Graphics.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.ImageModifier.ets b/arkoala-arkts/arkui/sdk/framework/arkui.ImageModifier.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.ImageModifier.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.ImageModifier.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.NodeController.ets b/arkoala-arkts/arkui/sdk/framework/arkui.NodeController.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.NodeController.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.NodeController.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.RenderNode.ets b/arkoala-arkts/arkui/sdk/framework/arkui.RenderNode.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.RenderNode.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.RenderNode.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.SymbolGlyphModifier.ets b/arkoala-arkts/arkui/sdk/framework/arkui.SymbolGlyphModifier.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.SymbolGlyphModifier.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.SymbolGlyphModifier.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.TextModifier.ets b/arkoala-arkts/arkui/sdk/framework/arkui.TextModifier.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.TextModifier.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.TextModifier.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.nodecontent.ets b/arkoala-arkts/arkui/sdk/framework/arkui.nodecontent.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.nodecontent.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.nodecontent.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorConsume.ets b/arkoala-arkts/arkui/sdk/framework/arkui.stateManagement.decorators.decoratorConsume.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorConsume.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.stateManagement.decorators.decoratorConsume.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorProvide.ets b/arkoala-arkts/arkui/sdk/framework/arkui.stateManagement.decorators.decoratorProvide.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorProvide.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.stateManagement.decorators.decoratorProvide.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorWatch.ets b/arkoala-arkts/arkui/sdk/framework/arkui.stateManagement.decorators.decoratorWatch.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorWatch.ets rename to arkoala-arkts/arkui/sdk/framework/arkui.stateManagement.decorators.decoratorWatch.ets diff --git a/arkoala-arkts/arkui/sdk/generated/base.ets b/arkoala-arkts/arkui/sdk/framework/base.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/base.ets rename to arkoala-arkts/arkui/sdk/framework/base.ets diff --git a/arkoala-arkts/arkui/src/generated/index.ets b/arkoala-arkts/arkui/sdk/framework/index.ets similarity index 100% rename from arkoala-arkts/arkui/src/generated/index.ets rename to arkoala-arkts/arkui/sdk/framework/index.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.app.ability.Want.ets b/arkoala-arkts/arkui/sdk/framework/ohos.app.ability.Want.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.app.ability.Want.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.app.ability.Want.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.app.ability.common.ets b/arkoala-arkts/arkui/sdk/framework/ohos.app.ability.common.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.app.ability.common.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.app.ability.common.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.UIContext.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.UIContext.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.UIContext.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.UIContext.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.drawableDescriptor.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.drawableDescriptor.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.drawableDescriptor.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.drawableDescriptor.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.node.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.node.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.node.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.node.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.observer.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.observer.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.observer.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.observer.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.shape.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.shape.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.shape.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.shape.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.theme.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.theme.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.theme.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.theme.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.base.ets b/arkoala-arkts/arkui/sdk/framework/ohos.base.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.base.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.base.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.curves.ets b/arkoala-arkts/arkui/sdk/framework/ohos.curves.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.curves.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.curves.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.data.unifiedDataChannel.ets b/arkoala-arkts/arkui/sdk/framework/ohos.data.unifiedDataChannel.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.data.unifiedDataChannel.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.data.unifiedDataChannel.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.data.uniformTypeDescriptor.ets b/arkoala-arkts/arkui/sdk/framework/ohos.data.uniformTypeDescriptor.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.data.uniformTypeDescriptor.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.data.uniformTypeDescriptor.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.font.ets b/arkoala-arkts/arkui/sdk/framework/ohos.font.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.font.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.font.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.common2D.ets b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.common2D.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.graphics.common2D.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.graphics.common2D.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.drawing.ets b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.drawing.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.graphics.drawing.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.graphics.drawing.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.text.ets b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.text.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.graphics.text.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.graphics.text.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.uiEffect.ets b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.uiEffect.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.graphics.uiEffect.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.graphics.uiEffect.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.intl.ets b/arkoala-arkts/arkui/sdk/framework/ohos.intl.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.intl.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.intl.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.matrix4.ets b/arkoala-arkts/arkui/sdk/framework/ohos.matrix4.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.matrix4.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.matrix4.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.measure.ets b/arkoala-arkts/arkui/sdk/framework/ohos.measure.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.measure.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.measure.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.multimedia.image.ets b/arkoala-arkts/arkui/sdk/framework/ohos.multimedia.image.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.multimedia.image.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.multimedia.image.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.intentionCode.ets b/arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.intentionCode.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.intentionCode.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.intentionCode.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.pointer.ets b/arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.pointer.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.pointer.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.pointer.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.promptAction.ets b/arkoala-arkts/arkui/sdk/framework/ohos.promptAction.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.promptAction.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.promptAction.ets diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.window.ets b/arkoala-arkts/arkui/sdk/framework/ohos.window.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/ohos.window.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.window.ets diff --git a/arkoala-arkts/arkui/sdk/generated/resource.ets b/arkoala-arkts/arkui/sdk/framework/resource.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/resource.ets rename to arkoala-arkts/arkui/sdk/framework/resource.ets diff --git a/arkoala-arkts/arkui/sdk/generated/searchOps.ets b/arkoala-arkts/arkui/sdk/framework/searchOps.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/searchOps.ets rename to arkoala-arkts/arkui/sdk/framework/searchOps.ets diff --git a/arkoala-arkts/arkui/sdk/generated/stateManagement.ets b/arkoala-arkts/arkui/sdk/framework/stateManagement.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/stateManagement.ets rename to arkoala-arkts/arkui/sdk/framework/stateManagement.ets diff --git a/arkoala-arkts/arkui/sdk/generated/textFieldOps.ets b/arkoala-arkts/arkui/sdk/framework/textFieldOps.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/generated/textFieldOps.ets rename to arkoala-arkts/arkui/sdk/framework/textFieldOps.ets diff --git a/arkoala-arkts/arkui/sdk/handwritten/ArkAnimation.ets b/arkoala-arkts/arkui/sdk/handwritten/ArkAnimation.ets index 2850d10843292edf3260b33efd690f1559418643..0b23ac2eb1de85d55de5b70c72dbc56f36b3c460 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/ArkAnimation.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/ArkAnimation.ets @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package arkui.ArkAnimation; import { AnimateParam } from '../component/common' diff --git a/arkoala-arkts/arkui/sdk/handwritten/ArkPageTransition.ets b/arkoala-arkts/arkui/sdk/handwritten/ArkPageTransition.ets index 06d9b61b8b90803ff5adf367c1cff154a99e11d9..0355ab63755f5df9b3a3f3e28ec5b21f912f144b 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/ArkPageTransition.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/ArkPageTransition.ets @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package arkui.ArkPageTransition; import { memo } from "@koalaui/runtime/annotations" import { PageTransitionCallback, PageTransitionOptions, SlideEffect } from "../component/pageTransition" diff --git a/arkoala-arkts/arkui/sdk/handwritten/ArkPageTransitionData.ets b/arkoala-arkts/arkui/sdk/handwritten/ArkPageTransitionData.ets index d405a8cb67045380a89976f198492fced8ca05f1..b83f000ced56662fbf059a04d29a755e72c53c15 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/ArkPageTransitionData.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/ArkPageTransitionData.ets @@ -12,6 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package arkui.ArkPageTransitionData; + import { SlideEffect, PageTransitionOptions, PageTransitionCallback } from "../component/pageTransition" import { TranslateOptions, ScaleOptions } from "../component/common" import { PageTransitionEnterInterface, PageTransitionExitInterface } from "./ArkPageTransition" diff --git a/arkoala-arkts/arkui/sdk/handwritten/ArkStateStyle.ets b/arkoala-arkts/arkui/sdk/handwritten/ArkStateStyle.ets index 601a2e1d74b4f0a012887bef6f75e4e9c621aff9..18aa521ca61ed982820c012a6cb5eda764f57a5d 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/ArkStateStyle.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/ArkStateStyle.ets @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -import { CommonMethod } from '../generated' +package arkui.ArkStateStyle; +import { CommonMethod } from '../framework' export type CustomStyles = (instance:CommonMethod) => void diff --git a/arkoala-arkts/arkui/sdk/handwritten/AttributeUpdater.ets b/arkoala-arkts/arkui/sdk/handwritten/AttributeUpdater.ets index 80daf49fc7b08de0f0f0451bea1bf2bfc7088951..7c3f14015eb9ab4b6236af070d454d605f6b6857 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/AttributeUpdater.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/AttributeUpdater.ets @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package arkui.AttributeUpdater; import { memo, memo_intrinsic, memo_entry, memo_stable, memo_skip } from "@koalaui/runtime/annotations" import { InteropNativeModule } from "@koalaui/interop"; diff --git a/arkoala-arkts/arkui/sdk/handwritten/ContentModifierHooks.ets b/arkoala-arkts/arkui/sdk/handwritten/ContentModifierHooks.ets index b3ae31455502084b22233935892dda941f4e0408..2134c1c7fe2cdde9f639b63d7b7d8502b2654a72 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/ContentModifierHooks.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/ContentModifierHooks.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +package arkui.ContentModifierHooks; import { memo } from "@koalaui/runtime/annotations" export class WrappedBuilder { diff --git a/arkoala-arkts/arkui/sdk/handwritten/ForeignFunctions.ets b/arkoala-arkts/arkui/sdk/handwritten/ForeignFunctions.ets index d73d8ef363005ae3700c3907608fb2d3c59e9d84..c2967d578271f71ae6a5188dfe6bf31d8fa13888 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/ForeignFunctions.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/ForeignFunctions.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +package arkui.ForeignFunctions; import { int32 } from "@koalaui/common" import { pointer } from "@koalaui/interop" diff --git a/arkoala-arkts/arkui/sdk/handwritten/Router.ets b/arkoala-arkts/arkui/sdk/handwritten/Router.ets index 9e3237411d1b237f89899cdaef2abe26ffaf8595..93e126f9222fc3618043e1e947badc7c37ba98a1 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/Router.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/Router.ets @@ -13,6 +13,7 @@ * limitations under the License. */ +package arkui.Router; import { memo } from "@koalaui/runtime/annotations" import { int32 } from "@koalaui/common" diff --git a/arkoala-arkts/arkui/sdk/handwritten/TestComponent.ets b/arkoala-arkts/arkui/sdk/handwritten/TestComponent.ets index 770bcac331d71bc4dc99003b429852b2d229f195..4e1711af57e2dec7bac694689d367ca3835705fd 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/TestComponent.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/TestComponent.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +package arkui.TestComponent; import { CommonMethod } from "../component/common" import { memo } from "@koalaui/runtime/annotations" diff --git a/arkoala-arkts/arkui/sdk/handwritten/component/base.ets b/arkoala-arkts/arkui/sdk/handwritten/component/base.ets index b060dd0c35228bfb04662a52fc50b1317c0cc92b..dc045766b25c8d17bc7373db72fe247147d41fca 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/component/base.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/component/base.ets @@ -19,7 +19,8 @@ package arkui.component.customComponent; import { memo } from "@koalaui/runtime/annotations" import { ComponentBuilder } from "@koalaui/builderLambda" import { AnimateParam, CommonMethod } from "../../component/common" -import { ExtendableComponent, UIContext } from './extendableComponent'; +import { ExtendableComponent } from '../../component/extendableComponent'; +import { UIContext } from '../../framework/ohos.arkui.UIContext'; export function $r(arg: string): string { return arg diff --git a/arkoala-arkts/arkui/sdk/handwritten/component/extendableComponent.d.ets b/arkoala-arkts/arkui/sdk/handwritten/component/extendableComponent.d.ets deleted file mode 100644 index 31fe5f174b4a72439563e7c5b0cf53e5cf279618..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/sdk/handwritten/component/extendableComponent.d.ets +++ /dev/null @@ -1,112 +0,0 @@ -/* - * 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. - */ -/** - * @file - * @kit ArkUI - */ -import { memo } from "@koalaui/runtime/annotations" - -export class UIContext {} - -/** - * Defining interface of LifeCycle for custom component and custom dialog - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ -export interface LifeCycle { - /** - * aboutToAppear Method. - * - * The aboutToAppear function is executed after a new instance of the custom component is created, - * before its build() function is executed. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - aboutToAppear(): void - - /** - * aboutToDisappear Method. - * - * The aboutToDisappear function executes before a custom component is destroyed. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - aboutToDisappear(): void - - /** - * The callback method after the custom component is built. - * - * Triggered when the custom component has been built. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - onDidBuild(): void - - /** - * Customize the build process of the custom component. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - @memo - build(): void -} - -/** - * Definition of extendable component, which is base class of custom component and custom dialog. - * - * @implements LifeCycle - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ -export declare abstract class ExtendableComponent implements LifeCycle { - /** - * Get current UIContext. - * - * @returns { UIContext } The UIContext that the custom component belongs to. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - abstract getUIContext(): UIContext - - /** - * Get uniqueId of the custom component. - * - * @returns { int } - The uniqueId of the custom component. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - abstract getUniqueId(): int -} \ No newline at end of file diff --git a/arkoala-arkts/arkui/sdk/handwritten/resources.ets b/arkoala-arkts/arkui/sdk/handwritten/resources.ets index 030bc2bafeca9a10d850899a4c0bbeae6c9e6dfa..4bc194a5575053247ebd9b5102defa99d1c2e869 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/resources.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/resources.ets @@ -13,7 +13,8 @@ * limitations under the License. */ -import { Resource } from "../generated/resource"; +package arkui.resources; +import { Resource } from "../framework/resource"; export function _r(bundleName: string, moduleName: string, name: string): Resource { throw new Error("stub") diff --git a/arkoala-arkts/arkui/sdk/index.ets b/arkoala-arkts/arkui/sdk/index.ets index c3c4a247fdd061bfe4ca89829e858ac46f145d6b..a796013471916713a7444c8ad991f4798180abc7 100644 --- a/arkoala-arkts/arkui/sdk/index.ets +++ b/arkoala-arkts/arkui/sdk/index.ets @@ -14,7 +14,7 @@ */ export * from "./componentAnnotations" export * from "./stateAnnotations" -export * from "./generated" +export * from "./framework" export * from "./handwritten" export * from "./ohos/router" // Improve: do we need this diff --git a/arkoala-arkts/arkui/src/handwritten/ArkAnimation.ets b/arkoala-arkts/arkui/src/ArkAnimation.ets similarity index 93% rename from arkoala-arkts/arkui/src/handwritten/ArkAnimation.ets rename to arkoala-arkts/arkui/src/ArkAnimation.ets index df445c941d60787ea15e88597621c9b76e178418..561ee8d76715bd376257031cd1b0a5059ca20be5 100644 --- a/arkoala-arkts/arkui/src/handwritten/ArkAnimation.ets +++ b/arkoala-arkts/arkui/src/ArkAnimation.ets @@ -13,8 +13,8 @@ * limitations under the License. */ -import {addPartialUpdate} from '../ArkUIEntry' -import {AnimationExtender, AnimateParam} from '../generated' +import {addPartialUpdate} from './ArkUIEntry' +import {AnimationExtender, AnimateParam} from '#generated' export function _animateTo(param: AnimateParam, event: (() => void)): void { if (!event) { diff --git a/arkoala-arkts/arkui/src/ArkComponentRoot.ets b/arkoala-arkts/arkui/src/ArkComponentRoot.ets index 87d01308a055ed8208ddd5f54aa518a039bbdb3b..22a75b6bd2646ad8eb3f9b0fc0687b2a40408cac 100644 --- a/arkoala-arkts/arkui/src/ArkComponentRoot.ets +++ b/arkoala-arkts/arkui/src/ArkComponentRoot.ets @@ -16,10 +16,10 @@ import { memo, memo_intrinsic, memo_entry, memo_stable, memo_skip } from "@koala import { mutableState, MutableState, NodeAttach, rememberDisposable, remember, RunEffect, scheduleCallback } from "@koalaui/runtime" import { PeerNode } from "./PeerNode"; -import { ArkComponentRootPeer } from "./generated"; +import { ArkComponentRootPeer } from "#generated"; import { ArkCustomComponent } from "./ArkCustomComponent" import { int32 } from "@koalaui/common" -import { CurrentRouterTransitionState, RouterTransitionVisibility } from "./handwritten/Router"; +import { CurrentRouterTransitionState, RouterTransitionVisibility } from "./Router"; let _isNeedCreate: boolean = false diff --git a/arkoala-arkts/arkui/src/ArkCustomComponent.ets b/arkoala-arkts/arkui/src/ArkCustomComponent.ets index da0b00b425cb45f491b668fb6de5bff73834995a..3d9aaf0a388bde9d5e9ae5418f6cc5c327b3eb95 100644 --- a/arkoala-arkts/arkui/src/ArkCustomComponent.ets +++ b/arkoala-arkts/arkui/src/ArkCustomComponent.ets @@ -24,8 +24,8 @@ import { NavigationInfo, NavDestinationInfo, RouterPageInfo -} from "./generated" -import { Theme } from "./generated/ohos.arkui.theme" +} from "#generated" +import { Theme } from "#generated/ohos.arkui.theme" import { UIContext } from "./ohos.arkui.UIContext" /** diff --git a/arkoala-arkts/arkui/src/handwritten/ArkNavPathStack.ets b/arkoala-arkts/arkui/src/ArkNavPathStack.ets similarity index 100% rename from arkoala-arkts/arkui/src/handwritten/ArkNavPathStack.ets rename to arkoala-arkts/arkui/src/ArkNavPathStack.ets diff --git a/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ets b/arkoala-arkts/arkui/src/ArkPageTransition.ets similarity index 96% rename from arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ets rename to arkoala-arkts/arkui/src/ArkPageTransition.ets index ad63752434ce9fb84a6c30efd2c26b0478102ac2..1344e9a31853ee4906675bc5ebb13ad2ee9ae13f 100644 --- a/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ets +++ b/arkoala-arkts/arkui/src/ArkPageTransition.ets @@ -16,7 +16,7 @@ import { memo, memo_intrinsic, memo_entry, memo_stable, memo_skip } from "@koala import { int32, float32 } from "@koalaui/common" import { contextNode, remember } from "@koalaui/runtime" -import { PeerNode, PeerNodeType } from "../PeerNode" +import { PeerNode, PeerNodeType } from "./PeerNode" import { CurrentRouter, CurrentRouterTransitionState, @@ -28,13 +28,13 @@ import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, } from "./ArkPageTransitionData" -import { AnimationExtender, Curve, DoubleAnimationParam, PageTransitionCallback, PageTransitionOptions } from "../generated" -import { ArkCommonMethodPeer } from "../generated" -import { ArkComponentRootPeer } from "../generated" -import { SizeOptions } from "../generated" -import { ScaleOptions, TranslateOptions } from "../generated" +import { AnimationExtender, Curve, DoubleAnimationParam, PageTransitionCallback, PageTransitionOptions } from "#generated" +import { ArkCommonMethodPeer } from "#generated" +import { ArkComponentRootPeer } from "#generated" +import { SizeOptions } from "#generated" +import { ScaleOptions, TranslateOptions } from "#generated" import { ArkUINativeModule } from "#components" -import { RouteType, SlideEffect } from "../generated" +import { RouteType, SlideEffect } from "#generated" interface PageTransitionCommonInterface { slide(value: SlideEffect): this diff --git a/arkoala-arkts/arkui/src/handwritten/ArkPageTransitionData.ets b/arkoala-arkts/arkui/src/ArkPageTransitionData.ets similarity index 97% rename from arkoala-arkts/arkui/src/handwritten/ArkPageTransitionData.ets rename to arkoala-arkts/arkui/src/ArkPageTransitionData.ets index 1386c977136f3b6cc4dce57c4b24d359016f54da..8944cfd4af95d1779153ef7a5d6fb41da2b2b157 100644 --- a/arkoala-arkts/arkui/src/handwritten/ArkPageTransitionData.ets +++ b/arkoala-arkts/arkui/src/ArkPageTransitionData.ets @@ -13,7 +13,7 @@ * limitations under the License. */ -import { SlideEffect, PageTransitionOptions, TranslateOptions, ScaleOptions, PageTransitionCallback } from "../generated" +import { SlideEffect, PageTransitionOptions, TranslateOptions, ScaleOptions, PageTransitionCallback } from "#generated" import { PageTransitionEnterInterface, PageTransitionExitInterface } from "./ArkPageTransition" export class ArkPageTransitionData implements PageTransitionEnterInterface, PageTransitionExitInterface { diff --git a/arkoala-arkts/arkui/src/handwritten/ArkStateStyle.ets b/arkoala-arkts/arkui/src/ArkStateStyle.ets similarity index 98% rename from arkoala-arkts/arkui/src/handwritten/ArkStateStyle.ets rename to arkoala-arkts/arkui/src/ArkStateStyle.ets index 52263e1fa3598f4dac9b4228042b8840070f018c..129e81ebfddc66e6705569e205b163c84bc63fcf 100644 --- a/arkoala-arkts/arkui/src/handwritten/ArkStateStyle.ets +++ b/arkoala-arkts/arkui/src/ArkStateStyle.ets @@ -13,7 +13,7 @@ * limitations under the License. */ -import { CommonMethod, ArkCommonMethodComponent, StateStyles } from '../generated' +import { CommonMethod, ArkCommonMethodComponent, StateStyles } from '#generated' interface MockState { value: number diff --git a/arkoala-arkts/arkui/src/ArkUIEntry.ets b/arkoala-arkts/arkui/src/ArkUIEntry.ets index 9015daf17d7bf9a67bf495f10858cd03818da4fa..a99b9200ff627c9d21d334749aab0fd03512ad96 100644 --- a/arkoala-arkts/arkui/src/ArkUIEntry.ets +++ b/arkoala-arkts/arkui/src/ArkUIEntry.ets @@ -18,16 +18,16 @@ import { errorAsString, int32, int64, scheduleCoroutine } from "@koalaui/common" import { DeserializerBase, pointer, nullptr, KPointer, InteropNativeModule, registerNativeModuleLibraryName, KSerializerBuffer, wrapSystemCallback } from "@koalaui/interop" import { PeerNode } from "./PeerNode" import { ArkUINativeModule } from "#components" -import { EventEmulator } from "./generated" +import { EventEmulator } from "#generated" import { UserView, UserApplicationControl } from "./UserView" -import { ClickEvent, ClickEventInternal } from "./generated" +import { ClickEvent, ClickEventInternal } from "#generated" import { checkEvents, setCustomEventsChecker } from "./Events" import { checkArkoalaCallbacks } from "./CallbacksChecker" import { setUIDetachedRootCreator } from "./CallbackTransformer" -import { enterForeignContext, leaveForeignContext } from "./handwritten" -import { Routed, TestComponentPeer } from "./handwritten" +import { enterForeignContext, leaveForeignContext } from "#handwritten" +import { Routed, TestComponentPeer } from "#handwritten" import { AppStorage } from "./Storage" -import { deserializeAndCallCallback } from "./generated/peers/CallbackDeserializeCall" +import { deserializeAndCallCallback } from "#generated/peers/CallbackDeserializeCall" import { NativeLog } from "./NativeLog" import { taskpool } from "escompat" import { EntryPoint } from "./UserView" diff --git a/arkoala-arkts/arkui/src/handwritten/AttributeUpdater.ets b/arkoala-arkts/arkui/src/AttributeUpdater.ets similarity index 96% rename from arkoala-arkts/arkui/src/handwritten/AttributeUpdater.ets rename to arkoala-arkts/arkui/src/AttributeUpdater.ets index 57c881a30eab4a7d4c53b652c90ce8286ed48871..a592bd9e801c18f28f386df47ce8db3378f71769 100644 --- a/arkoala-arkts/arkui/src/handwritten/AttributeUpdater.ets +++ b/arkoala-arkts/arkui/src/AttributeUpdater.ets @@ -15,7 +15,7 @@ import { memo, memo_intrinsic, memo_entry, memo_stable, memo_skip } from "@koalaui/runtime/annotations" import { InteropNativeModule } from "@koalaui/interop"; -import { AttributeModifier } from "./component/base"; +import { AttributeModifier } from "./component/customComponent"; export type Initializer = () => T; export class AttributeUpdater> implements AttributeModifier { diff --git a/arkoala-arkts/arkui/src/CallbackTransformer.ets b/arkoala-arkts/arkui/src/CallbackTransformer.ets index 9bf9fda2a0829e0d412fdd8b9f2aea2f96ebd53a..f219003df2d6982c9186f17392c7bb6cdefd6cf6 100644 --- a/arkoala-arkts/arkui/src/CallbackTransformer.ets +++ b/arkoala-arkts/arkui/src/CallbackTransformer.ets @@ -17,7 +17,7 @@ import { memo, memo_intrinsic, memo_entry, memo_stable, memo_skip } from "@koala import { KPointer } from "@koalaui/interop" import { PeerNode } from "./PeerNode" import { CustomBuilder } from "./component/builder" -import { CustomNodeBuilder, ArkComponentRootPeer } from "./generated" +import { CustomNodeBuilder, ArkComponentRootPeer } from "#generated" // Improve: need invert dependency: createUiDetachedRoot should be imported from @koalaui/arkoala same as in TS export type UIDetachedRootCreator = ( diff --git a/arkoala-arkts/arkui/src/CallbacksChecker.ets b/arkoala-arkts/arkui/src/CallbacksChecker.ets index 5f10d8c463ba4f411d122d8fef07c8d251384ad3..9036460f7b36f97213c8c6ba5df6227d2332d0c1 100644 --- a/arkoala-arkts/arkui/src/CallbacksChecker.ets +++ b/arkoala-arkts/arkui/src/CallbacksChecker.ets @@ -14,7 +14,7 @@ */ import { KBuffer, DeserializerBase } from "@koalaui/interop" -import { deserializeAndCallCallback } from "./generated/peers/CallbackDeserializeCall" +import { deserializeAndCallCallback } from "#generated/peers/CallbackDeserializeCall" import { ResourceHolder, InteropNativeModule } from "@koalaui/interop" enum CallbackEventKind { diff --git a/arkoala-arkts/arkui/src/ComponentBase.ets b/arkoala-arkts/arkui/src/ComponentBase.ets index 3863817d32204c53d198fe3889aeb27148698f3b..625be62600332414df48ecc877bc553343a67917 100644 --- a/arkoala-arkts/arkui/src/ComponentBase.ets +++ b/arkoala-arkts/arkui/src/ComponentBase.ets @@ -16,8 +16,8 @@ import { memo, memo_intrinsic, memo_entry, memo_stable, memo_skip } from "@koala import { PeerNode } from './PeerNode' import { ArkUINativeModule } from "#components" -import { AnimateParam } from './generated' -import { _animationEnd, _animationStart, UICommonBase } from './handwritten' +import { AnimateParam } from '#generated' +import { _animationEnd, _animationStart, UICommonBase } from '#handwritten' import { unsafeCast } from "@koalaui/common" export class ComponentBase implements UICommonBase { diff --git a/arkoala-arkts/arkui/src/handwritten/ContentModifierHooks.ets b/arkoala-arkts/arkui/src/ContentModifierHooks.ets similarity index 89% rename from arkoala-arkts/arkui/src/handwritten/ContentModifierHooks.ets rename to arkoala-arkts/arkui/src/ContentModifierHooks.ets index d40b2f6cd3bde6a680691e2cb46ff25443395cdd..1ec7e0a8aadfbfaa0007ddc58f7482f007d25909 100644 --- a/arkoala-arkts/arkui/src/handwritten/ContentModifierHooks.ets +++ b/arkoala-arkts/arkui/src/ContentModifierHooks.ets @@ -14,22 +14,22 @@ */ import { memo } from "@koalaui/runtime/annotations" -import { ContentModifierHelper } from "../generated" -import { ArkButtonComponent, ButtonConfiguration} from "../generated" -import { ArkCheckboxComponent, CheckBoxConfiguration } from "../generated" -import { ArkDataPanelComponent, DataPanelConfiguration } from "../generated" -import { ArkGaugeComponent, GaugeConfiguration } from "../generated" -import { ArkLoadingProgressComponent, LoadingProgressConfiguration } from "../generated" -import { ArkProgressComponent, ProgressConfiguration } from "../generated" -import { ArkRadioComponent, RadioConfiguration } from "../generated" -import { ArkRatingComponent, RatingConfiguration } from "../generated" -import { ArkSelectComponent, MenuItemConfiguration } from "../generated" -import { ArkSliderComponent, SliderConfiguration } from "../generated" -import { ArkTextClockComponent, TextClockConfiguration } from "../generated" -import { ArkTextTimerComponent, TextTimerConfiguration } from "../generated" -import { ArkToggleComponent, ToggleConfiguration } from "../generated" -import { CustomBuilder } from "../generated" -import { CallbackTransformer } from "./../CallbackTransformer" +import { ContentModifierHelper } from "#generated" +import { ArkButtonComponent, ButtonConfiguration} from "#generated" +import { ArkCheckboxComponent, CheckBoxConfiguration } from "#generated" +import { ArkDataPanelComponent, DataPanelConfiguration } from "#generated" +import { ArkGaugeComponent, GaugeConfiguration } from "#generated" +import { ArkLoadingProgressComponent, LoadingProgressConfiguration } from "#generated" +import { ArkProgressComponent, ProgressConfiguration } from "#generated" +import { ArkRadioComponent, RadioConfiguration } from "#generated" +import { ArkRatingComponent, RatingConfiguration } from "#generated" +import { ArkSelectComponent, MenuItemConfiguration } from "#generated" +import { ArkSliderComponent, SliderConfiguration } from "#generated" +import { ArkTextClockComponent, TextClockConfiguration } from "#generated" +import { ArkTextTimerComponent, TextTimerConfiguration } from "#generated" +import { ArkToggleComponent, ToggleConfiguration } from "#generated" +import { CustomBuilder } from "#generated" +import { CallbackTransformer } from "./CallbackTransformer" import { KPointer } from "@koalaui/interop" import { ContentModifier } from "./component/common" diff --git a/arkoala-arkts/arkui/src/DataChangeListener.ets b/arkoala-arkts/arkui/src/DataChangeListener.ets index 3c424e3f350454a2b2959ba312cae7a408bbd494..7e955c7602c0cc2a43ae5278f85cca0fae67ed5e 100644 --- a/arkoala-arkts/arkui/src/DataChangeListener.ets +++ b/arkoala-arkts/arkui/src/DataChangeListener.ets @@ -14,7 +14,7 @@ */ import { pointer } from "@koalaui/interop"; -import { DataOperation, DataOperationType, DataAddOperation, DataDeleteOperation, DataChangeOperation, DataMoveOperation, DataExchangeOperation, LazyForEachOps } from "./generated"; +import { DataOperation, DataOperationType, DataAddOperation, DataDeleteOperation, DataChangeOperation, DataMoveOperation, DataExchangeOperation, LazyForEachOps } from "#generated"; import { int32 } from "@koalaui/common" import { MutableState } from "@koalaui/runtime"; diff --git a/arkoala-arkts/arkui/src/handwritten/ForeignFunctions.ets b/arkoala-arkts/arkui/src/ForeignFunctions.ets similarity index 100% rename from arkoala-arkts/arkui/src/handwritten/ForeignFunctions.ets rename to arkoala-arkts/arkui/src/ForeignFunctions.ets diff --git a/arkoala-arkts/arkui/src/LazyForEach.ets b/arkoala-arkts/arkui/src/LazyForEach.ets index da700e8387c8e4d65dec153e8a6771e6951893ff..e640e064da76ed649aee3171274cf30f589a3994 100644 --- a/arkoala-arkts/arkui/src/LazyForEach.ets +++ b/arkoala-arkts/arkui/src/LazyForEach.ets @@ -18,7 +18,7 @@ import { __context, __id, contextNode, DataNode, memoEntry2, remember, rememberM import { hashCodeFromString, int32, KoalaCallsiteKey } from "@koalaui/common" import { nullptr, pointer } from "@koalaui/interop"; import { LazyForEachType, PeerNode, PeerNodeType } from "./PeerNode"; -import { LazyForEachOps } from "./generated" +import { LazyForEachOps } from "#generated" import { DataChangeListener, InternalListener } from "./DataChangeListener"; export { DataChangeListener } from "./DataChangeListener"; diff --git a/arkoala-arkts/arkui/src/PeerNode.ets b/arkoala-arkts/arkui/src/PeerNode.ets index b38f27c82617e27513afe4f6b48baeb455c3320b..01c2f956d989488c524804281a7f20ece072bed4 100644 --- a/arkoala-arkts/arkui/src/PeerNode.ets +++ b/arkoala-arkts/arkui/src/PeerNode.ets @@ -17,7 +17,7 @@ import { int32, KoalaCallsiteKey } from "@koalaui/common" import { Disposable, IncrementalNode, scheduleCallback, GlobalStateManager, MutableState } from "@koalaui/runtime" import { NativePeerNode } from "./NativePeerNode" import { nullptr, pointer } from "@koalaui/interop" -import { ArkRootPeer, StateStylesOps } from "./generated" +import { ArkRootPeer, StateStylesOps } from "#generated" import { ReusablePool } from "./ReusablePool" export const PeerNodeType = 11 diff --git a/arkoala-arkts/arkui/src/handwritten/Router.ets b/arkoala-arkts/arkui/src/Router.ets similarity index 98% rename from arkoala-arkts/arkui/src/handwritten/Router.ets rename to arkoala-arkts/arkui/src/Router.ets index dd5c122b1cd5925d551419a99ff9065731eb59af..cc8eb6e1bf94419afe65410544b779ad713ace1a 100644 --- a/arkoala-arkts/arkui/src/handwritten/Router.ets +++ b/arkoala-arkts/arkui/src/Router.ets @@ -27,11 +27,11 @@ import { RunEffect, scheduleCallback, } from "@koalaui/runtime" -import OhosRouter from "../ohos/router" -import { UserViewBuilder, UserView } from "../UserView" +import OhosRouter from "./ohos/router" +import { UserViewBuilder, UserView } from "./UserView" import { ArkUINativeModule } from "#components" -import { CommonMethod, CustomBuilder, Dimension, LayoutSafeAreaEdge, LayoutSafeAreaType, Length, NavBarPosition, NavContentInfo, NavigationAnimatedTransition, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavigationMode, NavigationOperation, NavigationTitleMode, NavigationTitleOptions, NavigationToolbarOptions, PixelMap, Resource, ResourceStr, SymbolGlyphModifier, SystemBarStyle, ToolbarItem } from "../generated" -import { RouteType } from "../generated" +import { CommonMethod, CustomBuilder, Dimension, LayoutSafeAreaEdge, LayoutSafeAreaType, Length, NavBarPosition, NavContentInfo, NavigationAnimatedTransition, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavigationMode, NavigationOperation, NavigationTitleMode, NavigationTitleOptions, NavigationToolbarOptions, PixelMap, Resource, ResourceStr, SymbolGlyphModifier, SystemBarStyle, ToolbarItem } from "#generated" +import { RouteType } from "#generated" /** * THEORY OF OPERATIONS diff --git a/arkoala-arkts/arkui/src/handwritten/TestApiHooks.ets b/arkoala-arkts/arkui/src/TestApiHooks.ets similarity index 93% rename from arkoala-arkts/arkui/src/handwritten/TestApiHooks.ets rename to arkoala-arkts/arkui/src/TestApiHooks.ets index 473a00ba575ef00037511ec4dad8bf6ee9433046..f49a83e8b7d145c79c0edb3d133e003e91971a1f 100644 --- a/arkoala-arkts/arkui/src/handwritten/TestApiHooks.ets +++ b/arkoala-arkts/arkui/src/TestApiHooks.ets @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { ArkCommonMethodComponent } from "../generated" +import { ArkCommonMethodComponent } from "#generated" export function hookId(component: ArkCommonMethodComponent, value: string | undefined): void { if (value) { component.getPeer()?.setUserId(value!) } -} \ No newline at end of file +} diff --git a/arkoala-arkts/arkui/src/handwritten/TestComponent.ets b/arkoala-arkts/arkui/src/TestComponent.ets similarity index 95% rename from arkoala-arkts/arkui/src/handwritten/TestComponent.ets rename to arkoala-arkts/arkui/src/TestComponent.ets index 484ee3a9d4986ddf6235b76bed0ff05e4ea838a2..b611747b116e0b88757be98e7bbc2ae9795b65dd 100644 --- a/arkoala-arkts/arkui/src/handwritten/TestComponent.ets +++ b/arkoala-arkts/arkui/src/TestComponent.ets @@ -18,13 +18,13 @@ import { int32 } from "@koalaui/common" import { ArkUIGeneratedNativeModule } from "#components" import { NodeAttach, remember, rememberMutableState } from "@koalaui/runtime" import { InteropNativeModule } from "@koalaui/interop" -import { ArkCommonMethodComponent, ArkCommonMethodStyle, ArkCommonMethodPeer, CommonMethod, ResourceColor } from "../generated" +import { ArkCommonMethodComponent, ArkCommonMethodStyle, ArkCommonMethodPeer, CommonMethod, ResourceColor } from "#generated" import { BuilderLambda } from "@koalaui/builderLambda" -import { AttributeModifier } from "./component/base" +import { AttributeModifier } from "./component/customComponent" import { AttributeUpdater } from "./AttributeUpdater" -import { TEST_LOG_NUMBER } from "../ArkUIEntry" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { TEST_LOG_NUMBER } from "./ArkUIEntry" +import { ComponentBase } from "./ComponentBase" +import { PeerNode } from "./PeerNode" export class TestComponentPeer extends ArkCommonMethodPeer { protected constructor(id: int32) { diff --git a/arkoala-arkts/arkui/src/component/builder.ets b/arkoala-arkts/arkui/src/component/builder.ets index 43e8735ae5446245ab224b28b97c92895b0c4995..01c126845389d34d6dfbe3add817f2cb266219d0 100644 --- a/arkoala-arkts/arkui/src/component/builder.ets +++ b/arkoala-arkts/arkui/src/component/builder.ets @@ -1,27 +1,12 @@ -/* - * 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. - */ +import { memo } from "@koalaui/runtime/annotations" +export class WrappedBuilder { + @memo builder: T; + constructor(t: T) { + this.builder = t; + } +} -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { int32, int64, float32 } from "@koalaui/common" -import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" -import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" -export type CustomBuilder = -@memo -() => void; -export type CustomBuilderT = (t: T) => void; -export type PageMapBuilder = (name: string, param: Object | undefined) => void; +export function wrapBuilder(builder: T): WrappedBuilder { + return new WrappedBuilder(builder); +} diff --git a/arkoala-arkts/arkui/src/component/common.ets b/arkoala-arkts/arkui/src/component/common.ets index c95803fc892da75a2da015a3ca5b357d8bc10a32..e1d2936a5bfb2759ae93c23d8ad8177ead820039 100644 --- a/arkoala-arkts/arkui/src/component/common.ets +++ b/arkoala-arkts/arkui/src/component/common.ets @@ -1,33069 +1,6 @@ -/* - * 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. - */ +import { WrappedBuilder } from "./builder" +import { CustomBuilderT } from "#generated" - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { CallbackTransformer } from "./../CallbackTransformer" -import { unifiedDataChannel_Summary_serializer, unifiedDataChannel } from "./../generated/ohos.data.unifiedDataChannel" -import { DrawContext, DrawContextInternal, LengthMetrics_serializer, LengthMetrics } from "./../generated/arkui.Graphics" -import { KeyType, KeySource, Color, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, FocusDrawLevel, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, InteractionHand, GradientDirection, SharedTransitionEffectType, ArrowPointPosition, Placement, LineCapStyle, LineJoinStyle, BarState, CrownSensitivity, EdgeEffect, TransitionType, TextDecorationType, TextDecorationStyle, PlayMode, HorizontalAlign, VerticalAlign, FontWeight, FontStyle, TouchType, CrownAction, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, ScrollSource, IlluminatedType, AccessibilityHoverType, AxisAction, AxisModel, MouseButton, MouseAction } from "./enums" -import { IntentionCode } from "./../generated/ohos.multimodalInput.intentionCode" -import { Position_serializer, DirectionalEdgesT_serializer, Position, DirectionalEdgesT, ConstraintSizeOptions_serializer, ConstraintSizeOptions, ResourceColor, SizeOptions, SizeOptions_serializer, ChainWeightOptions_serializer, Padding_serializer, LocalizedPadding_serializer, BorderOptions_serializer, EdgeStyles_serializer, EdgeWidths_serializer, LocalizedEdgeWidths_serializer, EdgeColors_serializer, LocalizedEdgeColors_serializer, BorderRadiuses_serializer, LocalizedBorderRadiuses_serializer, OutlineOptions_serializer, EdgeOutlineStyles_serializer, EdgeOutlineWidths_serializer, OutlineRadiuses_serializer, Edges_serializer, LocalizedEdges_serializer, LocalizedPosition_serializer, AccessibilityOptions_serializer, Length, ChainWeightOptions, Padding, LocalizedPadding, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, VoidCallback, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Bias, Font, Bias_serializer, Area_serializer, Font_serializer } from "./units" -import { Resource_serializer, Resource } from "./../generated/resource" -import { TextRange_serializer, TextRange } from "./textCommon" -import { ResizableOptions_serializer, ResizableOptions } from "./image" -import { uiEffect_VisualEffect_serializer, uiEffect_Filter_serializer, uiEffect_BrightnessBlender_serializer, uiEffect } from "./../generated/ohos.graphics.uiEffect" -import { FocusBoxStyle_serializer, FocusBoxStyle, FocusPriority } from "./focus" -import { CircleShape_serializer, EllipseShape_serializer, PathShape_serializer, RectShape_serializer, CircleShape, EllipseShape, PathShape, RectShape } from "./../generated/ohos.arkui.shape" -import { image_PixelMap_serializer, image } from "./../generated/ohos.multimedia.image" -import { Gesture_serializer, GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureRecognizer, GestureType, Gesture, GestureMask, FingerInfo, GestureControl, GestureRecognizerState, EventTargetInfo, GestureHandler, GesturePriority } from "./gesture" -import { ComponentContent_serializer, ComponentContent } from "./../generated/arkui.ComponentContent" -import { StyledString_serializer, StyledString, ImageAttachment, CustomSpan, StyleOptions, StyledStringKey, SpanStyle, StyledStringMarshallCallback, UserDataSpan, StyledStringUnmarshallCallback } from "./styledString" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { CustomBuilder } from "./builder" -import { uniformTypeDescriptor } from "./../generated/ohos.data.uniformTypeDescriptor" -import { curves, curves_ICurve_serializer } from "./../generated/ohos.curves" -import { SymbolGlyphModifier, SymbolGlyphModifier_serializer } from "./../generated/arkui.SymbolGlyphModifier" -import { UIContext, UIContext_serializer } from "./../generated/ohos.arkui.UIContext" -import { CallbackKind } from "./../generated/peers/CallbackKind" -import { hookId, hookStateStyleImpl, CustomStyles, ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" -import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" -import { Context } from "./../generated/application.Context" -import { pointer } from "./../generated/ohos.multimodalInput.pointer" -import { ButtonType, ButtonStyleMode, ButtonRole } from "./button" -import { uiObserver } from "./../generated/ohos.arkui.observer" -import { promptAction } from "./../generated/ohos.promptAction" -import { ScrollState } from "./list" -import { Want, Want_serializer } from "./../generated/ohos.app.ability.Want" -import { intl } from "./../generated/ohos.intl" -import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" -import { GlobalScope } from "./../generated/GlobalScope" -export interface BaseEvent { - target: EventTarget - timestamp: number - source: SourceType - axisHorizontal?: number | undefined - axisVertical?: number | undefined - pressure: number - tiltX: number - tiltY: number - rollAngle?: number | undefined - sourceTool: SourceTool - getModifierKeyState?: ModifierKeyStateGetter | undefined - deviceId?: number | undefined - targetDisplayId?: number | undefined -} -export class BaseEventInternal implements MaterializedBase,BaseEvent { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - get target(): EventTarget { - return this.getTarget() - } - set target(target: EventTarget) { - this.setTarget(target) - } - get timestamp(): number { - return this.getTimestamp() - } - set timestamp(timestamp: number) { - this.setTimestamp(timestamp) - } - get source(): SourceType { - return this.getSource() - } - set source(source: SourceType) { - this.setSource(source) - } - get axisHorizontal(): number | undefined { - return this.getAxisHorizontal() - } - set axisHorizontal(axisHorizontal: number | undefined) { - const axisHorizontal_NonNull = (axisHorizontal as number) - this.setAxisHorizontal(axisHorizontal_NonNull) - } - get axisVertical(): number | undefined { - return this.getAxisVertical() - } - set axisVertical(axisVertical: number | undefined) { - const axisVertical_NonNull = (axisVertical as number) - this.setAxisVertical(axisVertical_NonNull) - } - get pressure(): number { - return this.getPressure() - } - set pressure(pressure: number) { - this.setPressure(pressure) - } - get tiltX(): number { - return this.getTiltX() - } - set tiltX(tiltX: number) { - this.setTiltX(tiltX) - } - get tiltY(): number { - return this.getTiltY() - } - set tiltY(tiltY: number) { - this.setTiltY(tiltY) - } - get rollAngle(): number | undefined { - return this.getRollAngle() - } - set rollAngle(rollAngle: number | undefined) { - const rollAngle_NonNull = (rollAngle as number) - this.setRollAngle(rollAngle_NonNull) - } - get sourceTool(): SourceTool { - return this.getSourceTool() - } - set sourceTool(sourceTool: SourceTool) { - this.setSourceTool(sourceTool) - } - get getModifierKeyState(): ModifierKeyStateGetter | undefined { - return this.getGetModifierKeyState() - } - set getModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined) { - const getModifierKeyState_NonNull = (getModifierKeyState as ModifierKeyStateGetter) - this.setGetModifierKeyState(getModifierKeyState_NonNull) - } - get deviceId(): number | undefined { - return this.getDeviceId() - } - set deviceId(deviceId: number | undefined) { - const deviceId_NonNull = (deviceId as number) - this.setDeviceId(deviceId_NonNull) - } - get targetDisplayId(): number | undefined { - return this.getTargetDisplayId() - } - set targetDisplayId(targetDisplayId: number | undefined) { - const targetDisplayId_NonNull = (targetDisplayId as number) - this.setTargetDisplayId(targetDisplayId_NonNull) - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, BaseEventInternal.getFinalizer()) - } - constructor() { - this(BaseEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._BaseEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._BaseEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): BaseEventInternal { - return new BaseEventInternal(ptr) - } - private getTarget(): EventTarget { - return this.getTarget_serialize() - } - private setTarget(target: EventTarget): void { - const target_casted = target as (EventTarget) - this.setTarget_serialize(target_casted) - return - } - private getTimestamp(): number { - return this.getTimestamp_serialize() - } - private setTimestamp(timestamp: number): void { - const timestamp_casted = timestamp as (number) - this.setTimestamp_serialize(timestamp_casted) - return - } - private getSource(): SourceType { - return this.getSource_serialize() - } - private setSource(source: SourceType): void { - const source_casted = source as (SourceType) - this.setSource_serialize(source_casted) - return - } - private getAxisHorizontal(): number | undefined { - return this.getAxisHorizontal_serialize() - } - private setAxisHorizontal(axisHorizontal: number | undefined): void { - const axisHorizontal_casted = axisHorizontal as (number | undefined) - this.setAxisHorizontal_serialize(axisHorizontal_casted) - return - } - private getAxisVertical(): number | undefined { - return this.getAxisVertical_serialize() - } - private setAxisVertical(axisVertical: number | undefined): void { - const axisVertical_casted = axisVertical as (number | undefined) - this.setAxisVertical_serialize(axisVertical_casted) - return - } - private getPressure(): number { - return this.getPressure_serialize() - } - private setPressure(pressure: number): void { - const pressure_casted = pressure as (number) - this.setPressure_serialize(pressure_casted) - return - } - private getTiltX(): number { - return this.getTiltX_serialize() - } - private setTiltX(tiltX: number): void { - const tiltX_casted = tiltX as (number) - this.setTiltX_serialize(tiltX_casted) - return - } - private getTiltY(): number { - return this.getTiltY_serialize() - } - private setTiltY(tiltY: number): void { - const tiltY_casted = tiltY as (number) - this.setTiltY_serialize(tiltY_casted) - return - } - private getRollAngle(): number | undefined { - return this.getRollAngle_serialize() - } - private setRollAngle(rollAngle: number | undefined): void { - const rollAngle_casted = rollAngle as (number | undefined) - this.setRollAngle_serialize(rollAngle_casted) - return - } - private getSourceTool(): SourceTool { - return this.getSourceTool_serialize() - } - private setSourceTool(sourceTool: SourceTool): void { - const sourceTool_casted = sourceTool as (SourceTool) - this.setSourceTool_serialize(sourceTool_casted) - return - } - private getGetModifierKeyState(): ModifierKeyStateGetter | undefined { - return this.getGetModifierKeyState_serialize() - } - private setGetModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined): void { - const getModifierKeyState_casted = getModifierKeyState as (ModifierKeyStateGetter | undefined) - this.setGetModifierKeyState_serialize(getModifierKeyState_casted) - return - } - private getDeviceId(): number | undefined { - return this.getDeviceId_serialize() - } - private setDeviceId(deviceId: number | undefined): void { - const deviceId_casted = deviceId as (number | undefined) - this.setDeviceId_serialize(deviceId_casted) - return - } - private getTargetDisplayId(): number | undefined { - return this.getTargetDisplayId_serialize() - } - private setTargetDisplayId(targetDisplayId: number | undefined): void { - const targetDisplayId_casted = targetDisplayId as (number | undefined) - this.setTargetDisplayId_serialize(targetDisplayId_casted) - return - } - private getTarget_serialize(): EventTarget { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getTarget(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : EventTarget = EventTarget_serializer.read(retvalDeserializer) - return returnResult - } - private setTarget_serialize(target: EventTarget): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - EventTarget_serializer.write(thisSerializer, target) - ArkUIGeneratedNativeModule._BaseEvent_setTarget(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getTimestamp_serialize(): number { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getTimestamp(this.peer!.ptr) - return retval - } - private setTimestamp_serialize(timestamp: number): void { - ArkUIGeneratedNativeModule._BaseEvent_setTimestamp(this.peer!.ptr, timestamp) - } - private getSource_serialize(): SourceType { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getSource(this.peer!.ptr) - return TypeChecker.SourceType_FromNumeric(retval) - } - private setSource_serialize(source: SourceType): void { - ArkUIGeneratedNativeModule._BaseEvent_setSource(this.peer!.ptr, TypeChecker.SourceType_ToNumeric(source)) - } - private getAxisHorizontal_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getAxisHorizontal(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setAxisHorizontal_serialize(axisHorizontal: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (axisHorizontal !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const axisHorizontalTmpValue = axisHorizontal! - thisSerializer.writeNumber(axisHorizontalTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._BaseEvent_setAxisHorizontal(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getAxisVertical_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getAxisVertical(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setAxisVertical_serialize(axisVertical: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (axisVertical !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const axisVerticalTmpValue = axisVertical! - thisSerializer.writeNumber(axisVerticalTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._BaseEvent_setAxisVertical(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getPressure_serialize(): number { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getPressure(this.peer!.ptr) - return retval - } - private setPressure_serialize(pressure: number): void { - ArkUIGeneratedNativeModule._BaseEvent_setPressure(this.peer!.ptr, pressure) - } - private getTiltX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getTiltX(this.peer!.ptr) - return retval - } - private setTiltX_serialize(tiltX: number): void { - ArkUIGeneratedNativeModule._BaseEvent_setTiltX(this.peer!.ptr, tiltX) - } - private getTiltY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getTiltY(this.peer!.ptr) - return retval - } - private setTiltY_serialize(tiltY: number): void { - ArkUIGeneratedNativeModule._BaseEvent_setTiltY(this.peer!.ptr, tiltY) - } - private getRollAngle_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getRollAngle(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setRollAngle_serialize(rollAngle: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (rollAngle !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const rollAngleTmpValue = rollAngle! - thisSerializer.writeNumber(rollAngleTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._BaseEvent_setRollAngle(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getSourceTool_serialize(): SourceTool { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getSourceTool(this.peer!.ptr) - return TypeChecker.SourceTool_FromNumeric(retval) - } - private setSourceTool_serialize(sourceTool: SourceTool): void { - ArkUIGeneratedNativeModule._BaseEvent_setSourceTool(this.peer!.ptr, TypeChecker.SourceTool_ToNumeric(sourceTool)) - } - private getGetModifierKeyState_serialize(): ModifierKeyStateGetter | undefined { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getGetModifierKeyState(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : ModifierKeyStateGetter | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - const buffer_BufResource : CallbackResource = retvalDeserializer.readCallbackResource() - const buffer_BufCall : KPointer = retvalDeserializer.readPointer() - const buffer_BufCallSync : KPointer = retvalDeserializer.readPointer() - buffer = (keys: Array):boolean => { - const buffer_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - buffer_BufArgsSerializer.writeInt32(buffer_BufResource.resourceId); - buffer_BufArgsSerializer.writePointer(buffer_BufCall); - buffer_BufArgsSerializer.writePointer(buffer_BufCallSync); - buffer_BufArgsSerializer.writeInt32((keys.length).toInt()); - for (let keysCounterI = 0; keysCounterI < keys.length; keysCounterI++) { - const keysTmpElement : string = keys[keysCounterI]; - buffer_BufArgsSerializer.writeString(keysTmpElement); - } - let buffer_BufContinuationValue : boolean | undefined; - const buffer_BufContinuationCallback : ((value0: boolean) => void) = (value: boolean):void => { - buffer_BufContinuationValue = value; - } - buffer_BufArgsSerializer.holdAndWriteCallback(buffer_BufContinuationCallback); - InteropNativeModule._CallCallback(-1026503952, buffer_BufArgsSerializer.asBuffer(), buffer_BufArgsSerializer.length()); - buffer_BufArgsSerializer.release(); - return (buffer_BufContinuationValue as boolean); - } - } - const returnResult : ModifierKeyStateGetter | undefined = buffer - return returnResult - } - private setGetModifierKeyState_serialize(getModifierKeyState: ModifierKeyStateGetter | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (getModifierKeyState !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const getModifierKeyStateTmpValue = getModifierKeyState! - thisSerializer.holdAndWriteCallback(getModifierKeyStateTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._BaseEvent_setGetModifierKeyState(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getDeviceId_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getDeviceId(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setDeviceId_serialize(deviceId: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (deviceId !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const deviceIdTmpValue = deviceId! - thisSerializer.writeNumber(deviceIdTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._BaseEvent_setDeviceId(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getTargetDisplayId_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._BaseEvent_getTargetDisplayId(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setTargetDisplayId_serialize(targetDisplayId: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (targetDisplayId !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const targetDisplayIdTmpValue = targetDisplayId! - thisSerializer.writeNumber(targetDisplayIdTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._BaseEvent_setTargetDisplayId(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export class ChildrenMainSizeInternal { - public static fromPtr(ptr: KPointer): ChildrenMainSize { - return new ChildrenMainSize(false, ptr) - } -} -export class ChildrenMainSize implements MaterializedBase { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - get childDefaultSize(): number { - return this.getChildDefaultSize() - } - set childDefaultSize(childDefaultSize: number) { - this.setChildDefaultSize(childDefaultSize) - } - constructor(_0: boolean, peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, ChildrenMainSize.getFinalizer()) - } - constructor(childDefaultSize: number) { - this(false, ChildrenMainSize.construct(childDefaultSize)) - } - static construct(childDefaultSize: number): KPointer { - const retval = ArkUIGeneratedNativeModule._ChildrenMainSize_construct(childDefaultSize) - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._ChildrenMainSize_getFinalizer() - } - 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 - } - 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) - return - } - private getChildDefaultSize(): number { - return this.getChildDefaultSize_serialize() - } - private setChildDefaultSize(childDefaultSize: number): void { - const childDefaultSize_casted = childDefaultSize as (number) - this.setChildDefaultSize_serialize(childDefaultSize_casted) - return - } - private splice_serialize(start: number, deleteCount?: number, childrenSize?: Array): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (deleteCount !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const deleteCountTmpValue = deleteCount! - thisSerializer.writeNumber(deleteCountTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (childrenSize !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const childrenSizeTmpValue = childrenSize! - thisSerializer.writeInt32((childrenSizeTmpValue.length).toInt()) - for (let childrenSizeTmpValueCounterI = 0; childrenSizeTmpValueCounterI < childrenSizeTmpValue.length; childrenSizeTmpValueCounterI++) { - const childrenSizeTmpValueTmpElement : number = childrenSizeTmpValue[childrenSizeTmpValueCounterI] - thisSerializer.writeNumber(childrenSizeTmpValueTmpElement) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ChildrenMainSize_splice(this.peer!.ptr, start, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private update_serialize(index: number, childSize: number): void { - ArkUIGeneratedNativeModule._ChildrenMainSize_update(this.peer!.ptr, index, childSize) - } - private getChildDefaultSize_serialize(): number { - const retval = ArkUIGeneratedNativeModule._ChildrenMainSize_getChildDefaultSize(this.peer!.ptr) - return retval - } - private setChildDefaultSize_serialize(childDefaultSize: number): void { - ArkUIGeneratedNativeModule._ChildrenMainSize_setChildDefaultSize(this.peer!.ptr, childDefaultSize) - } -} -export interface DismissPopupAction { - reason: DismissReason - dismiss(): void -} -export class DismissPopupActionInternal implements MaterializedBase,DismissPopupAction { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - get reason(): DismissReason { - return this.getReason() - } - set reason(reason: DismissReason) { - this.setReason(reason) - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, DismissPopupActionInternal.getFinalizer()) - } - constructor() { - this(DismissPopupActionInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._DismissPopupAction_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._DismissPopupAction_getFinalizer() - } - public static fromPtr(ptr: KPointer): DismissPopupActionInternal { - return new DismissPopupActionInternal(ptr) - } - public dismiss(): void { - this.dismiss_serialize() - return - } - private getReason(): DismissReason { - return this.getReason_serialize() - } - private setReason(reason: DismissReason): void { - const reason_casted = reason as (DismissReason) - this.setReason_serialize(reason_casted) - return - } - private dismiss_serialize(): void { - ArkUIGeneratedNativeModule._DismissPopupAction_dismiss(this.peer!.ptr) - } - private getReason_serialize(): DismissReason { - const retval = ArkUIGeneratedNativeModule._DismissPopupAction_getReason(this.peer!.ptr) - return TypeChecker.DismissReason_FromNumeric(retval) - } - private setReason_serialize(reason: DismissReason): void { - ArkUIGeneratedNativeModule._DismissPopupAction_setReason(this.peer!.ptr, TypeChecker.DismissReason_ToNumeric(reason)) - } -} -export interface DragEvent { - dragBehavior: DragBehavior - useCustomDropAnimation: boolean - getModifierKeyState?: ModifierKeyStateGetter | undefined - getDisplayX(): number - getDisplayY(): number - getWindowX(): number - getWindowY(): number - setData(unifiedData: unifiedDataChannel.UnifiedData): void - getData(): unifiedDataChannel.UnifiedData - getSummary(): unifiedDataChannel.Summary - setResult(dragResult: DragResult): void - getResult(): DragResult - getPreviewRect(): Rectangle - getVelocityX(): number - getVelocityY(): number - getVelocity(): number - executeDropAnimation(customDropAnimation: (() => void)): void - enableInternalDropAnimation(configuration: string): void -} -export class DragEventInternal implements MaterializedBase,DragEvent { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - get dragBehavior(): DragBehavior { - return this.getDragBehavior() - } - set dragBehavior(dragBehavior: DragBehavior) { - this.setDragBehavior(dragBehavior) - } - get useCustomDropAnimation(): boolean { - return this.getUseCustomDropAnimation() - } - set useCustomDropAnimation(useCustomDropAnimation: boolean) { - this.setUseCustomDropAnimation(useCustomDropAnimation) - } - get getModifierKeyState(): ModifierKeyStateGetter | undefined { - return this.getGetModifierKeyState() - } - set getModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined) { - const getModifierKeyState_NonNull = (getModifierKeyState as ModifierKeyStateGetter) - this.setGetModifierKeyState(getModifierKeyState_NonNull) - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, DragEventInternal.getFinalizer()) - } - constructor() { - this(DragEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._DragEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._DragEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): DragEventInternal { - return new DragEventInternal(ptr) - } - public getDisplayX(): number { - return this.getDisplayX_serialize() - } - public getDisplayY(): number { - return this.getDisplayY_serialize() - } - public getWindowX(): number { - return this.getWindowX_serialize() - } - public getWindowY(): number { - return this.getWindowY_serialize() - } - public setData(unifiedData: unifiedDataChannel.UnifiedData): void { - const unifiedData_casted = unifiedData as (unifiedDataChannel.UnifiedData) - this.setData_serialize(unifiedData_casted) - return - } - public getData(): unifiedDataChannel.UnifiedData { - return this.getData_serialize() - } - public getSummary(): unifiedDataChannel.Summary { - return this.getSummary_serialize() - } - public setResult(dragResult: DragResult): void { - const dragResult_casted = dragResult as (DragResult) - this.setResult_serialize(dragResult_casted) - return - } - public getResult(): DragResult { - return this.getResult_serialize() - } - public getPreviewRect(): Rectangle { - return this.getPreviewRect_serialize() - } - public getVelocityX(): number { - return this.getVelocityX_serialize() - } - public getVelocityY(): number { - return this.getVelocityY_serialize() - } - public getVelocity(): number { - return this.getVelocity_serialize() - } - public executeDropAnimation(customDropAnimation: (() => void)): void { - const customDropAnimation_casted = customDropAnimation as ((() => void)) - this.executeDropAnimation_serialize(customDropAnimation_casted) - return - } - public enableInternalDropAnimation(configuration: string): void { - const configuration_casted = configuration as (string) - this.enableInternalDropAnimation_serialize(configuration_casted) - return - } - private getDragBehavior(): DragBehavior { - return this.getDragBehavior_serialize() - } - private setDragBehavior(dragBehavior: DragBehavior): void { - const dragBehavior_casted = dragBehavior as (DragBehavior) - this.setDragBehavior_serialize(dragBehavior_casted) - return - } - private getUseCustomDropAnimation(): boolean { - return this.getUseCustomDropAnimation_serialize() - } - private setUseCustomDropAnimation(useCustomDropAnimation: boolean): void { - const useCustomDropAnimation_casted = useCustomDropAnimation as (boolean) - this.setUseCustomDropAnimation_serialize(useCustomDropAnimation_casted) - return - } - private getGetModifierKeyState(): ModifierKeyStateGetter | undefined { - return this.getGetModifierKeyState_serialize() - } - private setGetModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined): void { - const getModifierKeyState_casted = getModifierKeyState as (ModifierKeyStateGetter | undefined) - this.setGetModifierKeyState_serialize(getModifierKeyState_casted) - return - } - private getDisplayX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._DragEvent_getDisplayX(this.peer!.ptr) - return retval - } - private getDisplayY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._DragEvent_getDisplayY(this.peer!.ptr) - return retval - } - private getWindowX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._DragEvent_getWindowX(this.peer!.ptr) - return retval - } - private getWindowY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._DragEvent_getWindowY(this.peer!.ptr) - return retval - } - private setData_serialize(unifiedData: unifiedDataChannel.UnifiedData): void { - ArkUIGeneratedNativeModule._DragEvent_setData(this.peer!.ptr, toPeerPtr(unifiedData)) - } - private getData_serialize(): unifiedDataChannel.UnifiedData { - const retval = ArkUIGeneratedNativeModule._DragEvent_getData(this.peer!.ptr) - const obj : unifiedDataChannel.UnifiedData = unifiedDataChannel.UnifiedDataInternal.fromPtr(retval) - return obj - } - private getSummary_serialize(): unifiedDataChannel.Summary { - const retval = ArkUIGeneratedNativeModule._DragEvent_getSummary(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : unifiedDataChannel.Summary = unifiedDataChannel_Summary_serializer.read(retvalDeserializer) - return returnResult - } - private setResult_serialize(dragResult: DragResult): void { - ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, TypeChecker.DragResult_ToNumeric(dragResult)) - } - private getResult_serialize(): DragResult { - const retval = ArkUIGeneratedNativeModule._DragEvent_getResult(this.peer!.ptr) - return TypeChecker.DragResult_FromNumeric(retval) - } - private getPreviewRect_serialize(): Rectangle { - const retval = ArkUIGeneratedNativeModule._DragEvent_getPreviewRect(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : Rectangle = Rectangle_serializer.read(retvalDeserializer) - return returnResult - } - private getVelocityX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityX(this.peer!.ptr) - return retval - } - private getVelocityY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityY(this.peer!.ptr) - return retval - } - private getVelocity_serialize(): number { - const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocity(this.peer!.ptr) - return retval - } - private executeDropAnimation_serialize(customDropAnimation: (() => void)): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(customDropAnimation) - ArkUIGeneratedNativeModule._DragEvent_executeDropAnimation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private enableInternalDropAnimation_serialize(configuration: string): void { - ArkUIGeneratedNativeModule._DragEvent_enableInternalDropAnimation(this.peer!.ptr, configuration) - } - private getDragBehavior_serialize(): DragBehavior { - const retval = ArkUIGeneratedNativeModule._DragEvent_getDragBehavior(this.peer!.ptr) - return TypeChecker.DragBehavior_FromNumeric(retval) - } - private setDragBehavior_serialize(dragBehavior: DragBehavior): void { - ArkUIGeneratedNativeModule._DragEvent_setDragBehavior(this.peer!.ptr, TypeChecker.DragBehavior_ToNumeric(dragBehavior)) - } - private getUseCustomDropAnimation_serialize(): boolean { - const retval = ArkUIGeneratedNativeModule._DragEvent_getUseCustomDropAnimation(this.peer!.ptr) - return retval - } - private setUseCustomDropAnimation_serialize(useCustomDropAnimation: boolean): void { - ArkUIGeneratedNativeModule._DragEvent_setUseCustomDropAnimation(this.peer!.ptr, useCustomDropAnimation ? 1 : 0) - } - private getGetModifierKeyState_serialize(): ModifierKeyStateGetter | undefined { - const retval = ArkUIGeneratedNativeModule._DragEvent_getGetModifierKeyState(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : ModifierKeyStateGetter | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - const buffer_BufResource : CallbackResource = retvalDeserializer.readCallbackResource() - const buffer_BufCall : KPointer = retvalDeserializer.readPointer() - const buffer_BufCallSync : KPointer = retvalDeserializer.readPointer() - buffer = (keys: Array):boolean => { - const buffer_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - buffer_BufArgsSerializer.writeInt32(buffer_BufResource.resourceId); - buffer_BufArgsSerializer.writePointer(buffer_BufCall); - buffer_BufArgsSerializer.writePointer(buffer_BufCallSync); - buffer_BufArgsSerializer.writeInt32((keys.length).toInt()); - for (let keysCounterI = 0; keysCounterI < keys.length; keysCounterI++) { - const keysTmpElement : string = keys[keysCounterI]; - buffer_BufArgsSerializer.writeString(keysTmpElement); - } - let buffer_BufContinuationValue : boolean | undefined; - const buffer_BufContinuationCallback : ((value0: boolean) => void) = (value: boolean):void => { - buffer_BufContinuationValue = value; - } - buffer_BufArgsSerializer.holdAndWriteCallback(buffer_BufContinuationCallback); - InteropNativeModule._CallCallback(-1026503952, buffer_BufArgsSerializer.asBuffer(), buffer_BufArgsSerializer.length()); - buffer_BufArgsSerializer.release(); - return (buffer_BufContinuationValue as boolean); - } - } - const returnResult : ModifierKeyStateGetter | undefined = buffer - return returnResult - } - private setGetModifierKeyState_serialize(getModifierKeyState: ModifierKeyStateGetter | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (getModifierKeyState !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const getModifierKeyStateTmpValue = getModifierKeyState! - thisSerializer.holdAndWriteCallback(getModifierKeyStateTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._DragEvent_setGetModifierKeyState(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export class DrawModifierInternal { - public static fromPtr(ptr: KPointer): DrawModifier { - return new DrawModifier(ptr) - } -} -export class DrawModifier implements MaterializedBase { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - drawBehind(drawContext: DrawContext): void { - } - get drawBehind_callback(): ((drawContext: DrawContext) => void) { - return this.getDrawBehind_callback() - } - set drawBehind_callback(drawBehind_callback: ((drawContext: DrawContext) => void)) { - this.setDrawBehind_callback(drawBehind_callback) - } - drawContent(drawContext: DrawContext): void { - } - get drawContent_callback(): ((drawContext: DrawContext) => void) { - return this.getDrawContent_callback() - } - set drawContent_callback(drawContent_callback: ((drawContext: DrawContext) => void)) { - this.setDrawContent_callback(drawContent_callback) - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, DrawModifier.getFinalizer()) - } - constructor() { - this(DrawModifier.construct()) - this.drawBehind_callback = this.drawBehind - this.drawContent_callback = this.drawContent - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._DrawModifier_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._DrawModifier_getFinalizer() - } - public invalidate(): void { - this.invalidate_serialize() - return - } - private getDrawBehind_callback(): ((drawContext: DrawContext) => void) { - return this.getDrawBehind_callback_serialize() - } - private setDrawBehind_callback(drawBehind_callback: ((drawContext: DrawContext) => void)): void { - const drawBehind_callback_casted = drawBehind_callback as (((drawContext: DrawContext) => void)) - this.setDrawBehind_callback_serialize(drawBehind_callback_casted) - return - } - private getDrawContent_callback(): ((drawContext: DrawContext) => void) { - return this.getDrawContent_callback_serialize() - } - private setDrawContent_callback(drawContent_callback: ((drawContext: DrawContext) => void)): void { - const drawContent_callback_casted = drawContent_callback as (((drawContext: DrawContext) => void)) - this.setDrawContent_callback_serialize(drawContent_callback_casted) - return - } - private invalidate_serialize(): void { - ArkUIGeneratedNativeModule._DrawModifier_invalidate(this.peer!.ptr) - } - private getDrawBehind_callback_serialize(): ((drawContext: DrawContext) => void) { - const retval = ArkUIGeneratedNativeModule._DrawModifier_getDrawBehind_callback(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } - private setDrawBehind_callback_serialize(drawBehind_callback: ((drawContext: DrawContext) => void)): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(drawBehind_callback) - ArkUIGeneratedNativeModule._DrawModifier_setDrawBehind_callback(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getDrawContent_callback_serialize(): ((drawContext: DrawContext) => void) { - const retval = ArkUIGeneratedNativeModule._DrawModifier_getDrawContent_callback(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } - private setDrawContent_callback_serialize(drawContent_callback: ((drawContext: DrawContext) => void)): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(drawContent_callback) - ArkUIGeneratedNativeModule._DrawModifier_setDrawContent_callback(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface GestureModifier { - applyGesture(event: UIGestureEvent): void -} -export class GestureModifierInternal implements MaterializedBase,GestureModifier { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, GestureModifierInternal.getFinalizer()) - } - constructor() { - this(GestureModifierInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._GestureModifier_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._GestureModifier_getFinalizer() - } - public static fromPtr(ptr: KPointer): GestureModifierInternal { - return new GestureModifierInternal(ptr) - } - public applyGesture(event: UIGestureEvent): void { - const event_casted = event as (UIGestureEvent) - this.applyGesture_serialize(event_casted) - return - } - private applyGesture_serialize(event: UIGestureEvent): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - UIGestureEvent_serializer.write(thisSerializer, event) - ArkUIGeneratedNativeModule._GestureModifier_applyGesture(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface KeyEvent { - type: KeyType - keyCode: number - keyText: string - keySource: KeySource - deviceId: number - metaKey: number - timestamp: number - stopPropagation: (() => void) - intentionCode: IntentionCode - getModifierKeyState?: ModifierKeyStateGetter | undefined - unicode?: number | undefined -} -export class KeyEventInternal implements MaterializedBase,KeyEvent { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - get type(): KeyType { - return this.getType() - } - set type(type: KeyType) { - this.setType(type) - } - get keyCode(): number { - return this.getKeyCode() - } - set keyCode(keyCode: number) { - this.setKeyCode(keyCode) - } - get keyText(): string { - return this.getKeyText() - } - set keyText(keyText: string) { - this.setKeyText(keyText) - } - get keySource(): KeySource { - return this.getKeySource() - } - set keySource(keySource: KeySource) { - this.setKeySource(keySource) - } - get deviceId(): number { - return this.getDeviceId() - } - set deviceId(deviceId: number) { - this.setDeviceId(deviceId) - } - get metaKey(): number { - return this.getMetaKey() - } - set metaKey(metaKey: number) { - this.setMetaKey(metaKey) - } - get timestamp(): number { - return this.getTimestamp() - } - set timestamp(timestamp: number) { - this.setTimestamp(timestamp) - } - get stopPropagation(): (() => void) { - return this.getStopPropagation() - } - set stopPropagation(stopPropagation: (() => void)) { - this.setStopPropagation(stopPropagation) - } - get intentionCode(): IntentionCode { - return this.getIntentionCode() - } - set intentionCode(intentionCode: IntentionCode) { - this.setIntentionCode(intentionCode) - } - get getModifierKeyState(): ModifierKeyStateGetter | undefined { - return this.getGetModifierKeyState() - } - set getModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined) { - const getModifierKeyState_NonNull = (getModifierKeyState as ModifierKeyStateGetter) - this.setGetModifierKeyState(getModifierKeyState_NonNull) - } - get unicode(): number | undefined { - return this.getUnicode() - } - set unicode(unicode: number | undefined) { - const unicode_NonNull = (unicode as number) - this.setUnicode(unicode_NonNull) - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, KeyEventInternal.getFinalizer()) - } - constructor() { - this(KeyEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._KeyEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._KeyEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): KeyEventInternal { - return new KeyEventInternal(ptr) - } - private getType(): KeyType { - return this.getType_serialize() - } - private setType(type: KeyType): void { - const type_casted = type as (KeyType) - this.setType_serialize(type_casted) - return - } - private getKeyCode(): number { - return this.getKeyCode_serialize() - } - private setKeyCode(keyCode: number): void { - const keyCode_casted = keyCode as (number) - this.setKeyCode_serialize(keyCode_casted) - return - } - private getKeyText(): string { - return this.getKeyText_serialize() - } - private setKeyText(keyText: string): void { - const keyText_casted = keyText as (string) - this.setKeyText_serialize(keyText_casted) - return - } - private getKeySource(): KeySource { - return this.getKeySource_serialize() - } - private setKeySource(keySource: KeySource): void { - const keySource_casted = keySource as (KeySource) - this.setKeySource_serialize(keySource_casted) - return - } - private getDeviceId(): number { - return this.getDeviceId_serialize() - } - private setDeviceId(deviceId: number): void { - const deviceId_casted = deviceId as (number) - this.setDeviceId_serialize(deviceId_casted) - return - } - private getMetaKey(): number { - return this.getMetaKey_serialize() - } - private setMetaKey(metaKey: number): void { - const metaKey_casted = metaKey as (number) - this.setMetaKey_serialize(metaKey_casted) - return - } - private getTimestamp(): number { - return this.getTimestamp_serialize() - } - private setTimestamp(timestamp: number): void { - const timestamp_casted = timestamp as (number) - 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) - return - } - private getIntentionCode(): IntentionCode { - return this.getIntentionCode_serialize() - } - private setIntentionCode(intentionCode: IntentionCode): void { - const intentionCode_casted = intentionCode as (IntentionCode) - this.setIntentionCode_serialize(intentionCode_casted) - return - } - private getGetModifierKeyState(): ModifierKeyStateGetter | undefined { - return this.getGetModifierKeyState_serialize() - } - private setGetModifierKeyState(getModifierKeyState: ModifierKeyStateGetter | undefined): void { - const getModifierKeyState_casted = getModifierKeyState as (ModifierKeyStateGetter | undefined) - this.setGetModifierKeyState_serialize(getModifierKeyState_casted) - return - } - private getUnicode(): number | undefined { - return this.getUnicode_serialize() - } - private setUnicode(unicode: number | undefined): void { - const unicode_casted = unicode as (number | undefined) - this.setUnicode_serialize(unicode_casted) - return - } - private getType_serialize(): KeyType { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getType(this.peer!.ptr) - return TypeChecker.KeyType_FromNumeric(retval) - } - private setType_serialize(type: KeyType): void { - ArkUIGeneratedNativeModule._KeyEvent_setType(this.peer!.ptr, TypeChecker.KeyType_ToNumeric(type)) - } - private getKeyCode_serialize(): number { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getKeyCode(this.peer!.ptr) - return retval - } - private setKeyCode_serialize(keyCode: number): void { - ArkUIGeneratedNativeModule._KeyEvent_setKeyCode(this.peer!.ptr, keyCode) - } - private getKeyText_serialize(): string { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getKeyText(this.peer!.ptr) - return retval - } - private setKeyText_serialize(keyText: string): void { - ArkUIGeneratedNativeModule._KeyEvent_setKeyText(this.peer!.ptr, keyText) - } - private getKeySource_serialize(): KeySource { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getKeySource(this.peer!.ptr) - return TypeChecker.KeySource_FromNumeric(retval) - } - private setKeySource_serialize(keySource: KeySource): void { - ArkUIGeneratedNativeModule._KeyEvent_setKeySource(this.peer!.ptr, TypeChecker.KeySource_ToNumeric(keySource)) - } - private getDeviceId_serialize(): number { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getDeviceId(this.peer!.ptr) - return retval - } - private setDeviceId_serialize(deviceId: number): void { - ArkUIGeneratedNativeModule._KeyEvent_setDeviceId(this.peer!.ptr, deviceId) - } - private getMetaKey_serialize(): number { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getMetaKey(this.peer!.ptr) - return retval - } - private setMetaKey_serialize(metaKey: number): void { - ArkUIGeneratedNativeModule._KeyEvent_setMetaKey(this.peer!.ptr, metaKey) - } - private getTimestamp_serialize(): number { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getTimestamp(this.peer!.ptr) - return retval - } - 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 : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(stopPropagation) - ArkUIGeneratedNativeModule._KeyEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getIntentionCode_serialize(): IntentionCode { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getIntentionCode(this.peer!.ptr) - return TypeChecker.IntentionCode_FromNumeric(retval) - } - private setIntentionCode_serialize(intentionCode: IntentionCode): void { - ArkUIGeneratedNativeModule._KeyEvent_setIntentionCode(this.peer!.ptr, TypeChecker.IntentionCode_ToNumeric(intentionCode)) - } - private getGetModifierKeyState_serialize(): ModifierKeyStateGetter | undefined { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getGetModifierKeyState(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : ModifierKeyStateGetter | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - const buffer_BufResource : CallbackResource = retvalDeserializer.readCallbackResource() - const buffer_BufCall : KPointer = retvalDeserializer.readPointer() - const buffer_BufCallSync : KPointer = retvalDeserializer.readPointer() - buffer = (keys: Array):boolean => { - const buffer_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - buffer_BufArgsSerializer.writeInt32(buffer_BufResource.resourceId); - buffer_BufArgsSerializer.writePointer(buffer_BufCall); - buffer_BufArgsSerializer.writePointer(buffer_BufCallSync); - buffer_BufArgsSerializer.writeInt32((keys.length).toInt()); - for (let keysCounterI = 0; keysCounterI < keys.length; keysCounterI++) { - const keysTmpElement : string = keys[keysCounterI]; - buffer_BufArgsSerializer.writeString(keysTmpElement); - } - let buffer_BufContinuationValue : boolean | undefined; - const buffer_BufContinuationCallback : ((value0: boolean) => void) = (value: boolean):void => { - buffer_BufContinuationValue = value; - } - buffer_BufArgsSerializer.holdAndWriteCallback(buffer_BufContinuationCallback); - InteropNativeModule._CallCallback(-1026503952, buffer_BufArgsSerializer.asBuffer(), buffer_BufArgsSerializer.length()); - buffer_BufArgsSerializer.release(); - return (buffer_BufContinuationValue as boolean); - } - } - const returnResult : ModifierKeyStateGetter | undefined = buffer - return returnResult - } - private setGetModifierKeyState_serialize(getModifierKeyState: ModifierKeyStateGetter | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (getModifierKeyState !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const getModifierKeyStateTmpValue = getModifierKeyState! - thisSerializer.holdAndWriteCallback(getModifierKeyStateTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._KeyEvent_setGetModifierKeyState(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getUnicode_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._KeyEvent_getUnicode(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setUnicode_serialize(unicode: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (unicode !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const unicodeTmpValue = unicode! - thisSerializer.writeNumber(unicodeTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._KeyEvent_setUnicode(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface Layoutable { - measureResult: MeasureResult - uniqueId?: number | undefined - layout(position: Position): void - getMargin(): DirectionalEdgesT - getPadding(): DirectionalEdgesT - getBorderWidth(): DirectionalEdgesT -} -export class LayoutableInternal implements MaterializedBase,Layoutable { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - get measureResult(): MeasureResult { - return this.getMeasureResult() - } - set measureResult(measureResult: MeasureResult) { - this.setMeasureResult(measureResult) - } - get uniqueId(): number | undefined { - return this.getUniqueId() - } - set uniqueId(uniqueId: number | undefined) { - const uniqueId_NonNull = (uniqueId as number) - this.setUniqueId(uniqueId_NonNull) - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, LayoutableInternal.getFinalizer()) - } - constructor() { - this(LayoutableInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._Layoutable_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._Layoutable_getFinalizer() - } - public static fromPtr(ptr: KPointer): LayoutableInternal { - return new LayoutableInternal(ptr) - } - public layout(position: Position): void { - const position_casted = position as (Position) - this.layout_serialize(position_casted) - return - } - public getMargin(): DirectionalEdgesT { - return this.getMargin_serialize() - } - public getPadding(): DirectionalEdgesT { - return this.getPadding_serialize() - } - public getBorderWidth(): DirectionalEdgesT { - return this.getBorderWidth_serialize() - } - private getMeasureResult(): MeasureResult { - return this.getMeasureResult_serialize() - } - private setMeasureResult(measureResult: MeasureResult): void { - const measureResult_casted = measureResult as (MeasureResult) - this.setMeasureResult_serialize(measureResult_casted) - return - } - private getUniqueId(): number | undefined { - return this.getUniqueId_serialize() - } - private setUniqueId(uniqueId: number | undefined): void { - const uniqueId_casted = uniqueId as (number | undefined) - this.setUniqueId_serialize(uniqueId_casted) - return - } - private layout_serialize(position: Position): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - Position_serializer.write(thisSerializer, position) - ArkUIGeneratedNativeModule._Layoutable_layout(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getMargin_serialize(): DirectionalEdgesT { - const retval = ArkUIGeneratedNativeModule._Layoutable_getMargin(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) - return returnResult - } - private getPadding_serialize(): DirectionalEdgesT { - const retval = ArkUIGeneratedNativeModule._Layoutable_getPadding(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) - return returnResult - } - private getBorderWidth_serialize(): DirectionalEdgesT { - const retval = ArkUIGeneratedNativeModule._Layoutable_getBorderWidth(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) - return returnResult - } - private getMeasureResult_serialize(): MeasureResult { - const retval = ArkUIGeneratedNativeModule._Layoutable_getMeasureResult(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : MeasureResult = MeasureResult_serializer.read(retvalDeserializer) - return returnResult - } - private setMeasureResult_serialize(measureResult: MeasureResult): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - MeasureResult_serializer.write(thisSerializer, measureResult) - ArkUIGeneratedNativeModule._Layoutable_setMeasureResult(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getUniqueId_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._Layoutable_getUniqueId(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setUniqueId_serialize(uniqueId: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (uniqueId !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const uniqueIdTmpValue = uniqueId! - thisSerializer.writeNumber(uniqueIdTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._Layoutable_setUniqueId(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface LayoutChild { - name: string - id: string - position: Position - measure(childConstraint: ConstraintSizeOptions): void -} -export class LayoutChildInternal implements MaterializedBase,LayoutChild { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - get name(): string { - return this.getName() - } - set name(name: string) { - this.setName(name) - } - get id(): string { - return this.getId() - } - set id(id: string) { - this.setId(id) - } - get position(): Position { - return this.getPosition() - } - set position(position: Position) { - this.setPosition(position) - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, LayoutChildInternal.getFinalizer()) - } - constructor() { - this(LayoutChildInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._LayoutChild_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._LayoutChild_getFinalizer() - } - public static fromPtr(ptr: KPointer): LayoutChildInternal { - return new LayoutChildInternal(ptr) - } - public measure(childConstraint: ConstraintSizeOptions): void { - const childConstraint_casted = childConstraint as (ConstraintSizeOptions) - this.measure_serialize(childConstraint_casted) - return - } - 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 getId(): string { - return this.getId_serialize() - } - private setId(id: string): void { - const id_casted = id as (string) - this.setId_serialize(id_casted) - return - } - private getPosition(): Position { - return this.getPosition_serialize() - } - private setPosition(position: Position): void { - const position_casted = position as (Position) - this.setPosition_serialize(position_casted) - return - } - private measure_serialize(childConstraint: ConstraintSizeOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - ConstraintSizeOptions_serializer.write(thisSerializer, childConstraint) - ArkUIGeneratedNativeModule._LayoutChild_measure(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getName_serialize(): string { - const retval = ArkUIGeneratedNativeModule._LayoutChild_getName(this.peer!.ptr) - return retval - } - private setName_serialize(name: string): void { - ArkUIGeneratedNativeModule._LayoutChild_setName(this.peer!.ptr, name) - } - private getId_serialize(): string { - const retval = ArkUIGeneratedNativeModule._LayoutChild_getId(this.peer!.ptr) - return retval - } - private setId_serialize(id: string): void { - ArkUIGeneratedNativeModule._LayoutChild_setId(this.peer!.ptr, id) - } - private getPosition_serialize(): Position { - const retval = ArkUIGeneratedNativeModule._LayoutChild_getPosition(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : Position = Position_serializer.read(retvalDeserializer) - return returnResult - } - private setPosition_serialize(position: Position): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - Position_serializer.write(thisSerializer, position) - ArkUIGeneratedNativeModule._LayoutChild_setPosition(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export class LayoutPolicyInternal { - public static fromPtr(ptr: KPointer): LayoutPolicy { - return new LayoutPolicy(ptr) - } -} -export class LayoutPolicy implements MaterializedBase { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - static readonly matchParent: LayoutPolicy = LayoutPolicy.getMatchParent() - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, LayoutPolicy.getFinalizer()) - } - constructor() { - this(LayoutPolicy.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._LayoutPolicy_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._LayoutPolicy_getFinalizer() - } - private static getMatchParent_serialize(): LayoutPolicy { - const retval = ArkUIGeneratedNativeModule._LayoutPolicy_getMatchParent() - const obj : LayoutPolicy = LayoutPolicyInternal.fromPtr(retval) - return obj - } - private static getMatchParent(): LayoutPolicy { - return LayoutPolicy.getMatchParent_serialize() - } -} -export interface Measurable { - uniqueId?: number | undefined - measure(constraint: ConstraintSizeOptions): MeasureResult - getMargin(): DirectionalEdgesT - getPadding(): DirectionalEdgesT - getBorderWidth(): DirectionalEdgesT -} -export class MeasurableInternal implements MaterializedBase,Measurable { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - get uniqueId(): number | undefined { - return this.getUniqueId() - } - set uniqueId(uniqueId: number | undefined) { - const uniqueId_NonNull = (uniqueId as number) - this.setUniqueId(uniqueId_NonNull) - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, MeasurableInternal.getFinalizer()) - } - constructor() { - this(MeasurableInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._Measurable_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._Measurable_getFinalizer() - } - public static fromPtr(ptr: KPointer): MeasurableInternal { - return new MeasurableInternal(ptr) - } - public measure(constraint: ConstraintSizeOptions): MeasureResult { - const constraint_casted = constraint as (ConstraintSizeOptions) - return this.measure_serialize(constraint_casted) - } - public getMargin(): DirectionalEdgesT { - return this.getMargin_serialize() - } - public getPadding(): DirectionalEdgesT { - return this.getPadding_serialize() - } - public getBorderWidth(): DirectionalEdgesT { - return this.getBorderWidth_serialize() - } - private getUniqueId(): number | undefined { - return this.getUniqueId_serialize() - } - private setUniqueId(uniqueId: number | undefined): void { - const uniqueId_casted = uniqueId as (number | undefined) - this.setUniqueId_serialize(uniqueId_casted) - return - } - private measure_serialize(constraint: ConstraintSizeOptions): MeasureResult { - const thisSerializer : SerializerBase = SerializerBase.hold() - ConstraintSizeOptions_serializer.write(thisSerializer, constraint) - const retval = ArkUIGeneratedNativeModule._Measurable_measure(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : MeasureResult = MeasureResult_serializer.read(retvalDeserializer) - return returnResult - } - private getMargin_serialize(): DirectionalEdgesT { - const retval = ArkUIGeneratedNativeModule._Measurable_getMargin(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) - return returnResult - } - private getPadding_serialize(): DirectionalEdgesT { - const retval = ArkUIGeneratedNativeModule._Measurable_getPadding(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) - return returnResult - } - private getBorderWidth_serialize(): DirectionalEdgesT { - const retval = ArkUIGeneratedNativeModule._Measurable_getBorderWidth(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : DirectionalEdgesT = DirectionalEdgesT_serializer.read(retvalDeserializer) - return returnResult - } - private getUniqueId_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._Measurable_getUniqueId(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setUniqueId_serialize(uniqueId: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (uniqueId !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const uniqueIdTmpValue = uniqueId! - thisSerializer.writeNumber(uniqueIdTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._Measurable_setUniqueId(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface PixelMapMock { - release(): void -} -export class PixelMapMockInternal implements MaterializedBase,PixelMapMock { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, PixelMapMockInternal.getFinalizer()) - } - constructor() { - this(PixelMapMockInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._PixelMapMock_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._PixelMapMock_getFinalizer() - } - public static fromPtr(ptr: KPointer): PixelMapMockInternal { - return new PixelMapMockInternal(ptr) - } - public release(): void { - this.release_serialize() - return - } - private release_serialize(): void { - ArkUIGeneratedNativeModule._PixelMapMock_release(this.peer!.ptr) - } -} -export class ProgressMaskInternal { - public static fromPtr(ptr: KPointer): ProgressMask { - return new ProgressMask(false, false, false, ptr) - } -} -export class ProgressMask implements MaterializedBase { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - constructor(_0: boolean, _1: boolean, _2: boolean, peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, ProgressMask.getFinalizer()) - } - constructor(value: number, total: number, color: ResourceColor) { - this(false, false, false, ProgressMask.construct(value, total, color)) - } - static construct(value: number, total: number, color: ResourceColor): KPointer { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (color instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const colorForIdx0 = color as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(colorForIdx0)) - } else if (color instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const colorForIdx1 = color as number - thisSerializer.writeNumber(colorForIdx1) - } else if (color instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const colorForIdx2 = color as string - thisSerializer.writeString(colorForIdx2) - } else if (color instanceof Resource) { - thisSerializer.writeInt8((3).toChar()) - const colorForIdx3 = color as Resource - Resource_serializer.write(thisSerializer, colorForIdx3) - } - const retval = ArkUIGeneratedNativeModule._ProgressMask_construct(value, total, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._ProgressMask_getFinalizer() - } - public updateProgress(value: number): void { - const value_casted = value as (number) - this.updateProgress_serialize(value_casted) - return - } - public updateColor(value: ResourceColor): void { - const value_casted = value as (ResourceColor) - this.updateColor_serialize(value_casted) - return - } - public enableBreathingAnimation(value: boolean): void { - const value_casted = value as (boolean) - this.enableBreathingAnimation_serialize(value_casted) - return - } - private updateProgress_serialize(value: number): void { - ArkUIGeneratedNativeModule._ProgressMask_updateProgress(this.peer!.ptr, value) - } - private updateColor_serialize(value: ResourceColor): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const valueForIdx0 = value as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueForIdx0)) - } else if (value instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueForIdx1 = value as number - thisSerializer.writeNumber(valueForIdx1) - } else if (value instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const valueForIdx2 = value as string - thisSerializer.writeString(valueForIdx2) - } else if (value instanceof Resource) { - thisSerializer.writeInt8((3).toChar()) - const valueForIdx3 = value as Resource - Resource_serializer.write(thisSerializer, valueForIdx3) - } - ArkUIGeneratedNativeModule._ProgressMask_updateColor(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private enableBreathingAnimation_serialize(value: boolean): void { - ArkUIGeneratedNativeModule._ProgressMask_enableBreathingAnimation(this.peer!.ptr, value ? 1 : 0) - } -} -export class ScrollResultInternal { - public static fromPtr(ptr: KPointer): ScrollResult { - return new ScrollResult(ptr) - } -} -export class ScrollResult implements MaterializedBase { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - get offsetRemain(): number { - return this.getOffsetRemain() - } - set offsetRemain(offsetRemain: number) { - this.setOffsetRemain(offsetRemain) - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, ScrollResult.getFinalizer()) - } - constructor() { - this(ScrollResult.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._ScrollResult_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._ScrollResult_getFinalizer() - } - private getOffsetRemain(): number { - return this.getOffsetRemain_serialize() - } - private setOffsetRemain(offsetRemain: number): void { - const offsetRemain_casted = offsetRemain as (number) - this.setOffsetRemain_serialize(offsetRemain_casted) - return - } - private getOffsetRemain_serialize(): number { - const retval = ArkUIGeneratedNativeModule._ScrollResult_getOffsetRemain(this.peer!.ptr) - return retval - } - private setOffsetRemain_serialize(offsetRemain: number): void { - ArkUIGeneratedNativeModule._ScrollResult_setOffsetRemain(this.peer!.ptr, offsetRemain) - } -} -export class TextContentControllerBaseInternal { - public static fromPtr(ptr: KPointer): TextContentControllerBase { - return new TextContentControllerBase(ptr) - } -} -export class TextContentControllerBase implements MaterializedBase { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, TextContentControllerBase.getFinalizer()) - } - constructor() { - this(TextContentControllerBase.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._TextContentControllerBase_getFinalizer() - } - public getCaretOffset(): CaretOffset { - return this.getCaretOffset_serialize() - } - public getTextContentRect(): RectResult { - return this.getTextContentRect_serialize() - } - public getTextContentLineCount(): number { - return this.getTextContentLineCount_serialize() - } - public addText(text: string, textOperationOptions?: TextContentControllerOptions): number { - const text_casted = text as (string) - const textOperationOptions_casted = textOperationOptions as (TextContentControllerOptions | undefined) - return this.addText_serialize(text_casted, textOperationOptions_casted) - } - public deleteText(range?: TextRange): void { - const range_casted = range as (TextRange | undefined) - this.deleteText_serialize(range_casted) - return - } - public getSelection(): TextRange { - return this.getSelection_serialize() - } - public clearPreviewText(): void { - this.clearPreviewText_serialize() - return - } - public getText(range?: TextRange): string { - const range_casted = range as (TextRange | undefined) - return this.getText_serialize(range_casted) - } - private getCaretOffset_serialize(): CaretOffset { - const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : CaretOffset = CaretOffset_serializer.read(retvalDeserializer) - return returnResult - } - private getTextContentRect_serialize(): RectResult { - const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : RectResult = RectResult_serializer.read(retvalDeserializer) - return returnResult - } - private getTextContentLineCount_serialize(): number { - const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) - return retval - } - private addText_serialize(text: string, textOperationOptions?: TextContentControllerOptions): number { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (textOperationOptions !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const textOperationOptionsTmpValue = textOperationOptions! - TextContentControllerOptions_serializer.write(thisSerializer, textOperationOptionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_addText(this.peer!.ptr, text, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - return retval - } - private deleteText_serialize(range?: TextRange): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (range !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const rangeTmpValue = range! - TextRange_serializer.write(thisSerializer, rangeTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextContentControllerBase_deleteText(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getSelection_serialize(): TextRange { - const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getSelection(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : TextRange = TextRange_serializer.read(retvalDeserializer) - return returnResult - } - private clearPreviewText_serialize(): void { - ArkUIGeneratedNativeModule._TextContentControllerBase_clearPreviewText(this.peer!.ptr) - } - private getText_serialize(range?: TextRange): string { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (range !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const rangeTmpValue = range! - TextRange_serializer.write(thisSerializer, rangeTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getText(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - return retval - } -} -export class TransitionEffectInternal { - public static fromPtr(ptr: KPointer): TransitionEffect { - return new TransitionEffect(false, ptr) - } -} -export class TransitionEffect implements MaterializedBase { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - static get IDENTITY(): TransitionEffect { - return TransitionEffect.getIDENTITY() - } - static set IDENTITY(IDENTITY: TransitionEffect) { - TransitionEffect.setIDENTITY(IDENTITY) - } - static get OPACITY(): TransitionEffect { - return TransitionEffect.getOPACITY() - } - static set OPACITY(OPACITY: TransitionEffect) { - TransitionEffect.setOPACITY(OPACITY) - } - static get SLIDE(): TransitionEffect { - return TransitionEffect.getSLIDE() - } - static set SLIDE(SLIDE: TransitionEffect) { - TransitionEffect.setSLIDE(SLIDE) - } - static get SLIDE_SWITCH(): TransitionEffect { - return TransitionEffect.getSLIDE_SWITCH() - } - static set SLIDE_SWITCH(SLIDE_SWITCH: TransitionEffect) { - TransitionEffect.setSLIDE_SWITCH(SLIDE_SWITCH) - } - constructor(_0: boolean, peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, TransitionEffect.getFinalizer()) - } - constructor(type: string) { - this(false, TransitionEffect.construct0(type)) - } - constructor(effect: number) { - this(false, TransitionEffect.construct1(effect)) - } - constructor(effect: TransitionEdge) { - this(false, TransitionEffect.construct2(effect)) - } - constructor(effect: TranslateOptions) { - this(false, TransitionEffect.construct3(effect)) - } - constructor(effect: RotateOptions) { - this(false, TransitionEffect.construct4(effect)) - } - constructor(effect: ScaleOptions) { - this(false, TransitionEffect.construct5(effect)) - } - constructor(effect: AsymmetricTransitionOption) { - this(false, TransitionEffect.construct6(effect)) - } - static construct0(type: string): KPointer { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct0(type) - return retval - } - static construct1(effect: number): KPointer { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct1(effect) - return retval - } - static construct2(effect: TransitionEdge): KPointer { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct2(TypeChecker.TransitionEdge_ToNumeric(effect)) - return retval - } - static construct3(effect: TranslateOptions): KPointer { - const thisSerializer : SerializerBase = SerializerBase.hold() - TranslateOptions_serializer.write(thisSerializer, effect) - const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct3(thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - return retval - } - static construct4(effect: RotateOptions): KPointer { - const thisSerializer : SerializerBase = SerializerBase.hold() - RotateOptions_serializer.write(thisSerializer, effect) - const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct4(thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - return retval - } - static construct5(effect: ScaleOptions): KPointer { - const thisSerializer : SerializerBase = SerializerBase.hold() - ScaleOptions_serializer.write(thisSerializer, effect) - const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct5(thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - return retval - } - static construct6(effect: AsymmetricTransitionOption): KPointer { - const thisSerializer : SerializerBase = SerializerBase.hold() - AsymmetricTransitionOption_serializer.write(thisSerializer, effect) - const retval = ArkUIGeneratedNativeModule._TransitionEffect_construct6(thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._TransitionEffect_getFinalizer() - } - private static translate_serialize(options: TranslateOptions): TransitionEffect { - const thisSerializer : SerializerBase = SerializerBase.hold() - TranslateOptions_serializer.write(thisSerializer, options) - const retval = ArkUIGeneratedNativeModule._TransitionEffect_translate(thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static rotate_serialize(options: RotateOptions): TransitionEffect { - const thisSerializer : SerializerBase = SerializerBase.hold() - RotateOptions_serializer.write(thisSerializer, options) - const retval = ArkUIGeneratedNativeModule._TransitionEffect_rotate(thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static scale_serialize(options: ScaleOptions): TransitionEffect { - const thisSerializer : SerializerBase = SerializerBase.hold() - ScaleOptions_serializer.write(thisSerializer, options) - const retval = ArkUIGeneratedNativeModule._TransitionEffect_scale(thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static opacity_serialize(alpha: number): TransitionEffect { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_opacity(alpha) - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static move_serialize(edge: TransitionEdge): TransitionEffect { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_move(TypeChecker.TransitionEdge_ToNumeric(edge)) - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static asymmetric_serialize(appear: TransitionEffect, disappear: TransitionEffect): TransitionEffect { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_asymmetric(toPeerPtr(appear), toPeerPtr(disappear)) - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static getIDENTITY_serialize(): TransitionEffect { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_getIDENTITY() - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static setIDENTITY_serialize(IDENTITY: TransitionEffect): void { - ArkUIGeneratedNativeModule._TransitionEffect_setIDENTITY(toPeerPtr(IDENTITY)) - } - private static getOPACITY_serialize(): TransitionEffect { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_getOPACITY() - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static setOPACITY_serialize(OPACITY: TransitionEffect): void { - ArkUIGeneratedNativeModule._TransitionEffect_setOPACITY(toPeerPtr(OPACITY)) - } - private static getSLIDE_serialize(): TransitionEffect { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_getSLIDE() - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static setSLIDE_serialize(SLIDE: TransitionEffect): void { - ArkUIGeneratedNativeModule._TransitionEffect_setSLIDE(toPeerPtr(SLIDE)) - } - private static getSLIDE_SWITCH_serialize(): TransitionEffect { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_getSLIDE_SWITCH() - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private static setSLIDE_SWITCH_serialize(SLIDE_SWITCH: TransitionEffect): void { - ArkUIGeneratedNativeModule._TransitionEffect_setSLIDE_SWITCH(toPeerPtr(SLIDE_SWITCH)) - } - public static translate(options: TranslateOptions): TransitionEffect { - const options_casted = options as (TranslateOptions) - return TransitionEffect.translate_serialize(options_casted) - } - public static rotate(options: RotateOptions): TransitionEffect { - const options_casted = options as (RotateOptions) - return TransitionEffect.rotate_serialize(options_casted) - } - public static scale(options: ScaleOptions): TransitionEffect { - const options_casted = options as (ScaleOptions) - return TransitionEffect.scale_serialize(options_casted) - } - public static opacity(alpha: number): TransitionEffect { - const alpha_casted = alpha as (number) - return TransitionEffect.opacity_serialize(alpha_casted) - } - public static move(edge: TransitionEdge): TransitionEffect { - const edge_casted = edge as (TransitionEdge) - return TransitionEffect.move_serialize(edge_casted) - } - 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) - } - public animation(value: AnimateParam): TransitionEffect { - const value_casted = value as (AnimateParam) - return this.animation_serialize(value_casted) - } - public combine(transitionEffect: TransitionEffect): TransitionEffect { - const transitionEffect_casted = transitionEffect as (TransitionEffect) - return this.combine_serialize(transitionEffect_casted) - } - private static getIDENTITY(): TransitionEffect { - return TransitionEffect.getIDENTITY_serialize() - } - private static setIDENTITY(IDENTITY: TransitionEffect): void { - const IDENTITY_casted = IDENTITY as (TransitionEffect) - TransitionEffect.setIDENTITY_serialize(IDENTITY_casted) - return - } - private static getOPACITY(): TransitionEffect { - return TransitionEffect.getOPACITY_serialize() - } - private static setOPACITY(OPACITY: TransitionEffect): void { - const OPACITY_casted = OPACITY as (TransitionEffect) - TransitionEffect.setOPACITY_serialize(OPACITY_casted) - return - } - private static getSLIDE(): TransitionEffect { - return TransitionEffect.getSLIDE_serialize() - } - private static setSLIDE(SLIDE: TransitionEffect): void { - const SLIDE_casted = SLIDE as (TransitionEffect) - TransitionEffect.setSLIDE_serialize(SLIDE_casted) - return - } - private static getSLIDE_SWITCH(): TransitionEffect { - return TransitionEffect.getSLIDE_SWITCH_serialize() - } - private static setSLIDE_SWITCH(SLIDE_SWITCH: TransitionEffect): void { - const SLIDE_SWITCH_casted = SLIDE_SWITCH as (TransitionEffect) - TransitionEffect.setSLIDE_SWITCH_serialize(SLIDE_SWITCH_casted) - return - } - private animation_serialize(value: AnimateParam): TransitionEffect { - const thisSerializer : SerializerBase = SerializerBase.hold() - AnimateParam_serializer.write(thisSerializer, value) - const retval = ArkUIGeneratedNativeModule._TransitionEffect_animation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } - private combine_serialize(transitionEffect: TransitionEffect): TransitionEffect { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_combine(this.peer!.ptr, toPeerPtr(transitionEffect)) - const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) - return obj - } -} -export interface UICommonEvent { - setOnClick(callback_: ((event: ClickEvent) => void) | undefined): void - setOnTouch(callback_: ((event: TouchEvent) => void) | undefined): void - setOnAppear(callback_: (() => void) | undefined): void - setOnDisappear(callback_: (() => void) | undefined): void - setOnKeyEvent(callback_: ((event: KeyEvent) => void) | undefined): void - setOnFocus(callback_: (() => void) | undefined): void - setOnBlur(callback_: (() => void) | undefined): void - setOnHover(callback_: HoverCallback | undefined): void - setOnMouse(callback_: ((event: MouseEvent) => void) | undefined): void - setOnSizeChange(callback_: SizeChangeCallback | undefined): void - setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event: VisibleAreaChangeCallback | undefined): void -} -export class UICommonEventInternal implements MaterializedBase,UICommonEvent { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, UICommonEventInternal.getFinalizer()) - } - constructor() { - this(UICommonEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._UICommonEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._UICommonEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): UICommonEventInternal { - return new UICommonEventInternal(ptr) - } - public setOnClick(callback_: ((event: ClickEvent) => void) | undefined): void { - const callback__casted = callback_ as (((event: ClickEvent) => void) | undefined) - this.setOnClick_serialize(callback__casted) - return - } - public setOnTouch(callback_: ((event: TouchEvent) => void) | undefined): void { - const callback__casted = callback_ as (((event: TouchEvent) => void) | undefined) - this.setOnTouch_serialize(callback__casted) - return - } - public setOnAppear(callback_: (() => void) | undefined): void { - const callback__casted = callback_ as ((() => void) | undefined) - this.setOnAppear_serialize(callback__casted) - return - } - public setOnDisappear(callback_: (() => void) | undefined): void { - const callback__casted = callback_ as ((() => void) | undefined) - this.setOnDisappear_serialize(callback__casted) - return - } - public setOnKeyEvent(callback_: ((event: KeyEvent) => void) | undefined): void { - const callback__casted = callback_ as (((event: KeyEvent) => void) | undefined) - this.setOnKeyEvent_serialize(callback__casted) - return - } - public setOnFocus(callback_: (() => void) | undefined): void { - const callback__casted = callback_ as ((() => void) | undefined) - this.setOnFocus_serialize(callback__casted) - return - } - public setOnBlur(callback_: (() => void) | undefined): void { - const callback__casted = callback_ as ((() => void) | undefined) - this.setOnBlur_serialize(callback__casted) - return - } - public setOnHover(callback_: HoverCallback | undefined): void { - const callback__casted = callback_ as (HoverCallback | undefined) - this.setOnHover_serialize(callback__casted) - return - } - public setOnMouse(callback_: ((event: MouseEvent) => void) | undefined): void { - const callback__casted = callback_ as (((event: MouseEvent) => void) | undefined) - this.setOnMouse_serialize(callback__casted) - return - } - public setOnSizeChange(callback_: SizeChangeCallback | undefined): void { - const callback__casted = callback_ as (SizeChangeCallback | undefined) - this.setOnSizeChange_serialize(callback__casted) - return - } - public setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event: VisibleAreaChangeCallback | undefined): void { - const options_casted = options as (VisibleAreaEventOptions) - const event_casted = event as (VisibleAreaChangeCallback | undefined) - this.setOnVisibleAreaApproximateChange_serialize(options_casted, event_casted) - return - } - private setOnClick_serialize(callback_: ((event: ClickEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnClick(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnTouch_serialize(callback_: ((event: TouchEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnTouch(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnAppear_serialize(callback_: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnAppear(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnDisappear_serialize(callback_: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnDisappear(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnKeyEvent_serialize(callback_: ((event: KeyEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnKeyEvent(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnFocus_serialize(callback_: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnFocus(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnBlur_serialize(callback_: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnBlur(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnHover_serialize(callback_: HoverCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnHover(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnMouse_serialize(callback_: ((event: MouseEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnMouse(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnSizeChange_serialize(callback_: SizeChangeCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnSizeChange(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private setOnVisibleAreaApproximateChange_serialize(options: VisibleAreaEventOptions, event: VisibleAreaChangeCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - VisibleAreaEventOptions_serializer.write(thisSerializer, options) - if (event !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const eventTmpValue = event! - thisSerializer.holdAndWriteCallback(eventTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._UICommonEvent_setOnVisibleAreaApproximateChange(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export class ArkCommonMethodPeer extends PeerNode { - protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { - super(peerPtr, id, name, flags) - } - public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonMethodPeer { - const peerId = PeerNode.nextId() - const _peerPtr = ArkUIGeneratedNativeModule._CommonMethod_construct(peerId, flags) - const _peer = new ArkCommonMethodPeer(_peerPtr, peerId, "CommonMethod", flags) - component?.setPeer(_peer) - return _peer - } - setWidthAttribute(value: Length | LayoutPolicy | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Length) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Length - if (valueTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string - thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) - } else if (valueTmpValueForIdx0 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number - thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) - } else if (valueTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) - } - } else if (valueTmpValue instanceof LayoutPolicy) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as LayoutPolicy - LayoutPolicy_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setHeightAttribute(value: Length | LayoutPolicy | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Length) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Length - if (valueTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string - thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) - } else if (valueTmpValueForIdx0 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number - thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) - } else if (valueTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) - } - } else if (valueTmpValue instanceof LayoutPolicy) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as LayoutPolicy - LayoutPolicy_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setHeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDrawModifierAttribute(value: DrawModifier | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - DrawModifier_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setDrawModifier(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setResponseRegionAttribute(value: Array | Rectangle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (TypeChecker.isArray_Rectangle(valueTmpValue)) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Array - thisSerializer.writeInt32((valueTmpValueForIdx0.length).toInt()) - for (let valueTmpValueForIdx0CounterI = 0; valueTmpValueForIdx0CounterI < valueTmpValueForIdx0.length; valueTmpValueForIdx0CounterI++) { - const valueTmpValueForIdx0TmpElement : Rectangle = valueTmpValueForIdx0[valueTmpValueForIdx0CounterI] - Rectangle_serializer.write(thisSerializer, valueTmpValueForIdx0TmpElement) - } - } else if (valueTmpValue instanceof Rectangle) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Rectangle - Rectangle_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setResponseRegion(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMouseResponseRegionAttribute(value: Array | Rectangle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (TypeChecker.isArray_Rectangle(valueTmpValue)) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Array - thisSerializer.writeInt32((valueTmpValueForIdx0.length).toInt()) - for (let valueTmpValueForIdx0CounterI = 0; valueTmpValueForIdx0CounterI < valueTmpValueForIdx0.length; valueTmpValueForIdx0CounterI++) { - const valueTmpValueForIdx0TmpElement : Rectangle = valueTmpValueForIdx0[valueTmpValueForIdx0CounterI] - Rectangle_serializer.write(thisSerializer, valueTmpValueForIdx0TmpElement) - } - } else if (valueTmpValue instanceof Rectangle) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Rectangle - Rectangle_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setMouseResponseRegion(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSizeAttribute(value: SizeOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - SizeOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setConstraintSizeAttribute(value: ConstraintSizeOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - ConstraintSizeOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setConstraintSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setHitTestBehaviorAttribute(value: HitTestMode | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as HitTestMode) - thisSerializer.writeInt32(TypeChecker.HitTestMode_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setHitTestBehavior(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnChildTouchTestAttribute(value: ((value: Array) => TouchResult) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnChildTouchTest(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLayoutWeightAttribute(value: number | string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setLayoutWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setChainWeightAttribute(value: ChainWeightOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - ChainWeightOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setChainWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPaddingAttribute(value: Padding | Length | LocalizedPadding | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Padding) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Padding - Padding_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof Length) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Length - if (valueTmpValueForIdx1 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx1ForIdx0 = valueTmpValueForIdx1 as string - thisSerializer.writeString(valueTmpValueForIdx1ForIdx0) - } else if (valueTmpValueForIdx1 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1ForIdx1 = valueTmpValueForIdx1 as number - thisSerializer.writeNumber(valueTmpValueForIdx1ForIdx1) - } else if (valueTmpValueForIdx1 instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx1ForIdx2 = valueTmpValueForIdx1 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx1ForIdx2) - } - } else if (valueTmpValue instanceof LocalizedPadding) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as LocalizedPadding - LocalizedPadding_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setPadding(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSafeAreaPaddingAttribute(value: Padding | LengthMetrics | LocalizedPadding | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Padding) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Padding - Padding_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof LengthMetrics) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as LengthMetrics - LengthMetrics_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof LocalizedPadding) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as LocalizedPadding - LocalizedPadding_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setSafeAreaPadding(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMarginAttribute(value: Padding | Length | LocalizedPadding | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Padding) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Padding - Padding_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof Length) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Length - if (valueTmpValueForIdx1 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx1ForIdx0 = valueTmpValueForIdx1 as string - thisSerializer.writeString(valueTmpValueForIdx1ForIdx0) - } else if (valueTmpValueForIdx1 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1ForIdx1 = valueTmpValueForIdx1 as number - thisSerializer.writeNumber(valueTmpValueForIdx1ForIdx1) - } else if (valueTmpValueForIdx1 instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx1ForIdx2 = valueTmpValueForIdx1 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx1ForIdx2) - } - } else if (valueTmpValue instanceof LocalizedPadding) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as LocalizedPadding - LocalizedPadding_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setMargin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundColorAttribute(value: ResourceColor | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) - } else if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx1) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx2) - } else if (valueTmpValue instanceof Resource) { - thisSerializer.writeInt8((3).toChar()) - const valueTmpValueForIdx3 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx3) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPixelRoundAttribute(value: PixelRoundPolicy | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - PixelRoundPolicy_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setPixelRound(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundImageSizeAttribute(value: SizeOptions | ImageSize | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof SizeOptions) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as SizeOptions - SizeOptions_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof ImageSize) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as ImageSize - thisSerializer.writeInt32(TypeChecker.ImageSize_ToNumeric(valueTmpValueForIdx1)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImageSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundImagePositionAttribute(value: Position | Alignment | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Position) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Position - Position_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof Alignment) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Alignment - thisSerializer.writeInt32(TypeChecker.Alignment_ToNumeric(valueTmpValueForIdx1)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImagePosition(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundEffect0Attribute(value: BackgroundEffectOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - BackgroundEffectOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundEffect0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundImageResizableAttribute(value: ResizableOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - ResizableOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImageResizable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setForegroundEffectAttribute(value: ForegroundEffectOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - ForegroundEffectOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setForegroundEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setVisualEffectAttribute(value: uiEffect.VisualEffect | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - uiEffect_VisualEffect_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setVisualEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundFilterAttribute(value: uiEffect.Filter | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - uiEffect_Filter_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setForegroundFilterAttribute(value: uiEffect.Filter | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - uiEffect_Filter_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setForegroundFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCompositingFilterAttribute(value: uiEffect.Filter | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - uiEffect_Filter_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setCompositingFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOpacityAttribute(value: number | Resource | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof Resource) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOpacity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBorderAttribute(value: BorderOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - BorderOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBorder(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBorderStyleAttribute(value: BorderStyle | EdgeStyles | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof BorderStyle) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as BorderStyle - thisSerializer.writeInt32(TypeChecker.BorderStyle_ToNumeric(valueTmpValueForIdx0)) - } else if (valueTmpValue instanceof EdgeStyles) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as EdgeStyles - EdgeStyles_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBorderStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBorderWidthAttribute(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Length) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Length - if (valueTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string - thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) - } else if (valueTmpValueForIdx0 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number - thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) - } else if (valueTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) - } - } else if (valueTmpValue instanceof EdgeWidths) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as EdgeWidths - EdgeWidths_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof LocalizedEdgeWidths) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdgeWidths - LocalizedEdgeWidths_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBorderWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBorderColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof ResourceColor) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as ResourceColor - if (valueTmpValueForIdx0 instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0ForIdx0)) - } else if (valueTmpValueForIdx0 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number - thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) - } else if (valueTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as string - thisSerializer.writeString(valueTmpValueForIdx0ForIdx2) - } else if (valueTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((3).toChar()) - const valueTmpValueForIdx0ForIdx3 = valueTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx3) - } - } else if (valueTmpValue instanceof EdgeColors) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as EdgeColors - EdgeColors_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof LocalizedEdgeColors) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdgeColors - LocalizedEdgeColors_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBorderColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBorderRadiusAttribute(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Length) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Length - if (valueTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string - thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) - } else if (valueTmpValueForIdx0 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number - thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) - } else if (valueTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) - } - } else if (valueTmpValue instanceof BorderRadiuses) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as BorderRadiuses - BorderRadiuses_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof LocalizedBorderRadiuses) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as LocalizedBorderRadiuses - LocalizedBorderRadiuses_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBorderRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBorderImageAttribute(value: BorderImageOption | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - BorderImageOption_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBorderImage(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOutlineAttribute(value: OutlineOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - OutlineOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOutline(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOutlineStyleAttribute(value: OutlineStyle | EdgeOutlineStyles | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof OutlineStyle) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as OutlineStyle - thisSerializer.writeInt32(TypeChecker.OutlineStyle_ToNumeric(valueTmpValueForIdx0)) - } else if (valueTmpValue instanceof EdgeOutlineStyles) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as EdgeOutlineStyles - EdgeOutlineStyles_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOutlineStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOutlineWidthAttribute(value: Dimension | EdgeOutlineWidths | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Dimension) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Dimension - if (valueTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string - thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) - } else if (valueTmpValueForIdx0 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number - thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) - } else if (valueTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) - } - } else if (valueTmpValue instanceof EdgeOutlineWidths) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as EdgeOutlineWidths - EdgeOutlineWidths_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOutlineWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOutlineColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof ResourceColor) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as ResourceColor - if (valueTmpValueForIdx0 instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0ForIdx0)) - } else if (valueTmpValueForIdx0 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number - thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) - } else if (valueTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as string - thisSerializer.writeString(valueTmpValueForIdx0ForIdx2) - } else if (valueTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((3).toChar()) - const valueTmpValueForIdx0ForIdx3 = valueTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx3) - } - } else if (valueTmpValue instanceof EdgeColors) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as EdgeColors - EdgeColors_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof LocalizedEdgeColors) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdgeColors - LocalizedEdgeColors_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOutlineColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOutlineRadiusAttribute(value: Dimension | OutlineRadiuses | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Dimension) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Dimension - if (valueTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as string - thisSerializer.writeString(valueTmpValueForIdx0ForIdx0) - } else if (valueTmpValueForIdx0 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number - thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) - } else if (valueTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx2) - } - } else if (valueTmpValue instanceof OutlineRadiuses) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as OutlineRadiuses - OutlineRadiuses_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOutlineRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setForegroundColorAttribute(value: ResourceColor | ColoringStrategy | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof ResourceColor) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as ResourceColor - if (valueTmpValueForIdx0 instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0ForIdx0 = valueTmpValueForIdx0 as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0ForIdx0)) - } else if (valueTmpValueForIdx0 instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx0ForIdx1 = valueTmpValueForIdx0 as number - thisSerializer.writeNumber(valueTmpValueForIdx0ForIdx1) - } else if (valueTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx0ForIdx2 = valueTmpValueForIdx0 as string - thisSerializer.writeString(valueTmpValueForIdx0ForIdx2) - } else if (valueTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((3).toChar()) - const valueTmpValueForIdx0ForIdx3 = valueTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx0ForIdx3) - } - } else if (valueTmpValue instanceof ColoringStrategy) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as ColoringStrategy - thisSerializer.writeInt32(TypeChecker.ColoringStrategy_ToNumeric(valueTmpValueForIdx1)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setForegroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnClick0Attribute(value: ((event: ClickEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnClick0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnHoverAttribute(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnHover(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnHoverMoveAttribute(value: ((value0: HoverEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnHoverMove(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnAccessibilityHoverAttribute(value: AccessibilityCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnAccessibilityHover(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setHoverEffectAttribute(value: HoverEffect | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as HoverEffect) - thisSerializer.writeInt32(TypeChecker.HoverEffect_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setHoverEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnMouseAttribute(value: ((event: MouseEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnMouse(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnTouchAttribute(value: ((event: TouchEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnTouch(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnKeyEventAttribute(value: ((event: KeyEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnKeyEvent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDigitalCrownAttribute(value: ((value0: CrownEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDigitalCrown(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnKeyPreImeAttribute(value: ((value0: KeyEvent) => boolean) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnKeyPreIme(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnKeyEventDispatchAttribute(value: ((value0: KeyEvent) => boolean) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnKeyEventDispatch(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnFocusAxisEventAttribute(value: ((value0: FocusAxisEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnFocusAxisEvent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnAxisEventAttribute(value: ((value0: AxisEvent) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnAxisEvent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFocusableAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setFocusable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setNextFocusAttribute(value: FocusMovement | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - FocusMovement_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setNextFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTabStopAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setTabStop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnFocusAttribute(value: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnBlurAttribute(value: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTabIndexAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setTabIndex(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDefaultFocusAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setDefaultFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setGroupDefaultFocusAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setGroupDefaultFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFocusOnTouchAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setFocusOnTouch(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFocusBoxAttribute(value: FocusBoxStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - FocusBoxStyle_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setFocusBox(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAnimationAttribute(value: AnimateParam | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - AnimateParam_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAnimation(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTransition0Attribute(value: TransitionEffect | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - TransitionEffect_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setTransition0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMotionBlurAttribute(value: MotionBlurOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - MotionBlurOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setMotionBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBrightnessAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBrightness(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setContrastAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setContrast(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setGrayscaleAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setGrayscale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setColorBlendAttribute(value: Color | string | Resource | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx1) - } else if (valueTmpValue instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setColorBlend(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSaturateAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setSaturate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSepiaAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setSepia(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setInvertAttribute(value: number | InvertOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof InvertOptions) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as InvertOptions - InvertOptions_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setInvert(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setHueRotateAttribute(value: number | string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setHueRotate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setUseShadowBatchingAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setUseShadowBatching(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setUseEffect0Attribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setUseEffect0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setRenderGroupAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setRenderGroup(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFreezeAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setFreeze(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTranslateAttribute(value: TranslateOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - TranslateOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setTranslate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setScaleAttribute(value: ScaleOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - ScaleOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setRotateAttribute(value: RotateOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - RotateOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setRotate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTransformAttribute(value: Object | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteObject(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setTransform(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnAppearAttribute(value: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnAppear(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDisAppearAttribute(value: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDisAppear(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnAttachAttribute(value: VoidCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnAttach(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDetachAttribute(value: VoidCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDetach(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnAreaChangeAttribute(value: ((oldValue: Area,newValue: Area) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnAreaChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setVisibilityAttribute(value: Visibility | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as Visibility) - thisSerializer.writeInt32(TypeChecker.Visibility_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setVisibility(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFlexGrowAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setFlexGrow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFlexShrinkAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setFlexShrink(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFlexBasisAttribute(value: number | string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setFlexBasis(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAlignSelfAttribute(value: ItemAlign | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as ItemAlign) - thisSerializer.writeInt32(TypeChecker.ItemAlign_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAlignSelf(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDisplayPriorityAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setDisplayPriority(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setZIndexAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setZIndex(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDirectionAttribute(value: Direction | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as Direction) - thisSerializer.writeInt32(TypeChecker.Direction_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setDirection(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAlignAttribute(value: Alignment | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as Alignment) - thisSerializer.writeInt32(TypeChecker.Alignment_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAlign(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPositionAttribute(value: Position | Edges | LocalizedEdges | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Position) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Position - Position_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof Edges) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Edges - Edges_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof LocalizedEdges) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdges - LocalizedEdges_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setPosition(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMarkAnchorAttribute(value: Position | LocalizedPosition | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Position) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Position - Position_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof LocalizedPosition) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as LocalizedPosition - LocalizedPosition_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setMarkAnchor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOffsetAttribute(value: Position | Edges | LocalizedEdges | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Position) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Position - Position_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof Edges) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Edges - Edges_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof LocalizedEdges) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as LocalizedEdges - LocalizedEdges_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOffset(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnabledAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setEnabled(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAlignRules0Attribute(value: AlignRuleOption | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - AlignRuleOption_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAlignRules0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAlignRules1Attribute(value: LocalizedAlignRuleOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - LocalizedAlignRuleOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAlignRules1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAspectRatioAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAspectRatio(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setClickEffectAttribute(value: ClickEffect | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - ClickEffect_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setClickEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDragStartAttribute(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDragStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDragEnterAttribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDragEnter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDragMoveAttribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDragMove(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDragLeaveAttribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDragLeave(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDrop0Attribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDrop0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDragEndAttribute(value: ((event: DragEvent,extraParams?: string) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDragEnd(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAllowDropAttribute(value: Array | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeInt32((valueTmpValue.length).toInt()) - for (let valueTmpValueCounterI = 0; valueTmpValueCounterI < valueTmpValue.length; valueTmpValueCounterI++) { - const valueTmpValueTmpElement : uniformTypeDescriptor.UniformDataType = valueTmpValue[valueTmpValueCounterI] - thisSerializer.writeInt32(TypeChecker.uniformTypeDescriptor_UniformDataType_ToNumeric(valueTmpValueTmpElement)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAllowDrop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDraggableAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setDraggable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDragPreview0Attribute(value: CustomBuilder | DragItemInfo | string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof CustomBuilder) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as CustomBuilder - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueTmpValueForIdx0)) - } else if (valueTmpValue instanceof DragItemInfo) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as DragItemInfo - DragItemInfo_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setDragPreview0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnPreDragAttribute(value: ((value0: PreDragStatus) => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnPreDrag(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLinearGradientAttribute(value: LinearGradientOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - LinearGradientOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setLinearGradient(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSweepGradientAttribute(value: SweepGradientOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - SweepGradientOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setSweepGradient(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setRadialGradientAttribute(value: RadialGradientOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - RadialGradientOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setRadialGradient(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMotionPathAttribute(value: MotionPathOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - MotionPathOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setMotionPath(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setShadowAttribute(value: ShadowOptions | ShadowStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof ShadowOptions) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as ShadowOptions - ShadowOptions_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof ShadowStyle) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as ShadowStyle - thisSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueTmpValueForIdx1)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setShadow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setClipAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setClip(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setClipShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof CircleShape) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as CircleShape - CircleShape_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof EllipseShape) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as EllipseShape - EllipseShape_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof PathShape) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as PathShape - PathShape_serializer.write(thisSerializer, valueTmpValueForIdx2) - } else if (valueTmpValue instanceof RectShape) { - thisSerializer.writeInt8((3).toChar()) - const valueTmpValueForIdx3 = valueTmpValue as RectShape - RectShape_serializer.write(thisSerializer, valueTmpValueForIdx3) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setClipShape(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaskAttribute(value: ProgressMask | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - ProgressMask_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setMask(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaskShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof CircleShape) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as CircleShape - CircleShape_serializer.write(thisSerializer, valueTmpValueForIdx0) - } else if (valueTmpValue instanceof EllipseShape) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as EllipseShape - EllipseShape_serializer.write(thisSerializer, valueTmpValueForIdx1) - } else if (valueTmpValue instanceof PathShape) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as PathShape - PathShape_serializer.write(thisSerializer, valueTmpValueForIdx2) - } else if (valueTmpValue instanceof RectShape) { - thisSerializer.writeInt8((3).toChar()) - const valueTmpValueForIdx3 = valueTmpValue as RectShape - RectShape_serializer.write(thisSerializer, valueTmpValueForIdx3) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setMaskShape(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setKeyAttribute(value: string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeString(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setKey(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setIdAttribute(value: string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeString(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setGeometryTransition0Attribute(value: string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeString(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setGeometryTransition0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setRestoreIdAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setRestoreId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSphericalEffectAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setSphericalEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLightUpEffectAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setLightUpEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPixelStretchEffectAttribute(value: PixelStretchEffectOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - PixelStretchEffectOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setPixelStretchEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityGroup0Attribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityGroup0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityText0Attribute(value: string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeString(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityText0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityNextFocusIdAttribute(value: string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeString(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityNextFocusId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityDefaultFocusAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityDefaultFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityUseSamePageAttribute(value: AccessibilitySamePageMode | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as AccessibilitySamePageMode) - thisSerializer.writeInt32(TypeChecker.AccessibilitySamePageMode_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityUseSamePage(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityScrollTriggerableAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityScrollTriggerable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityText1Attribute(value: Resource | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - Resource_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityText1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityRoleAttribute(value: AccessibilityRoleType | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as AccessibilityRoleType) - thisSerializer.writeInt32(TypeChecker.AccessibilityRoleType_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityRole(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnAccessibilityFocusAttribute(value: AccessibilityFocusCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnAccessibilityFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityTextHintAttribute(value: string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeString(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityTextHint(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityDescription0Attribute(value: string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeString(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityDescription0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityDescription1Attribute(value: Resource | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - Resource_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityDescription1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityLevelAttribute(value: string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeString(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityLevel(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityVirtualNodeAttribute(value: CustomBuilder | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityVirtualNode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityCheckedAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityChecked(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilitySelectedAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilitySelected(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setObscuredAttribute(value: Array | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeInt32((valueTmpValue.length).toInt()) - for (let valueTmpValueCounterI = 0; valueTmpValueCounterI < valueTmpValue.length; valueTmpValueCounterI++) { - const valueTmpValueTmpElement : ObscuredReasons = valueTmpValue[valueTmpValueCounterI] - thisSerializer.writeInt32(TypeChecker.ObscuredReasons_ToNumeric(valueTmpValueTmpElement)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setObscured(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setReuseIdAttribute(value: string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeString(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setReuseId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setReuseAttribute(value: ReuseOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - ReuseOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setReuse(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setRenderFitAttribute(value: RenderFit | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as RenderFit) - thisSerializer.writeInt32(TypeChecker.RenderFit_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setRenderFit(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setGestureModifierAttribute(value: GestureModifier | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - GestureModifier_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setGestureModifier(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundBrightnessAttribute(value: BackgroundBrightnessOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - BackgroundBrightnessOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundBrightness(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnGestureJudgeBeginAttribute(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnGestureJudgeBegin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnGestureRecognizerJudgeBegin0Attribute(value: GestureRecognizerJudgeBeginCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnGestureRecognizerJudgeBegin0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setShouldBuiltInRecognizerParallelWithAttribute(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setShouldBuiltInRecognizerParallelWith(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMonopolizeEventsAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setMonopolizeEvents(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnTouchInterceptAttribute(value: ((value0: TouchEvent) => HitTestMode) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnTouchIntercept(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnSizeChangeAttribute(value: SizeChangeCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnSizeChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityFocusDrawLevelAttribute(value: FocusDrawLevel | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as FocusDrawLevel) - thisSerializer.writeInt32(TypeChecker.FocusDrawLevel_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityFocusDrawLevel(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCustomPropertyAttribute(name: string, value: CustomProperty): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteObject(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setCustomProperty(this.peer.ptr, name, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setExpandSafeAreaAttribute(types?: Array, edges?: Array): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (types !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const typesTmpValue = types! - thisSerializer.writeInt32((typesTmpValue.length).toInt()) - for (let typesTmpValueCounterI = 0; typesTmpValueCounterI < typesTmpValue.length; typesTmpValueCounterI++) { - const typesTmpValueTmpElement : SafeAreaType = typesTmpValue[typesTmpValueCounterI] - thisSerializer.writeInt32(TypeChecker.SafeAreaType_ToNumeric(typesTmpValueTmpElement)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (edges !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const edgesTmpValue = edges! - thisSerializer.writeInt32((edgesTmpValue.length).toInt()) - for (let edgesTmpValueCounterI = 0; edgesTmpValueCounterI < edgesTmpValue.length; edgesTmpValueCounterI++) { - const edgesTmpValueTmpElement : SafeAreaEdge = edgesTmpValue[edgesTmpValueCounterI] - thisSerializer.writeInt32(TypeChecker.SafeAreaEdge_ToNumeric(edgesTmpValueTmpElement)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setExpandSafeArea(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundAttribute(builder: CustomBuilder | undefined, options?: BackgroundOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (builder !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const builderTmpValue = builder! - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builderTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - BackgroundOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackground(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundImage0Attribute(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (src !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const srcTmpValue = src! - if (srcTmpValue instanceof ResourceStr) { - thisSerializer.writeInt8((0).toChar()) - const srcTmpValueForIdx0 = srcTmpValue as ResourceStr - if (srcTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const srcTmpValueForIdx0ForIdx0 = srcTmpValueForIdx0 as string - thisSerializer.writeString(srcTmpValueForIdx0ForIdx0) - } else if (srcTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((1).toChar()) - const srcTmpValueForIdx0ForIdx1 = srcTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, srcTmpValueForIdx0ForIdx1) - } - } else if (srcTmpValue instanceof image.PixelMap) { - thisSerializer.writeInt8((1).toChar()) - const srcTmpValueForIdx1 = srcTmpValue as image.PixelMap - image_PixelMap_serializer.write(thisSerializer, srcTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (repeat !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const repeatTmpValue = (repeat as ImageRepeat) - thisSerializer.writeInt32(TypeChecker.ImageRepeat_ToNumeric(repeatTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImage0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundImage1Attribute(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (src !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const srcTmpValue = src! - if (srcTmpValue instanceof ResourceStr) { - thisSerializer.writeInt8((0).toChar()) - const srcTmpValueForIdx0 = srcTmpValue as ResourceStr - if (srcTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const srcTmpValueForIdx0ForIdx0 = srcTmpValueForIdx0 as string - thisSerializer.writeString(srcTmpValueForIdx0ForIdx0) - } else if (srcTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((1).toChar()) - const srcTmpValueForIdx0ForIdx1 = srcTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, srcTmpValueForIdx0ForIdx1) - } - } else if (srcTmpValue instanceof image.PixelMap) { - thisSerializer.writeInt8((1).toChar()) - const srcTmpValueForIdx1 = srcTmpValue as image.PixelMap - image_PixelMap_serializer.write(thisSerializer, srcTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - BackgroundImageOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundImage1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundBlurStyleAttribute(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (style !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const styleTmpValue = (style as BlurStyle) - thisSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(styleTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - BackgroundBlurStyleOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (sysOptions !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const sysOptionsTmpValue = sysOptions! - SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundBlurStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackgroundEffect1Attribute(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - BackgroundEffectOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (sysOptions !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const sysOptionsTmpValue = sysOptions! - SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackgroundEffect1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setForegroundBlurStyleAttribute(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (style !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const styleTmpValue = (style as BlurStyle) - thisSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(styleTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - ForegroundBlurStyleOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (sysOptions !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const sysOptionsTmpValue = sysOptions! - SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setForegroundBlurStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnClick1Attribute(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (event !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const eventTmpValue = event! - thisSerializer.holdAndWriteCallback(eventTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (distanceThreshold !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const distanceThresholdTmpValue = distanceThreshold! - thisSerializer.writeNumber(distanceThresholdTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnClick1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFocusScopeIdAttribute(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (id !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const idTmpValue = id! - thisSerializer.writeString(idTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (isGroup !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const isGroupTmpValue = isGroup! - thisSerializer.writeBoolean(isGroupTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (arrowStepOut !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const arrowStepOutTmpValue = arrowStepOut! - thisSerializer.writeBoolean(arrowStepOutTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setFocusScopeId(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFocusScopePriorityAttribute(scopeId: string | undefined, priority?: FocusPriority): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (scopeId !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const scopeIdTmpValue = scopeId! - thisSerializer.writeString(scopeIdTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (priority !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const priorityTmpValue = (priority as FocusPriority) - thisSerializer.writeInt32(TypeChecker.FocusPriority_ToNumeric(priorityTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setFocusScopePriority(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTransition1Attribute(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (effect !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const effectTmpValue = effect! - TransitionEffect_serializer.write(thisSerializer, effectTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (onFinish !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const onFinishTmpValue = onFinish! - thisSerializer.holdAndWriteCallback(onFinishTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setTransition1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setGestureAttribute(gesture: GestureType | undefined, mask?: GestureMask): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (gesture !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const gestureTmpValue = gesture! - if (gestureTmpValue instanceof Gesture) { - thisSerializer.writeInt8((0).toChar()) - const gestureTmpValueForIdx0 = gestureTmpValue as Gesture - Gesture_serializer.write(thisSerializer, gestureTmpValueForIdx0) - } else if (gestureTmpValue instanceof object) { - thisSerializer.writeInt8((1).toChar()) - const gestureTmpValueForIdx1 = gestureTmpValue as object - thisSerializer.writeCustomObject("object", gestureTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (mask !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const maskTmpValue = (mask as GestureMask) - thisSerializer.writeInt32(TypeChecker.GestureMask_ToNumeric(maskTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setGesture(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPriorityGestureAttribute(gesture: GestureType | undefined, mask?: GestureMask): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (gesture !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const gestureTmpValue = gesture! - if (gestureTmpValue instanceof Gesture) { - thisSerializer.writeInt8((0).toChar()) - const gestureTmpValueForIdx0 = gestureTmpValue as Gesture - Gesture_serializer.write(thisSerializer, gestureTmpValueForIdx0) - } else if (gestureTmpValue instanceof object) { - thisSerializer.writeInt8((1).toChar()) - const gestureTmpValueForIdx1 = gestureTmpValue as object - thisSerializer.writeCustomObject("object", gestureTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (mask !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const maskTmpValue = (mask as GestureMask) - thisSerializer.writeInt32(TypeChecker.GestureMask_ToNumeric(maskTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setPriorityGesture(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setParallelGestureAttribute(gesture: GestureType | undefined, mask?: GestureMask): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (gesture !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const gestureTmpValue = gesture! - if (gestureTmpValue instanceof Gesture) { - thisSerializer.writeInt8((0).toChar()) - const gestureTmpValueForIdx0 = gestureTmpValue as Gesture - Gesture_serializer.write(thisSerializer, gestureTmpValueForIdx0) - } else if (gestureTmpValue instanceof object) { - thisSerializer.writeInt8((1).toChar()) - const gestureTmpValueForIdx1 = gestureTmpValue as object - thisSerializer.writeCustomObject("object", gestureTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (mask !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const maskTmpValue = (mask as GestureMask) - thisSerializer.writeInt32(TypeChecker.GestureMask_ToNumeric(maskTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setParallelGesture(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBlurAttribute(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (blurRadius !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const blurRadiusTmpValue = blurRadius! - thisSerializer.writeNumber(blurRadiusTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - BlurOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (sysOptions !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const sysOptionsTmpValue = sysOptions! - SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLinearGradientBlurAttribute(value: number | undefined, options: LinearGradientBlurOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - LinearGradientBlurOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setLinearGradientBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSystemBarEffectAttribute(): void { - ArkUIGeneratedNativeModule._CommonMethod_setSystemBarEffect(this.peer.ptr) - } - setUseEffect1Attribute(useEffect: boolean | undefined, effectType: EffectType | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (useEffect !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const useEffectTmpValue = useEffect! - thisSerializer.writeBoolean(useEffectTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (effectType !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const effectTypeTmpValue = (effectType as EffectType) - thisSerializer.writeInt32(TypeChecker.EffectType_ToNumeric(effectTypeTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setUseEffect1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackdropBlurAttribute(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (radius !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const radiusTmpValue = radius! - thisSerializer.writeNumber(radiusTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - BlurOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (sysOptions !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const sysOptionsTmpValue = sysOptions! - SystemAdaptiveOptions_serializer.write(thisSerializer, sysOptionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBackdropBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSharedTransitionAttribute(id: string | undefined, options?: sharedTransitionOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (id !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const idTmpValue = id! - thisSerializer.writeString(idTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - sharedTransitionOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setSharedTransition(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setChainModeAttribute(direction: Axis | undefined, style: ChainStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (direction !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const directionTmpValue = (direction as Axis) - thisSerializer.writeInt32(TypeChecker.Axis_ToNumeric(directionTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (style !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const styleTmpValue = (style as ChainStyle) - thisSerializer.writeInt32(TypeChecker.ChainStyle_ToNumeric(styleTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setChainMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDrop1Attribute(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (eventCallback !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const eventCallbackTmpValue = eventCallback! - thisSerializer.holdAndWriteCallback(eventCallbackTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (dropOptions !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const dropOptionsTmpValue = dropOptions! - DropOptions_serializer.write(thisSerializer, dropOptionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnDrop1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDragPreview1Attribute(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (preview !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const previewTmpValue = preview! - if (previewTmpValue instanceof CustomBuilder) { - thisSerializer.writeInt8((0).toChar()) - const previewTmpValueForIdx0 = previewTmpValue as CustomBuilder - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(previewTmpValueForIdx0)) - } else if (previewTmpValue instanceof DragItemInfo) { - thisSerializer.writeInt8((1).toChar()) - const previewTmpValueForIdx1 = previewTmpValue as DragItemInfo - DragItemInfo_serializer.write(thisSerializer, previewTmpValueForIdx1) - } else if (previewTmpValue instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const previewTmpValueForIdx2 = previewTmpValue as string - thisSerializer.writeString(previewTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (config !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const configTmpValue = config! - PreviewConfiguration_serializer.write(thisSerializer, configTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setDragPreview1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDragPreviewOptionsAttribute(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - DragPreviewOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - DragInteractionOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setDragPreviewOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOverlayAttribute(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof CustomBuilder) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as CustomBuilder - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueTmpValueForIdx1)) - } else if (valueTmpValue instanceof ComponentContent) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as ComponentContent - ComponentContent_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - OverlayOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOverlay(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBlendModeAttribute(value: BlendMode | undefined, type?: BlendApplyType): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as BlendMode) - thisSerializer.writeInt32(TypeChecker.BlendMode_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (type !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const typeTmpValue = (type as BlendApplyType) - thisSerializer.writeInt32(TypeChecker.BlendApplyType_ToNumeric(typeTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBlendMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAdvancedBlendModeAttribute(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (effect instanceof BlendMode) { - thisSerializer.writeInt8((0).toChar()) - const effectForIdx0 = effect as BlendMode - thisSerializer.writeInt32(TypeChecker.BlendMode_ToNumeric(effectForIdx0)) - } else if (effect instanceof uiEffect.Blender) { - thisSerializer.writeInt8((1).toChar()) - const effectForIdx1 = effect as uiEffect.Blender - uiEffect_BrightnessBlender_serializer.write(thisSerializer, effectForIdx1) - } - if (type !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const typeTmpValue = (type as BlendApplyType) - thisSerializer.writeInt32(TypeChecker.BlendApplyType_ToNumeric(typeTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAdvancedBlendMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setGeometryTransition1Attribute(id: string | undefined, options?: GeometryTransitionOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (id !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const idTmpValue = id! - thisSerializer.writeString(idTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - GeometryTransitionOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setGeometryTransition1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindTipsAttribute(message: TipsMessageType | undefined, options?: TipsOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (message !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const messageTmpValue = message! - if (messageTmpValue instanceof ResourceStr) { - thisSerializer.writeInt8((0).toChar()) - const messageTmpValueForIdx0 = messageTmpValue as ResourceStr - if (messageTmpValueForIdx0 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const messageTmpValueForIdx0ForIdx0 = messageTmpValueForIdx0 as string - thisSerializer.writeString(messageTmpValueForIdx0ForIdx0) - } else if (messageTmpValueForIdx0 instanceof Resource) { - thisSerializer.writeInt8((1).toChar()) - const messageTmpValueForIdx0ForIdx1 = messageTmpValueForIdx0 as Resource - Resource_serializer.write(thisSerializer, messageTmpValueForIdx0ForIdx1) - } - } else if (messageTmpValue instanceof StyledString) { - thisSerializer.writeInt8((1).toChar()) - const messageTmpValueForIdx1 = messageTmpValue as StyledString - StyledString_serializer.write(thisSerializer, messageTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - TipsOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBindTips(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindPopupAttribute(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (show !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const showTmpValue = show! - thisSerializer.writeBoolean(showTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (popup !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const popupTmpValue = popup! - if (popupTmpValue instanceof PopupOptions) { - thisSerializer.writeInt8((0).toChar()) - const popupTmpValueForIdx0 = popupTmpValue as PopupOptions - PopupOptions_serializer.write(thisSerializer, popupTmpValueForIdx0) - } else if (popupTmpValue instanceof CustomPopupOptions) { - thisSerializer.writeInt8((1).toChar()) - const popupTmpValueForIdx1 = popupTmpValue as CustomPopupOptions - CustomPopupOptions_serializer.write(thisSerializer, popupTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBindPopup(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindMenu0Attribute(content: Array | CustomBuilder | undefined, options?: MenuOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (content !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const contentTmpValue = content! - if (TypeChecker.isArray_MenuElement(contentTmpValue)) { - thisSerializer.writeInt8((0).toChar()) - const contentTmpValueForIdx0 = contentTmpValue as Array - thisSerializer.writeInt32((contentTmpValueForIdx0.length).toInt()) - for (let contentTmpValueForIdx0CounterI = 0; contentTmpValueForIdx0CounterI < contentTmpValueForIdx0.length; contentTmpValueForIdx0CounterI++) { - const contentTmpValueForIdx0TmpElement : MenuElement = contentTmpValueForIdx0[contentTmpValueForIdx0CounterI] - MenuElement_serializer.write(thisSerializer, contentTmpValueForIdx0TmpElement) - } - } else if (contentTmpValue instanceof CustomBuilder) { - thisSerializer.writeInt8((1).toChar()) - const contentTmpValueForIdx1 = contentTmpValue as CustomBuilder - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(contentTmpValueForIdx1)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - MenuOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBindMenu0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindMenu1Attribute(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (isShow !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const isShowTmpValue = isShow! - thisSerializer.writeBoolean(isShowTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (content !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const contentTmpValue = content! - if (TypeChecker.isArray_MenuElement(contentTmpValue)) { - thisSerializer.writeInt8((0).toChar()) - const contentTmpValueForIdx0 = contentTmpValue as Array - thisSerializer.writeInt32((contentTmpValueForIdx0.length).toInt()) - for (let contentTmpValueForIdx0CounterI = 0; contentTmpValueForIdx0CounterI < contentTmpValueForIdx0.length; contentTmpValueForIdx0CounterI++) { - const contentTmpValueForIdx0TmpElement : MenuElement = contentTmpValueForIdx0[contentTmpValueForIdx0CounterI] - MenuElement_serializer.write(thisSerializer, contentTmpValueForIdx0TmpElement) - } - } else if (contentTmpValue instanceof CustomBuilder) { - thisSerializer.writeInt8((1).toChar()) - const contentTmpValueForIdx1 = contentTmpValue as CustomBuilder - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(contentTmpValueForIdx1)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - MenuOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBindMenu1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindContextMenu0Attribute(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (content !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const contentTmpValue = content! - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(contentTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (responseType !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const responseTypeTmpValue = (responseType as ResponseType) - thisSerializer.writeInt32(TypeChecker.ResponseType_ToNumeric(responseTypeTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - ContextMenuOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBindContextMenu0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindContextMenu1Attribute(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (isShown !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const isShownTmpValue = isShown! - thisSerializer.writeBoolean(isShownTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (content !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const contentTmpValue = content! - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(contentTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - ContextMenuOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBindContextMenu1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindContentCover0Attribute(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (isShow !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const isShowTmpValue = isShow! - if (isShowTmpValue instanceof boolean) { - thisSerializer.writeInt8((0).toChar()) - const isShowTmpValueForIdx0 = isShowTmpValue as boolean - thisSerializer.writeBoolean(isShowTmpValueForIdx0) - } else if (isShowTmpValue instanceof Bindable) { - thisSerializer.writeInt8((1).toChar()) - const isShowTmpValueForIdx1 = isShowTmpValue as Bindable - Bindable_Boolean_serializer.write(thisSerializer, isShowTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (builder !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const builderTmpValue = builder! - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builderTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (type !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const typeTmpValue = (type as ModalTransition) - thisSerializer.writeInt32(TypeChecker.ModalTransition_ToNumeric(typeTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBindContentCover0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindContentCover1Attribute(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (isShow !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const isShowTmpValue = isShow! - if (isShowTmpValue instanceof boolean) { - thisSerializer.writeInt8((0).toChar()) - const isShowTmpValueForIdx0 = isShowTmpValue as boolean - thisSerializer.writeBoolean(isShowTmpValueForIdx0) - } else if (isShowTmpValue instanceof Bindable) { - thisSerializer.writeInt8((1).toChar()) - const isShowTmpValueForIdx1 = isShowTmpValue as Bindable - Bindable_Boolean_serializer.write(thisSerializer, isShowTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (builder !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const builderTmpValue = builder! - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builderTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - ContentCoverOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBindContentCover1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindSheetAttribute(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (isShow !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const isShowTmpValue = isShow! - if (isShowTmpValue instanceof boolean) { - thisSerializer.writeInt8((0).toChar()) - const isShowTmpValueForIdx0 = isShowTmpValue as boolean - thisSerializer.writeBoolean(isShowTmpValueForIdx0) - } else if (isShowTmpValue instanceof Bindable) { - thisSerializer.writeInt8((1).toChar()) - const isShowTmpValueForIdx1 = isShowTmpValue as Bindable - Bindable_Boolean_serializer.write(thisSerializer, isShowTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (builder !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const builderTmpValue = builder! - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builderTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - SheetOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setBindSheet(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnVisibleAreaChangeAttribute(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (ratios !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const ratiosTmpValue = ratios! - thisSerializer.writeInt32((ratiosTmpValue.length).toInt()) - for (let ratiosTmpValueCounterI = 0; ratiosTmpValueCounterI < ratiosTmpValue.length; ratiosTmpValueCounterI++) { - const ratiosTmpValueTmpElement : number = ratiosTmpValue[ratiosTmpValueCounterI] - thisSerializer.writeNumber(ratiosTmpValueTmpElement) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (event !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const eventTmpValue = event! - thisSerializer.holdAndWriteCallback(eventTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnVisibleAreaChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnVisibleAreaApproximateChangeAttribute(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - VisibleAreaEventOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (event !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const eventTmpValue = event! - thisSerializer.holdAndWriteCallback(eventTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnVisibleAreaApproximateChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setKeyboardShortcutAttribute(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof FunctionKey) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as FunctionKey - thisSerializer.writeInt32(TypeChecker.FunctionKey_ToNumeric(valueTmpValueForIdx1)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (keys !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const keysTmpValue = keys! - thisSerializer.writeInt32((keysTmpValue.length).toInt()) - for (let keysTmpValueCounterI = 0; keysTmpValueCounterI < keysTmpValue.length; keysTmpValueCounterI++) { - const keysTmpValueTmpElement : ModifierKey = keysTmpValue[keysTmpValueCounterI] - thisSerializer.writeInt32(TypeChecker.ModifierKey_ToNumeric(keysTmpValueTmpElement)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (action !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const actionTmpValue = action! - thisSerializer.holdAndWriteCallback(actionTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setKeyboardShortcut(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAccessibilityGroup1Attribute(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (isGroup !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const isGroupTmpValue = isGroup! - thisSerializer.writeBoolean(isGroupTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (accessibilityOptions !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const accessibilityOptionsTmpValue = accessibilityOptions! - AccessibilityOptions_serializer.write(thisSerializer, accessibilityOptionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setAccessibilityGroup1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnGestureRecognizerJudgeBegin1Attribute(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (callback_ !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const callback_TmpValue = callback_! - thisSerializer.holdAndWriteCallback(callback_TmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (exposeInnerGesture !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const exposeInnerGestureTmpValue = exposeInnerGesture! - thisSerializer.writeBoolean(exposeInnerGestureTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonMethod_setOnGestureRecognizerJudgeBegin1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { - protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { - super(peerPtr, id, name, flags) - } - public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonShapeMethodPeer { - const peerId = PeerNode.nextId() - const _peerPtr = ArkUIGeneratedNativeModule._CommonShapeMethod_construct(peerId, flags) - const _peer = new ArkCommonShapeMethodPeer(_peerPtr, peerId, "CommonShapeMethod", flags) - component?.setPeer(_peer) - return _peer - } - setStrokeAttribute(value: ResourceColor | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) - } else if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx1) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx2) - } else if (valueTmpValue instanceof Resource) { - thisSerializer.writeInt8((3).toChar()) - const valueTmpValueForIdx3 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx3) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setStroke(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFillAttribute(value: ResourceColor | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) - } else if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx1) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx2) - } else if (valueTmpValue instanceof Resource) { - thisSerializer.writeInt8((3).toChar()) - const valueTmpValueForIdx3 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx3) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setFill(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setStrokeDashOffsetAttribute(value: number | string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeDashOffset(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setStrokeLineCapAttribute(value: LineCapStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as LineCapStyle) - thisSerializer.writeInt32(TypeChecker.LineCapStyle_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeLineCap(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setStrokeLineJoinAttribute(value: LineJoinStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as LineJoinStyle) - thisSerializer.writeInt32(TypeChecker.LineJoinStyle_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeLineJoin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setStrokeMiterLimitAttribute(value: number | string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeMiterLimit(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setStrokeOpacityAttribute(value: number | string | Resource | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx1) - } else if (valueTmpValue instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeOpacity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFillOpacityAttribute(value: number | string | Resource | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx1) - } else if (valueTmpValue instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setFillOpacity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setStrokeWidthAttribute(value: Length | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx1) - } else if (valueTmpValue instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAntiAliasAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setAntiAlias(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setStrokeDashArrayAttribute(value: Array | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeInt32((valueTmpValue.length).toInt()) - for (let valueTmpValueCounterI = 0; valueTmpValueCounterI < valueTmpValue.length; valueTmpValueCounterI++) { - const valueTmpValueTmpElement : Length = valueTmpValue[valueTmpValueCounterI] - if (valueTmpValueTmpElement instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueTmpElementForIdx0 = valueTmpValueTmpElement as string - thisSerializer.writeString(valueTmpValueTmpElementForIdx0) - } else if (valueTmpValueTmpElement instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueTmpElementForIdx1 = valueTmpValueTmpElement as number - thisSerializer.writeNumber(valueTmpValueTmpElementForIdx1) - } else if (valueTmpValueTmpElement instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueTmpElementForIdx2 = valueTmpValueTmpElement as Resource - Resource_serializer.write(thisSerializer, valueTmpValueTmpElementForIdx2) - } - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._CommonShapeMethod_setStrokeDashArray(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { - protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { - super(peerPtr, id, name, flags) - } - public static create(component?: ComponentBase, flags: int32 = 0): ArkScrollableCommonMethodPeer { - const peerId = PeerNode.nextId() - const _peerPtr = ArkUIGeneratedNativeModule._ScrollableCommonMethod_construct(peerId, flags) - const _peer = new ArkScrollableCommonMethodPeer(_peerPtr, peerId, "ScrollableCommonMethod", flags) - component?.setPeer(_peer) - return _peer - } - setScrollBarAttribute(value: BarState | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as BarState) - thisSerializer.writeInt32(TypeChecker.BarState_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setScrollBar(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setScrollBarColorAttribute(value: Color | number | string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof Color) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as Color - thisSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueTmpValueForIdx0)) - } else if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx1) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setScrollBarColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setScrollBarWidthAttribute(value: number | string | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof string) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as string - thisSerializer.writeString(valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setScrollBarWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setNestedScrollAttribute(value: NestedScrollOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - NestedScrollOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setNestedScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnableScrollInteractionAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setEnableScrollInteraction(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFrictionAttribute(value: number | Resource | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as number - thisSerializer.writeNumber(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof Resource) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setFriction(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnReachStartAttribute(value: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setOnReachStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnReachEndAttribute(value: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setOnReachEnd(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnScrollStartAttribute(value: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setOnScrollStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnScrollStopAttribute(value: (() => void) | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.holdAndWriteCallback(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setOnScrollStop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFlingSpeedLimitAttribute(value: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeNumber(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setFlingSpeedLimit(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setClipContentAttribute(value: ContentClipMode | RectShape | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof ContentClipMode) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as ContentClipMode - thisSerializer.writeInt32(TypeChecker.ContentClipMode_ToNumeric(valueTmpValueForIdx0)) - } else if (valueTmpValue instanceof RectShape) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as RectShape - RectShape_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setClipContent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDigitalCrownSensitivityAttribute(value: CrownSensitivity | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as CrownSensitivity) - thisSerializer.writeInt32(TypeChecker.CrownSensitivity_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setDigitalCrownSensitivity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBackToTopAttribute(value: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setBackToTop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEdgeEffectAttribute(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (edgeEffect !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const edgeEffectTmpValue = (edgeEffect as EdgeEffect) - thisSerializer.writeInt32(TypeChecker.EdgeEffect_ToNumeric(edgeEffectTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - EdgeEffectOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setEdgeEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFadingEdgeAttribute(enabled: boolean | undefined, options?: FadingEdgeOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (enabled !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const enabledTmpValue = enabled! - thisSerializer.writeBoolean(enabledTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - FadingEdgeOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_setFadingEdge(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface TransitionOptions { - type?: TransitionType; - opacity?: number; - translate?: TranslateOptions; - scale?: ScaleOptions; - rotate?: RotateOptions; -} -export interface InputCounterOptions { - thresholdPercentage?: number; - highlightBorder?: boolean; -} -export interface TextDecorationOptions { - type: TextDecorationType; - color?: ResourceColor; - style?: TextDecorationStyle; -} -export interface DividerStyle { - strokeWidth: Length; - color?: ResourceColor; - startMargin?: Length; - endMargin?: Length; -} -export type ReuseIdCallback = () => string; -export interface ReuseOptions { - reuseId?: ReuseIdCallback; -} -export { Context } from "./../generated/application.Context" -export interface Configuration { - readonly colorMode: string; - readonly fontScale: number; -} -export interface Rectangle { - x?: Length; - y?: Length; - width?: Length; - height?: Length; -} -export interface ExpectedFrameRateRange { - min: number; - max: number; - expected: number; -} -export enum AccessibilitySamePageMode { - SEMI_SILENT = 0, - FULL_SILENT = 1 -} -export enum AccessibilityRoleType { - ACTION_SHEET = 0, - ALERT_DIALOG = 1, - INDEXER_COMPONENT = 2, - BADGE_COMPONENT = 3, - BLANK = 4, - BUTTON = 5, - BACK_BUTTON = 6, - SHEET_DRAG_BAR = 7, - CALENDAR_PICKER = 8, - CALENDAR = 9, - CANVAS = 10, - CANVAS_GRADIENT = 11, - CANVAS_PATTERN = 12, - CHECKBOX = 13, - CHECKBOX_GROUP = 14, - CIRCLE = 15, - COLUMN_SPLIT = 16, - COLUMN = 17, - CANVAS_RENDERING_CONTEXT_2D = 18, - CHART = 19, - COUNTER = 20, - CONTAINER_MODAL = 21, - DATA_PANEL = 22, - DATE_PICKER = 23, - DIALOG = 24, - DIVIDER = 25, - DRAG_BAR = 26, - EFFECT_COMPONENT = 27, - ELLIPSE = 28, - FLEX = 29, - FLOW_ITEM = 30, - FORM_COMPONENT = 31, - FORM_LINK = 32, - GAUGE = 33, - GRID = 34, - GRID_COL = 35, - GRID_CONTAINER = 36, - GRID_ITEM = 37, - GRID_ROW = 38, - HYPERLINK = 39, - IMAGE = 40, - IMAGE_ANIMATOR = 41, - IMAGE_BITMAP = 42, - IMAGE_DATA = 43, - IMAGE_SPAN = 44, - LABEL = 45, - LINE = 46, - LIST = 47, - LIST_ITEM = 48, - LIST_ITEM_GROUP = 49, - LOADING_PROGRESS = 50, - MARQUEE = 51, - MATRIX2D = 52, - MENU = 53, - MENU_ITEM = 54, - MENU_ITEM_GROUP = 55, - NAV_DESTINATION = 56, - NAV_ROUTER = 57, - NAVIGATION = 58, - NAVIGATION_BAR = 59, - NAVIGATION_MENU = 60, - NAVIGATOR = 61, - OFFSCREEN_CANVAS = 62, - OFFSCREEN_CANVAS_RENDERING_CONTEXT2D = 63, - OPTION = 64, - PANEL = 65, - PAPER_PAGE = 66, - PATH = 67, - PATH2D = 68, - PATTERN_LOCK = 69, - PICKER = 70, - PICKER_VIEW = 71, - PLUGIN_COMPONENT = 72, - POLYGON = 73, - POLYLINE = 74, - POPUP = 75, - PROGRESS = 76, - QRCODE = 77, - RADIO = 78, - RATING = 79, - RECT = 80, - REFRESH = 81, - RELATIVE_CONTAINER = 82, - REMOTE_WINDOW = 83, - RICH_EDITOR = 84, - RICH_TEXT = 85, - ROLE_PAGER = 86, - ROW = 87, - ROW_SPLIT = 88, - SCROLL = 89, - SCROLL_BAR = 90, - SEARCH = 91, - SEARCH_FIELD = 92, - SELECT = 93, - SHAPE = 94, - SIDEBAR_CONTAINER = 95, - SLIDER = 96, - SPAN = 97, - STACK = 98, - STEPPER = 99, - STEPPER_ITEM = 100, - SWIPER = 101, - SWIPER_INDICATOR = 102, - SWITCH = 103, - SYMBOL_GLYPH = 104, - TAB_CONTENT = 105, - TAB_BAR = 106, - TABS = 107, - TEXT = 108, - TEXT_CLOCK = 109, - TEXT_ENTRY = 110, - TEXT_INPUT = 111, - TEXT_PICKER = 112, - TEXT_TIMER = 113, - TEXT_AREA = 114, - TEXT_FIELD = 115, - TIME_PICKER = 116, - TITLE_BAR = 117, - TOGGLER = 118, - UI_EXTENSION_COMPONENT = 119, - VIDEO = 120, - WATER_FLOW = 121, - WEB = 122, - XCOMPONENT = 123, - ROLE_NONE = 124 -} -export type AccessibilityFocusCallback = (isFocus: boolean) => void; -export enum FinishCallbackType { - REMOVED = 0, - LOGICALLY = 1 -} -export enum TouchTestStrategy { - DEFAULT = 0, - FORWARD_COMPETITION = 1, - FORWARD = 2 -} -export interface AnimateParam { - duration?: number; - tempo?: number; - curve?: curves.Curve | string | curves.ICurve; - delay?: number; - iterations?: number; - playMode?: PlayMode; - onFinish?: (() => void); - finishCallbackType?: FinishCallbackType; - expectedFrameRateRange?: ExpectedFrameRateRange; -} -export type ICurve = curves.ICurve; -export interface MotionPathOptions { - path: string; - from?: number; - to?: number; - rotatable?: boolean; -} -export interface sharedTransitionOptions { - duration?: number; - curve?: curves.Curve | string | curves.ICurve; - delay?: number; - motionPath?: MotionPathOptions; - zIndex?: number; - type?: SharedTransitionEffectType; -} -export interface GeometryTransitionOptions { - follow?: boolean; - hierarchyStrategy?: TransitionHierarchyStrategy; -} -export interface LinearGradientOptions { - angle?: number | string; - direction?: GradientDirection; - colors: Array<[ ResourceColor, number ]>; - repeating?: boolean; -} -export enum TransitionHierarchyStrategy { - NONE = 0, - ADAPTIVE = 1 -} -export interface SweepGradientOptions { - center: [ Length, Length ]; - start?: number | string; - end?: number | string; - rotation?: number | string; - colors: Array<[ ResourceColor, number ]>; - repeating?: boolean; -} -export interface RadialGradientOptions { - center: [ Length, Length ]; - radius: Length; - colors: Array<[ ResourceColor, number ]>; - repeating?: boolean; -} -export interface TranslateOptions { - x?: number | string; - y?: number | string; - z?: number | string; -} -export interface ScaleOptions { - x?: number; - y?: number; - z?: number; - centerX?: number | string; - centerY?: number | string; -} -export interface AlignRuleParam { - anchor: string; - align: T; -} -export interface AlignRuleOption { - _stub: int32; -} -export interface LocalizedHorizontalAlignParam { - anchor: string; - align: HorizontalAlign; -} -export interface LocalizedVerticalAlignParam { - anchor: string; - align: VerticalAlign; -} -export interface LocalizedAlignRuleOptions { - start?: LocalizedHorizontalAlignParam; - end?: LocalizedHorizontalAlignParam; - middle?: LocalizedHorizontalAlignParam; - top?: LocalizedVerticalAlignParam; - bottom?: LocalizedVerticalAlignParam; - center?: LocalizedVerticalAlignParam; - bias?: Bias; -} -export enum ChainStyle { - SPREAD = 0, - SPREAD_INSIDE = 1, - PACKED = 2 -} -export interface RotateOptions { - x?: number; - y?: number; - z?: number; - centerX?: number | string; - centerY?: number | string; - centerZ?: number; - perspective?: number; - angle: number | string; -} -export enum TransitionEdge { - TOP = 0, - BOTTOM = 1, - START = 2, - END = 3 -} -export interface AsymmetricTransitionOption { - appear: TransitionEffect; - disappear: TransitionEffect; -} -export interface ItemDragInfo { - x: number; - y: number; -} -export enum EffectType { - DEFAULT = 0, - WINDOW_EFFECT = 1 -} -export enum PreDragStatus { - ACTION_DETECTING_STATUS = 0, - 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, - PREPARING_FOR_DRAG_DETECTION = 7 -} -export interface DragItemInfo { - pixelMap?: image.PixelMap; - builder?: CustomBuilder; - extraInfo?: string; -} -export type PointerStyle = pointer.PointerStyle; -export interface EventTarget { - area: Area; - id?: string; -} -export enum SourceType { - UNKNOWN = 0, - Unknown = 0, - MOUSE = 1, - Mouse = 1, - TOUCH_SCREEN = 2, - TouchScreen = 2 -} -export enum SourceTool { - UNKNOWN = 0, - Unknown = 0, - FINGER = 1, - Finger = 1, - PEN = 2, - Pen = 2, - MOUSE = 3, - TOUCHPAD = 4, - JOYSTICK = 5 -} -export enum RepeatMode { - REPEAT = 0, - Repeat = 0, - STRETCH = 1, - Stretch = 1, - ROUND = 2, - Round = 2, - SPACE = 3, - Space = 3 -} -export enum BlurStyle { - THIN = 0, - Thin = 0, - REGULAR = 1, - Regular = 1, - THICK = 2, - Thick = 2, - 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 = 0, - ALWAYS_ACTIVE = 1, - ALWAYS_INACTIVE = 2 -} -export enum ThemeColorMode { - SYSTEM = 0, - LIGHT = 1, - DARK = 2 -} -export enum AdaptiveColor { - DEFAULT = 0, - AVERAGE = 1 -} -export enum ModalTransition { - DEFAULT = 0, - NONE = 1, - ALPHA = 2 -} -export interface BackgroundBlurStyleOptions extends BlurStyleOptions { - policy?: BlurStyleActivePolicy; - inactiveColor?: ResourceColor; -} -export interface ForegroundBlurStyleOptions extends BlurStyleOptions { -} -export interface BlurOptions { - grayscale: [ number, number ]; -} -export interface SystemAdaptiveOptions { - disableSystemAdaptation?: boolean; -} -export interface BlurStyleOptions { - colorMode?: ThemeColorMode; - adaptiveColor?: AdaptiveColor; - scale?: number; - blurOptions?: BlurOptions; -} -export interface BackgroundEffectOptions { - radius: number; - saturation?: number; - brightness?: number; - color?: ResourceColor; - adaptiveColor?: AdaptiveColor; - blurOptions?: BlurOptions; - policy?: BlurStyleActivePolicy; - inactiveColor?: ResourceColor; -} -export interface ForegroundEffectOptions { - radius: number; -} -export interface PickerTextStyle { - color?: ResourceColor; - font?: Font; -} -export interface PickerDialogButtonStyle { - type?: ButtonType; - style?: ButtonStyleMode; - role?: ButtonRole; - fontSize?: Length; - fontColor?: ResourceColor; - fontWeight?: FontWeight | number | string; - fontStyle?: FontStyle; - fontFamily?: Resource | string; - backgroundColor?: ResourceColor; - borderRadius?: Length | BorderRadiuses; - primary?: boolean; -} -export enum ShadowType { - COLOR = 0, - BLUR = 1 -} -export interface ShadowOptions { - radius: number | Resource; - type?: ShadowType; - color?: Color | string | Resource | ColoringStrategy; - offsetX?: number | Resource; - offsetY?: number | Resource; - fill?: boolean; -} -export enum ShadowStyle { - OUTER_DEFAULT_XS = 0, - OUTER_DEFAULT_SM = 1, - OUTER_DEFAULT_MD = 2, - OUTER_DEFAULT_LG = 3, - OUTER_FLOATING_SM = 4, - OUTER_FLOATING_MD = 5 -} -export interface MultiShadowOptions { - radius?: number | Resource; - offsetX?: number | Resource; - offsetY?: number | Resource; -} -export enum SafeAreaType { - SYSTEM = 0, - CUTOUT = 1, - KEYBOARD = 2 -} -export enum SafeAreaEdge { - TOP = 0, - BOTTOM = 1, - START = 2, - END = 3 -} -export enum LayoutSafeAreaType { - SYSTEM = 0 -} -export enum LayoutSafeAreaEdge { - TOP = 0, - BOTTOM = 1 -} -export enum SheetSize { - MEDIUM = 0, - LARGE = 1, - FIT_CONTENT = 2 -} -export type ModifierKeyStateGetter = (keys: Array) => boolean; -export interface BorderImageOption { - slice?: Length | EdgeWidths | LocalizedEdgeWidths; - repeat?: RepeatMode; - source?: string | Resource | LinearGradientOptions; - width?: Length | EdgeWidths | LocalizedEdgeWidths; - outset?: Length | EdgeWidths | LocalizedEdgeWidths; - fill?: boolean; -} -export interface TouchObject { - type: TouchType; - id: number; - displayX: number; - displayY: number; - windowX: number; - windowY: number; - x: number; - y: number; - hand?: InteractionHand; - pressedTime?: number; - pressure?: number; - width?: number; - height?: number; -} -export interface HistoricalPoint { - touchObject: TouchObject; - size: number; - force: number; - timestamp: number; -} -export type SizeChangeCallback = (oldValue: SizeOptions, newValue: SizeOptions) => void; -export type GestureRecognizerJudgeBeginCallback = (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array) => GestureJudgeResult; -export type ShouldBuiltInRecognizerParallelWithCallback = (current: GestureRecognizer, others: Array) => GestureRecognizer; -export type TransitionFinishCallback = (transitionIn: boolean) => void; -export type PixelMap = image.PixelMap; -export enum DragBehavior { - COPY = 0, - MOVE = 1 -} -export type UnifiedData = unifiedDataChannel.UnifiedData; -export type Summary = unifiedDataChannel.Summary; -export type UniformDataType = uniformTypeDescriptor.UniformDataType; -export enum DragResult { - DRAG_SUCCESSFUL = 0, - DRAG_FAILED = 1, - DRAG_CANCELED = 2, - DROP_ENABLED = 3, - DROP_DISABLED = 4 -} -export enum BlendMode { - NONE = 0, - 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 = 0, - OFFSCREEN = 1 -} -export type OnDragEventCallback = (event: DragEvent, extraParams?: string) => void; -export interface DropOptions { - disableDataPrefetch?: boolean; -} -export interface CrownEvent { - timestamp: number; - angularVelocity: number; - degree: number; - action: CrownAction; - stopPropagation: (() => void); -} -export interface BindOptions { - backgroundColor?: ResourceColor; - onAppear?: (() => void); - onDisappear?: (() => void); - onWillAppear?: (() => void); - onWillDisappear?: (() => void); -} -export interface DismissContentCoverAction { - dismiss: VoidCallback; - reason: DismissReason; -} -export interface ContentCoverOptions extends BindOptions { - modalTransition?: ModalTransition; - onWillDismiss?: ((value0: DismissContentCoverAction) => void); - transition?: TransitionEffect; -} -export interface SheetTitleOptions { - title: ResourceStr; - subtitle?: ResourceStr; -} -export enum SheetType { - BOTTOM = 0, - CENTER = 1, - POPUP = 2 -} -export enum SheetMode { - OVERLAY = 0, - EMBEDDED = 1 -} -export enum ScrollSizeMode { - FOLLOW_DETENT = 0, - CONTINUOUS = 1 -} -export enum SheetKeyboardAvoidMode { - NONE = 0, - TRANSLATE_AND_RESIZE = 1, - RESIZE_ONLY = 2, - TRANSLATE_AND_SCROLL = 3 -} -export interface SheetDismiss { - dismiss: VoidCallback; -} -export interface DismissSheetAction { - dismiss: VoidCallback; - reason: DismissReason; -} -export interface SpringBackAction { - springBack: VoidCallback; -} -export type SingleLengthDetent = [ - SheetSize | Length -] -export type DoubleLengthDetents = [ - SheetSize | Length, - SheetSize | Length | undefined -] -export type TripleLengthDetents = [ - SheetSize | Length, - SheetSize | Length | undefined, - SheetSize | Length | undefined -] -export interface SheetOptions extends BindOptions { - height?: SheetSize | Length; - dragBar?: boolean; - maskColor?: ResourceColor; - detents?: TripleLengthDetents; - blurStyle?: BlurStyle; - showClose?: boolean | Resource; - preferType?: SheetType; - title?: SheetTitleOptions | CustomBuilder; - shouldDismiss?: ((sheetDismiss: SheetDismiss) => void); - onWillDismiss?: ((value0: DismissSheetAction) => void); - onWillSpringBackWhenDismiss?: ((value0: SpringBackAction) => void); - enableOutsideInteractive?: boolean; - width?: Dimension; - borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths; - borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors; - borderStyle?: BorderStyle | EdgeStyles; - shadow?: ShadowOptions | ShadowStyle; - onHeightDidChange?: ((value0: number) => void); - mode?: SheetMode; - scrollSizeMode?: ScrollSizeMode; - onDetentsDidChange?: ((value0: number) => void); - onWidthDidChange?: ((value0: number) => void); - onTypeDidChange?: ((value0: SheetType) => void); - uiContext?: UIContext; - keyboardAvoidMode?: SheetKeyboardAvoidMode; - enableHoverMode?: boolean; - hoverModeArea?: HoverModeAreaType; - offset?: Position; - effectEdge?: number; - radius?: LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses; - detentSelection?: SheetSize | Length; - showInSubWindow?: boolean; - placement?: Placement; - placementOnTarget?: boolean; -} -export interface StateStyles { - normal?: CustomStyles; - pressed?: CustomStyles; - disabled?: CustomStyles; - focused?: CustomStyles; - clicked?: CustomStyles; - selected?: CustomStyles; -} -export interface PopupMessageOptions { - textColor?: ResourceColor; - font?: Font; -} -export enum DismissReason { - PRESS_BACK = 0, - TOUCH_OUTSIDE = 1, - CLOSE_BUTTON = 2, - SLIDE_DOWN = 3 -} -export interface PopupStateChangeParam { - isVisible: boolean; -} -export type PopupStateChangeCallback = (event: PopupStateChangeParam) => void; -export interface PopupMaskType { - color: ResourceColor; -} -export interface PopupCommonOptions { - placement?: Placement; - popupColor?: ResourceColor; - enableArrow?: boolean; - autoCancel?: boolean; - onStateChange?: PopupStateChangeCallback; - arrowOffset?: Length; - showInSubWindow?: boolean; - mask?: boolean | PopupMaskType; - targetSpace?: Length; - offset?: Position; - width?: Dimension; - arrowPointPosition?: ArrowPointPosition; - arrowWidth?: Dimension; - arrowHeight?: Dimension; - radius?: Dimension; - shadow?: ShadowOptions | ShadowStyle; - backgroundBlurStyle?: BlurStyle; - focusable?: boolean; - transition?: TransitionEffect; - onWillDismiss?: boolean | ((value0: DismissPopupAction) => void); - enableHoverMode?: boolean; - followTransformOfTarget?: boolean; -} -export interface TipsOptions { - appearingTime?: number; - disappearingTime?: number; - appearingTimeWithContinuousOperation?: number; - disappearingTimeWithContinuousOperation?: number; - enableArrow?: boolean; - arrowPointPosition?: ArrowPointPosition; - arrowWidth?: Dimension; - arrowHeight?: Dimension; -} -export interface PopupButton { - value: string; - action: VoidCallback; -} -export interface PopupOptions { - message: string; - placement?: Placement; - primaryButton?: PopupButton; - secondaryButton?: PopupButton; - onStateChange?: PopupStateChangeCallback; - arrowOffset?: Length; - showInSubWindow?: boolean; - mask?: boolean | PopupMaskType; - messageOptions?: PopupMessageOptions; - targetSpace?: Length; - enableArrow?: boolean; - offset?: Position; - popupColor?: Color | string | Resource | number; - autoCancel?: boolean; - width?: Dimension; - arrowPointPosition?: ArrowPointPosition; - arrowWidth?: Dimension; - arrowHeight?: Dimension; - radius?: Dimension; - shadow?: ShadowOptions | ShadowStyle; - backgroundBlurStyle?: BlurStyle; - transition?: TransitionEffect; - onWillDismiss?: boolean | ((value0: DismissPopupAction) => void); - enableHoverMode?: boolean; - followTransformOfTarget?: boolean; - keyboardAvoidMode?: KeyboardAvoidMode; -} -export interface CustomPopupOptions { - builder: CustomBuilder; - placement?: Placement; - popupColor?: Color | string | Resource | number; - enableArrow?: boolean; - autoCancel?: boolean; - onStateChange?: PopupStateChangeCallback; - arrowOffset?: Length; - showInSubWindow?: boolean; - mask?: boolean | PopupMaskType; - targetSpace?: Length; - offset?: Position; - width?: Dimension; - arrowPointPosition?: ArrowPointPosition; - arrowWidth?: Dimension; - arrowHeight?: Dimension; - radius?: Dimension; - shadow?: ShadowOptions | ShadowStyle; - backgroundBlurStyle?: BlurStyle; - focusable?: boolean; - transition?: TransitionEffect; - onWillDismiss?: boolean | ((value0: DismissPopupAction) => void); - enableHoverMode?: boolean; - followTransformOfTarget?: boolean; - keyboardAvoidMode?: KeyboardAvoidMode; -} -export enum MenuPreviewMode { - NONE = 0, - IMAGE = 1 -} -export type AnimationNumberRange = [ - number, - number -] -export interface ContextMenuAnimationOptions { - scale?: AnimationNumberRange; - transition?: TransitionEffect; - hoverScale?: AnimationNumberRange; -} -export type BorderRadiusType = Length | BorderRadiuses | LocalizedBorderRadiuses; -export enum HapticFeedbackMode { - DISABLED = 0, - ENABLED = 1, - AUTO = 2 -} -export interface ContextMenuOptions { - offset?: Position; - placement?: Placement; - enableArrow?: boolean; - arrowOffset?: Length; - preview?: MenuPreviewMode | CustomBuilder; - previewBorderRadius?: BorderRadiusType; - borderRadius?: Length | BorderRadiuses | LocalizedBorderRadiuses; - onAppear?: (() => void); - onDisappear?: (() => void); - aboutToAppear?: (() => void); - aboutToDisappear?: (() => void); - layoutRegionMargin?: Padding; - previewAnimationOptions?: ContextMenuAnimationOptions; - backgroundColor?: ResourceColor; - backgroundBlurStyle?: BlurStyle; - backgroundBlurStyleOptions?: BackgroundBlurStyleOptions; - backgroundEffect?: BackgroundEffectOptions; - transition?: TransitionEffect; - enableHoverMode?: boolean; - outlineColor?: ResourceColor | EdgeColors; - outlineWidth?: Dimension | EdgeOutlineWidths; - hapticFeedbackMode?: HapticFeedbackMode; -} -export interface MenuOptions extends ContextMenuOptions { - title?: ResourceStr; - showInSubWindow?: boolean; -} -export interface TouchTestInfo { - windowX: number; - windowY: number; - parentX: number; - parentY: number; - x: number; - y: number; - rect: RectResult; - id: string; -} -export interface TouchResult { - strategy: TouchTestStrategy; - id?: string | undefined; -} -export interface PixelStretchEffectOptions { - top?: Length; - bottom?: Length; - left?: Length; - right?: Length; -} -export interface ClickEffect { - level: ClickEffectLevel; - scale?: number; -} -export interface FadingEdgeOptions { - fadingEdgeLength?: LengthMetrics; -} -export interface NestedScrollOptions { - scrollForward: NestedScrollMode; - scrollBackward: NestedScrollMode; -} -export interface MenuElement { - value: ResourceStr; - icon?: ResourceStr; - symbolIcon?: SymbolGlyphModifier; - enabled?: boolean; - action: (() => void); -} -export interface CommonConfiguration { - enabled: boolean; - contentModifier: ContentModifier; -} -export enum OutlineStyle { - SOLID = 0, - DASHED = 1, - DOTTED = 2 -} -export enum DragPreviewMode { - AUTO = 1, - DISABLE_SCALE = 2, - ENABLE_DEFAULT_SHADOW = 3, - ENABLE_DEFAULT_RADIUS = 4, - ENABLE_DRAG_ITEM_GRAY_EFFECT = 5, - ENABLE_MULTI_TILE_EFFECT = 6, - ENABLE_TOUCH_POINT_CALCULATION_BASED_ON_FINAL_PREVIEW = 7 -} -export enum DraggingSizeChangeEffect { - DEFAULT = 0, - SIZE_TRANSITION = 1, - SIZE_CONTENT_TRANSITION = 2 -} -export enum MenuPolicy { - DEFAULT = 0, - HIDE = 1, - SHOW = 2 -} -export interface DragPreviewOptions { - mode?: DragPreviewMode | Array; - numberBadge?: boolean | number; - sizeChangeEffect?: DraggingSizeChangeEffect; -} -export interface DragInteractionOptions { - isMultiSelectionEnabled?: boolean; - defaultAnimationBeforeLifting?: boolean; - enableEdgeAutoScroll?: boolean; - enableHapticFeedback?: boolean; - isLiftingDisabled?: boolean; -} -export interface PreviewConfiguration { - onlyForLifting?: boolean; - delayCreating?: boolean; -} -export interface InvertOptions { - low: number; - high: number; - threshold: number; - thresholdRange: number; -} -export type TipsMessageType = ResourceStr | StyledString; -export interface BackgroundImageOptions { - syncLoad?: boolean; - repeat?: ImageRepeat; -} -export interface BackgroundOptions { - align?: Alignment; -} -export type CustomProperty = Object | undefined; -export interface CommonMethod { - width(value: Length | LayoutPolicy | undefined): this { - throw new Error("Unimplemented method width") - } - height(value: Length | LayoutPolicy | undefined): this { - throw new Error("Unimplemented method height") - } - drawModifier(value: DrawModifier | undefined): this { - throw new Error("Unimplemented method drawModifier") - } - responseRegion(value: Array | Rectangle | undefined): this { - throw new Error("Unimplemented method responseRegion") - } - mouseResponseRegion(value: Array | Rectangle | undefined): this { - throw new Error("Unimplemented method mouseResponseRegion") - } - size(value: SizeOptions | undefined): this { - throw new Error("Unimplemented method size") - } - constraintSize(value: ConstraintSizeOptions | undefined): this { - throw new Error("Unimplemented method constraintSize") - } - hitTestBehavior(value: HitTestMode | undefined): this { - throw new Error("Unimplemented method hitTestBehavior") - } - onChildTouchTest(value: ((value: Array) => TouchResult) | undefined): this { - throw new Error("Unimplemented method onChildTouchTest") - } - layoutWeight(value: number | string | undefined): this { - throw new Error("Unimplemented method layoutWeight") - } - chainWeight(value: ChainWeightOptions | undefined): this { - throw new Error("Unimplemented method chainWeight") - } - padding(value: Padding | Length | LocalizedPadding | undefined): this { - throw new Error("Unimplemented method padding") - } - safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding | undefined): this { - throw new Error("Unimplemented method safeAreaPadding") - } - margin(value: Padding | Length | LocalizedPadding | undefined): this { - throw new Error("Unimplemented method margin") - } - backgroundColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method backgroundColor") - } - pixelRound(value: PixelRoundPolicy | undefined): this { - throw new Error("Unimplemented method pixelRound") - } - backgroundImageSize(value: SizeOptions | ImageSize | undefined): this { - throw new Error("Unimplemented method backgroundImageSize") - } - backgroundImagePosition(value: Position | Alignment | undefined): this { - throw new Error("Unimplemented method backgroundImagePosition") - } - backgroundEffect(value: BackgroundEffectOptions | undefined): this { - throw new Error("Unimplemented method backgroundEffect") - } - backgroundImageResizable(value: ResizableOptions | undefined): this { - throw new Error("Unimplemented method backgroundImageResizable") - } - foregroundEffect(value: ForegroundEffectOptions | undefined): this { - throw new Error("Unimplemented method foregroundEffect") - } - visualEffect(value: uiEffect.VisualEffect | undefined): this { - throw new Error("Unimplemented method visualEffect") - } - backgroundFilter(value: uiEffect.Filter | undefined): this { - throw new Error("Unimplemented method backgroundFilter") - } - foregroundFilter(value: uiEffect.Filter | undefined): this { - throw new Error("Unimplemented method foregroundFilter") - } - compositingFilter(value: uiEffect.Filter | undefined): this { - throw new Error("Unimplemented method compositingFilter") - } - opacity(value: number | Resource | undefined): this { - throw new Error("Unimplemented method opacity") - } - border(value: BorderOptions | undefined): this { - throw new Error("Unimplemented method border") - } - borderStyle(value: BorderStyle | EdgeStyles | undefined): this { - throw new Error("Unimplemented method borderStyle") - } - borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): this { - throw new Error("Unimplemented method borderWidth") - } - borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { - throw new Error("Unimplemented method borderColor") - } - borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): this { - throw new Error("Unimplemented method borderRadius") - } - borderImage(value: BorderImageOption | undefined): this { - throw new Error("Unimplemented method borderImage") - } - outline(value: OutlineOptions | undefined): this { - throw new Error("Unimplemented method outline") - } - outlineStyle(value: OutlineStyle | EdgeOutlineStyles | undefined): this { - throw new Error("Unimplemented method outlineStyle") - } - outlineWidth(value: Dimension | EdgeOutlineWidths | undefined): this { - throw new Error("Unimplemented method outlineWidth") - } - outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { - throw new Error("Unimplemented method outlineColor") - } - outlineRadius(value: Dimension | OutlineRadiuses | undefined): this { - throw new Error("Unimplemented method outlineRadius") - } - foregroundColor(value: ResourceColor | ColoringStrategy | undefined): this { - throw new Error("Unimplemented method foregroundColor") - } - onClick(value: ((event: ClickEvent) => void) | undefined): this { - throw new Error("Unimplemented method onClick") - } - onHover(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): this { - throw new Error("Unimplemented method onHover") - } - onHoverMove(value: ((value0: HoverEvent) => void) | undefined): this { - throw new Error("Unimplemented method onHoverMove") - } - onAccessibilityHover(value: AccessibilityCallback | undefined): this { - throw new Error("Unimplemented method onAccessibilityHover") - } - hoverEffect(value: HoverEffect | undefined): this { - throw new Error("Unimplemented method hoverEffect") - } - onMouse(value: ((event: MouseEvent) => void) | undefined): this { - throw new Error("Unimplemented method onMouse") - } - onTouch(value: ((event: TouchEvent) => void) | undefined): this { - throw new Error("Unimplemented method onTouch") - } - onKeyEvent(value: ((event: KeyEvent) => void) | undefined): this { - throw new Error("Unimplemented method onKeyEvent") - } - onDigitalCrown(value: ((value0: CrownEvent) => void) | undefined): this { - throw new Error("Unimplemented method onDigitalCrown") - } - onKeyPreIme(value: ((value0: KeyEvent) => boolean) | undefined): this { - throw new Error("Unimplemented method onKeyPreIme") - } - onKeyEventDispatch(value: ((value0: KeyEvent) => boolean) | undefined): this { - throw new Error("Unimplemented method onKeyEventDispatch") - } - onFocusAxisEvent(value: ((value0: FocusAxisEvent) => void) | undefined): this { - throw new Error("Unimplemented method onFocusAxisEvent") - } - onAxisEvent(value: ((value0: AxisEvent) => void) | undefined): this { - throw new Error("Unimplemented method onAxisEvent") - } - focusable(value: boolean | undefined): this { - throw new Error("Unimplemented method focusable") - } - nextFocus(value: FocusMovement | undefined): this { - throw new Error("Unimplemented method nextFocus") - } - tabStop(value: boolean | undefined): this { - throw new Error("Unimplemented method tabStop") - } - onFocus(value: (() => void) | undefined): this { - throw new Error("Unimplemented method onFocus") - } - onBlur(value: (() => void) | undefined): this { - throw new Error("Unimplemented method onBlur") - } - tabIndex(value: number | undefined): this { - throw new Error("Unimplemented method tabIndex") - } - defaultFocus(value: boolean | undefined): this { - throw new Error("Unimplemented method defaultFocus") - } - groupDefaultFocus(value: boolean | undefined): this { - throw new Error("Unimplemented method groupDefaultFocus") - } - focusOnTouch(value: boolean | undefined): this { - throw new Error("Unimplemented method focusOnTouch") - } - focusBox(value: FocusBoxStyle | undefined): this { - throw new Error("Unimplemented method focusBox") - } - animation(value: AnimateParam | undefined): this { - throw new Error("Unimplemented method animation") - } - transition(value: TransitionEffect | undefined): this { - throw new Error("Unimplemented method transition") - } - motionBlur(value: MotionBlurOptions | undefined): this { - throw new Error("Unimplemented method motionBlur") - } - brightness(value: number | undefined): this { - throw new Error("Unimplemented method brightness") - } - contrast(value: number | undefined): this { - throw new Error("Unimplemented method contrast") - } - grayscale(value: number | undefined): this { - throw new Error("Unimplemented method grayscale") - } - colorBlend(value: Color | string | Resource | undefined): this { - throw new Error("Unimplemented method colorBlend") - } - saturate(value: number | undefined): this { - throw new Error("Unimplemented method saturate") - } - sepia(value: number | undefined): this { - throw new Error("Unimplemented method sepia") - } - invert(value: number | InvertOptions | undefined): this { - throw new Error("Unimplemented method invert") - } - hueRotate(value: number | string | undefined): this { - throw new Error("Unimplemented method hueRotate") - } - useShadowBatching(value: boolean | undefined): this { - throw new Error("Unimplemented method useShadowBatching") - } - useEffect(value: boolean | undefined): this { - throw new Error("Unimplemented method useEffect") - } - renderGroup(value: boolean | undefined): this { - throw new Error("Unimplemented method renderGroup") - } - freeze(value: boolean | undefined): this { - throw new Error("Unimplemented method freeze") - } - translate(value: TranslateOptions | undefined): this { - throw new Error("Unimplemented method translate") - } - scale(value: ScaleOptions | undefined): this { - throw new Error("Unimplemented method scale") - } - rotate(value: RotateOptions | undefined): this { - throw new Error("Unimplemented method rotate") - } - transform(value: Object | undefined): this { - throw new Error("Unimplemented method transform") - } - onAppear(value: (() => void) | undefined): this { - throw new Error("Unimplemented method onAppear") - } - onDisAppear(value: (() => void) | undefined): this { - throw new Error("Unimplemented method onDisAppear") - } - onAttach(value: VoidCallback | undefined): this { - throw new Error("Unimplemented method onAttach") - } - onDetach(value: VoidCallback | undefined): this { - throw new Error("Unimplemented method onDetach") - } - onAreaChange(value: ((oldValue: Area,newValue: Area) => void) | undefined): this { - throw new Error("Unimplemented method onAreaChange") - } - visibility(value: Visibility | undefined): this { - throw new Error("Unimplemented method visibility") - } - flexGrow(value: number | undefined): this { - throw new Error("Unimplemented method flexGrow") - } - flexShrink(value: number | undefined): this { - throw new Error("Unimplemented method flexShrink") - } - flexBasis(value: number | string | undefined): this { - throw new Error("Unimplemented method flexBasis") - } - alignSelf(value: ItemAlign | undefined): this { - throw new Error("Unimplemented method alignSelf") - } - displayPriority(value: number | undefined): this { - throw new Error("Unimplemented method displayPriority") - } - zIndex(value: number | undefined): this { - throw new Error("Unimplemented method zIndex") - } - direction(value: Direction | undefined): this { - throw new Error("Unimplemented method direction") - } - align(value: Alignment | undefined): this { - throw new Error("Unimplemented method align") - } - position(value: Position | Edges | LocalizedEdges | undefined): this { - throw new Error("Unimplemented method position") - } - markAnchor(value: Position | LocalizedPosition | undefined): this { - throw new Error("Unimplemented method markAnchor") - } - offset(value: Position | Edges | LocalizedEdges | undefined): this { - throw new Error("Unimplemented method offset") - } - enabled(value: boolean | undefined): this { - throw new Error("Unimplemented method enabled") - } - alignRules(value: AlignRuleOption | undefined): this { - throw new Error("Unimplemented method alignRules") - } - alignRules(value: LocalizedAlignRuleOptions | undefined): this { - throw new Error("Unimplemented method alignRules") - } - aspectRatio(value: number | undefined): this { - throw new Error("Unimplemented method aspectRatio") - } - clickEffect(value: ClickEffect | undefined): this { - throw new Error("Unimplemented method clickEffect") - } - onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): this { - throw new Error("Unimplemented method onDragStart") - } - onDragEnter(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - throw new Error("Unimplemented method onDragEnter") - } - onDragMove(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - throw new Error("Unimplemented method onDragMove") - } - onDragLeave(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - throw new Error("Unimplemented method onDragLeave") - } - onDrop(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - throw new Error("Unimplemented method onDrop") - } - onDragEnd(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - throw new Error("Unimplemented method onDragEnd") - } - allowDrop(value: Array | undefined): this { - throw new Error("Unimplemented method allowDrop") - } - draggable(value: boolean | undefined): this { - throw new Error("Unimplemented method draggable") - } - dragPreview(value: CustomBuilder | DragItemInfo | string | undefined): this { - throw new Error("Unimplemented method dragPreview") - } - onPreDrag(value: ((value0: PreDragStatus) => void) | undefined): this { - throw new Error("Unimplemented method onPreDrag") - } - linearGradient(value: LinearGradientOptions | undefined): this { - throw new Error("Unimplemented method linearGradient") - } - sweepGradient(value: SweepGradientOptions | undefined): this { - throw new Error("Unimplemented method sweepGradient") - } - radialGradient(value: RadialGradientOptions | undefined): this { - throw new Error("Unimplemented method radialGradient") - } - motionPath(value: MotionPathOptions | undefined): this { - throw new Error("Unimplemented method motionPath") - } - shadow(value: ShadowOptions | ShadowStyle | undefined): this { - throw new Error("Unimplemented method shadow") - } - clip(value: boolean | undefined): this { - throw new Error("Unimplemented method clip") - } - clipShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { - throw new Error("Unimplemented method clipShape") - } - mask(value: ProgressMask | undefined): this { - throw new Error("Unimplemented method mask") - } - maskShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { - throw new Error("Unimplemented method maskShape") - } - key(value: string | undefined): this { - throw new Error("Unimplemented method key") - } - id(value: string | undefined): this { - throw new Error("Unimplemented method id") - } - geometryTransition(value: string | undefined): this { - throw new Error("Unimplemented method geometryTransition") - } - stateStyles(value: StateStyles | undefined): this { - throw new Error("Unimplemented method stateStyles") - } - restoreId(value: number | undefined): this { - throw new Error("Unimplemented method restoreId") - } - sphericalEffect(value: number | undefined): this { - throw new Error("Unimplemented method sphericalEffect") - } - lightUpEffect(value: number | undefined): this { - throw new Error("Unimplemented method lightUpEffect") - } - pixelStretchEffect(value: PixelStretchEffectOptions | undefined): this { - throw new Error("Unimplemented method pixelStretchEffect") - } - accessibilityGroup(value: boolean | undefined): this { - throw new Error("Unimplemented method accessibilityGroup") - } - accessibilityText(value: string | undefined): this { - throw new Error("Unimplemented method accessibilityText") - } - accessibilityNextFocusId(value: string | undefined): this { - throw new Error("Unimplemented method accessibilityNextFocusId") - } - accessibilityDefaultFocus(value: boolean | undefined): this { - throw new Error("Unimplemented method accessibilityDefaultFocus") - } - accessibilityUseSamePage(value: AccessibilitySamePageMode | undefined): this { - throw new Error("Unimplemented method accessibilityUseSamePage") - } - accessibilityScrollTriggerable(value: boolean | undefined): this { - throw new Error("Unimplemented method accessibilityScrollTriggerable") - } - accessibilityText(value: Resource | undefined): this { - throw new Error("Unimplemented method accessibilityText") - } - accessibilityRole(value: AccessibilityRoleType | undefined): this { - throw new Error("Unimplemented method accessibilityRole") - } - onAccessibilityFocus(value: AccessibilityFocusCallback | undefined): this { - throw new Error("Unimplemented method onAccessibilityFocus") - } - accessibilityTextHint(value: string | undefined): this { - throw new Error("Unimplemented method accessibilityTextHint") - } - accessibilityDescription(value: string | undefined): this { - throw new Error("Unimplemented method accessibilityDescription") - } - accessibilityDescription(value: Resource | undefined): this { - throw new Error("Unimplemented method accessibilityDescription") - } - accessibilityLevel(value: string | undefined): this { - throw new Error("Unimplemented method accessibilityLevel") - } - accessibilityVirtualNode(value: CustomBuilder | undefined): this { - throw new Error("Unimplemented method accessibilityVirtualNode") - } - accessibilityChecked(value: boolean | undefined): this { - throw new Error("Unimplemented method accessibilityChecked") - } - accessibilitySelected(value: boolean | undefined): this { - throw new Error("Unimplemented method accessibilitySelected") - } - obscured(value: Array | undefined): this { - throw new Error("Unimplemented method obscured") - } - reuseId(value: string | undefined): this { - throw new Error("Unimplemented method reuseId") - } - reuse(value: ReuseOptions | undefined): this { - throw new Error("Unimplemented method reuse") - } - renderFit(value: RenderFit | undefined): this { - throw new Error("Unimplemented method renderFit") - } - gestureModifier(value: GestureModifier | undefined): this { - throw new Error("Unimplemented method gestureModifier") - } - backgroundBrightness(value: BackgroundBrightnessOptions | undefined): this { - throw new Error("Unimplemented method backgroundBrightness") - } - onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): this { - throw new Error("Unimplemented method onGestureJudgeBegin") - } - onGestureRecognizerJudgeBegin(value: GestureRecognizerJudgeBeginCallback | undefined): this { - throw new Error("Unimplemented method onGestureRecognizerJudgeBegin") - } - shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): this { - throw new Error("Unimplemented method shouldBuiltInRecognizerParallelWith") - } - monopolizeEvents(value: boolean | undefined): this { - throw new Error("Unimplemented method monopolizeEvents") - } - onTouchIntercept(value: ((value0: TouchEvent) => HitTestMode) | undefined): this { - throw new Error("Unimplemented method onTouchIntercept") - } - onSizeChange(value: SizeChangeCallback | undefined): this { - throw new Error("Unimplemented method onSizeChange") - } - accessibilityFocusDrawLevel(value: FocusDrawLevel | undefined): this { - throw new Error("Unimplemented method accessibilityFocusDrawLevel") - } - customProperty(name: string, value: CustomProperty): this { - throw new Error("Unimplemented method customProperty") - } - expandSafeArea(types?: Array, edges?: Array): this { - throw new Error("Unimplemented method expandSafeArea") - } - background(builder: CustomBuilder | undefined, options?: BackgroundOptions): this { - throw new Error("Unimplemented method background") - } - backgroundImage(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): this { - throw new Error("Unimplemented method backgroundImage") - } - backgroundImage(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): this { - throw new Error("Unimplemented method backgroundImage") - } - backgroundBlurStyle(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { - throw new Error("Unimplemented method backgroundBlurStyle") - } - backgroundEffect(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): this { - throw new Error("Unimplemented method backgroundEffect") - } - foregroundBlurStyle(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { - throw new Error("Unimplemented method foregroundBlurStyle") - } - onClick(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): this { - throw new Error("Unimplemented method onClick") - } - focusScopeId(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): this { - throw new Error("Unimplemented method focusScopeId") - } - focusScopePriority(scopeId: string | undefined, priority?: FocusPriority): this { - throw new Error("Unimplemented method focusScopePriority") - } - transition(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): this { - throw new Error("Unimplemented method transition") - } - gesture(gesture: GestureType | undefined, mask?: GestureMask): this { - throw new Error("Unimplemented method gesture") - } - priorityGesture(gesture: GestureType | undefined, mask?: GestureMask): this { - throw new Error("Unimplemented method priorityGesture") - } - parallelGesture(gesture: GestureType | undefined, mask?: GestureMask): this { - throw new Error("Unimplemented method parallelGesture") - } - blur(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { - throw new Error("Unimplemented method blur") - } - linearGradientBlur(value: number | undefined, options: LinearGradientBlurOptions | undefined): this { - throw new Error("Unimplemented method linearGradientBlur") - } - systemBarEffect(): this { - throw new Error("Unimplemented method systemBarEffect") - } - useEffect(useEffect: boolean | undefined, effectType: EffectType | undefined): this { - throw new Error("Unimplemented method useEffect") - } - backdropBlur(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { - throw new Error("Unimplemented method backdropBlur") - } - sharedTransition(id: string | undefined, options?: sharedTransitionOptions): this { - throw new Error("Unimplemented method sharedTransition") - } - chainMode(direction: Axis | undefined, style: ChainStyle | undefined): this { - throw new Error("Unimplemented method chainMode") - } - onDrop(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): this { - throw new Error("Unimplemented method onDrop") - } - dragPreview(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): this { - throw new Error("Unimplemented method dragPreview") - } - dragPreviewOptions(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): this { - throw new Error("Unimplemented method dragPreviewOptions") - } - overlay(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): this { - throw new Error("Unimplemented method overlay") - } - blendMode(value: BlendMode | undefined, type?: BlendApplyType): this { - throw new Error("Unimplemented method blendMode") - } - advancedBlendMode(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): this { - throw new Error("Unimplemented method advancedBlendMode") - } - geometryTransition(id: string | undefined, options?: GeometryTransitionOptions): this { - throw new Error("Unimplemented method geometryTransition") - } - bindTips(message: TipsMessageType | undefined, options?: TipsOptions): this { - throw new Error("Unimplemented method bindTips") - } - bindPopup(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): this { - throw new Error("Unimplemented method bindPopup") - } - bindMenu(content: Array | CustomBuilder | undefined, options?: MenuOptions): this { - throw new Error("Unimplemented method bindMenu") - } - bindMenu(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): this { - throw new Error("Unimplemented method bindMenu") - } - bindContextMenu(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): this { - throw new Error("Unimplemented method bindContextMenu") - } - bindContextMenu(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): this { - throw new Error("Unimplemented method bindContextMenu") - } - bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): this { - throw new Error("Unimplemented method bindContentCover") - } - bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): this { - throw new Error("Unimplemented method bindContentCover") - } - bindSheet(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): this { - throw new Error("Unimplemented method bindSheet") - } - onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this { - throw new Error("Unimplemented method onVisibleAreaChange") - } - onVisibleAreaApproximateChange(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): this { - throw new Error("Unimplemented method onVisibleAreaApproximateChange") - } - keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): this { - throw new Error("Unimplemented method keyboardShortcut") - } - accessibilityGroup(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): this { - throw new Error("Unimplemented method accessibilityGroup") - } - onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): this { - throw new Error("Unimplemented method onGestureRecognizerJudgeBegin") - } - attributeModifier(value: AttributeModifier | undefined): this { - throw new Error("Unimplemented method attributeModifier") - } -} -export class ArkCommonMethodStyle implements CommonMethod { - width_value?: Length | LayoutPolicy | undefined - height_value?: Length | LayoutPolicy | undefined - drawModifier_value?: DrawModifier | undefined - responseRegion_value?: Array | Rectangle | undefined - mouseResponseRegion_value?: Array | Rectangle | undefined - size_value?: SizeOptions | undefined - constraintSize_value?: ConstraintSizeOptions | undefined - hitTestBehavior_value?: HitTestMode | undefined - onChildTouchTest_value?: ((value: Array) => TouchResult) | undefined - layoutWeight_value?: number | string | undefined - chainWeight_value?: ChainWeightOptions | undefined - padding_value?: Padding | Length | LocalizedPadding | undefined - safeAreaPadding_value?: Padding | LengthMetrics | LocalizedPadding | undefined - margin_value?: Padding | Length | LocalizedPadding | undefined - backgroundColor_value?: ResourceColor | undefined - pixelRound_value?: PixelRoundPolicy | undefined - backgroundImageSize_value?: SizeOptions | ImageSize | undefined - backgroundImagePosition_value?: Position | Alignment | undefined - backgroundEffect_value?: BackgroundEffectOptions | undefined - backgroundImageResizable_value?: ResizableOptions | undefined - foregroundEffect_value?: ForegroundEffectOptions | undefined - visualEffect_value?: uiEffect.VisualEffect | undefined - backgroundFilter_value?: uiEffect.Filter | undefined - foregroundFilter_value?: uiEffect.Filter | undefined - compositingFilter_value?: uiEffect.Filter | undefined - opacity_value?: number | Resource | undefined - border_value?: BorderOptions | undefined - borderStyle_value?: BorderStyle | EdgeStyles | undefined - borderWidth_value?: Length | EdgeWidths | LocalizedEdgeWidths | undefined - borderColor_value?: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined - borderRadius_value?: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined - borderImage_value?: BorderImageOption | undefined - outline_value?: OutlineOptions | undefined - outlineStyle_value?: OutlineStyle | EdgeOutlineStyles | undefined - outlineWidth_value?: Dimension | EdgeOutlineWidths | undefined - outlineColor_value?: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined - outlineRadius_value?: Dimension | OutlineRadiuses | undefined - foregroundColor_value?: ResourceColor | ColoringStrategy | undefined - onClick_value?: ((event: ClickEvent) => void) | undefined - onHover_value?: ((isHover: boolean,event: HoverEvent) => void) | undefined - onHoverMove_value?: ((value0: HoverEvent) => void) | undefined - onAccessibilityHover_value?: AccessibilityCallback | undefined - hoverEffect_value?: HoverEffect | undefined - onMouse_value?: ((event: MouseEvent) => void) | undefined - onTouch_value?: ((event: TouchEvent) => void) | undefined - onKeyEvent_value?: ((event: KeyEvent) => void) | undefined - onDigitalCrown_value?: ((value0: CrownEvent) => void) | undefined - onKeyPreIme_value?: ((value0: KeyEvent) => boolean) | undefined - onKeyEventDispatch_value?: ((value0: KeyEvent) => boolean) | undefined - onFocusAxisEvent_value?: ((value0: FocusAxisEvent) => void) | undefined - onAxisEvent_value?: ((value0: AxisEvent) => void) | undefined - focusable_value?: boolean | undefined - nextFocus_value?: FocusMovement | undefined - tabStop_value?: boolean | undefined - onFocus_value?: (() => void) | undefined - onBlur_value?: (() => void) | undefined - tabIndex_value?: number | undefined - defaultFocus_value?: boolean | undefined - groupDefaultFocus_value?: boolean | undefined - focusOnTouch_value?: boolean | undefined - focusBox_value?: FocusBoxStyle | undefined - animation_value?: AnimateParam | undefined - transition_value?: TransitionEffect | undefined - motionBlur_value?: MotionBlurOptions | undefined - brightness_value?: number | undefined - contrast_value?: number | undefined - grayscale_value?: number | undefined - colorBlend_value?: Color | string | Resource | undefined - saturate_value?: number | undefined - sepia_value?: number | undefined - invert_value?: number | InvertOptions | undefined - hueRotate_value?: number | string | undefined - useShadowBatching_value?: boolean | undefined - useEffect_value?: boolean | undefined - renderGroup_value?: boolean | undefined - freeze_value?: boolean | undefined - translate_value?: TranslateOptions | undefined - scale_value?: ScaleOptions | undefined - rotate_value?: RotateOptions | undefined - transform_value?: Object | undefined - onAppear_value?: (() => void) | undefined - onDisAppear_value?: (() => void) | undefined - onAttach_value?: VoidCallback | undefined - onDetach_value?: VoidCallback | undefined - onAreaChange_value?: ((oldValue: Area,newValue: Area) => void) | undefined - visibility_value?: Visibility | undefined - flexGrow_value?: number | undefined - flexShrink_value?: number | undefined - flexBasis_value?: number | string | undefined - alignSelf_value?: ItemAlign | undefined - displayPriority_value?: number | undefined - zIndex_value?: number | undefined - direction_value?: Direction | undefined - align_value?: Alignment | undefined - position_value?: Position | Edges | LocalizedEdges | undefined - markAnchor_value?: Position | LocalizedPosition | undefined - offset_value?: Position | Edges | LocalizedEdges | undefined - enabled_value?: boolean | undefined - alignRules_value?: AlignRuleOption | undefined - aspectRatio_value?: number | undefined - clickEffect_value?: ClickEffect | undefined - onDragStart_value?: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined - onDragEnter_value?: ((event: DragEvent,extraParams?: string) => void) | undefined - onDragMove_value?: ((event: DragEvent,extraParams?: string) => void) | undefined - onDragLeave_value?: ((event: DragEvent,extraParams?: string) => void) | undefined - onDrop_value?: ((event: DragEvent,extraParams?: string) => void) | undefined - onDragEnd_value?: ((event: DragEvent,extraParams?: string) => void) | undefined - allowDrop_value?: Array | undefined - draggable_value?: boolean | undefined - dragPreview_value?: CustomBuilder | DragItemInfo | string | undefined - onPreDrag_value?: ((value0: PreDragStatus) => void) | undefined - linearGradient_value?: LinearGradientOptions | undefined - sweepGradient_value?: SweepGradientOptions | undefined - radialGradient_value?: RadialGradientOptions | undefined - motionPath_value?: MotionPathOptions | undefined - shadow_value?: ShadowOptions | ShadowStyle | undefined - clip_value?: boolean | undefined - clipShape_value?: CircleShape | EllipseShape | PathShape | RectShape | undefined - mask_value?: ProgressMask | undefined - maskShape_value?: CircleShape | EllipseShape | PathShape | RectShape | undefined - key_value?: string | undefined - id_value?: string | undefined - geometryTransition_value?: string | undefined - stateStyles_value?: StateStyles | undefined - restoreId_value?: number | undefined - sphericalEffect_value?: number | undefined - lightUpEffect_value?: number | undefined - pixelStretchEffect_value?: PixelStretchEffectOptions | undefined - accessibilityGroup_value?: boolean | undefined - accessibilityText_value?: string | undefined - accessibilityNextFocusId_value?: string | undefined - accessibilityDefaultFocus_value?: boolean | undefined - accessibilityUseSamePage_value?: AccessibilitySamePageMode | undefined - accessibilityScrollTriggerable_value?: boolean | undefined - accessibilityRole_value?: AccessibilityRoleType | undefined - onAccessibilityFocus_value?: AccessibilityFocusCallback | undefined - accessibilityTextHint_value?: string | undefined - accessibilityDescription_value?: string | undefined - accessibilityLevel_value?: string | undefined - accessibilityVirtualNode_value?: CustomBuilder | undefined - accessibilityChecked_value?: boolean | undefined - accessibilitySelected_value?: boolean | undefined - obscured_value?: Array | undefined - reuseId_value?: string | undefined - reuse_value?: ReuseOptions | undefined - renderFit_value?: RenderFit | undefined - gestureModifier_value?: GestureModifier | undefined - backgroundBrightness_value?: BackgroundBrightnessOptions | undefined - onGestureJudgeBegin_value?: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined - onGestureRecognizerJudgeBegin_value?: GestureRecognizerJudgeBeginCallback | undefined - shouldBuiltInRecognizerParallelWith_value?: ShouldBuiltInRecognizerParallelWithCallback | undefined - monopolizeEvents_value?: boolean | undefined - onTouchIntercept_value?: ((value0: TouchEvent) => HitTestMode) | undefined - onSizeChange_value?: SizeChangeCallback | undefined - accessibilityFocusDrawLevel_value?: FocusDrawLevel | undefined - public width(value: Length | LayoutPolicy | undefined): this { - return this - } - public height(value: Length | LayoutPolicy | undefined): this { - return this - } - public drawModifier(value: DrawModifier | undefined): this { - return this - } - public responseRegion(value: Array | Rectangle | undefined): this { - return this - } - public mouseResponseRegion(value: Array | Rectangle | undefined): this { - return this - } - public size(value: SizeOptions | undefined): this { - return this - } - public constraintSize(value: ConstraintSizeOptions | undefined): this { - return this - } - public hitTestBehavior(value: HitTestMode | undefined): this { - return this - } - public onChildTouchTest(value: ((value: Array) => TouchResult) | undefined): this { - return this - } - public layoutWeight(value: number | string | undefined): this { - return this - } - public chainWeight(value: ChainWeightOptions | undefined): this { - return this - } - public padding(value: Padding | Length | LocalizedPadding | undefined): this { - return this - } - public safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding | undefined): this { - return this - } - public margin(value: Padding | Length | LocalizedPadding | undefined): this { - return this - } - public backgroundColor(value: ResourceColor | undefined): this { - return this - } - public pixelRound(value: PixelRoundPolicy | undefined): this { - return this - } - public backgroundImageSize(value: SizeOptions | ImageSize | undefined): this { - return this - } - public backgroundImagePosition(value: Position | Alignment | undefined): this { - return this - } - public backgroundEffect(value: BackgroundEffectOptions | undefined): this { - return this - } - public backgroundImageResizable(value: ResizableOptions | undefined): this { - return this - } - public foregroundEffect(value: ForegroundEffectOptions | undefined): this { - return this - } - public visualEffect(value: uiEffect.VisualEffect | undefined): this { - return this - } - public backgroundFilter(value: uiEffect.Filter | undefined): this { - return this - } - public foregroundFilter(value: uiEffect.Filter | undefined): this { - return this - } - public compositingFilter(value: uiEffect.Filter | undefined): this { - return this - } - public opacity(value: number | Resource | undefined): this { - return this - } - public border(value: BorderOptions | undefined): this { - return this - } - public borderStyle(value: BorderStyle | EdgeStyles | undefined): this { - return this - } - public borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): this { - return this - } - public borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { - return this - } - public borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): this { - return this - } - public borderImage(value: BorderImageOption | undefined): this { - return this - } - public outline(value: OutlineOptions | undefined): this { - return this - } - public outlineStyle(value: OutlineStyle | EdgeOutlineStyles | undefined): this { - return this - } - public outlineWidth(value: Dimension | EdgeOutlineWidths | undefined): this { - return this - } - public outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { - return this - } - public outlineRadius(value: Dimension | OutlineRadiuses | undefined): this { - return this - } - public foregroundColor(value: ResourceColor | ColoringStrategy | undefined): this { - return this - } - public onClick(value: ((event: ClickEvent) => void) | undefined): this { - return this - } - public onHover(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): this { - return this - } - public onHoverMove(value: ((value0: HoverEvent) => void) | undefined): this { - return this - } - public onAccessibilityHover(value: AccessibilityCallback | undefined): this { - return this - } - public hoverEffect(value: HoverEffect | undefined): this { - return this - } - public onMouse(value: ((event: MouseEvent) => void) | undefined): this { - return this - } - public onTouch(value: ((event: TouchEvent) => void) | undefined): this { - return this - } - public onKeyEvent(value: ((event: KeyEvent) => void) | undefined): this { - return this - } - public onDigitalCrown(value: ((value0: CrownEvent) => void) | undefined): this { - return this - } - public onKeyPreIme(value: ((value0: KeyEvent) => boolean) | undefined): this { - return this - } - public onKeyEventDispatch(value: ((value0: KeyEvent) => boolean) | undefined): this { - return this - } - public onFocusAxisEvent(value: ((value0: FocusAxisEvent) => void) | undefined): this { - return this - } - public onAxisEvent(value: ((value0: AxisEvent) => void) | undefined): this { - return this - } - public focusable(value: boolean | undefined): this { - return this - } - public nextFocus(value: FocusMovement | undefined): this { - return this - } - public tabStop(value: boolean | undefined): this { - return this - } - public onFocus(value: (() => void) | undefined): this { - return this - } - public onBlur(value: (() => void) | undefined): this { - return this - } - public tabIndex(value: number | undefined): this { - return this - } - public defaultFocus(value: boolean | undefined): this { - return this - } - public groupDefaultFocus(value: boolean | undefined): this { - return this - } - public focusOnTouch(value: boolean | undefined): this { - return this - } - public focusBox(value: FocusBoxStyle | undefined): this { - return this - } - public animation(value: AnimateParam | undefined): this { - return this - } - public transition(value: TransitionEffect | undefined): this { - return this - } - public motionBlur(value: MotionBlurOptions | undefined): this { - return this - } - public brightness(value: number | undefined): this { - return this - } - public contrast(value: number | undefined): this { - return this - } - public grayscale(value: number | undefined): this { - return this - } - public colorBlend(value: Color | string | Resource | undefined): this { - return this - } - public saturate(value: number | undefined): this { - return this - } - public sepia(value: number | undefined): this { - return this - } - public invert(value: number | InvertOptions | undefined): this { - return this - } - public hueRotate(value: number | string | undefined): this { - return this - } - public useShadowBatching(value: boolean | undefined): this { - return this - } - public useEffect(value: boolean | undefined): this { - return this - } - public renderGroup(value: boolean | undefined): this { - return this - } - public freeze(value: boolean | undefined): this { - return this - } - public translate(value: TranslateOptions | undefined): this { - return this - } - public scale(value: ScaleOptions | undefined): this { - return this - } - public rotate(value: RotateOptions | undefined): this { - return this - } - public transform(value: Object | undefined): this { - return this - } - public onAppear(value: (() => void) | undefined): this { - return this - } - public onDisAppear(value: (() => void) | undefined): this { - return this - } - public onAttach(value: VoidCallback | undefined): this { - return this - } - public onDetach(value: VoidCallback | undefined): this { - return this - } - public onAreaChange(value: ((oldValue: Area,newValue: Area) => void) | undefined): this { - return this - } - public visibility(value: Visibility | undefined): this { - return this - } - public flexGrow(value: number | undefined): this { - return this - } - public flexShrink(value: number | undefined): this { - return this - } - public flexBasis(value: number | string | undefined): this { - return this - } - public alignSelf(value: ItemAlign | undefined): this { - return this - } - public displayPriority(value: number | undefined): this { - return this - } - public zIndex(value: number | undefined): this { - return this - } - public direction(value: Direction | undefined): this { - return this - } - public align(value: Alignment | undefined): this { - return this - } - public position(value: Position | Edges | LocalizedEdges | undefined): this { - return this - } - public markAnchor(value: Position | LocalizedPosition | undefined): this { - return this - } - public offset(value: Position | Edges | LocalizedEdges | undefined): this { - return this - } - public enabled(value: boolean | undefined): this { - return this - } - public alignRules(value: AlignRuleOption | undefined): this { - return this - } - public alignRules(value: LocalizedAlignRuleOptions | undefined): this { - return this - } - public aspectRatio(value: number | undefined): this { - return this - } - public clickEffect(value: ClickEffect | undefined): this { - return this - } - public onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): this { - return this - } - public onDragEnter(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - return this - } - public onDragMove(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - return this - } - public onDragLeave(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - return this - } - public onDrop(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - return this - } - public onDragEnd(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - return this - } - public allowDrop(value: Array | undefined): this { - return this - } - public draggable(value: boolean | undefined): this { - return this - } - public dragPreview(value: CustomBuilder | DragItemInfo | string | undefined): this { - return this - } - public onPreDrag(value: ((value0: PreDragStatus) => void) | undefined): this { - return this - } - public linearGradient(value: LinearGradientOptions | undefined): this { - return this - } - public sweepGradient(value: SweepGradientOptions | undefined): this { - return this - } - public radialGradient(value: RadialGradientOptions | undefined): this { - return this - } - public motionPath(value: MotionPathOptions | undefined): this { - return this - } - public shadow(value: ShadowOptions | ShadowStyle | undefined): this { - return this - } - public clip(value: boolean | undefined): this { - return this - } - public clipShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { - return this - } - public mask(value: ProgressMask | undefined): this { - return this - } - public maskShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { - return this - } - public key(value: string | undefined): this { - return this - } - public id(value: string | undefined): this { - return this - } - public geometryTransition(value: string | undefined): this { - return this - } - public stateStyles(value: StateStyles | undefined): this { - return this - } - public restoreId(value: number | undefined): this { - return this - } - public sphericalEffect(value: number | undefined): this { - return this - } - public lightUpEffect(value: number | undefined): this { - return this - } - public pixelStretchEffect(value: PixelStretchEffectOptions | undefined): this { - return this - } - public accessibilityGroup(value: boolean | undefined): this { - return this - } - public accessibilityText(value: string | undefined): this { - return this - } - public accessibilityNextFocusId(value: string | undefined): this { - return this - } - public accessibilityDefaultFocus(value: boolean | undefined): this { - return this - } - public accessibilityUseSamePage(value: AccessibilitySamePageMode | undefined): this { - return this - } - public accessibilityScrollTriggerable(value: boolean | undefined): this { - return this - } - public accessibilityText(value: Resource | undefined): this { - return this - } - public accessibilityRole(value: AccessibilityRoleType | undefined): this { - return this - } - public onAccessibilityFocus(value: AccessibilityFocusCallback | undefined): this { - return this - } - public accessibilityTextHint(value: string | undefined): this { - return this - } - public accessibilityDescription(value: string | undefined): this { - return this - } - public accessibilityDescription(value: Resource | undefined): this { - return this - } - public accessibilityLevel(value: string | undefined): this { - return this - } - public accessibilityVirtualNode(value: CustomBuilder | undefined): this { - return this - } - public accessibilityChecked(value: boolean | undefined): this { - return this - } - public accessibilitySelected(value: boolean | undefined): this { - return this - } - public obscured(value: Array | undefined): this { - return this - } - public reuseId(value: string | undefined): this { - return this - } - public reuse(value: ReuseOptions | undefined): this { - return this - } - public renderFit(value: RenderFit | undefined): this { - return this - } - public gestureModifier(value: GestureModifier | undefined): this { - return this - } - public backgroundBrightness(value: BackgroundBrightnessOptions | undefined): this { - return this - } - public onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): this { - return this - } - public onGestureRecognizerJudgeBegin(value: GestureRecognizerJudgeBeginCallback | undefined): this { - return this - } - public shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): this { - return this - } - public monopolizeEvents(value: boolean | undefined): this { - return this - } - public onTouchIntercept(value: ((value0: TouchEvent) => HitTestMode) | undefined): this { - return this - } - public onSizeChange(value: SizeChangeCallback | undefined): this { - return this - } - public accessibilityFocusDrawLevel(value: FocusDrawLevel | undefined): this { - return this - } - public customProperty(name: string, value: CustomProperty): this { - return this - } - public expandSafeArea(types?: Array, edges?: Array): this { - return this - } - public background(builder: CustomBuilder | undefined, options?: BackgroundOptions): this { - return this - } - public backgroundImage(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): this { - return this - } - public backgroundImage(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): this { - return this - } - public backgroundBlurStyle(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { - return this - } - public backgroundEffect(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): this { - return this - } - public foregroundBlurStyle(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { - return this - } - public onClick(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): this { - return this - } - public focusScopeId(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): this { - return this - } - public focusScopePriority(scopeId: string | undefined, priority?: FocusPriority): this { - return this - } - public transition(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): this { - return this - } - public gesture(gesture: GestureType | undefined, mask?: GestureMask): this { - return this - } - public priorityGesture(gesture: GestureType | undefined, mask?: GestureMask): this { - return this - } - public parallelGesture(gesture: GestureType | undefined, mask?: GestureMask): this { - return this - } - public blur(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { - return this - } - public linearGradientBlur(value: number | undefined, options: LinearGradientBlurOptions | undefined): this { - return this - } - public systemBarEffect(): this { - return this - } - public useEffect(useEffect: boolean | undefined, effectType: EffectType | undefined): this { - return this - } - public backdropBlur(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { - return this - } - public sharedTransition(id: string | undefined, options?: sharedTransitionOptions): this { - return this - } - public chainMode(direction: Axis | undefined, style: ChainStyle | undefined): this { - return this - } - public onDrop(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): this { - return this - } - public dragPreview(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): this { - return this - } - public dragPreviewOptions(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): this { - return this - } - public overlay(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): this { - return this - } - public blendMode(value: BlendMode | undefined, type?: BlendApplyType): this { - return this - } - public advancedBlendMode(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): this { - return this - } - public geometryTransition(id: string | undefined, options?: GeometryTransitionOptions): this { - return this - } - public bindTips(message: TipsMessageType | undefined, options?: TipsOptions): this { - return this - } - public bindPopup(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): this { - return this - } - public bindMenu(content: Array | CustomBuilder | undefined, options?: MenuOptions): this { - return this - } - public bindMenu(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): this { - return this - } - public bindContextMenu(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): this { - return this - } - public bindContextMenu(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): this { - return this - } - public bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): this { - return this - } - public bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): this { - return this - } - public bindSheet(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): this { - return this - } - public onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this { - return this - } - public onVisibleAreaApproximateChange(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): this { - return this - } - public keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): this { - return this - } - public accessibilityGroup(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): this { - return this - } - public onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): this { - return this - } - public attributeModifier(value: AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export type CommonAttribute = CommonMethod; -export interface OverlayOptions { - align?: Alignment; - offset?: OverlayOffset; -} -export interface OverlayOffset { - x?: number; - y?: number; -} -export type FractionStop = [ - number, - number -] -export interface CommonShapeMethod extends CommonMethod { - stroke(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method stroke") - } - fill(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method fill") - } - strokeDashOffset(value: number | string | undefined): this { - throw new Error("Unimplemented method strokeDashOffset") - } - strokeLineCap(value: LineCapStyle | undefined): this { - throw new Error("Unimplemented method strokeLineCap") - } - strokeLineJoin(value: LineJoinStyle | undefined): this { - throw new Error("Unimplemented method strokeLineJoin") - } - strokeMiterLimit(value: number | string | undefined): this { - throw new Error("Unimplemented method strokeMiterLimit") - } - strokeOpacity(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method strokeOpacity") - } - fillOpacity(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method fillOpacity") - } - strokeWidth(value: Length | undefined): this { - throw new Error("Unimplemented method strokeWidth") - } - antiAlias(value: boolean | undefined): this { - throw new Error("Unimplemented method antiAlias") - } - strokeDashArray(value: Array | undefined): this { - throw new Error("Unimplemented method strokeDashArray") - } - attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Unimplemented method attributeModifier") - } -} -export class ArkCommonShapeMethodStyle extends ArkCommonMethodStyle implements CommonShapeMethod { - stroke_value?: ResourceColor | undefined - fill_value?: ResourceColor | undefined - strokeDashOffset_value?: number | string | undefined - strokeLineCap_value?: LineCapStyle | undefined - strokeLineJoin_value?: LineJoinStyle | undefined - strokeMiterLimit_value?: number | string | undefined - strokeOpacity_value?: number | string | Resource | undefined - fillOpacity_value?: number | string | Resource | undefined - strokeWidth_value?: Length | undefined - antiAlias_value?: boolean | undefined - strokeDashArray_value?: Array | undefined - public stroke(value: ResourceColor | undefined): this { - return this - } - public fill(value: ResourceColor | undefined): this { - return this - } - public strokeDashOffset(value: number | string | undefined): this { - return this - } - public strokeLineCap(value: LineCapStyle | undefined): this { - return this - } - public strokeLineJoin(value: LineJoinStyle | undefined): this { - return this - } - public strokeMiterLimit(value: number | string | undefined): this { - return this - } - public strokeOpacity(value: number | string | Resource | undefined): this { - return this - } - public fillOpacity(value: number | string | Resource | undefined): this { - return this - } - public strokeWidth(value: Length | undefined): this { - return this - } - public antiAlias(value: boolean | undefined): this { - return this - } - public strokeDashArray(value: Array | undefined): this { - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export interface PixelRoundPolicy { - start?: PixelRoundCalcPolicy; - top?: PixelRoundCalcPolicy; - end?: PixelRoundCalcPolicy; - bottom?: PixelRoundCalcPolicy; -} -export interface LinearGradientBlurOptions { - fractionStops: Array; - direction: GradientDirection; -} -export interface MotionBlurAnchor { - x: number; - y: number; -} -export interface MotionBlurOptions { - radius: number; - anchor: MotionBlurAnchor; -} -export interface GeometryInfo extends SizeResult { - borderWidth: EdgeWidths; - margin: Padding; - padding: Padding; -} -export interface SizeResult { - width: number; - height: number; -} -export interface MeasureResult extends SizeResult { -} -export type NavDestinationInfo = uiObserver.NavDestinationInfo; -export type NavigationInfo = uiObserver.NavigationInfo; -export type RouterPageInfo = uiObserver.RouterPageInfo; -export { UIContext } from "./../generated/ohos.arkui.UIContext" -export { DrawContext } from "./../generated/arkui.Graphics" -export type VisualEffect = uiEffect.VisualEffect; -export type Filter = uiEffect.Filter; -export type Blender = uiEffect.Blender; -export type PromptActionDialogController = promptAction.DialogController; -export interface RectResult { - x: number; - y: number; - width: number; - height: number; -} -export interface CaretOffset { - index: number; - x: number; - y: number; -} -export interface TextContentControllerOptions { - offset?: number; -} -export enum ContentClipMode { - CONTENT_ONLY = 0, - BOUNDARY = 1, - SAFE_AREA = 2 -} -export interface ScrollableCommonMethod extends CommonMethod { - scrollBar(value: BarState | undefined): this { - throw new Error("Unimplemented method scrollBar") - } - scrollBarColor(value: Color | number | string | undefined): this { - throw new Error("Unimplemented method scrollBarColor") - } - scrollBarWidth(value: number | string | undefined): this { - throw new Error("Unimplemented method scrollBarWidth") - } - nestedScroll(value: NestedScrollOptions | undefined): this { - throw new Error("Unimplemented method nestedScroll") - } - enableScrollInteraction(value: boolean | undefined): this { - throw new Error("Unimplemented method enableScrollInteraction") - } - friction(value: number | Resource | undefined): this { - throw new Error("Unimplemented method friction") - } - onReachStart(value: (() => void) | undefined): this { - throw new Error("Unimplemented method onReachStart") - } - onReachEnd(value: (() => void) | undefined): this { - throw new Error("Unimplemented method onReachEnd") - } - onScrollStart(value: (() => void) | undefined): this { - throw new Error("Unimplemented method onScrollStart") - } - onScrollStop(value: (() => void) | undefined): this { - throw new Error("Unimplemented method onScrollStop") - } - flingSpeedLimit(value: number | undefined): this { - throw new Error("Unimplemented method flingSpeedLimit") - } - clipContent(value: ContentClipMode | RectShape | undefined): this { - throw new Error("Unimplemented method clipContent") - } - digitalCrownSensitivity(value: CrownSensitivity | undefined): this { - throw new Error("Unimplemented method digitalCrownSensitivity") - } - backToTop(value: boolean | undefined): this { - throw new Error("Unimplemented method backToTop") - } - edgeEffect(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): this { - throw new Error("Unimplemented method edgeEffect") - } - fadingEdge(enabled: boolean | undefined, options?: FadingEdgeOptions): this { - throw new Error("Unimplemented method fadingEdge") - } - attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Unimplemented method attributeModifier") - } -} -export class ArkScrollableCommonMethodStyle extends ArkCommonMethodStyle implements ScrollableCommonMethod { - public scrollBar(value: BarState | undefined): this { - return this - } - public scrollBarColor(value: Color | number | string | undefined): this { - return this - } - public scrollBarWidth(value: number | string | undefined): this { - return this - } - public nestedScroll(value: NestedScrollOptions | undefined): this { - return this - } - public enableScrollInteraction(value: boolean | undefined): this { - return this - } - public friction(value: number | Resource | undefined): this { - return this - } - public onReachStart(value: (() => void) | undefined): this { - return this - } - public onReachEnd(value: (() => void) | undefined): this { - return this - } - public onScrollStart(value: (() => void) | undefined): this { - return this - } - public onScrollStop(value: (() => void) | undefined): this { - return this - } - public flingSpeedLimit(value: number | undefined): this { - return this - } - public clipContent(value: ContentClipMode | RectShape | undefined): this { - return this - } - public digitalCrownSensitivity(value: CrownSensitivity | undefined): this { - return this - } - public backToTop(value: boolean | undefined): this { - return this - } - public edgeEffect(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): this { - return this - } - public fadingEdge(enabled: boolean | undefined, options?: FadingEdgeOptions): this { - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export type OnWillScrollCallback = (scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource) => ScrollResult | undefined; -export type OnScrollCallback = (scrollOffset: number, scrollState: ScrollState) => void; -export type OnItemDragStartCallback = (event: ItemDragInfo, itemIndex: number) => CustomBuilder | undefined; -export type OnMoveHandler = (from: number, to: number) => void; -export interface ItemDragEventHandler { - onLongPress?: ((value0: number) => void); - onDragStart?: ((value0: number) => void); - onMoveThrough?: OnMoveHandler; - onDrop?: ((value0: number) => void); -} -export interface DynamicNode { -} -export interface EdgeEffectOptions { - alwaysEnabled: boolean; - effectEdge?: number; -} -export enum EffectEdge { - START = 1, - END = 2 -} -export interface BackgroundBrightnessOptions { - rate: number; - lightUpDegree: number; -} -export interface PointLightStyle { - lightSource?: LightSource; - illuminated?: IlluminatedType; - bloom?: number; -} -export interface LightSource { - positionX: Dimension; - positionY: Dimension; - intensity: number; - color?: ResourceColor; -} -export interface KeyframeAnimateParam { - delay?: number; - iterations?: number; - onFinish?: (() => void); - expectedFrameRateRange?: ExpectedFrameRateRange; -} -export interface KeyframeState { - duration: number; - curve?: curves.Curve | string | curves.ICurve; - event: (() => void); -} -export type Callback = (data: T) => V; -export type HoverCallback = (isHover: boolean, event: HoverEvent) => void; -export type AccessibilityCallback = (isHover: boolean, event: AccessibilityHoverEvent) => void; -export interface VisibleAreaEventOptions { - ratios: Array; - expectedUpdateInterval?: number; -} -export type VisibleAreaChangeCallback = (isExpanding: boolean, currentRatio: number) => void; -export interface UIGestureEvent { -} -export interface SelectionOptions { - menuPolicy?: MenuPolicy; -} -export interface FocusMovement { - forward?: string; - backward?: string; - up?: string; - down?: string; - left?: string; - right?: string; -} -export enum KeyboardAvoidMode { - DEFAULT = 0, - NONE = 1 -} -export enum HoverModeAreaType { - TOP_SCREEN = 0, - BOTTOM_SCREEN = 1 -} -export interface DateRange { - start?: Date; - end?: Date; -} -export interface TerminationInfo { - code: number; - want?: Want; -} -export type DateTimeOptions = intl.DateTimeOptions; -export interface Bindable { - readonly value: T; - readonly onChange: ((value0: T) => void); -} -export class ArkCommonMethodComponent extends ComponentBase implements CommonMethod { - getPeer(): ArkCommonMethodPeer { - return (this.peer as ArkCommonMethodPeer) - } - public width(value: Length | LayoutPolicy | undefined): this { - if (this.checkPriority("width")) { - const value_casted = value as (Length | LayoutPolicy | undefined) - this.getPeer()?.setWidthAttribute(value_casted) - return this - } - return this - } - public height(value: Length | LayoutPolicy | undefined): this { - if (this.checkPriority("height")) { - const value_casted = value as (Length | LayoutPolicy | undefined) - this.getPeer()?.setHeightAttribute(value_casted) - return this - } - return this - } - public drawModifier(value: DrawModifier | undefined): this { - if (this.checkPriority("drawModifier")) { - const value_casted = value as (DrawModifier | undefined) - this.getPeer()?.setDrawModifierAttribute(value_casted) - return this - } - return this - } - public responseRegion(value: Array | Rectangle | undefined): this { - if (this.checkPriority("responseRegion")) { - const value_casted = value as (Array | Rectangle | undefined) - this.getPeer()?.setResponseRegionAttribute(value_casted) - return this - } - return this - } - public mouseResponseRegion(value: Array | Rectangle | undefined): this { - if (this.checkPriority("mouseResponseRegion")) { - const value_casted = value as (Array | Rectangle | undefined) - this.getPeer()?.setMouseResponseRegionAttribute(value_casted) - return this - } - return this - } - public size(value: SizeOptions | undefined): this { - if (this.checkPriority("size")) { - const value_casted = value as (SizeOptions | undefined) - this.getPeer()?.setSizeAttribute(value_casted) - return this - } - return this - } - public constraintSize(value: ConstraintSizeOptions | undefined): this { - if (this.checkPriority("constraintSize")) { - const value_casted = value as (ConstraintSizeOptions | undefined) - this.getPeer()?.setConstraintSizeAttribute(value_casted) - return this - } - return this - } - public hitTestBehavior(value: HitTestMode | undefined): this { - if (this.checkPriority("hitTestBehavior")) { - const value_casted = value as (HitTestMode | undefined) - this.getPeer()?.setHitTestBehaviorAttribute(value_casted) - return this - } - return this - } - public onChildTouchTest(value: ((value: Array) => TouchResult) | undefined): this { - if (this.checkPriority("onChildTouchTest")) { - const value_casted = value as (((value: Array) => TouchResult) | undefined) - this.getPeer()?.setOnChildTouchTestAttribute(value_casted) - return this - } - return this - } - public layoutWeight(value: number | string | undefined): this { - if (this.checkPriority("layoutWeight")) { - const value_casted = value as (number | string | undefined) - this.getPeer()?.setLayoutWeightAttribute(value_casted) - return this - } - return this - } - public chainWeight(value: ChainWeightOptions | undefined): this { - if (this.checkPriority("chainWeight")) { - const value_casted = value as (ChainWeightOptions | undefined) - this.getPeer()?.setChainWeightAttribute(value_casted) - return this - } - return this - } - public padding(value: Padding | Length | LocalizedPadding | undefined): this { - if (this.checkPriority("padding")) { - const value_casted = value as (Padding | Length | LocalizedPadding | undefined) - this.getPeer()?.setPaddingAttribute(value_casted) - return this - } - return this - } - public safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding | undefined): this { - if (this.checkPriority("safeAreaPadding")) { - const value_casted = value as (Padding | LengthMetrics | LocalizedPadding | undefined) - this.getPeer()?.setSafeAreaPaddingAttribute(value_casted) - return this - } - return this - } - public margin(value: Padding | Length | LocalizedPadding | undefined): this { - if (this.checkPriority("margin")) { - const value_casted = value as (Padding | Length | LocalizedPadding | undefined) - this.getPeer()?.setMarginAttribute(value_casted) - return this - } - return this - } - public backgroundColor(value: ResourceColor | undefined): this { - if (this.checkPriority("backgroundColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setBackgroundColorAttribute(value_casted) - return this - } - return this - } - public pixelRound(value: PixelRoundPolicy | undefined): this { - if (this.checkPriority("pixelRound")) { - const value_casted = value as (PixelRoundPolicy | undefined) - this.getPeer()?.setPixelRoundAttribute(value_casted) - return this - } - return this - } - public backgroundImageSize(value: SizeOptions | ImageSize | undefined): this { - if (this.checkPriority("backgroundImageSize")) { - const value_casted = value as (SizeOptions | ImageSize | undefined) - this.getPeer()?.setBackgroundImageSizeAttribute(value_casted) - return this - } - return this - } - public backgroundImagePosition(value: Position | Alignment | undefined): this { - if (this.checkPriority("backgroundImagePosition")) { - const value_casted = value as (Position | Alignment | undefined) - this.getPeer()?.setBackgroundImagePositionAttribute(value_casted) - return this - } - return this - } - public backgroundEffect(value: BackgroundEffectOptions | undefined): this { - if (this.checkPriority("backgroundEffect")) { - const value_casted = value as (BackgroundEffectOptions | undefined) - this.getPeer()?.setBackgroundEffect0Attribute(value_casted) - return this - } - return this - } - public backgroundImageResizable(value: ResizableOptions | undefined): this { - if (this.checkPriority("backgroundImageResizable")) { - const value_casted = value as (ResizableOptions | undefined) - this.getPeer()?.setBackgroundImageResizableAttribute(value_casted) - return this - } - return this - } - public foregroundEffect(value: ForegroundEffectOptions | undefined): this { - if (this.checkPriority("foregroundEffect")) { - const value_casted = value as (ForegroundEffectOptions | undefined) - this.getPeer()?.setForegroundEffectAttribute(value_casted) - return this - } - return this - } - public visualEffect(value: uiEffect.VisualEffect | undefined): this { - if (this.checkPriority("visualEffect")) { - const value_casted = value as (uiEffect.VisualEffect | undefined) - this.getPeer()?.setVisualEffectAttribute(value_casted) - return this - } - return this - } - public backgroundFilter(value: uiEffect.Filter | undefined): this { - if (this.checkPriority("backgroundFilter")) { - const value_casted = value as (uiEffect.Filter | undefined) - this.getPeer()?.setBackgroundFilterAttribute(value_casted) - return this - } - return this - } - public foregroundFilter(value: uiEffect.Filter | undefined): this { - if (this.checkPriority("foregroundFilter")) { - const value_casted = value as (uiEffect.Filter | undefined) - this.getPeer()?.setForegroundFilterAttribute(value_casted) - return this - } - return this - } - public compositingFilter(value: uiEffect.Filter | undefined): this { - if (this.checkPriority("compositingFilter")) { - const value_casted = value as (uiEffect.Filter | undefined) - this.getPeer()?.setCompositingFilterAttribute(value_casted) - return this - } - return this - } - public opacity(value: number | Resource | undefined): this { - if (this.checkPriority("opacity")) { - const value_casted = value as (number | Resource | undefined) - this.getPeer()?.setOpacityAttribute(value_casted) - return this - } - return this - } - public border(value: BorderOptions | undefined): this { - if (this.checkPriority("border")) { - const value_casted = value as (BorderOptions | undefined) - this.getPeer()?.setBorderAttribute(value_casted) - return this - } - return this - } - public borderStyle(value: BorderStyle | EdgeStyles | undefined): this { - if (this.checkPriority("borderStyle")) { - const value_casted = value as (BorderStyle | EdgeStyles | undefined) - this.getPeer()?.setBorderStyleAttribute(value_casted) - return this - } - return this - } - public borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): this { - if (this.checkPriority("borderWidth")) { - const value_casted = value as (Length | EdgeWidths | LocalizedEdgeWidths | undefined) - this.getPeer()?.setBorderWidthAttribute(value_casted) - return this - } - return this - } - public borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { - if (this.checkPriority("borderColor")) { - const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors | undefined) - this.getPeer()?.setBorderColorAttribute(value_casted) - return this - } - return this - } - public borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): this { - if (this.checkPriority("borderRadius")) { - const value_casted = value as (Length | BorderRadiuses | LocalizedBorderRadiuses | undefined) - this.getPeer()?.setBorderRadiusAttribute(value_casted) - return this - } - return this - } - public borderImage(value: BorderImageOption | undefined): this { - if (this.checkPriority("borderImage")) { - const value_casted = value as (BorderImageOption | undefined) - this.getPeer()?.setBorderImageAttribute(value_casted) - return this - } - return this - } - public outline(value: OutlineOptions | undefined): this { - if (this.checkPriority("outline")) { - const value_casted = value as (OutlineOptions | undefined) - this.getPeer()?.setOutlineAttribute(value_casted) - return this - } - return this - } - public outlineStyle(value: OutlineStyle | EdgeOutlineStyles | undefined): this { - if (this.checkPriority("outlineStyle")) { - const value_casted = value as (OutlineStyle | EdgeOutlineStyles | undefined) - this.getPeer()?.setOutlineStyleAttribute(value_casted) - return this - } - return this - } - public outlineWidth(value: Dimension | EdgeOutlineWidths | undefined): this { - if (this.checkPriority("outlineWidth")) { - const value_casted = value as (Dimension | EdgeOutlineWidths | undefined) - this.getPeer()?.setOutlineWidthAttribute(value_casted) - return this - } - return this - } - public outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { - if (this.checkPriority("outlineColor")) { - const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors | undefined) - this.getPeer()?.setOutlineColorAttribute(value_casted) - return this - } - return this - } - public outlineRadius(value: Dimension | OutlineRadiuses | undefined): this { - if (this.checkPriority("outlineRadius")) { - const value_casted = value as (Dimension | OutlineRadiuses | undefined) - this.getPeer()?.setOutlineRadiusAttribute(value_casted) - return this - } - return this - } - public foregroundColor(value: ResourceColor | ColoringStrategy | undefined): this { - if (this.checkPriority("foregroundColor")) { - const value_casted = value as (ResourceColor | ColoringStrategy | undefined) - this.getPeer()?.setForegroundColorAttribute(value_casted) - return this - } - return this - } - public onClick(value: ((event: ClickEvent) => void) | undefined): this { - if (this.checkPriority("onClick")) { - const value_casted = value as (((event: ClickEvent) => void) | undefined) - this.getPeer()?.setOnClick0Attribute(value_casted) - return this - } - return this - } - public onHover(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): this { - if (this.checkPriority("onHover")) { - const value_casted = value as (((isHover: boolean,event: HoverEvent) => void) | undefined) - this.getPeer()?.setOnHoverAttribute(value_casted) - return this - } - return this - } - public onHoverMove(value: ((value0: HoverEvent) => void) | undefined): this { - if (this.checkPriority("onHoverMove")) { - const value_casted = value as (((value0: HoverEvent) => void) | undefined) - this.getPeer()?.setOnHoverMoveAttribute(value_casted) - return this - } - return this - } - public onAccessibilityHover(value: AccessibilityCallback | undefined): this { - if (this.checkPriority("onAccessibilityHover")) { - const value_casted = value as (AccessibilityCallback | undefined) - this.getPeer()?.setOnAccessibilityHoverAttribute(value_casted) - return this - } - return this - } - public hoverEffect(value: HoverEffect | undefined): this { - if (this.checkPriority("hoverEffect")) { - const value_casted = value as (HoverEffect | undefined) - this.getPeer()?.setHoverEffectAttribute(value_casted) - return this - } - return this - } - public onMouse(value: ((event: MouseEvent) => void) | undefined): this { - if (this.checkPriority("onMouse")) { - const value_casted = value as (((event: MouseEvent) => void) | undefined) - this.getPeer()?.setOnMouseAttribute(value_casted) - return this - } - return this - } - public onTouch(value: ((event: TouchEvent) => void) | undefined): this { - if (this.checkPriority("onTouch")) { - const value_casted = value as (((event: TouchEvent) => void) | undefined) - this.getPeer()?.setOnTouchAttribute(value_casted) - return this - } - return this - } - public onKeyEvent(value: ((event: KeyEvent) => void) | undefined): this { - if (this.checkPriority("onKeyEvent")) { - const value_casted = value as (((event: KeyEvent) => void) | undefined) - this.getPeer()?.setOnKeyEventAttribute(value_casted) - return this - } - return this - } - public onDigitalCrown(value: ((value0: CrownEvent) => void) | undefined): this { - if (this.checkPriority("onDigitalCrown")) { - const value_casted = value as (((value0: CrownEvent) => void) | undefined) - this.getPeer()?.setOnDigitalCrownAttribute(value_casted) - return this - } - return this - } - public onKeyPreIme(value: ((value0: KeyEvent) => boolean) | undefined): this { - if (this.checkPriority("onKeyPreIme")) { - const value_casted = value as (((value0: KeyEvent) => boolean) | undefined) - this.getPeer()?.setOnKeyPreImeAttribute(value_casted) - return this - } - return this - } - public onKeyEventDispatch(value: ((value0: KeyEvent) => boolean) | undefined): this { - if (this.checkPriority("onKeyEventDispatch")) { - const value_casted = value as (((value0: KeyEvent) => boolean) | undefined) - this.getPeer()?.setOnKeyEventDispatchAttribute(value_casted) - return this - } - return this - } - public onFocusAxisEvent(value: ((value0: FocusAxisEvent) => void) | undefined): this { - if (this.checkPriority("onFocusAxisEvent")) { - const value_casted = value as (((value0: FocusAxisEvent) => void) | undefined) - this.getPeer()?.setOnFocusAxisEventAttribute(value_casted) - return this - } - return this - } - public onAxisEvent(value: ((value0: AxisEvent) => void) | undefined): this { - if (this.checkPriority("onAxisEvent")) { - const value_casted = value as (((value0: AxisEvent) => void) | undefined) - this.getPeer()?.setOnAxisEventAttribute(value_casted) - return this - } - return this - } - public focusable(value: boolean | undefined): this { - if (this.checkPriority("focusable")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setFocusableAttribute(value_casted) - return this - } - return this - } - public nextFocus(value: FocusMovement | undefined): this { - if (this.checkPriority("nextFocus")) { - const value_casted = value as (FocusMovement | undefined) - this.getPeer()?.setNextFocusAttribute(value_casted) - return this - } - return this - } - public tabStop(value: boolean | undefined): this { - if (this.checkPriority("tabStop")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setTabStopAttribute(value_casted) - return this - } - return this - } - public onFocus(value: (() => void) | undefined): this { - if (this.checkPriority("onFocus")) { - const value_casted = value as ((() => void) | undefined) - this.getPeer()?.setOnFocusAttribute(value_casted) - return this - } - return this - } - public onBlur(value: (() => void) | undefined): this { - if (this.checkPriority("onBlur")) { - const value_casted = value as ((() => void) | undefined) - this.getPeer()?.setOnBlurAttribute(value_casted) - return this - } - return this - } - public tabIndex(value: number | undefined): this { - if (this.checkPriority("tabIndex")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setTabIndexAttribute(value_casted) - return this - } - return this - } - public defaultFocus(value: boolean | undefined): this { - if (this.checkPriority("defaultFocus")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setDefaultFocusAttribute(value_casted) - return this - } - return this - } - public groupDefaultFocus(value: boolean | undefined): this { - if (this.checkPriority("groupDefaultFocus")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setGroupDefaultFocusAttribute(value_casted) - return this - } - return this - } - public focusOnTouch(value: boolean | undefined): this { - if (this.checkPriority("focusOnTouch")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setFocusOnTouchAttribute(value_casted) - return this - } - return this - } - public focusBox(value: FocusBoxStyle | undefined): this { - if (this.checkPriority("focusBox")) { - const value_casted = value as (FocusBoxStyle | undefined) - this.getPeer()?.setFocusBoxAttribute(value_casted) - return this - } - return this - } - public animation(value: AnimateParam | undefined): this { - if (this.checkPriority("animation")) { - const value_casted = value as (AnimateParam | undefined) - this.getPeer()?.setAnimationAttribute(value_casted) - return this - } - return this - } - public transition(value: TransitionEffect | undefined): this { - if (this.checkPriority("transition")) { - const value_casted = value as (TransitionEffect | undefined) - this.getPeer()?.setTransition0Attribute(value_casted) - return this - } - return this - } - public motionBlur(value: MotionBlurOptions | undefined): this { - if (this.checkPriority("motionBlur")) { - const value_casted = value as (MotionBlurOptions | undefined) - this.getPeer()?.setMotionBlurAttribute(value_casted) - return this - } - return this - } - public brightness(value: number | undefined): this { - if (this.checkPriority("brightness")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setBrightnessAttribute(value_casted) - return this - } - return this - } - public contrast(value: number | undefined): this { - if (this.checkPriority("contrast")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setContrastAttribute(value_casted) - return this - } - return this - } - public grayscale(value: number | undefined): this { - if (this.checkPriority("grayscale")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setGrayscaleAttribute(value_casted) - return this - } - return this - } - public colorBlend(value: Color | string | Resource | undefined): this { - if (this.checkPriority("colorBlend")) { - const value_casted = value as (Color | string | Resource | undefined) - this.getPeer()?.setColorBlendAttribute(value_casted) - return this - } - return this - } - public saturate(value: number | undefined): this { - if (this.checkPriority("saturate")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setSaturateAttribute(value_casted) - return this - } - return this - } - public sepia(value: number | undefined): this { - if (this.checkPriority("sepia")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setSepiaAttribute(value_casted) - return this - } - return this - } - public invert(value: number | InvertOptions | undefined): this { - if (this.checkPriority("invert")) { - const value_casted = value as (number | InvertOptions | undefined) - this.getPeer()?.setInvertAttribute(value_casted) - return this - } - return this - } - public hueRotate(value: number | string | undefined): this { - if (this.checkPriority("hueRotate")) { - const value_casted = value as (number | string | undefined) - this.getPeer()?.setHueRotateAttribute(value_casted) - return this - } - return this - } - public useShadowBatching(value: boolean | undefined): this { - if (this.checkPriority("useShadowBatching")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setUseShadowBatchingAttribute(value_casted) - return this - } - return this - } - public useEffect(value: boolean | undefined): this { - if (this.checkPriority("useEffect")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setUseEffect0Attribute(value_casted) - return this - } - return this - } - public renderGroup(value: boolean | undefined): this { - if (this.checkPriority("renderGroup")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setRenderGroupAttribute(value_casted) - return this - } - return this - } - public freeze(value: boolean | undefined): this { - if (this.checkPriority("freeze")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setFreezeAttribute(value_casted) - return this - } - return this - } - public translate(value: TranslateOptions | undefined): this { - if (this.checkPriority("translate")) { - const value_casted = value as (TranslateOptions | undefined) - this.getPeer()?.setTranslateAttribute(value_casted) - return this - } - return this - } - public scale(value: ScaleOptions | undefined): this { - if (this.checkPriority("scale")) { - const value_casted = value as (ScaleOptions | undefined) - this.getPeer()?.setScaleAttribute(value_casted) - return this - } - return this - } - public rotate(value: RotateOptions | undefined): this { - if (this.checkPriority("rotate")) { - const value_casted = value as (RotateOptions | undefined) - this.getPeer()?.setRotateAttribute(value_casted) - return this - } - return this - } - public transform(value: Object | undefined): this { - if (this.checkPriority("transform")) { - const value_casted = value as (Object | undefined) - this.getPeer()?.setTransformAttribute(value_casted) - return this - } - return this - } - public onAppear(value: (() => void) | undefined): this { - if (this.checkPriority("onAppear")) { - const value_casted = value as ((() => void) | undefined) - this.getPeer()?.setOnAppearAttribute(value_casted) - return this - } - return this - } - public onDisAppear(value: (() => void) | undefined): this { - if (this.checkPriority("onDisAppear")) { - const value_casted = value as ((() => void) | undefined) - this.getPeer()?.setOnDisAppearAttribute(value_casted) - return this - } - return this - } - public onAttach(value: VoidCallback | undefined): this { - if (this.checkPriority("onAttach")) { - const value_casted = value as (VoidCallback | undefined) - this.getPeer()?.setOnAttachAttribute(value_casted) - return this - } - return this - } - public onDetach(value: VoidCallback | undefined): this { - if (this.checkPriority("onDetach")) { - const value_casted = value as (VoidCallback | undefined) - this.getPeer()?.setOnDetachAttribute(value_casted) - return this - } - return this - } - public onAreaChange(value: ((oldValue: Area,newValue: Area) => void) | undefined): this { - if (this.checkPriority("onAreaChange")) { - const value_casted = value as (((oldValue: Area,newValue: Area) => void) | undefined) - this.getPeer()?.setOnAreaChangeAttribute(value_casted) - return this - } - return this - } - public visibility(value: Visibility | undefined): this { - if (this.checkPriority("visibility")) { - const value_casted = value as (Visibility | undefined) - this.getPeer()?.setVisibilityAttribute(value_casted) - return this - } - return this - } - public flexGrow(value: number | undefined): this { - if (this.checkPriority("flexGrow")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setFlexGrowAttribute(value_casted) - return this - } - return this - } - public flexShrink(value: number | undefined): this { - if (this.checkPriority("flexShrink")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setFlexShrinkAttribute(value_casted) - return this - } - return this - } - public flexBasis(value: number | string | undefined): this { - if (this.checkPriority("flexBasis")) { - const value_casted = value as (number | string | undefined) - this.getPeer()?.setFlexBasisAttribute(value_casted) - return this - } - return this - } - public alignSelf(value: ItemAlign | undefined): this { - if (this.checkPriority("alignSelf")) { - const value_casted = value as (ItemAlign | undefined) - this.getPeer()?.setAlignSelfAttribute(value_casted) - return this - } - return this - } - public displayPriority(value: number | undefined): this { - if (this.checkPriority("displayPriority")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setDisplayPriorityAttribute(value_casted) - return this - } - return this - } - public zIndex(value: number | undefined): this { - if (this.checkPriority("zIndex")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setZIndexAttribute(value_casted) - return this - } - return this - } - public direction(value: Direction | undefined): this { - if (this.checkPriority("direction")) { - const value_casted = value as (Direction | undefined) - this.getPeer()?.setDirectionAttribute(value_casted) - return this - } - return this - } - public align(value: Alignment | undefined): this { - if (this.checkPriority("align")) { - const value_casted = value as (Alignment | undefined) - this.getPeer()?.setAlignAttribute(value_casted) - return this - } - return this - } - public position(value: Position | Edges | LocalizedEdges | undefined): this { - if (this.checkPriority("position")) { - const value_casted = value as (Position | Edges | LocalizedEdges | undefined) - this.getPeer()?.setPositionAttribute(value_casted) - return this - } - return this - } - public markAnchor(value: Position | LocalizedPosition | undefined): this { - if (this.checkPriority("markAnchor")) { - const value_casted = value as (Position | LocalizedPosition | undefined) - this.getPeer()?.setMarkAnchorAttribute(value_casted) - return this - } - return this - } - public offset(value: Position | Edges | LocalizedEdges | undefined): this { - if (this.checkPriority("offset")) { - const value_casted = value as (Position | Edges | LocalizedEdges | undefined) - this.getPeer()?.setOffsetAttribute(value_casted) - return this - } - return this - } - public enabled(value: boolean | undefined): this { - if (this.checkPriority("enabled")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEnabledAttribute(value_casted) - return this - } - return this - } - public alignRules(value: AlignRuleOption | undefined): this { - if (this.checkPriority("alignRules")) { - const value_casted = value as (AlignRuleOption | undefined) - this.getPeer()?.setAlignRules0Attribute(value_casted) - return this - } - return this - } - public alignRules(value: LocalizedAlignRuleOptions | undefined): this { - if (this.checkPriority("alignRules")) { - const value_casted = value as (LocalizedAlignRuleOptions | undefined) - this.getPeer()?.setAlignRules1Attribute(value_casted) - return this - } - return this - } - public aspectRatio(value: number | undefined): this { - if (this.checkPriority("aspectRatio")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setAspectRatioAttribute(value_casted) - return this - } - return this - } - public clickEffect(value: ClickEffect | undefined): this { - if (this.checkPriority("clickEffect")) { - const value_casted = value as (ClickEffect | undefined) - this.getPeer()?.setClickEffectAttribute(value_casted) - return this - } - return this - } - public onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): this { - if (this.checkPriority("onDragStart")) { - const value_casted = value as (((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined) - this.getPeer()?.setOnDragStartAttribute(value_casted) - return this - } - return this - } - public onDragEnter(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (this.checkPriority("onDragEnter")) { - const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) - this.getPeer()?.setOnDragEnterAttribute(value_casted) - return this - } - return this - } - public onDragMove(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (this.checkPriority("onDragMove")) { - const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) - this.getPeer()?.setOnDragMoveAttribute(value_casted) - return this - } - return this - } - public onDragLeave(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (this.checkPriority("onDragLeave")) { - const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) - this.getPeer()?.setOnDragLeaveAttribute(value_casted) - return this - } - return this - } - public onDrop(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (this.checkPriority("onDrop")) { - const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) - this.getPeer()?.setOnDrop0Attribute(value_casted) - return this - } - return this - } - public onDragEnd(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (this.checkPriority("onDragEnd")) { - const value_casted = value as (((event: DragEvent,extraParams?: string) => void) | undefined) - this.getPeer()?.setOnDragEndAttribute(value_casted) - return this - } - return this - } - public allowDrop(value: Array | undefined): this { - if (this.checkPriority("allowDrop")) { - const value_casted = value as (Array | undefined) - this.getPeer()?.setAllowDropAttribute(value_casted) - return this - } - return this - } - public draggable(value: boolean | undefined): this { - if (this.checkPriority("draggable")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setDraggableAttribute(value_casted) - return this - } - return this - } - public dragPreview(value: CustomBuilder | DragItemInfo | string | undefined): this { - if (this.checkPriority("dragPreview")) { - const value_casted = value as (CustomBuilder | DragItemInfo | string | undefined) - this.getPeer()?.setDragPreview0Attribute(value_casted) - return this - } - return this - } - public onPreDrag(value: ((value0: PreDragStatus) => void) | undefined): this { - if (this.checkPriority("onPreDrag")) { - const value_casted = value as (((value0: PreDragStatus) => void) | undefined) - this.getPeer()?.setOnPreDragAttribute(value_casted) - return this - } - return this - } - public linearGradient(value: LinearGradientOptions | undefined): this { - if (this.checkPriority("linearGradient")) { - const value_casted = value as (LinearGradientOptions | undefined) - this.getPeer()?.setLinearGradientAttribute(value_casted) - return this - } - return this - } - public sweepGradient(value: SweepGradientOptions | undefined): this { - if (this.checkPriority("sweepGradient")) { - const value_casted = value as (SweepGradientOptions | undefined) - this.getPeer()?.setSweepGradientAttribute(value_casted) - return this - } - return this - } - public radialGradient(value: RadialGradientOptions | undefined): this { - if (this.checkPriority("radialGradient")) { - const value_casted = value as (RadialGradientOptions | undefined) - this.getPeer()?.setRadialGradientAttribute(value_casted) - return this - } - return this - } - public motionPath(value: MotionPathOptions | undefined): this { - if (this.checkPriority("motionPath")) { - const value_casted = value as (MotionPathOptions | undefined) - this.getPeer()?.setMotionPathAttribute(value_casted) - return this - } - return this - } - public shadow(value: ShadowOptions | ShadowStyle | undefined): this { - if (this.checkPriority("shadow")) { - const value_casted = value as (ShadowOptions | ShadowStyle | undefined) - this.getPeer()?.setShadowAttribute(value_casted) - return this - } - return this - } - public clip(value: boolean | undefined): this { - if (this.checkPriority("clip")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setClipAttribute(value_casted) - return this - } - return this - } - public clipShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { - if (this.checkPriority("clipShape")) { - const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape | undefined) - this.getPeer()?.setClipShapeAttribute(value_casted) - return this - } - return this - } - public mask(value: ProgressMask | undefined): this { - if (this.checkPriority("mask")) { - const value_casted = value as (ProgressMask | undefined) - this.getPeer()?.setMaskAttribute(value_casted) - return this - } - return this - } - public maskShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { - if (this.checkPriority("maskShape")) { - const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape | undefined) - this.getPeer()?.setMaskShapeAttribute(value_casted) - return this - } - return this - } - public key(value: string | undefined): this { - if (this.checkPriority("key")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setKeyAttribute(value_casted) - return this - } - return this - } - public id(value: string | undefined): this { - if (this.checkPriority("id")) { - hookId(this, value) - const value_casted = value as (string | undefined) - this.getPeer()?.setIdAttribute(value_casted) - return this - } - return this - } - public geometryTransition(value: string | undefined): this { - if (this.checkPriority("geometryTransition")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setGeometryTransition0Attribute(value_casted) - return this - } - return this - } - public stateStyles(value: StateStyles | undefined): this { - if (this.checkPriority("stateStyles")) { - hookStateStyleImpl(this, value) - } - return this - } - public restoreId(value: number | undefined): this { - if (this.checkPriority("restoreId")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setRestoreIdAttribute(value_casted) - return this - } - return this - } - public sphericalEffect(value: number | undefined): this { - if (this.checkPriority("sphericalEffect")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setSphericalEffectAttribute(value_casted) - return this - } - return this - } - public lightUpEffect(value: number | undefined): this { - if (this.checkPriority("lightUpEffect")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setLightUpEffectAttribute(value_casted) - return this - } - return this - } - public pixelStretchEffect(value: PixelStretchEffectOptions | undefined): this { - if (this.checkPriority("pixelStretchEffect")) { - const value_casted = value as (PixelStretchEffectOptions | undefined) - this.getPeer()?.setPixelStretchEffectAttribute(value_casted) - return this - } - return this - } - public accessibilityGroup(value: boolean | undefined): this { - if (this.checkPriority("accessibilityGroup")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setAccessibilityGroup0Attribute(value_casted) - return this - } - return this - } - public accessibilityText(value: string | undefined): this { - if (this.checkPriority("accessibilityText")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setAccessibilityText0Attribute(value_casted) - return this - } - return this - } - public accessibilityNextFocusId(value: string | undefined): this { - if (this.checkPriority("accessibilityNextFocusId")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setAccessibilityNextFocusIdAttribute(value_casted) - return this - } - return this - } - public accessibilityDefaultFocus(value: boolean | undefined): this { - if (this.checkPriority("accessibilityDefaultFocus")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setAccessibilityDefaultFocusAttribute(value_casted) - return this - } - return this - } - public accessibilityUseSamePage(value: AccessibilitySamePageMode | undefined): this { - if (this.checkPriority("accessibilityUseSamePage")) { - const value_casted = value as (AccessibilitySamePageMode | undefined) - this.getPeer()?.setAccessibilityUseSamePageAttribute(value_casted) - return this - } - return this - } - public accessibilityScrollTriggerable(value: boolean | undefined): this { - if (this.checkPriority("accessibilityScrollTriggerable")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setAccessibilityScrollTriggerableAttribute(value_casted) - return this - } - return this - } - public accessibilityText(value: Resource | undefined): this { - if (this.checkPriority("accessibilityText")) { - const value_casted = value as (Resource | undefined) - this.getPeer()?.setAccessibilityText1Attribute(value_casted) - return this - } - return this - } - public accessibilityRole(value: AccessibilityRoleType | undefined): this { - if (this.checkPriority("accessibilityRole")) { - const value_casted = value as (AccessibilityRoleType | undefined) - this.getPeer()?.setAccessibilityRoleAttribute(value_casted) - return this - } - return this - } - public onAccessibilityFocus(value: AccessibilityFocusCallback | undefined): this { - if (this.checkPriority("onAccessibilityFocus")) { - const value_casted = value as (AccessibilityFocusCallback | undefined) - this.getPeer()?.setOnAccessibilityFocusAttribute(value_casted) - return this - } - return this - } - public accessibilityTextHint(value: string | undefined): this { - if (this.checkPriority("accessibilityTextHint")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setAccessibilityTextHintAttribute(value_casted) - return this - } - return this - } - public accessibilityDescription(value: string | undefined): this { - if (this.checkPriority("accessibilityDescription")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setAccessibilityDescription0Attribute(value_casted) - return this - } - return this - } - public accessibilityDescription(value: Resource | undefined): this { - if (this.checkPriority("accessibilityDescription")) { - const value_casted = value as (Resource | undefined) - this.getPeer()?.setAccessibilityDescription1Attribute(value_casted) - return this - } - return this - } - public accessibilityLevel(value: string | undefined): this { - if (this.checkPriority("accessibilityLevel")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setAccessibilityLevelAttribute(value_casted) - return this - } - return this - } - public accessibilityVirtualNode(value: CustomBuilder | undefined): this { - if (this.checkPriority("accessibilityVirtualNode")) { - const value_casted = value as (CustomBuilder | undefined) - this.getPeer()?.setAccessibilityVirtualNodeAttribute(value_casted) - return this - } - return this - } - public accessibilityChecked(value: boolean | undefined): this { - if (this.checkPriority("accessibilityChecked")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setAccessibilityCheckedAttribute(value_casted) - return this - } - return this - } - public accessibilitySelected(value: boolean | undefined): this { - if (this.checkPriority("accessibilitySelected")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setAccessibilitySelectedAttribute(value_casted) - return this - } - return this - } - public obscured(value: Array | undefined): this { - if (this.checkPriority("obscured")) { - const value_casted = value as (Array | undefined) - this.getPeer()?.setObscuredAttribute(value_casted) - return this - } - return this - } - public reuseId(value: string | undefined): this { - if (this.checkPriority("reuseId")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setReuseIdAttribute(value_casted) - return this - } - return this - } - public reuse(value: ReuseOptions | undefined): this { - if (this.checkPriority("reuse")) { - const value_casted = value as (ReuseOptions | undefined) - this.getPeer()?.setReuseAttribute(value_casted) - return this - } - return this - } - public renderFit(value: RenderFit | undefined): this { - if (this.checkPriority("renderFit")) { - const value_casted = value as (RenderFit | undefined) - this.getPeer()?.setRenderFitAttribute(value_casted) - return this - } - return this - } - public gestureModifier(value: GestureModifier | undefined): this { - if (this.checkPriority("gestureModifier")) { - const value_casted = value as (GestureModifier | undefined) - this.getPeer()?.setGestureModifierAttribute(value_casted) - return this - } - return this - } - public backgroundBrightness(value: BackgroundBrightnessOptions | undefined): this { - if (this.checkPriority("backgroundBrightness")) { - const value_casted = value as (BackgroundBrightnessOptions | undefined) - this.getPeer()?.setBackgroundBrightnessAttribute(value_casted) - return this - } - return this - } - public onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): this { - if (this.checkPriority("onGestureJudgeBegin")) { - const value_casted = value as (((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined) - this.getPeer()?.setOnGestureJudgeBeginAttribute(value_casted) - return this - } - return this - } - public onGestureRecognizerJudgeBegin(value: GestureRecognizerJudgeBeginCallback | undefined): this { - if (this.checkPriority("onGestureRecognizerJudgeBegin")) { - const value_casted = value as (GestureRecognizerJudgeBeginCallback | undefined) - this.getPeer()?.setOnGestureRecognizerJudgeBegin0Attribute(value_casted) - return this - } - return this - } - public shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): this { - if (this.checkPriority("shouldBuiltInRecognizerParallelWith")) { - const value_casted = value as (ShouldBuiltInRecognizerParallelWithCallback | undefined) - this.getPeer()?.setShouldBuiltInRecognizerParallelWithAttribute(value_casted) - return this - } - return this - } - public monopolizeEvents(value: boolean | undefined): this { - if (this.checkPriority("monopolizeEvents")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setMonopolizeEventsAttribute(value_casted) - return this - } - return this - } - public onTouchIntercept(value: ((value0: TouchEvent) => HitTestMode) | undefined): this { - if (this.checkPriority("onTouchIntercept")) { - const value_casted = value as (((value0: TouchEvent) => HitTestMode) | undefined) - this.getPeer()?.setOnTouchInterceptAttribute(value_casted) - return this - } - return this - } - public onSizeChange(value: SizeChangeCallback | undefined): this { - if (this.checkPriority("onSizeChange")) { - const value_casted = value as (SizeChangeCallback | undefined) - this.getPeer()?.setOnSizeChangeAttribute(value_casted) - return this - } - return this - } - public accessibilityFocusDrawLevel(value: FocusDrawLevel | undefined): this { - if (this.checkPriority("accessibilityFocusDrawLevel")) { - const value_casted = value as (FocusDrawLevel | undefined) - this.getPeer()?.setAccessibilityFocusDrawLevelAttribute(value_casted) - return this - } - return this - } - public customProperty(name: string, value: CustomProperty): this { - if (this.checkPriority("customProperty")) { - const name_casted = name as (string) - const value_casted = value as (CustomProperty) - this.getPeer()?.setCustomPropertyAttribute(name_casted, value_casted) - return this - } - return 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) - this.getPeer()?.setExpandSafeAreaAttribute(types_casted, edges_casted) - return this - } - return this - } - public background(builder: CustomBuilder | undefined, options?: BackgroundOptions): this { - if (this.checkPriority("background")) { - const builder_casted = builder as (CustomBuilder | undefined) - const options_casted = options as (BackgroundOptions | undefined) - this.getPeer()?.setBackgroundAttribute(builder_casted, options_casted) - return this - } - return this - } - public backgroundImage(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): this { - if (this.checkPriority("backgroundImage")) { - const src_casted = src as (ResourceStr | image.PixelMap | undefined) - const repeat_casted = repeat as (ImageRepeat | undefined) - this.getPeer()?.setBackgroundImage0Attribute(src_casted, repeat_casted) - return this - } - return this - } - public backgroundImage(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): this { - if (this.checkPriority("backgroundImage")) { - const src_casted = src as (ResourceStr | image.PixelMap | undefined) - const options_casted = options as (BackgroundImageOptions | undefined) - this.getPeer()?.setBackgroundImage1Attribute(src_casted, options_casted) - return this - } - return this - } - public backgroundBlurStyle(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { - if (this.checkPriority("backgroundBlurStyle")) { - const style_casted = style as (BlurStyle | undefined) - const options_casted = options as (BackgroundBlurStyleOptions | undefined) - const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) - this.getPeer()?.setBackgroundBlurStyleAttribute(style_casted, options_casted, sysOptions_casted) - return this - } - return this - } - public backgroundEffect(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): this { - if (this.checkPriority("backgroundEffect")) { - const options_casted = options as (BackgroundEffectOptions | undefined) - const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) - this.getPeer()?.setBackgroundEffect1Attribute(options_casted, sysOptions_casted) - return this - } - return this - } - public foregroundBlurStyle(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { - if (this.checkPriority("foregroundBlurStyle")) { - const style_casted = style as (BlurStyle | undefined) - const options_casted = options as (ForegroundBlurStyleOptions | undefined) - const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) - this.getPeer()?.setForegroundBlurStyleAttribute(style_casted, options_casted, sysOptions_casted) - return this - } - return this - } - public onClick(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): this { - if (this.checkPriority("onClick")) { - const event_casted = event as (((event: ClickEvent) => void) | undefined) - const distanceThreshold_casted = distanceThreshold as (number | undefined) - this.getPeer()?.setOnClick1Attribute(event_casted, distanceThreshold_casted) - return this - } - return this - } - public focusScopeId(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): this { - if (this.checkPriority("focusScopeId")) { - const id_casted = id as (string | undefined) - const isGroup_casted = isGroup as (boolean | undefined) - const arrowStepOut_casted = arrowStepOut as (boolean | undefined) - this.getPeer()?.setFocusScopeIdAttribute(id_casted, isGroup_casted, arrowStepOut_casted) - return this - } - return this - } - public focusScopePriority(scopeId: string | undefined, priority?: FocusPriority): this { - if (this.checkPriority("focusScopePriority")) { - const scopeId_casted = scopeId as (string | undefined) - const priority_casted = priority as (FocusPriority | undefined) - this.getPeer()?.setFocusScopePriorityAttribute(scopeId_casted, priority_casted) - return this - } - return this - } - public transition(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): this { - if (this.checkPriority("transition")) { - const effect_casted = effect as (TransitionEffect | undefined) - const onFinish_casted = onFinish as (TransitionFinishCallback | undefined) - this.getPeer()?.setTransition1Attribute(effect_casted, onFinish_casted) - return this - } - return this - } - public gesture(gesture: GestureType | undefined, mask?: GestureMask): this { - if (this.checkPriority("gesture")) { - const gesture_casted = gesture as (GestureType | undefined) - const mask_casted = mask as (GestureMask | undefined) - this.getPeer()?.setGestureAttribute(gesture_casted, mask_casted) - return this - } - return this - } - public priorityGesture(gesture: GestureType | undefined, mask?: GestureMask): this { - if (this.checkPriority("priorityGesture")) { - const gesture_casted = gesture as (GestureType | undefined) - const mask_casted = mask as (GestureMask | undefined) - this.getPeer()?.setPriorityGestureAttribute(gesture_casted, mask_casted) - return this - } - return this - } - public parallelGesture(gesture: GestureType | undefined, mask?: GestureMask): this { - if (this.checkPriority("parallelGesture")) { - const gesture_casted = gesture as (GestureType | undefined) - const mask_casted = mask as (GestureMask | undefined) - this.getPeer()?.setParallelGestureAttribute(gesture_casted, mask_casted) - return this - } - return this - } - public blur(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { - if (this.checkPriority("blur")) { - const blurRadius_casted = blurRadius as (number | undefined) - const options_casted = options as (BlurOptions | undefined) - const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) - this.getPeer()?.setBlurAttribute(blurRadius_casted, options_casted, sysOptions_casted) - return this - } - return this - } - public linearGradientBlur(value: number | undefined, options: LinearGradientBlurOptions | undefined): this { - if (this.checkPriority("linearGradientBlur")) { - const value_casted = value as (number | undefined) - const options_casted = options as (LinearGradientBlurOptions | undefined) - this.getPeer()?.setLinearGradientBlurAttribute(value_casted, options_casted) - return this - } - return this - } - public systemBarEffect(): this { - if (this.checkPriority("systemBarEffect")) { - this.getPeer()?.setSystemBarEffectAttribute() - return this - } - return this - } - public useEffect(useEffect: boolean | undefined, effectType: EffectType | undefined): this { - if (this.checkPriority("useEffect")) { - const useEffect_casted = useEffect as (boolean | undefined) - const effectType_casted = effectType as (EffectType | undefined) - this.getPeer()?.setUseEffect1Attribute(useEffect_casted, effectType_casted) - return this - } - return this - } - public backdropBlur(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { - if (this.checkPriority("backdropBlur")) { - const radius_casted = radius as (number | undefined) - const options_casted = options as (BlurOptions | undefined) - const sysOptions_casted = sysOptions as (SystemAdaptiveOptions | undefined) - this.getPeer()?.setBackdropBlurAttribute(radius_casted, options_casted, sysOptions_casted) - return this - } - return this - } - public sharedTransition(id: string | undefined, options?: sharedTransitionOptions): this { - if (this.checkPriority("sharedTransition")) { - const id_casted = id as (string | undefined) - const options_casted = options as (sharedTransitionOptions | undefined) - this.getPeer()?.setSharedTransitionAttribute(id_casted, options_casted) - return this - } - return this - } - public chainMode(direction: Axis | undefined, style: ChainStyle | undefined): this { - if (this.checkPriority("chainMode")) { - const direction_casted = direction as (Axis | undefined) - const style_casted = style as (ChainStyle | undefined) - this.getPeer()?.setChainModeAttribute(direction_casted, style_casted) - return this - } - return this - } - public onDrop(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): this { - if (this.checkPriority("onDrop")) { - const eventCallback_casted = eventCallback as (OnDragEventCallback | undefined) - const dropOptions_casted = dropOptions as (DropOptions | undefined) - this.getPeer()?.setOnDrop1Attribute(eventCallback_casted, dropOptions_casted) - return this - } - return this - } - public dragPreview(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): this { - if (this.checkPriority("dragPreview")) { - const preview_casted = preview as (CustomBuilder | DragItemInfo | string | undefined) - const config_casted = config as (PreviewConfiguration | undefined) - this.getPeer()?.setDragPreview1Attribute(preview_casted, config_casted) - return this - } - return this - } - public dragPreviewOptions(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): this { - if (this.checkPriority("dragPreviewOptions")) { - const value_casted = value as (DragPreviewOptions | undefined) - const options_casted = options as (DragInteractionOptions | undefined) - this.getPeer()?.setDragPreviewOptionsAttribute(value_casted, options_casted) - return this - } - return this - } - public overlay(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): this { - if (this.checkPriority("overlay")) { - const value_casted = value as (string | CustomBuilder | ComponentContent | undefined) - const options_casted = options as (OverlayOptions | undefined) - this.getPeer()?.setOverlayAttribute(value_casted, options_casted) - return this - } - return this - } - public blendMode(value: BlendMode | undefined, type?: BlendApplyType): this { - if (this.checkPriority("blendMode")) { - const value_casted = value as (BlendMode | undefined) - const type_casted = type as (BlendApplyType | undefined) - this.getPeer()?.setBlendModeAttribute(value_casted, type_casted) - return this - } - return this - } - public advancedBlendMode(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): this { - if (this.checkPriority("advancedBlendMode")) { - const effect_casted = effect as (BlendMode | uiEffect.Blender) - const type_casted = type as (BlendApplyType | undefined) - this.getPeer()?.setAdvancedBlendModeAttribute(effect_casted, type_casted) - return this - } - return this - } - public geometryTransition(id: string | undefined, options?: GeometryTransitionOptions): this { - if (this.checkPriority("geometryTransition")) { - const id_casted = id as (string | undefined) - const options_casted = options as (GeometryTransitionOptions | undefined) - this.getPeer()?.setGeometryTransition1Attribute(id_casted, options_casted) - return this - } - return this - } - public bindTips(message: TipsMessageType | undefined, options?: TipsOptions): this { - if (this.checkPriority("bindTips")) { - const message_casted = message as (TipsMessageType | undefined) - const options_casted = options as (TipsOptions | undefined) - this.getPeer()?.setBindTipsAttribute(message_casted, options_casted) - return this - } - return this - } - public bindPopup(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): this { - if (this.checkPriority("bindPopup")) { - const show_casted = show as (boolean | undefined) - const popup_casted = popup as (PopupOptions | CustomPopupOptions | undefined) - this.getPeer()?.setBindPopupAttribute(show_casted, popup_casted) - return this - } - return this - } - public bindMenu(content: Array | CustomBuilder | undefined, options?: MenuOptions): this { - if (this.checkPriority("bindMenu")) { - const content_casted = content as (Array | CustomBuilder | undefined) - const options_casted = options as (MenuOptions | undefined) - this.getPeer()?.setBindMenu0Attribute(content_casted, options_casted) - return this - } - return this - } - public bindMenu(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): this { - if (this.checkPriority("bindMenu")) { - const isShow_casted = isShow as (boolean | undefined) - const content_casted = content as (Array | CustomBuilder | undefined) - const options_casted = options as (MenuOptions | undefined) - this.getPeer()?.setBindMenu1Attribute(isShow_casted, content_casted, options_casted) - return this - } - return this - } - public bindContextMenu(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): this { - if (this.checkPriority("bindContextMenu")) { - const content_casted = content as (CustomBuilder | undefined) - const responseType_casted = responseType as (ResponseType | undefined) - const options_casted = options as (ContextMenuOptions | undefined) - this.getPeer()?.setBindContextMenu0Attribute(content_casted, responseType_casted, options_casted) - return this - } - return this - } - public bindContextMenu(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): this { - if (this.checkPriority("bindContextMenu")) { - const isShown_casted = isShown as (boolean | undefined) - const content_casted = content as (CustomBuilder | undefined) - const options_casted = options as (ContextMenuOptions | undefined) - this.getPeer()?.setBindContextMenu1Attribute(isShown_casted, content_casted, options_casted) - return this - } - return this - } - public bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): this { - if (this.checkPriority("bindContentCover")) { - const isShow_casted = isShow as (boolean | Bindable | undefined) - const builder_casted = builder as (CustomBuilder | undefined) - const type_casted = type as (ModalTransition | undefined) - this.getPeer()?.setBindContentCover0Attribute(isShow_casted, builder_casted, type_casted) - return this - } - return this - } - public bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): this { - if (this.checkPriority("bindContentCover")) { - const isShow_casted = isShow as (boolean | Bindable | undefined) - const builder_casted = builder as (CustomBuilder | undefined) - const options_casted = options as (ContentCoverOptions | undefined) - this.getPeer()?.setBindContentCover1Attribute(isShow_casted, builder_casted, options_casted) - return this - } - return this - } - public bindSheet(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): this { - if (this.checkPriority("bindSheet")) { - const isShow_casted = isShow as (boolean | Bindable | undefined) - const builder_casted = builder as (CustomBuilder | undefined) - const options_casted = options as (SheetOptions | undefined) - this.getPeer()?.setBindSheetAttribute(isShow_casted, builder_casted, options_casted) - return this - } - return this - } - public onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this { - if (this.checkPriority("onVisibleAreaChange")) { - const ratios_casted = ratios as (Array | undefined) - const event_casted = event as (VisibleAreaChangeCallback | undefined) - this.getPeer()?.setOnVisibleAreaChangeAttribute(ratios_casted, event_casted) - return this - } - return this - } - public onVisibleAreaApproximateChange(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): this { - if (this.checkPriority("onVisibleAreaApproximateChange")) { - const options_casted = options as (VisibleAreaEventOptions | undefined) - const event_casted = event as (VisibleAreaChangeCallback | undefined) - this.getPeer()?.setOnVisibleAreaApproximateChangeAttribute(options_casted, event_casted) - return this - } - return this - } - public keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): this { - if (this.checkPriority("keyboardShortcut")) { - const value_casted = value as (string | FunctionKey | undefined) - const keys_casted = keys as (Array | undefined) - const action_casted = action as ((() => void) | undefined) - this.getPeer()?.setKeyboardShortcutAttribute(value_casted, keys_casted, action_casted) - return this - } - return this - } - public accessibilityGroup(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): this { - if (this.checkPriority("accessibilityGroup")) { - const isGroup_casted = isGroup as (boolean | undefined) - const accessibilityOptions_casted = accessibilityOptions as (AccessibilityOptions | undefined) - this.getPeer()?.setAccessibilityGroup1Attribute(isGroup_casted, accessibilityOptions_casted) - return this - } - return this - } - public onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): this { - if (this.checkPriority("onGestureRecognizerJudgeBegin")) { - const callback__casted = callback_ as (GestureRecognizerJudgeBeginCallback | undefined) - const exposeInnerGesture_casted = exposeInnerGesture as (boolean | undefined) - this.getPeer()?.setOnGestureRecognizerJudgeBegin1Attribute(callback__casted, exposeInnerGesture_casted) - return this - } - return this - } - public attributeModifier(value: AttributeModifier | undefined): this { - return this - } - public applyAttributesFinish(): void { - // we call this function outside of class, so need to make it public - super.applyAttributesFinish() - } -} -export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent implements CommonShapeMethod { - getPeer(): ArkCommonShapeMethodPeer { - return (this.peer as ArkCommonShapeMethodPeer) - } - public stroke(value: ResourceColor | undefined): this { - if (this.checkPriority("stroke")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setStrokeAttribute(value_casted) - return this - } - return this - } - public fill(value: ResourceColor | undefined): this { - if (this.checkPriority("fill")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setFillAttribute(value_casted) - return this - } - return this - } - public strokeDashOffset(value: number | string | undefined): this { - if (this.checkPriority("strokeDashOffset")) { - const value_casted = value as (number | string | undefined) - this.getPeer()?.setStrokeDashOffsetAttribute(value_casted) - return this - } - return this - } - public strokeLineCap(value: LineCapStyle | undefined): this { - if (this.checkPriority("strokeLineCap")) { - const value_casted = value as (LineCapStyle | undefined) - this.getPeer()?.setStrokeLineCapAttribute(value_casted) - return this - } - return this - } - public strokeLineJoin(value: LineJoinStyle | undefined): this { - if (this.checkPriority("strokeLineJoin")) { - const value_casted = value as (LineJoinStyle | undefined) - this.getPeer()?.setStrokeLineJoinAttribute(value_casted) - return this - } - return this - } - public strokeMiterLimit(value: number | string | undefined): this { - if (this.checkPriority("strokeMiterLimit")) { - const value_casted = value as (number | string | undefined) - this.getPeer()?.setStrokeMiterLimitAttribute(value_casted) - return this - } - return this - } - public strokeOpacity(value: number | string | Resource | undefined): this { - if (this.checkPriority("strokeOpacity")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setStrokeOpacityAttribute(value_casted) - return this - } - return this - } - public fillOpacity(value: number | string | Resource | undefined): this { - if (this.checkPriority("fillOpacity")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setFillOpacityAttribute(value_casted) - return this - } - return this - } - public strokeWidth(value: Length | undefined): this { - if (this.checkPriority("strokeWidth")) { - const value_casted = value as (Length | undefined) - this.getPeer()?.setStrokeWidthAttribute(value_casted) - return this - } - return this - } - public antiAlias(value: boolean | undefined): this { - if (this.checkPriority("antiAlias")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setAntiAliasAttribute(value_casted) - return this - } - return this - } - public strokeDashArray(value: Array | undefined): this { - if (this.checkPriority("strokeDashArray")) { - const value_casted = value as (Array | undefined) - this.getPeer()?.setStrokeDashArrayAttribute(value_casted) - return this - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - return this - } - public applyAttributesFinish(): void { - // we call this function outside of class, so need to make it public - super.applyAttributesFinish() - } -} -export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent implements ScrollableCommonMethod { - getPeer(): ArkScrollableCommonMethodPeer { - return (this.peer as ArkScrollableCommonMethodPeer) - } - public scrollBar(value: BarState | undefined): this { - if (this.checkPriority("scrollBar")) { - const value_casted = value as (BarState | undefined) - this.getPeer()?.setScrollBarAttribute(value_casted) - return this - } - return this - } - public scrollBarColor(value: Color | number | string | undefined): this { - if (this.checkPriority("scrollBarColor")) { - const value_casted = value as (Color | number | string | undefined) - this.getPeer()?.setScrollBarColorAttribute(value_casted) - return this - } - return this - } - public scrollBarWidth(value: number | string | undefined): this { - if (this.checkPriority("scrollBarWidth")) { - const value_casted = value as (number | string | undefined) - this.getPeer()?.setScrollBarWidthAttribute(value_casted) - return this - } - return this - } - public nestedScroll(value: NestedScrollOptions | undefined): this { - if (this.checkPriority("nestedScroll")) { - const value_casted = value as (NestedScrollOptions | undefined) - this.getPeer()?.setNestedScrollAttribute(value_casted) - return this - } - return this - } - public enableScrollInteraction(value: boolean | undefined): this { - if (this.checkPriority("enableScrollInteraction")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEnableScrollInteractionAttribute(value_casted) - return this - } - return this - } - public friction(value: number | Resource | undefined): this { - if (this.checkPriority("friction")) { - const value_casted = value as (number | Resource | undefined) - this.getPeer()?.setFrictionAttribute(value_casted) - return this - } - return this - } - public onReachStart(value: (() => void) | undefined): this { - if (this.checkPriority("onReachStart")) { - const value_casted = value as ((() => void) | undefined) - this.getPeer()?.setOnReachStartAttribute(value_casted) - return this - } - return this - } - public onReachEnd(value: (() => void) | undefined): this { - if (this.checkPriority("onReachEnd")) { - const value_casted = value as ((() => void) | undefined) - this.getPeer()?.setOnReachEndAttribute(value_casted) - return this - } - return this - } - public onScrollStart(value: (() => void) | undefined): this { - if (this.checkPriority("onScrollStart")) { - const value_casted = value as ((() => void) | undefined) - this.getPeer()?.setOnScrollStartAttribute(value_casted) - return this - } - return this - } - public onScrollStop(value: (() => void) | undefined): this { - if (this.checkPriority("onScrollStop")) { - const value_casted = value as ((() => void) | undefined) - this.getPeer()?.setOnScrollStopAttribute(value_casted) - return this - } - return this - } - public flingSpeedLimit(value: number | undefined): this { - if (this.checkPriority("flingSpeedLimit")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setFlingSpeedLimitAttribute(value_casted) - return this - } - return this - } - public clipContent(value: ContentClipMode | RectShape | undefined): this { - if (this.checkPriority("clipContent")) { - const value_casted = value as (ContentClipMode | RectShape | undefined) - this.getPeer()?.setClipContentAttribute(value_casted) - return this - } - return this - } - public digitalCrownSensitivity(value: CrownSensitivity | undefined): this { - if (this.checkPriority("digitalCrownSensitivity")) { - const value_casted = value as (CrownSensitivity | undefined) - this.getPeer()?.setDigitalCrownSensitivityAttribute(value_casted) - return this - } - return this - } - public backToTop(value: boolean | undefined): this { - if (this.checkPriority("backToTop")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setBackToTopAttribute(value_casted) - return this - } - return this - } - public edgeEffect(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): this { - if (this.checkPriority("edgeEffect")) { - const edgeEffect_casted = edgeEffect as (EdgeEffect | undefined) - const options_casted = options as (EdgeEffectOptions | undefined) - this.getPeer()?.setEdgeEffectAttribute(edgeEffect_casted, options_casted) - return this - } - return this - } - public fadingEdge(enabled: boolean | undefined, options?: FadingEdgeOptions): this { - if (this.checkPriority("fadingEdge")) { - const enabled_casted = enabled as (boolean | undefined) - const options_casted = options as (FadingEdgeOptions | undefined) - this.getPeer()?.setFadingEdgeAttribute(enabled_casted, options_casted) - return this - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - return this - } - public applyAttributesFinish(): void { - // we call this function outside of class, so need to make it public - super.applyAttributesFinish() - } -} -export class CommonMethodModifier implements CommonMethod { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _width_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _width_0_0value?: Length | LayoutPolicy | undefined - _height_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _height_0_0value?: Length | LayoutPolicy | undefined - _drawModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _drawModifier_0_0value?: DrawModifier | undefined - _responseRegion_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _responseRegion_0_0value?: Array | Rectangle | undefined - _mouseResponseRegion_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mouseResponseRegion_0_0value?: Array | Rectangle | undefined - _size_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _size_0_0value?: SizeOptions | undefined - _constraintSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _constraintSize_0_0value?: ConstraintSizeOptions | undefined - _hitTestBehavior_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hitTestBehavior_0_0value?: HitTestMode | undefined - _onChildTouchTest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChildTouchTest_0_0value?: ((value: Array) => TouchResult) | undefined - _layoutWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _layoutWeight_0_0value?: number | string | undefined - _chainWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _chainWeight_0_0value?: ChainWeightOptions | undefined - _padding_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _padding_0_0value?: Padding | Length | LocalizedPadding | undefined - _safeAreaPadding_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _safeAreaPadding_0_0value?: Padding | LengthMetrics | LocalizedPadding | undefined - _margin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _margin_0_0value?: Padding | Length | LocalizedPadding | undefined - _backgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundColor_0_0value?: ResourceColor | undefined - _pixelRound_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pixelRound_0_0value?: PixelRoundPolicy | undefined - _backgroundImageSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundImageSize_0_0value?: SizeOptions | ImageSize | undefined - _backgroundImagePosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundImagePosition_0_0value?: Position | Alignment | undefined - _backgroundEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundEffect_0_0value?: BackgroundEffectOptions | undefined - _backgroundImageResizable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundImageResizable_0_0value?: ResizableOptions | undefined - _foregroundEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _foregroundEffect_0_0value?: ForegroundEffectOptions | undefined - _visualEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _visualEffect_0_0value?: uiEffect.VisualEffect | undefined - _backgroundFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundFilter_0_0value?: uiEffect.Filter | undefined - _foregroundFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _foregroundFilter_0_0value?: uiEffect.Filter | undefined - _compositingFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _compositingFilter_0_0value?: uiEffect.Filter | undefined - _opacity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _opacity_0_0value?: number | Resource | undefined - _border_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _border_0_0value?: BorderOptions | undefined - _borderStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _borderStyle_0_0value?: BorderStyle | EdgeStyles | undefined - _borderWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _borderWidth_0_0value?: Length | EdgeWidths | LocalizedEdgeWidths | undefined - _borderColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _borderColor_0_0value?: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined - _borderRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _borderRadius_0_0value?: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined - _borderImage_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _borderImage_0_0value?: BorderImageOption | undefined - _outline_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _outline_0_0value?: OutlineOptions | undefined - _outlineStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _outlineStyle_0_0value?: OutlineStyle | EdgeOutlineStyles | undefined - _outlineWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _outlineWidth_0_0value?: Dimension | EdgeOutlineWidths | undefined - _outlineColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _outlineColor_0_0value?: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined - _outlineRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _outlineRadius_0_0value?: Dimension | OutlineRadiuses | undefined - _foregroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _foregroundColor_0_0value?: ResourceColor | ColoringStrategy | undefined - _onClick_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onClick_0_0value?: ((event: ClickEvent) => void) | undefined - _onHover_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onHover_0_0value?: ((isHover: boolean,event: HoverEvent) => void) | undefined - _onHoverMove_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onHoverMove_0_0value?: ((value0: HoverEvent) => void) | undefined - _onAccessibilityHover_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAccessibilityHover_0_0value?: AccessibilityCallback | undefined - _hoverEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hoverEffect_0_0value?: HoverEffect | undefined - _onMouse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onMouse_0_0value?: ((event: MouseEvent) => void) | undefined - _onTouch_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTouch_0_0value?: ((event: TouchEvent) => void) | undefined - _onKeyEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onKeyEvent_0_0value?: ((event: KeyEvent) => void) | undefined - _onDigitalCrown_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDigitalCrown_0_0value?: ((value0: CrownEvent) => void) | undefined - _onKeyPreIme_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onKeyPreIme_0_0value?: ((value0: KeyEvent) => boolean) | undefined - _onKeyEventDispatch_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onKeyEventDispatch_0_0value?: ((value0: KeyEvent) => boolean) | undefined - _onFocusAxisEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFocusAxisEvent_0_0value?: ((value0: FocusAxisEvent) => void) | undefined - _onAxisEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAxisEvent_0_0value?: ((value0: AxisEvent) => void) | undefined - _focusable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _focusable_0_0value?: boolean | undefined - _nextFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _nextFocus_0_0value?: FocusMovement | undefined - _tabStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _tabStop_0_0value?: boolean | undefined - _onFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFocus_0_0value?: (() => void) | undefined - _onBlur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onBlur_0_0value?: (() => void) | undefined - _tabIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _tabIndex_0_0value?: number | undefined - _defaultFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _defaultFocus_0_0value?: boolean | undefined - _groupDefaultFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _groupDefaultFocus_0_0value?: boolean | undefined - _focusOnTouch_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _focusOnTouch_0_0value?: boolean | undefined - _focusBox_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _focusBox_0_0value?: FocusBoxStyle | undefined - _animation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _animation_0_0value?: AnimateParam | undefined - _transition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _transition_0_0value?: TransitionEffect | undefined - _motionBlur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _motionBlur_0_0value?: MotionBlurOptions | undefined - _brightness_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _brightness_0_0value?: number | undefined - _contrast_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _contrast_0_0value?: number | undefined - _grayscale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _grayscale_0_0value?: number | undefined - _colorBlend_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _colorBlend_0_0value?: Color | string | Resource | undefined - _saturate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _saturate_0_0value?: number | undefined - _sepia_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sepia_0_0value?: number | undefined - _invert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _invert_0_0value?: number | InvertOptions | undefined - _hueRotate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hueRotate_0_0value?: number | string | undefined - _useShadowBatching_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _useShadowBatching_0_0value?: boolean | undefined - _useEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _useEffect_0_0value?: boolean | undefined - _renderGroup_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _renderGroup_0_0value?: boolean | undefined - _freeze_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _freeze_0_0value?: boolean | undefined - _translate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _translate_0_0value?: TranslateOptions | undefined - _scale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _scale_0_0value?: ScaleOptions | undefined - _rotate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _rotate_0_0value?: RotateOptions | undefined - _transform_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _transform_0_0value?: Object | undefined - _onAppear_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAppear_0_0value?: (() => void) | undefined - _onDisAppear_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDisAppear_0_0value?: (() => void) | undefined - _onAttach_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAttach_0_0value?: VoidCallback | undefined - _onDetach_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDetach_0_0value?: VoidCallback | undefined - _onAreaChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAreaChange_0_0value?: ((oldValue: Area,newValue: Area) => void) | undefined - _visibility_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _visibility_0_0value?: Visibility | undefined - _flexGrow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _flexGrow_0_0value?: number | undefined - _flexShrink_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _flexShrink_0_0value?: number | undefined - _flexBasis_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _flexBasis_0_0value?: number | string | undefined - _alignSelf_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alignSelf_0_0value?: ItemAlign | undefined - _displayPriority_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _displayPriority_0_0value?: number | undefined - _zIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _zIndex_0_0value?: number | undefined - _direction_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _direction_0_0value?: Direction | undefined - _align_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _align_0_0value?: Alignment | undefined - _position_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _position_0_0value?: Position | Edges | LocalizedEdges | undefined - _markAnchor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _markAnchor_0_0value?: Position | LocalizedPosition | undefined - _offset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _offset_0_0value?: Position | Edges | LocalizedEdges | undefined - _enabled_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enabled_0_0value?: boolean | undefined - _alignRules_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alignRules_0_0value?: AlignRuleOption | undefined - _alignRules_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alignRules_1_0value?: LocalizedAlignRuleOptions | undefined - _aspectRatio_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _aspectRatio_0_0value?: number | undefined - _clickEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _clickEffect_0_0value?: ClickEffect | undefined - _onDragStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDragStart_0_0value?: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined - _onDragEnter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDragEnter_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined - _onDragMove_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDragMove_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined - _onDragLeave_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDragLeave_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined - _onDrop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDrop_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined - _onDragEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDragEnd_0_0value?: ((event: DragEvent,extraParams?: string) => void) | undefined - _allowDrop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _allowDrop_0_0value?: Array | undefined - _draggable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _draggable_0_0value?: boolean | undefined - _dragPreview_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _dragPreview_0_0value?: CustomBuilder | DragItemInfo | string | undefined - _onPreDrag_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPreDrag_0_0value?: ((value0: PreDragStatus) => void) | undefined - _linearGradient_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _linearGradient_0_0value?: LinearGradientOptions | undefined - _sweepGradient_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sweepGradient_0_0value?: SweepGradientOptions | undefined - _radialGradient_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _radialGradient_0_0value?: RadialGradientOptions | undefined - _motionPath_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _motionPath_0_0value?: MotionPathOptions | undefined - _shadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _shadow_0_0value?: ShadowOptions | ShadowStyle | undefined - _clip_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _clip_0_0value?: boolean | undefined - _clipShape_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _clipShape_0_0value?: CircleShape | EllipseShape | PathShape | RectShape | undefined - _mask_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mask_0_0value?: ProgressMask | undefined - _maskShape_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maskShape_0_0value?: CircleShape | EllipseShape | PathShape | RectShape | undefined - _key_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _key_0_0value?: string | undefined - _id_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _id_0_0value?: string | undefined - _geometryTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _geometryTransition_0_0value?: string | undefined - _restoreId_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _restoreId_0_0value?: number | undefined - _sphericalEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sphericalEffect_0_0value?: number | undefined - _lightUpEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _lightUpEffect_0_0value?: number | undefined - _pixelStretchEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pixelStretchEffect_0_0value?: PixelStretchEffectOptions | undefined - _accessibilityGroup_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityGroup_0_0value?: boolean | undefined - _accessibilityText_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityText_0_0value?: string | undefined - _accessibilityNextFocusId_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityNextFocusId_0_0value?: string | undefined - _accessibilityDefaultFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityDefaultFocus_0_0value?: boolean | undefined - _accessibilityUseSamePage_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityUseSamePage_0_0value?: AccessibilitySamePageMode | undefined - _accessibilityScrollTriggerable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityScrollTriggerable_0_0value?: boolean | undefined - _accessibilityText_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityText_1_0value?: Resource | undefined - _accessibilityRole_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityRole_0_0value?: AccessibilityRoleType | undefined - _onAccessibilityFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAccessibilityFocus_0_0value?: AccessibilityFocusCallback | undefined - _accessibilityTextHint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityTextHint_0_0value?: string | undefined - _accessibilityDescription_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityDescription_0_0value?: string | undefined - _accessibilityDescription_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityDescription_1_0value?: Resource | undefined - _accessibilityLevel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityLevel_0_0value?: string | undefined - _accessibilityVirtualNode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityVirtualNode_0_0value?: CustomBuilder | undefined - _accessibilityChecked_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityChecked_0_0value?: boolean | undefined - _accessibilitySelected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilitySelected_0_0value?: boolean | undefined - _obscured_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _obscured_0_0value?: Array | undefined - _reuseId_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _reuseId_0_0value?: string | undefined - _reuse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _reuse_0_0value?: ReuseOptions | undefined - _renderFit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _renderFit_0_0value?: RenderFit | undefined - _gestureModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _gestureModifier_0_0value?: GestureModifier | undefined - _backgroundBrightness_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundBrightness_0_0value?: BackgroundBrightnessOptions | undefined - _onGestureJudgeBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onGestureJudgeBegin_0_0value?: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined - _onGestureRecognizerJudgeBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onGestureRecognizerJudgeBegin_0_0value?: GestureRecognizerJudgeBeginCallback | undefined - _shouldBuiltInRecognizerParallelWith_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _shouldBuiltInRecognizerParallelWith_0_0value?: ShouldBuiltInRecognizerParallelWithCallback | undefined - _monopolizeEvents_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _monopolizeEvents_0_0value?: boolean | undefined - _onTouchIntercept_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTouchIntercept_0_0value?: ((value0: TouchEvent) => HitTestMode) | undefined - _onSizeChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSizeChange_0_0value?: SizeChangeCallback | undefined - _accessibilityFocusDrawLevel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityFocusDrawLevel_0_0value?: FocusDrawLevel | undefined - _customProperty_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _customProperty_0_0value?: string - _customProperty_0_1value?: CustomProperty - _expandSafeArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _expandSafeArea_0_0value?: Array | undefined - _expandSafeArea_0_1value?: Array | undefined - _background_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _background_0_0value?: CustomBuilder | undefined - _background_0_1value?: BackgroundOptions | undefined - _backgroundImage_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundImage_0_0value?: ResourceStr | image.PixelMap | undefined - _backgroundImage_0_1value?: ImageRepeat | undefined - _backgroundImage_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundImage_1_0value?: ResourceStr | image.PixelMap | undefined - _backgroundImage_1_1value?: BackgroundImageOptions | undefined - _backgroundBlurStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundBlurStyle_0_0value?: BlurStyle | undefined - _backgroundBlurStyle_0_1value?: BackgroundBlurStyleOptions | undefined - _backgroundBlurStyle_0_2value?: SystemAdaptiveOptions | undefined - _backgroundEffect_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundEffect_1_0value?: BackgroundEffectOptions | undefined - _backgroundEffect_1_1value?: SystemAdaptiveOptions | undefined - _foregroundBlurStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _foregroundBlurStyle_0_0value?: BlurStyle | undefined - _foregroundBlurStyle_0_1value?: ForegroundBlurStyleOptions | undefined - _foregroundBlurStyle_0_2value?: SystemAdaptiveOptions | undefined - _onClick_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onClick_1_0value?: ((event: ClickEvent) => void) | undefined - _onClick_1_1value?: number | undefined - _focusScopeId_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _focusScopeId_0_0value?: string | undefined - _focusScopeId_0_1value?: boolean | undefined - _focusScopeId_0_2value?: boolean | undefined - _focusScopePriority_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _focusScopePriority_0_0value?: string | undefined - _focusScopePriority_0_1value?: FocusPriority | undefined - _transition_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _transition_1_0value?: TransitionEffect | undefined - _transition_1_1value?: TransitionFinishCallback | undefined - _gesture_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _gesture_0_0value?: GestureType | undefined - _gesture_0_1value?: GestureMask | undefined - _priorityGesture_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _priorityGesture_0_0value?: GestureType | undefined - _priorityGesture_0_1value?: GestureMask | undefined - _parallelGesture_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _parallelGesture_0_0value?: GestureType | undefined - _parallelGesture_0_1value?: GestureMask | undefined - _blur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _blur_0_0value?: number | undefined - _blur_0_1value?: BlurOptions | undefined - _blur_0_2value?: SystemAdaptiveOptions | undefined - _linearGradientBlur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _linearGradientBlur_0_0value?: number | undefined - _linearGradientBlur_0_1value?: LinearGradientBlurOptions | undefined - _systemBarEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _useEffect_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _useEffect_1_0value?: boolean | undefined - _useEffect_1_1value?: EffectType | undefined - _backdropBlur_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backdropBlur_0_0value?: number | undefined - _backdropBlur_0_1value?: BlurOptions | undefined - _backdropBlur_0_2value?: SystemAdaptiveOptions | undefined - _sharedTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sharedTransition_0_0value?: string | undefined - _sharedTransition_0_1value?: sharedTransitionOptions | undefined - _chainMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _chainMode_0_0value?: Axis | undefined - _chainMode_0_1value?: ChainStyle | undefined - _onDrop_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDrop_1_0value?: OnDragEventCallback | undefined - _onDrop_1_1value?: DropOptions | undefined - _dragPreview_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _dragPreview_1_0value?: CustomBuilder | DragItemInfo | string | undefined - _dragPreview_1_1value?: PreviewConfiguration | undefined - _dragPreviewOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _dragPreviewOptions_0_0value?: DragPreviewOptions | undefined - _dragPreviewOptions_0_1value?: DragInteractionOptions | undefined - _overlay_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _overlay_0_0value?: string | CustomBuilder | ComponentContent | undefined - _overlay_0_1value?: OverlayOptions | undefined - _blendMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _blendMode_0_0value?: BlendMode | undefined - _blendMode_0_1value?: BlendApplyType | undefined - _advancedBlendMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _advancedBlendMode_0_0value?: BlendMode | uiEffect.Blender - _advancedBlendMode_0_1value?: BlendApplyType | undefined - _geometryTransition_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _geometryTransition_1_0value?: string | undefined - _geometryTransition_1_1value?: GeometryTransitionOptions | undefined - _bindTips_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindTips_0_0value?: TipsMessageType | undefined - _bindTips_0_1value?: TipsOptions | undefined - _bindPopup_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindPopup_0_0value?: boolean | undefined - _bindPopup_0_1value?: PopupOptions | CustomPopupOptions | undefined - _bindMenu_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindMenu_0_0value?: Array | CustomBuilder | undefined - _bindMenu_0_1value?: MenuOptions | undefined - _bindMenu_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindMenu_1_0value?: boolean | undefined - _bindMenu_1_1value?: Array | CustomBuilder | undefined - _bindMenu_1_2value?: MenuOptions | undefined - _bindContextMenu_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindContextMenu_0_0value?: CustomBuilder | undefined - _bindContextMenu_0_1value?: ResponseType | undefined - _bindContextMenu_0_2value?: ContextMenuOptions | undefined - _bindContextMenu_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindContextMenu_1_0value?: boolean | undefined - _bindContextMenu_1_1value?: CustomBuilder | undefined - _bindContextMenu_1_2value?: ContextMenuOptions | undefined - _bindContentCover_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindContentCover_0_0value?: boolean | Bindable | undefined - _bindContentCover_0_1value?: CustomBuilder | undefined - _bindContentCover_0_2value?: ModalTransition | undefined - _bindContentCover_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindContentCover_1_0value?: boolean | Bindable | undefined - _bindContentCover_1_1value?: CustomBuilder | undefined - _bindContentCover_1_2value?: ContentCoverOptions | undefined - _bindSheet_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindSheet_0_0value?: boolean | Bindable | undefined - _bindSheet_0_1value?: CustomBuilder | undefined - _bindSheet_0_2value?: SheetOptions | undefined - _onVisibleAreaChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onVisibleAreaChange_0_0value?: Array | undefined - _onVisibleAreaChange_0_1value?: VisibleAreaChangeCallback | undefined - _onVisibleAreaApproximateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onVisibleAreaApproximateChange_0_0value?: VisibleAreaEventOptions | undefined - _onVisibleAreaApproximateChange_0_1value?: VisibleAreaChangeCallback | undefined - _keyboardShortcut_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _keyboardShortcut_0_0value?: string | FunctionKey | undefined - _keyboardShortcut_0_1value?: Array | undefined - _keyboardShortcut_0_2value?: (() => void) | undefined - _accessibilityGroup_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _accessibilityGroup_1_0value?: boolean | undefined - _accessibilityGroup_1_1value?: AccessibilityOptions | undefined - _onGestureRecognizerJudgeBegin_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onGestureRecognizerJudgeBegin_1_0value?: GestureRecognizerJudgeBeginCallback | undefined - _onGestureRecognizerJudgeBegin_1_1value?: boolean | undefined - applyModifierPatch(peer: ArkCommonMethodPeer): void { - if (this._width_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._width_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setWidthAttribute((this._width_0_0value as Length | LayoutPolicy | undefined)); - this._width_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._width_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._width_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setWidthAttribute((undefined as Length | LayoutPolicy | undefined)); - } - } - } - if (this._height_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._height_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHeightAttribute((this._height_0_0value as Length | LayoutPolicy | undefined)); - this._height_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._height_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._height_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHeightAttribute((undefined as Length | LayoutPolicy | undefined)); - } - } - } - if (this._drawModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._drawModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDrawModifierAttribute((this._drawModifier_0_0value as DrawModifier | undefined)); - this._drawModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._drawModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._drawModifier_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDrawModifierAttribute((undefined as DrawModifier | undefined)); - } - } - } - if (this._responseRegion_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._responseRegion_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setResponseRegionAttribute((this._responseRegion_0_0value as Array | Rectangle | undefined)); - this._responseRegion_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._responseRegion_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._responseRegion_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setResponseRegionAttribute((undefined as Array | Rectangle | undefined)); - } - } - } - if (this._mouseResponseRegion_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mouseResponseRegion_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMouseResponseRegionAttribute((this._mouseResponseRegion_0_0value as Array | Rectangle | undefined)); - this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMouseResponseRegionAttribute((undefined as Array | Rectangle | undefined)); - } - } - } - if (this._size_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._size_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSizeAttribute((this._size_0_0value as SizeOptions | undefined)); - this._size_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._size_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._size_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSizeAttribute((undefined as SizeOptions | undefined)); - } - } - } - if (this._constraintSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._constraintSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setConstraintSizeAttribute((this._constraintSize_0_0value as ConstraintSizeOptions | undefined)); - this._constraintSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._constraintSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._constraintSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setConstraintSizeAttribute((undefined as ConstraintSizeOptions | undefined)); - } - } - } - if (this._hitTestBehavior_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hitTestBehavior_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHitTestBehaviorAttribute((this._hitTestBehavior_0_0value as HitTestMode | undefined)); - this._hitTestBehavior_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hitTestBehavior_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hitTestBehavior_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHitTestBehaviorAttribute((undefined as HitTestMode | undefined)); - } - } - } - if (this._onChildTouchTest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChildTouchTest_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChildTouchTestAttribute((this._onChildTouchTest_0_0value as ((value: Array) => TouchResult) | undefined)); - this._onChildTouchTest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChildTouchTest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChildTouchTest_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChildTouchTestAttribute((undefined as ((value: Array) => TouchResult) | undefined)); - } - } - } - if (this._layoutWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._layoutWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLayoutWeightAttribute((this._layoutWeight_0_0value as number | string | undefined)); - this._layoutWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._layoutWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._layoutWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLayoutWeightAttribute((undefined as number | string | undefined)); - } - } - } - if (this._chainWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._chainWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setChainWeightAttribute((this._chainWeight_0_0value as ChainWeightOptions | undefined)); - this._chainWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._chainWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._chainWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setChainWeightAttribute((undefined as ChainWeightOptions | undefined)); - } - } - } - if (this._padding_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._padding_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPaddingAttribute((this._padding_0_0value as Padding | Length | LocalizedPadding | undefined)); - this._padding_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._padding_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._padding_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPaddingAttribute((undefined as Padding | Length | LocalizedPadding | undefined)); - } - } - } - if (this._safeAreaPadding_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._safeAreaPadding_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSafeAreaPaddingAttribute((this._safeAreaPadding_0_0value as Padding | LengthMetrics | LocalizedPadding | undefined)); - this._safeAreaPadding_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._safeAreaPadding_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._safeAreaPadding_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSafeAreaPaddingAttribute((undefined as Padding | LengthMetrics | LocalizedPadding | undefined)); - } - } - } - if (this._margin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._margin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMarginAttribute((this._margin_0_0value as Padding | Length | LocalizedPadding | undefined)); - this._margin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._margin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._margin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMarginAttribute((undefined as Padding | Length | LocalizedPadding | undefined)); - } - } - } - if (this._backgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundColorAttribute((this._backgroundColor_0_0value as ResourceColor | undefined)); - this._backgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._pixelRound_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pixelRound_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPixelRoundAttribute((this._pixelRound_0_0value as PixelRoundPolicy | undefined)); - this._pixelRound_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pixelRound_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pixelRound_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPixelRoundAttribute((undefined as PixelRoundPolicy | undefined)); - } - } - } - if (this._backgroundImageSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundImageSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundImageSizeAttribute((this._backgroundImageSize_0_0value as SizeOptions | ImageSize | undefined)); - this._backgroundImageSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundImageSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundImageSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundImageSizeAttribute((undefined as SizeOptions | ImageSize | undefined)); - } - } - } - if (this._backgroundImagePosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundImagePosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundImagePositionAttribute((this._backgroundImagePosition_0_0value as Position | Alignment | undefined)); - this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundImagePositionAttribute((undefined as Position | Alignment | undefined)); - } - } - } - if (this._backgroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundEffect0Attribute((this._backgroundEffect_0_0value as BackgroundEffectOptions | undefined)); - this._backgroundEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundEffect0Attribute((undefined as BackgroundEffectOptions | undefined)); - } - } - } - if (this._backgroundImageResizable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundImageResizable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundImageResizableAttribute((this._backgroundImageResizable_0_0value as ResizableOptions | undefined)); - this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundImageResizableAttribute((undefined as ResizableOptions | undefined)); - } - } - } - if (this._foregroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._foregroundEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setForegroundEffectAttribute((this._foregroundEffect_0_0value as ForegroundEffectOptions | undefined)); - this._foregroundEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._foregroundEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._foregroundEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setForegroundEffectAttribute((undefined as ForegroundEffectOptions | undefined)); - } - } - } - if (this._visualEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._visualEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setVisualEffectAttribute((this._visualEffect_0_0value as uiEffect.VisualEffect | undefined)); - this._visualEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._visualEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._visualEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setVisualEffectAttribute((undefined as uiEffect.VisualEffect | undefined)); - } - } - } - if (this._backgroundFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundFilterAttribute((this._backgroundFilter_0_0value as uiEffect.Filter | undefined)); - this._backgroundFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundFilter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundFilterAttribute((undefined as uiEffect.Filter | undefined)); - } - } - } - if (this._foregroundFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._foregroundFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setForegroundFilterAttribute((this._foregroundFilter_0_0value as uiEffect.Filter | undefined)); - this._foregroundFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._foregroundFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._foregroundFilter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setForegroundFilterAttribute((undefined as uiEffect.Filter | undefined)); - } - } - } - if (this._compositingFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._compositingFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCompositingFilterAttribute((this._compositingFilter_0_0value as uiEffect.Filter | undefined)); - this._compositingFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._compositingFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._compositingFilter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCompositingFilterAttribute((undefined as uiEffect.Filter | undefined)); - } - } - } - if (this._opacity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._opacity_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOpacityAttribute((this._opacity_0_0value as number | Resource | undefined)); - this._opacity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._opacity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._opacity_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOpacityAttribute((undefined as number | Resource | undefined)); - } - } - } - if (this._border_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._border_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBorderAttribute((this._border_0_0value as BorderOptions | undefined)); - this._border_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._border_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._border_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBorderAttribute((undefined as BorderOptions | undefined)); - } - } - } - if (this._borderStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._borderStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBorderStyleAttribute((this._borderStyle_0_0value as BorderStyle | EdgeStyles | undefined)); - this._borderStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._borderStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._borderStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBorderStyleAttribute((undefined as BorderStyle | EdgeStyles | undefined)); - } - } - } - if (this._borderWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._borderWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBorderWidthAttribute((this._borderWidth_0_0value as Length | EdgeWidths | LocalizedEdgeWidths | undefined)); - this._borderWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._borderWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._borderWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBorderWidthAttribute((undefined as Length | EdgeWidths | LocalizedEdgeWidths | undefined)); - } - } - } - if (this._borderColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._borderColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBorderColorAttribute((this._borderColor_0_0value as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); - this._borderColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._borderColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._borderColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBorderColorAttribute((undefined as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); - } - } - } - if (this._borderRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._borderRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBorderRadiusAttribute((this._borderRadius_0_0value as Length | BorderRadiuses | LocalizedBorderRadiuses | undefined)); - this._borderRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._borderRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._borderRadius_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBorderRadiusAttribute((undefined as Length | BorderRadiuses | LocalizedBorderRadiuses | undefined)); - } - } - } - if (this._borderImage_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._borderImage_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBorderImageAttribute((this._borderImage_0_0value as BorderImageOption | undefined)); - this._borderImage_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._borderImage_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._borderImage_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBorderImageAttribute((undefined as BorderImageOption | undefined)); - } - } - } - if (this._outline_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._outline_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOutlineAttribute((this._outline_0_0value as OutlineOptions | undefined)); - this._outline_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._outline_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._outline_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOutlineAttribute((undefined as OutlineOptions | undefined)); - } - } - } - if (this._outlineStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._outlineStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOutlineStyleAttribute((this._outlineStyle_0_0value as OutlineStyle | EdgeOutlineStyles | undefined)); - this._outlineStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._outlineStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._outlineStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOutlineStyleAttribute((undefined as OutlineStyle | EdgeOutlineStyles | undefined)); - } - } - } - if (this._outlineWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._outlineWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOutlineWidthAttribute((this._outlineWidth_0_0value as Dimension | EdgeOutlineWidths | undefined)); - this._outlineWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._outlineWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._outlineWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOutlineWidthAttribute((undefined as Dimension | EdgeOutlineWidths | undefined)); - } - } - } - if (this._outlineColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._outlineColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOutlineColorAttribute((this._outlineColor_0_0value as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); - this._outlineColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._outlineColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._outlineColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOutlineColorAttribute((undefined as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); - } - } - } - if (this._outlineRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._outlineRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOutlineRadiusAttribute((this._outlineRadius_0_0value as Dimension | OutlineRadiuses | undefined)); - this._outlineRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._outlineRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._outlineRadius_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOutlineRadiusAttribute((undefined as Dimension | OutlineRadiuses | undefined)); - } - } - } - if (this._foregroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._foregroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setForegroundColorAttribute((this._foregroundColor_0_0value as ResourceColor | ColoringStrategy | undefined)); - this._foregroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._foregroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._foregroundColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setForegroundColorAttribute((undefined as ResourceColor | ColoringStrategy | undefined)); - } - } - } - if (this._onClick_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onClick_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnClick0Attribute((this._onClick_0_0value as ((event: ClickEvent) => void) | undefined)); - this._onClick_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onClick_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onClick_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnClick0Attribute((undefined as ((event: ClickEvent) => void) | undefined)); - } - } - } - if (this._onHover_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onHover_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnHoverAttribute((this._onHover_0_0value as ((isHover: boolean,event: HoverEvent) => void) | undefined)); - this._onHover_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onHover_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onHover_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnHoverAttribute((undefined as ((isHover: boolean,event: HoverEvent) => void) | undefined)); - } - } - } - if (this._onHoverMove_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onHoverMove_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnHoverMoveAttribute((this._onHoverMove_0_0value as ((value0: HoverEvent) => void) | undefined)); - this._onHoverMove_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onHoverMove_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onHoverMove_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnHoverMoveAttribute((undefined as ((value0: HoverEvent) => void) | undefined)); - } - } - } - if (this._onAccessibilityHover_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAccessibilityHover_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAccessibilityHoverAttribute((this._onAccessibilityHover_0_0value as AccessibilityCallback | undefined)); - this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAccessibilityHoverAttribute((undefined as AccessibilityCallback | undefined)); - } - } - } - if (this._hoverEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hoverEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHoverEffectAttribute((this._hoverEffect_0_0value as HoverEffect | undefined)); - this._hoverEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hoverEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hoverEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHoverEffectAttribute((undefined as HoverEffect | undefined)); - } - } - } - if (this._onMouse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onMouse_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnMouseAttribute((this._onMouse_0_0value as ((event: MouseEvent) => void) | undefined)); - this._onMouse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onMouse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onMouse_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnMouseAttribute((undefined as ((event: MouseEvent) => void) | undefined)); - } - } - } - if (this._onTouch_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTouch_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTouchAttribute((this._onTouch_0_0value as ((event: TouchEvent) => void) | undefined)); - this._onTouch_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTouch_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTouch_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTouchAttribute((undefined as ((event: TouchEvent) => void) | undefined)); - } - } - } - if (this._onKeyEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onKeyEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnKeyEventAttribute((this._onKeyEvent_0_0value as ((event: KeyEvent) => void) | undefined)); - this._onKeyEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onKeyEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onKeyEvent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnKeyEventAttribute((undefined as ((event: KeyEvent) => void) | undefined)); - } - } - } - if (this._onDigitalCrown_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDigitalCrown_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDigitalCrownAttribute((this._onDigitalCrown_0_0value as ((value0: CrownEvent) => void) | undefined)); - this._onDigitalCrown_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDigitalCrown_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDigitalCrown_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDigitalCrownAttribute((undefined as ((value0: CrownEvent) => void) | undefined)); - } - } - } - if (this._onKeyPreIme_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onKeyPreIme_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnKeyPreImeAttribute((this._onKeyPreIme_0_0value as ((value0: KeyEvent) => boolean) | undefined)); - this._onKeyPreIme_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onKeyPreIme_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onKeyPreIme_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnKeyPreImeAttribute((undefined as ((value0: KeyEvent) => boolean) | undefined)); - } - } - } - if (this._onKeyEventDispatch_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onKeyEventDispatch_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnKeyEventDispatchAttribute((this._onKeyEventDispatch_0_0value as ((value0: KeyEvent) => boolean) | undefined)); - this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnKeyEventDispatchAttribute((undefined as ((value0: KeyEvent) => boolean) | undefined)); - } - } - } - if (this._onFocusAxisEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFocusAxisEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFocusAxisEventAttribute((this._onFocusAxisEvent_0_0value as ((value0: FocusAxisEvent) => void) | undefined)); - this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFocusAxisEventAttribute((undefined as ((value0: FocusAxisEvent) => void) | undefined)); - } - } - } - if (this._onAxisEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAxisEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAxisEventAttribute((this._onAxisEvent_0_0value as ((value0: AxisEvent) => void) | undefined)); - this._onAxisEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAxisEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAxisEvent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAxisEventAttribute((undefined as ((value0: AxisEvent) => void) | undefined)); - } - } - } - if (this._focusable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._focusable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFocusableAttribute((this._focusable_0_0value as boolean | undefined)); - this._focusable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._focusable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._focusable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFocusableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._nextFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._nextFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNextFocusAttribute((this._nextFocus_0_0value as FocusMovement | undefined)); - this._nextFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._nextFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._nextFocus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setNextFocusAttribute((undefined as FocusMovement | undefined)); - } - } - } - if (this._tabStop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._tabStop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTabStopAttribute((this._tabStop_0_0value as boolean | undefined)); - this._tabStop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._tabStop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._tabStop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTabStopAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFocusAttribute((this._onFocus_0_0value as (() => void) | undefined)); - this._onFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFocus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFocusAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onBlur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onBlur_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnBlurAttribute((this._onBlur_0_0value as (() => void) | undefined)); - this._onBlur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onBlur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onBlur_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnBlurAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._tabIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._tabIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTabIndexAttribute((this._tabIndex_0_0value as number | undefined)); - this._tabIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._tabIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._tabIndex_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTabIndexAttribute((undefined as number | undefined)); - } - } - } - if (this._defaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._defaultFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDefaultFocusAttribute((this._defaultFocus_0_0value as boolean | undefined)); - this._defaultFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._defaultFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._defaultFocus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDefaultFocusAttribute((undefined as boolean | undefined)); - } - } - } - if (this._groupDefaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._groupDefaultFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGroupDefaultFocusAttribute((this._groupDefaultFocus_0_0value as boolean | undefined)); - this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setGroupDefaultFocusAttribute((undefined as boolean | undefined)); - } - } - } - if (this._focusOnTouch_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._focusOnTouch_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFocusOnTouchAttribute((this._focusOnTouch_0_0value as boolean | undefined)); - this._focusOnTouch_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._focusOnTouch_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._focusOnTouch_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFocusOnTouchAttribute((undefined as boolean | undefined)); - } - } - } - if (this._focusBox_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._focusBox_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFocusBoxAttribute((this._focusBox_0_0value as FocusBoxStyle | undefined)); - this._focusBox_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._focusBox_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._focusBox_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFocusBoxAttribute((undefined as FocusBoxStyle | undefined)); - } - } - } - if (this._animation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._animation_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAnimationAttribute((this._animation_0_0value as AnimateParam | undefined)); - this._animation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._animation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._animation_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAnimationAttribute((undefined as AnimateParam | undefined)); - } - } - } - if (this._transition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._transition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTransition0Attribute((this._transition_0_0value as TransitionEffect | undefined)); - this._transition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._transition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._transition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTransition0Attribute((undefined as TransitionEffect | undefined)); - } - } - } - if (this._motionBlur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._motionBlur_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMotionBlurAttribute((this._motionBlur_0_0value as MotionBlurOptions | undefined)); - this._motionBlur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._motionBlur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._motionBlur_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMotionBlurAttribute((undefined as MotionBlurOptions | undefined)); - } - } - } - if (this._brightness_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._brightness_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBrightnessAttribute((this._brightness_0_0value as number | undefined)); - this._brightness_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._brightness_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._brightness_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBrightnessAttribute((undefined as number | undefined)); - } - } - } - if (this._contrast_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._contrast_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setContrastAttribute((this._contrast_0_0value as number | undefined)); - this._contrast_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._contrast_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._contrast_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setContrastAttribute((undefined as number | undefined)); - } - } - } - if (this._grayscale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._grayscale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGrayscaleAttribute((this._grayscale_0_0value as number | undefined)); - this._grayscale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._grayscale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._grayscale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setGrayscaleAttribute((undefined as number | undefined)); - } - } - } - if (this._colorBlend_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._colorBlend_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorBlendAttribute((this._colorBlend_0_0value as Color | string | Resource | undefined)); - this._colorBlend_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._colorBlend_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._colorBlend_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorBlendAttribute((undefined as Color | string | Resource | undefined)); - } - } - } - if (this._saturate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._saturate_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSaturateAttribute((this._saturate_0_0value as number | undefined)); - this._saturate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._saturate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._saturate_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSaturateAttribute((undefined as number | undefined)); - } - } - } - if (this._sepia_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sepia_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSepiaAttribute((this._sepia_0_0value as number | undefined)); - this._sepia_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sepia_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sepia_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSepiaAttribute((undefined as number | undefined)); - } - } - } - if (this._invert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._invert_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setInvertAttribute((this._invert_0_0value as number | InvertOptions | undefined)); - this._invert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._invert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._invert_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setInvertAttribute((undefined as number | InvertOptions | undefined)); - } - } - } - if (this._hueRotate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hueRotate_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHueRotateAttribute((this._hueRotate_0_0value as number | string | undefined)); - this._hueRotate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hueRotate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hueRotate_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHueRotateAttribute((undefined as number | string | undefined)); - } - } - } - if (this._useShadowBatching_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._useShadowBatching_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setUseShadowBatchingAttribute((this._useShadowBatching_0_0value as boolean | undefined)); - this._useShadowBatching_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._useShadowBatching_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._useShadowBatching_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setUseShadowBatchingAttribute((undefined as boolean | undefined)); - } - } - } - if (this._useEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._useEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setUseEffect0Attribute((this._useEffect_0_0value as boolean | undefined)); - this._useEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._useEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._useEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setUseEffect0Attribute((undefined as boolean | undefined)); - } - } - } - if (this._renderGroup_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._renderGroup_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRenderGroupAttribute((this._renderGroup_0_0value as boolean | undefined)); - this._renderGroup_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._renderGroup_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._renderGroup_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRenderGroupAttribute((undefined as boolean | undefined)); - } - } - } - if (this._freeze_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._freeze_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFreezeAttribute((this._freeze_0_0value as boolean | undefined)); - this._freeze_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._freeze_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._freeze_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFreezeAttribute((undefined as boolean | undefined)); - } - } - } - if (this._translate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._translate_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTranslateAttribute((this._translate_0_0value as TranslateOptions | undefined)); - this._translate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._translate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._translate_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTranslateAttribute((undefined as TranslateOptions | undefined)); - } - } - } - if (this._scale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._scale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setScaleAttribute((this._scale_0_0value as ScaleOptions | undefined)); - this._scale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._scale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._scale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setScaleAttribute((undefined as ScaleOptions | undefined)); - } - } - } - if (this._rotate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._rotate_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRotateAttribute((this._rotate_0_0value as RotateOptions | undefined)); - this._rotate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._rotate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._rotate_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRotateAttribute((undefined as RotateOptions | undefined)); - } - } - } - if (this._transform_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._transform_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTransformAttribute((this._transform_0_0value as Object | undefined)); - this._transform_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._transform_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._transform_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTransformAttribute((undefined as Object | undefined)); - } - } - } - if (this._onAppear_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAppear_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAppearAttribute((this._onAppear_0_0value as (() => void) | undefined)); - this._onAppear_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAppear_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAppear_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAppearAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onDisAppear_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDisAppear_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDisAppearAttribute((this._onDisAppear_0_0value as (() => void) | undefined)); - this._onDisAppear_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDisAppear_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDisAppear_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDisAppearAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onAttach_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAttach_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAttachAttribute((this._onAttach_0_0value as VoidCallback | undefined)); - this._onAttach_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAttach_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAttach_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAttachAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onDetach_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDetach_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDetachAttribute((this._onDetach_0_0value as VoidCallback | undefined)); - this._onDetach_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDetach_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDetach_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDetachAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onAreaChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAreaChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAreaChangeAttribute((this._onAreaChange_0_0value as ((oldValue: Area,newValue: Area) => void) | undefined)); - this._onAreaChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAreaChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAreaChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAreaChangeAttribute((undefined as ((oldValue: Area,newValue: Area) => void) | undefined)); - } - } - } - if (this._visibility_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._visibility_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setVisibilityAttribute((this._visibility_0_0value as Visibility | undefined)); - this._visibility_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._visibility_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._visibility_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setVisibilityAttribute((undefined as Visibility | undefined)); - } - } - } - if (this._flexGrow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._flexGrow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFlexGrowAttribute((this._flexGrow_0_0value as number | undefined)); - this._flexGrow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._flexGrow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._flexGrow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFlexGrowAttribute((undefined as number | undefined)); - } - } - } - if (this._flexShrink_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._flexShrink_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFlexShrinkAttribute((this._flexShrink_0_0value as number | undefined)); - this._flexShrink_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._flexShrink_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._flexShrink_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFlexShrinkAttribute((undefined as number | undefined)); - } - } - } - if (this._flexBasis_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._flexBasis_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFlexBasisAttribute((this._flexBasis_0_0value as number | string | undefined)); - this._flexBasis_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._flexBasis_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._flexBasis_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFlexBasisAttribute((undefined as number | string | undefined)); - } - } - } - if (this._alignSelf_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alignSelf_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignSelfAttribute((this._alignSelf_0_0value as ItemAlign | undefined)); - this._alignSelf_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alignSelf_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alignSelf_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignSelfAttribute((undefined as ItemAlign | undefined)); - } - } - } - if (this._displayPriority_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._displayPriority_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDisplayPriorityAttribute((this._displayPriority_0_0value as number | undefined)); - this._displayPriority_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._displayPriority_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._displayPriority_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDisplayPriorityAttribute((undefined as number | undefined)); - } - } - } - if (this._zIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._zIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setZIndexAttribute((this._zIndex_0_0value as number | undefined)); - this._zIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._zIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._zIndex_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setZIndexAttribute((undefined as number | undefined)); - } - } - } - if (this._direction_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._direction_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDirectionAttribute((this._direction_0_0value as Direction | undefined)); - this._direction_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._direction_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._direction_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDirectionAttribute((undefined as Direction | undefined)); - } - } - } - if (this._align_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._align_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignAttribute((this._align_0_0value as Alignment | undefined)); - this._align_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._align_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._align_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignAttribute((undefined as Alignment | undefined)); - } - } - } - if (this._position_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._position_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPositionAttribute((this._position_0_0value as Position | Edges | LocalizedEdges | undefined)); - this._position_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._position_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._position_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPositionAttribute((undefined as Position | Edges | LocalizedEdges | undefined)); - } - } - } - if (this._markAnchor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._markAnchor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMarkAnchorAttribute((this._markAnchor_0_0value as Position | LocalizedPosition | undefined)); - this._markAnchor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._markAnchor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._markAnchor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMarkAnchorAttribute((undefined as Position | LocalizedPosition | undefined)); - } - } - } - if (this._offset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._offset_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOffsetAttribute((this._offset_0_0value as Position | Edges | LocalizedEdges | undefined)); - this._offset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._offset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._offset_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOffsetAttribute((undefined as Position | Edges | LocalizedEdges | undefined)); - } - } - } - if (this._enabled_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enabled_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnabledAttribute((this._enabled_0_0value as boolean | undefined)); - this._enabled_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enabled_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enabled_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnabledAttribute((undefined as boolean | undefined)); - } - } - } - if (this._alignRules_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alignRules_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignRules0Attribute((this._alignRules_0_0value as AlignRuleOption | undefined)); - this._alignRules_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alignRules_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alignRules_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignRules0Attribute((undefined as AlignRuleOption | undefined)); - } - } - } - if (this._alignRules_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alignRules_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignRules1Attribute((this._alignRules_1_0value as LocalizedAlignRuleOptions | undefined)); - this._alignRules_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alignRules_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alignRules_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignRules1Attribute((undefined as LocalizedAlignRuleOptions | undefined)); - } - } - } - if (this._aspectRatio_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._aspectRatio_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAspectRatioAttribute((this._aspectRatio_0_0value as number | undefined)); - this._aspectRatio_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._aspectRatio_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._aspectRatio_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAspectRatioAttribute((undefined as number | undefined)); - } - } - } - if (this._clickEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._clickEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setClickEffectAttribute((this._clickEffect_0_0value as ClickEffect | undefined)); - this._clickEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._clickEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._clickEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setClickEffectAttribute((undefined as ClickEffect | undefined)); - } - } - } - if (this._onDragStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDragStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDragStartAttribute((this._onDragStart_0_0value as ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined)); - this._onDragStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDragStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDragStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDragStartAttribute((undefined as ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined)); - } - } - } - if (this._onDragEnter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDragEnter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDragEnterAttribute((this._onDragEnter_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); - this._onDragEnter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDragEnter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDragEnter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDragEnterAttribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (this._onDragMove_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDragMove_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDragMoveAttribute((this._onDragMove_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); - this._onDragMove_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDragMove_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDragMove_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDragMoveAttribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (this._onDragLeave_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDragLeave_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDragLeaveAttribute((this._onDragLeave_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); - this._onDragLeave_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDragLeave_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDragLeave_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDragLeaveAttribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (this._onDrop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDrop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDrop0Attribute((this._onDrop_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); - this._onDrop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDrop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDrop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDrop0Attribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (this._onDragEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDragEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDragEndAttribute((this._onDragEnd_0_0value as ((event: DragEvent,extraParams?: string) => void) | undefined)); - this._onDragEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDragEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDragEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDragEndAttribute((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (this._allowDrop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._allowDrop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAllowDropAttribute((this._allowDrop_0_0value as Array | undefined)); - this._allowDrop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._allowDrop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._allowDrop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAllowDropAttribute((undefined as Array | undefined)); - } - } - } - if (this._draggable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._draggable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDraggableAttribute((this._draggable_0_0value as boolean | undefined)); - this._draggable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._draggable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._draggable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDraggableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._dragPreview_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._dragPreview_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDragPreview0Attribute((this._dragPreview_0_0value as CustomBuilder | DragItemInfo | string | undefined)); - this._dragPreview_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._dragPreview_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._dragPreview_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDragPreview0Attribute((undefined as CustomBuilder | DragItemInfo | string | undefined)); - } - } - } - if (this._onPreDrag_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPreDrag_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPreDragAttribute((this._onPreDrag_0_0value as ((value0: PreDragStatus) => void) | undefined)); - this._onPreDrag_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPreDrag_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPreDrag_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPreDragAttribute((undefined as ((value0: PreDragStatus) => void) | undefined)); - } - } - } - if (this._linearGradient_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._linearGradient_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLinearGradientAttribute((this._linearGradient_0_0value as LinearGradientOptions | undefined)); - this._linearGradient_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._linearGradient_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._linearGradient_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLinearGradientAttribute((undefined as LinearGradientOptions | undefined)); - } - } - } - if (this._sweepGradient_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sweepGradient_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSweepGradientAttribute((this._sweepGradient_0_0value as SweepGradientOptions | undefined)); - this._sweepGradient_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sweepGradient_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sweepGradient_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSweepGradientAttribute((undefined as SweepGradientOptions | undefined)); - } - } - } - if (this._radialGradient_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._radialGradient_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRadialGradientAttribute((this._radialGradient_0_0value as RadialGradientOptions | undefined)); - this._radialGradient_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._radialGradient_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._radialGradient_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRadialGradientAttribute((undefined as RadialGradientOptions | undefined)); - } - } - } - if (this._motionPath_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._motionPath_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMotionPathAttribute((this._motionPath_0_0value as MotionPathOptions | undefined)); - this._motionPath_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._motionPath_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._motionPath_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMotionPathAttribute((undefined as MotionPathOptions | undefined)); - } - } - } - if (this._shadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._shadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShadowAttribute((this._shadow_0_0value as ShadowOptions | ShadowStyle | undefined)); - this._shadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._shadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._shadow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShadowAttribute((undefined as ShadowOptions | ShadowStyle | undefined)); - } - } - } - if (this._clip_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._clip_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setClipAttribute((this._clip_0_0value as boolean | undefined)); - this._clip_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._clip_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._clip_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setClipAttribute((undefined as boolean | undefined)); - } - } - } - if (this._clipShape_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._clipShape_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setClipShapeAttribute((this._clipShape_0_0value as CircleShape | EllipseShape | PathShape | RectShape | undefined)); - this._clipShape_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._clipShape_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._clipShape_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setClipShapeAttribute((undefined as CircleShape | EllipseShape | PathShape | RectShape | undefined)); - } - } - } - if (this._mask_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mask_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaskAttribute((this._mask_0_0value as ProgressMask | undefined)); - this._mask_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mask_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mask_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaskAttribute((undefined as ProgressMask | undefined)); - } - } - } - if (this._maskShape_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maskShape_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaskShapeAttribute((this._maskShape_0_0value as CircleShape | EllipseShape | PathShape | RectShape | undefined)); - this._maskShape_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maskShape_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maskShape_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaskShapeAttribute((undefined as CircleShape | EllipseShape | PathShape | RectShape | undefined)); - } - } - } - if (this._key_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._key_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setKeyAttribute((this._key_0_0value as string | undefined)); - this._key_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._key_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._key_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setKeyAttribute((undefined as string | undefined)); - } - } - } - if (this._id_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._id_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIdAttribute((this._id_0_0value as string | undefined)); - this._id_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._id_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._id_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIdAttribute((undefined as string | undefined)); - } - } - } - if (this._geometryTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._geometryTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGeometryTransition0Attribute((this._geometryTransition_0_0value as string | undefined)); - this._geometryTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._geometryTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._geometryTransition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setGeometryTransition0Attribute((undefined as string | undefined)); - } - } - } - if (this._restoreId_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._restoreId_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRestoreIdAttribute((this._restoreId_0_0value as number | undefined)); - this._restoreId_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._restoreId_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._restoreId_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRestoreIdAttribute((undefined as number | undefined)); - } - } - } - if (this._sphericalEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sphericalEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSphericalEffectAttribute((this._sphericalEffect_0_0value as number | undefined)); - this._sphericalEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sphericalEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sphericalEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSphericalEffectAttribute((undefined as number | undefined)); - } - } - } - if (this._lightUpEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._lightUpEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLightUpEffectAttribute((this._lightUpEffect_0_0value as number | undefined)); - this._lightUpEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._lightUpEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._lightUpEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLightUpEffectAttribute((undefined as number | undefined)); - } - } - } - if (this._pixelStretchEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pixelStretchEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPixelStretchEffectAttribute((this._pixelStretchEffect_0_0value as PixelStretchEffectOptions | undefined)); - this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPixelStretchEffectAttribute((undefined as PixelStretchEffectOptions | undefined)); - } - } - } - if (this._accessibilityGroup_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityGroup_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityGroup0Attribute((this._accessibilityGroup_0_0value as boolean | undefined)); - this._accessibilityGroup_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityGroup_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityGroup_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityGroup0Attribute((undefined as boolean | undefined)); - } - } - } - if (this._accessibilityText_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityText_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityText0Attribute((this._accessibilityText_0_0value as string | undefined)); - this._accessibilityText_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityText_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityText_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityText0Attribute((undefined as string | undefined)); - } - } - } - if (this._accessibilityNextFocusId_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityNextFocusId_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityNextFocusIdAttribute((this._accessibilityNextFocusId_0_0value as string | undefined)); - this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityNextFocusIdAttribute((undefined as string | undefined)); - } - } - } - if (this._accessibilityDefaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityDefaultFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityDefaultFocusAttribute((this._accessibilityDefaultFocus_0_0value as boolean | undefined)); - this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityDefaultFocusAttribute((undefined as boolean | undefined)); - } - } - } - if (this._accessibilityUseSamePage_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityUseSamePage_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityUseSamePageAttribute((this._accessibilityUseSamePage_0_0value as AccessibilitySamePageMode | undefined)); - this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityUseSamePageAttribute((undefined as AccessibilitySamePageMode | undefined)); - } - } - } - if (this._accessibilityScrollTriggerable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityScrollTriggerable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityScrollTriggerableAttribute((this._accessibilityScrollTriggerable_0_0value as boolean | undefined)); - this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityScrollTriggerableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._accessibilityText_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityText_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityText1Attribute((this._accessibilityText_1_0value as Resource | undefined)); - this._accessibilityText_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityText_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityText_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityText1Attribute((undefined as Resource | undefined)); - } - } - } - if (this._accessibilityRole_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityRole_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityRoleAttribute((this._accessibilityRole_0_0value as AccessibilityRoleType | undefined)); - this._accessibilityRole_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityRole_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityRole_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityRoleAttribute((undefined as AccessibilityRoleType | undefined)); - } - } - } - if (this._onAccessibilityFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAccessibilityFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAccessibilityFocusAttribute((this._onAccessibilityFocus_0_0value as AccessibilityFocusCallback | undefined)); - this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAccessibilityFocusAttribute((undefined as AccessibilityFocusCallback | undefined)); - } - } - } - if (this._accessibilityTextHint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityTextHint_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityTextHintAttribute((this._accessibilityTextHint_0_0value as string | undefined)); - this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityTextHintAttribute((undefined as string | undefined)); - } - } - } - if (this._accessibilityDescription_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityDescription_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityDescription0Attribute((this._accessibilityDescription_0_0value as string | undefined)); - this._accessibilityDescription_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityDescription_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityDescription_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityDescription0Attribute((undefined as string | undefined)); - } - } - } - if (this._accessibilityDescription_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityDescription_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityDescription1Attribute((this._accessibilityDescription_1_0value as Resource | undefined)); - this._accessibilityDescription_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityDescription_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityDescription_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityDescription1Attribute((undefined as Resource | undefined)); - } - } - } - if (this._accessibilityLevel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityLevel_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityLevelAttribute((this._accessibilityLevel_0_0value as string | undefined)); - this._accessibilityLevel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityLevel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityLevel_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityLevelAttribute((undefined as string | undefined)); - } - } - } - if (this._accessibilityVirtualNode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityVirtualNode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityVirtualNodeAttribute((this._accessibilityVirtualNode_0_0value as CustomBuilder | undefined)); - this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityVirtualNodeAttribute((undefined as CustomBuilder | undefined)); - } - } - } - if (this._accessibilityChecked_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityChecked_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityCheckedAttribute((this._accessibilityChecked_0_0value as boolean | undefined)); - this._accessibilityChecked_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityChecked_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityChecked_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityCheckedAttribute((undefined as boolean | undefined)); - } - } - } - if (this._accessibilitySelected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilitySelected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilitySelectedAttribute((this._accessibilitySelected_0_0value as boolean | undefined)); - this._accessibilitySelected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilitySelected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilitySelected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilitySelectedAttribute((undefined as boolean | undefined)); - } - } - } - if (this._obscured_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._obscured_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setObscuredAttribute((this._obscured_0_0value as Array | undefined)); - this._obscured_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._obscured_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._obscured_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setObscuredAttribute((undefined as Array | undefined)); - } - } - } - if (this._reuseId_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._reuseId_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setReuseIdAttribute((this._reuseId_0_0value as string | undefined)); - this._reuseId_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._reuseId_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._reuseId_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setReuseIdAttribute((undefined as string | undefined)); - } - } - } - if (this._reuse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._reuse_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setReuseAttribute((this._reuse_0_0value as ReuseOptions | undefined)); - this._reuse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._reuse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._reuse_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setReuseAttribute((undefined as ReuseOptions | undefined)); - } - } - } - if (this._renderFit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._renderFit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRenderFitAttribute((this._renderFit_0_0value as RenderFit | undefined)); - this._renderFit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._renderFit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._renderFit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRenderFitAttribute((undefined as RenderFit | undefined)); - } - } - } - if (this._gestureModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._gestureModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGestureModifierAttribute((this._gestureModifier_0_0value as GestureModifier | undefined)); - this._gestureModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._gestureModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._gestureModifier_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setGestureModifierAttribute((undefined as GestureModifier | undefined)); - } - } - } - if (this._backgroundBrightness_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundBrightness_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundBrightnessAttribute((this._backgroundBrightness_0_0value as BackgroundBrightnessOptions | undefined)); - this._backgroundBrightness_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundBrightness_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundBrightness_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundBrightnessAttribute((undefined as BackgroundBrightnessOptions | undefined)); - } - } - } - if (this._onGestureJudgeBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onGestureJudgeBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnGestureJudgeBeginAttribute((this._onGestureJudgeBegin_0_0value as ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined)); - this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnGestureJudgeBeginAttribute((undefined as ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined)); - } - } - } - if (this._onGestureRecognizerJudgeBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onGestureRecognizerJudgeBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnGestureRecognizerJudgeBegin0Attribute((this._onGestureRecognizerJudgeBegin_0_0value as GestureRecognizerJudgeBeginCallback | undefined)); - this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnGestureRecognizerJudgeBegin0Attribute((undefined as GestureRecognizerJudgeBeginCallback | undefined)); - } - } - } - if (this._shouldBuiltInRecognizerParallelWith_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._shouldBuiltInRecognizerParallelWith_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShouldBuiltInRecognizerParallelWithAttribute((this._shouldBuiltInRecognizerParallelWith_0_0value as ShouldBuiltInRecognizerParallelWithCallback | undefined)); - this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShouldBuiltInRecognizerParallelWithAttribute((undefined as ShouldBuiltInRecognizerParallelWithCallback | undefined)); - } - } - } - if (this._monopolizeEvents_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._monopolizeEvents_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMonopolizeEventsAttribute((this._monopolizeEvents_0_0value as boolean | undefined)); - this._monopolizeEvents_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._monopolizeEvents_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._monopolizeEvents_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMonopolizeEventsAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onTouchIntercept_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTouchIntercept_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTouchInterceptAttribute((this._onTouchIntercept_0_0value as ((value0: TouchEvent) => HitTestMode) | undefined)); - this._onTouchIntercept_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTouchIntercept_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTouchIntercept_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTouchInterceptAttribute((undefined as ((value0: TouchEvent) => HitTestMode) | undefined)); - } - } - } - if (this._onSizeChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSizeChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSizeChangeAttribute((this._onSizeChange_0_0value as SizeChangeCallback | undefined)); - this._onSizeChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSizeChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSizeChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSizeChangeAttribute((undefined as SizeChangeCallback | undefined)); - } - } - } - if (this._accessibilityFocusDrawLevel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityFocusDrawLevel_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityFocusDrawLevelAttribute((this._accessibilityFocusDrawLevel_0_0value as FocusDrawLevel | undefined)); - this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityFocusDrawLevelAttribute((undefined as FocusDrawLevel | undefined)); - } - } - } - if (this._expandSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._expandSafeArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setExpandSafeAreaAttribute((this._expandSafeArea_0_0value as Array | undefined), (this._expandSafeArea_0_1value as Array | undefined)); - this._expandSafeArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._expandSafeArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._expandSafeArea_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setExpandSafeAreaAttribute((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); - } - } - } - if (this._background_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._background_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundAttribute((this._background_0_0value as CustomBuilder | undefined), (this._background_0_1value as BackgroundOptions | undefined)); - this._background_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._background_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._background_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundAttribute((undefined as CustomBuilder | undefined), (undefined as BackgroundOptions | undefined | undefined)); - } - } - } - if (this._backgroundImage_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundImage_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundImage0Attribute((this._backgroundImage_0_0value as ResourceStr | image.PixelMap | undefined), (this._backgroundImage_0_1value as ImageRepeat | undefined)); - this._backgroundImage_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundImage_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundImage_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundImage0Attribute((undefined as ResourceStr | image.PixelMap | undefined), (undefined as ImageRepeat | undefined | undefined)); - } - } - } - if (this._backgroundImage_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundImage_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundImage1Attribute((this._backgroundImage_1_0value as ResourceStr | image.PixelMap | undefined), (this._backgroundImage_1_1value as BackgroundImageOptions | undefined)); - this._backgroundImage_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundImage_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundImage_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundImage1Attribute((undefined as ResourceStr | image.PixelMap | undefined), (undefined as BackgroundImageOptions | undefined | undefined)); - } - } - } - if (this._backgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundBlurStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundBlurStyleAttribute((this._backgroundBlurStyle_0_0value as BlurStyle | undefined), (this._backgroundBlurStyle_0_1value as BackgroundBlurStyleOptions | undefined), (this._backgroundBlurStyle_0_2value as SystemAdaptiveOptions | undefined)); - this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundBlurStyleAttribute((undefined as BlurStyle | undefined), (undefined as BackgroundBlurStyleOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (this._backgroundEffect_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backgroundEffect_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackgroundEffect1Attribute((this._backgroundEffect_1_0value as BackgroundEffectOptions | undefined), (this._backgroundEffect_1_1value as SystemAdaptiveOptions | undefined)); - this._backgroundEffect_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backgroundEffect_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backgroundEffect_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackgroundEffect1Attribute((undefined as BackgroundEffectOptions | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (this._foregroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._foregroundBlurStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setForegroundBlurStyleAttribute((this._foregroundBlurStyle_0_0value as BlurStyle | undefined), (this._foregroundBlurStyle_0_1value as ForegroundBlurStyleOptions | undefined), (this._foregroundBlurStyle_0_2value as SystemAdaptiveOptions | undefined)); - this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setForegroundBlurStyleAttribute((undefined as BlurStyle | undefined), (undefined as ForegroundBlurStyleOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (this._onClick_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onClick_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnClick1Attribute((this._onClick_1_0value as ((event: ClickEvent) => void) | undefined), (this._onClick_1_1value as number | undefined)); - this._onClick_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onClick_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onClick_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnClick1Attribute((undefined as ((event: ClickEvent) => void) | undefined), (undefined as number | undefined)); - } - } - } - if (this._focusScopeId_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._focusScopeId_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFocusScopeIdAttribute((this._focusScopeId_0_0value as string | undefined), (this._focusScopeId_0_1value as boolean | undefined), (this._focusScopeId_0_2value as boolean | undefined)); - this._focusScopeId_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._focusScopeId_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._focusScopeId_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFocusScopeIdAttribute((undefined as string | undefined), (undefined as boolean | undefined | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (this._focusScopePriority_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._focusScopePriority_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFocusScopePriorityAttribute((this._focusScopePriority_0_0value as string | undefined), (this._focusScopePriority_0_1value as FocusPriority | undefined)); - this._focusScopePriority_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._focusScopePriority_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._focusScopePriority_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFocusScopePriorityAttribute((undefined as string | undefined), (undefined as FocusPriority | undefined | undefined)); - } - } - } - if (this._transition_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._transition_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTransition1Attribute((this._transition_1_0value as TransitionEffect | undefined), (this._transition_1_1value as TransitionFinishCallback | undefined)); - this._transition_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._transition_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._transition_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setTransition1Attribute((undefined as TransitionEffect | undefined), (undefined as TransitionFinishCallback | undefined)); - } - } - } - if (this._gesture_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._gesture_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGestureAttribute((this._gesture_0_0value as GestureType | undefined), (this._gesture_0_1value as GestureMask | undefined)); - this._gesture_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._gesture_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._gesture_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setGestureAttribute((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); - } - } - } - if (this._priorityGesture_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._priorityGesture_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPriorityGestureAttribute((this._priorityGesture_0_0value as GestureType | undefined), (this._priorityGesture_0_1value as GestureMask | undefined)); - this._priorityGesture_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._priorityGesture_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._priorityGesture_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPriorityGestureAttribute((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); - } - } - } - if (this._parallelGesture_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._parallelGesture_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setParallelGestureAttribute((this._parallelGesture_0_0value as GestureType | undefined), (this._parallelGesture_0_1value as GestureMask | undefined)); - this._parallelGesture_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._parallelGesture_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._parallelGesture_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setParallelGestureAttribute((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); - } - } - } - if (this._blur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._blur_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBlurAttribute((this._blur_0_0value as number | undefined), (this._blur_0_1value as BlurOptions | undefined), (this._blur_0_2value as SystemAdaptiveOptions | undefined)); - this._blur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._blur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._blur_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBlurAttribute((undefined as number | undefined), (undefined as BlurOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (this._linearGradientBlur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._linearGradientBlur_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLinearGradientBlurAttribute((this._linearGradientBlur_0_0value as number | undefined), (this._linearGradientBlur_0_1value as LinearGradientBlurOptions | undefined)); - this._linearGradientBlur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._linearGradientBlur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._linearGradientBlur_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLinearGradientBlurAttribute((undefined as number | undefined), (undefined as LinearGradientBlurOptions | undefined)); - } - } - } - if (this._systemBarEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._systemBarEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSystemBarEffectAttribute(); - this._systemBarEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._systemBarEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._systemBarEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSystemBarEffectAttribute(); - } - } - } - if (this._useEffect_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._useEffect_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setUseEffect1Attribute((this._useEffect_1_0value as boolean | undefined), (this._useEffect_1_1value as EffectType | undefined)); - this._useEffect_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._useEffect_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._useEffect_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setUseEffect1Attribute((undefined as boolean | undefined), (undefined as EffectType | undefined)); - } - } - } - if (this._backdropBlur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backdropBlur_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackdropBlurAttribute((this._backdropBlur_0_0value as number | undefined), (this._backdropBlur_0_1value as BlurOptions | undefined), (this._backdropBlur_0_2value as SystemAdaptiveOptions | undefined)); - this._backdropBlur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backdropBlur_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backdropBlur_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackdropBlurAttribute((undefined as number | undefined), (undefined as BlurOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (this._sharedTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sharedTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSharedTransitionAttribute((this._sharedTransition_0_0value as string | undefined), (this._sharedTransition_0_1value as sharedTransitionOptions | undefined)); - this._sharedTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sharedTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sharedTransition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSharedTransitionAttribute((undefined as string | undefined), (undefined as sharedTransitionOptions | undefined | undefined)); - } - } - } - if (this._chainMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._chainMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setChainModeAttribute((this._chainMode_0_0value as Axis | undefined), (this._chainMode_0_1value as ChainStyle | undefined)); - this._chainMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._chainMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._chainMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setChainModeAttribute((undefined as Axis | undefined), (undefined as ChainStyle | undefined)); - } - } - } - if (this._onDrop_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDrop_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDrop1Attribute((this._onDrop_1_0value as OnDragEventCallback | undefined), (this._onDrop_1_1value as DropOptions | undefined)); - this._onDrop_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDrop_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDrop_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDrop1Attribute((undefined as OnDragEventCallback | undefined), (undefined as DropOptions | undefined | undefined)); - } - } - } - if (this._dragPreview_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._dragPreview_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDragPreview1Attribute((this._dragPreview_1_0value as CustomBuilder | DragItemInfo | string | undefined), (this._dragPreview_1_1value as PreviewConfiguration | undefined)); - this._dragPreview_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._dragPreview_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._dragPreview_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setDragPreview1Attribute((undefined as CustomBuilder | DragItemInfo | string | undefined), (undefined as PreviewConfiguration | undefined | undefined)); - } - } - } - if (this._dragPreviewOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._dragPreviewOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDragPreviewOptionsAttribute((this._dragPreviewOptions_0_0value as DragPreviewOptions | undefined), (this._dragPreviewOptions_0_1value as DragInteractionOptions | undefined)); - this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDragPreviewOptionsAttribute((undefined as DragPreviewOptions | undefined), (undefined as DragInteractionOptions | undefined | undefined)); - } - } - } - if (this._overlay_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._overlay_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOverlayAttribute((this._overlay_0_0value as string | CustomBuilder | ComponentContent | undefined), (this._overlay_0_1value as OverlayOptions | undefined)); - this._overlay_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._overlay_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._overlay_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOverlayAttribute((undefined as string | CustomBuilder | ComponentContent | undefined), (undefined as OverlayOptions | undefined | undefined)); - } - } - } - if (this._blendMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._blendMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBlendModeAttribute((this._blendMode_0_0value as BlendMode | undefined), (this._blendMode_0_1value as BlendApplyType | undefined)); - this._blendMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._blendMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._blendMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBlendModeAttribute((undefined as BlendMode | undefined), (undefined as BlendApplyType | undefined | undefined)); - } - } - } - if (this._geometryTransition_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._geometryTransition_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGeometryTransition1Attribute((this._geometryTransition_1_0value as string | undefined), (this._geometryTransition_1_1value as GeometryTransitionOptions | undefined)); - this._geometryTransition_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._geometryTransition_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._geometryTransition_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setGeometryTransition1Attribute((undefined as string | undefined), (undefined as GeometryTransitionOptions | undefined | undefined)); - } - } - } - if (this._bindTips_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindTips_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindTipsAttribute((this._bindTips_0_0value as TipsMessageType | undefined), (this._bindTips_0_1value as TipsOptions | undefined)); - this._bindTips_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindTips_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindTips_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindTipsAttribute((undefined as TipsMessageType | undefined), (undefined as TipsOptions | undefined | undefined)); - } - } - } - if (this._bindPopup_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindPopup_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindPopupAttribute((this._bindPopup_0_0value as boolean | undefined), (this._bindPopup_0_1value as PopupOptions | CustomPopupOptions | undefined)); - this._bindPopup_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindPopup_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindPopup_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindPopupAttribute((undefined as boolean | undefined), (undefined as PopupOptions | CustomPopupOptions | undefined)); - } - } - } - if (this._bindMenu_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindMenu_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindMenu0Attribute((this._bindMenu_0_0value as Array | CustomBuilder | undefined), (this._bindMenu_0_1value as MenuOptions | undefined)); - this._bindMenu_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindMenu_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindMenu_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindMenu0Attribute((undefined as Array | CustomBuilder | undefined), (undefined as MenuOptions | undefined | undefined)); - } - } - } - if (this._bindMenu_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindMenu_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindMenu1Attribute((this._bindMenu_1_0value as boolean | undefined), (this._bindMenu_1_1value as Array | CustomBuilder | undefined), (this._bindMenu_1_2value as MenuOptions | undefined)); - this._bindMenu_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindMenu_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindMenu_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindMenu1Attribute((undefined as boolean | undefined), (undefined as Array | CustomBuilder | undefined), (undefined as MenuOptions | undefined | undefined)); - } - } - } - if (this._bindContextMenu_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindContextMenu_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindContextMenu0Attribute((this._bindContextMenu_0_0value as CustomBuilder | undefined), (this._bindContextMenu_0_1value as ResponseType | undefined), (this._bindContextMenu_0_2value as ContextMenuOptions | undefined)); - this._bindContextMenu_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindContextMenu_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindContextMenu_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindContextMenu0Attribute((undefined as CustomBuilder | undefined), (undefined as ResponseType | undefined), (undefined as ContextMenuOptions | undefined | undefined)); - } - } - } - if (this._bindContextMenu_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindContextMenu_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindContextMenu1Attribute((this._bindContextMenu_1_0value as boolean | undefined), (this._bindContextMenu_1_1value as CustomBuilder | undefined), (this._bindContextMenu_1_2value as ContextMenuOptions | undefined)); - this._bindContextMenu_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindContextMenu_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindContextMenu_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindContextMenu1Attribute((undefined as boolean | undefined), (undefined as CustomBuilder | undefined), (undefined as ContextMenuOptions | undefined | undefined)); - } - } - } - if (this._bindContentCover_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindContentCover_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindContentCover0Attribute((this._bindContentCover_0_0value as boolean | Bindable | undefined), (this._bindContentCover_0_1value as CustomBuilder | undefined), (this._bindContentCover_0_2value as ModalTransition | undefined)); - this._bindContentCover_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindContentCover_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindContentCover_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindContentCover0Attribute((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as ModalTransition | undefined | undefined)); - } - } - } - if (this._bindContentCover_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindContentCover_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindContentCover1Attribute((this._bindContentCover_1_0value as boolean | Bindable | undefined), (this._bindContentCover_1_1value as CustomBuilder | undefined), (this._bindContentCover_1_2value as ContentCoverOptions | undefined)); - this._bindContentCover_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindContentCover_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindContentCover_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindContentCover1Attribute((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as ContentCoverOptions | undefined | undefined)); - } - } - } - if (this._bindSheet_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindSheet_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindSheetAttribute((this._bindSheet_0_0value as boolean | Bindable | undefined), (this._bindSheet_0_1value as CustomBuilder | undefined), (this._bindSheet_0_2value as SheetOptions | undefined)); - this._bindSheet_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindSheet_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindSheet_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindSheetAttribute((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as SheetOptions | undefined | undefined)); - } - } - } - if (this._onVisibleAreaChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onVisibleAreaChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnVisibleAreaChangeAttribute((this._onVisibleAreaChange_0_0value as Array | undefined), (this._onVisibleAreaChange_0_1value as VisibleAreaChangeCallback | undefined)); - this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnVisibleAreaChangeAttribute((undefined as Array | undefined), (undefined as VisibleAreaChangeCallback | undefined)); - } - } - } - if (this._onVisibleAreaApproximateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onVisibleAreaApproximateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnVisibleAreaApproximateChangeAttribute((this._onVisibleAreaApproximateChange_0_0value as VisibleAreaEventOptions | undefined), (this._onVisibleAreaApproximateChange_0_1value as VisibleAreaChangeCallback | undefined)); - this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnVisibleAreaApproximateChangeAttribute((undefined as VisibleAreaEventOptions | undefined), (undefined as VisibleAreaChangeCallback | undefined)); - } - } - } - if (this._keyboardShortcut_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._keyboardShortcut_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setKeyboardShortcutAttribute((this._keyboardShortcut_0_0value as string | FunctionKey | undefined), (this._keyboardShortcut_0_1value as Array | undefined), (this._keyboardShortcut_0_2value as (() => void) | undefined)); - this._keyboardShortcut_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._keyboardShortcut_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._keyboardShortcut_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setKeyboardShortcutAttribute((undefined as string | FunctionKey | undefined), (undefined as Array | undefined), (undefined as (() => void) | undefined | undefined)); - } - } - } - if (this._accessibilityGroup_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._accessibilityGroup_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAccessibilityGroup1Attribute((this._accessibilityGroup_1_0value as boolean | undefined), (this._accessibilityGroup_1_1value as AccessibilityOptions | undefined)); - this._accessibilityGroup_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._accessibilityGroup_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._accessibilityGroup_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setAccessibilityGroup1Attribute((undefined as boolean | undefined), (undefined as AccessibilityOptions | undefined)); - } - } - } - if (this._onGestureRecognizerJudgeBegin_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onGestureRecognizerJudgeBegin_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnGestureRecognizerJudgeBegin1Attribute((this._onGestureRecognizerJudgeBegin_1_0value as GestureRecognizerJudgeBeginCallback | undefined), (this._onGestureRecognizerJudgeBegin_1_1value as boolean | undefined)); - this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnGestureRecognizerJudgeBegin1Attribute((undefined as GestureRecognizerJudgeBeginCallback | undefined), (undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: CommonMethodModifier): void { - if (modifier._width_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._width_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.width(modifier._width_0_0value); - break; - } - default: { - this.width((undefined as Length | LayoutPolicy | undefined)); - } - } - } - if (modifier._height_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._height_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.height(modifier._height_0_0value); - break; - } - default: { - this.height((undefined as Length | LayoutPolicy | undefined)); - } - } - } - if (modifier._drawModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._drawModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.drawModifier(modifier._drawModifier_0_0value); - break; - } - default: { - this.drawModifier((undefined as DrawModifier | undefined)); - } - } - } - if (modifier._responseRegion_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._responseRegion_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.responseRegion(modifier._responseRegion_0_0value); - break; - } - default: { - this.responseRegion((undefined as Array | Rectangle | undefined)); - } - } - } - if (modifier._mouseResponseRegion_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mouseResponseRegion_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mouseResponseRegion(modifier._mouseResponseRegion_0_0value); - break; - } - default: { - this.mouseResponseRegion((undefined as Array | Rectangle | undefined)); - } - } - } - if (modifier._size_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._size_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.size(modifier._size_0_0value); - break; - } - default: { - this.size((undefined as SizeOptions | undefined)); - } - } - } - if (modifier._constraintSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._constraintSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.constraintSize(modifier._constraintSize_0_0value); - break; - } - default: { - this.constraintSize((undefined as ConstraintSizeOptions | undefined)); - } - } - } - if (modifier._hitTestBehavior_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hitTestBehavior_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hitTestBehavior(modifier._hitTestBehavior_0_0value); - break; - } - default: { - this.hitTestBehavior((undefined as HitTestMode | undefined)); - } - } - } - if (modifier._onChildTouchTest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChildTouchTest_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChildTouchTest(modifier._onChildTouchTest_0_0value); - break; - } - default: { - this.onChildTouchTest((undefined as ((value: Array) => TouchResult) | undefined)); - } - } - } - if (modifier._layoutWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._layoutWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.layoutWeight(modifier._layoutWeight_0_0value); - break; - } - default: { - this.layoutWeight((undefined as number | string | undefined)); - } - } - } - if (modifier._chainWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._chainWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.chainWeight(modifier._chainWeight_0_0value); - break; - } - default: { - this.chainWeight((undefined as ChainWeightOptions | undefined)); - } - } - } - if (modifier._padding_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._padding_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.padding(modifier._padding_0_0value); - break; - } - default: { - this.padding((undefined as Padding | Length | LocalizedPadding | undefined)); - } - } - } - if (modifier._safeAreaPadding_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._safeAreaPadding_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.safeAreaPadding(modifier._safeAreaPadding_0_0value); - break; - } - default: { - this.safeAreaPadding((undefined as Padding | LengthMetrics | LocalizedPadding | undefined)); - } - } - } - if (modifier._margin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._margin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.margin(modifier._margin_0_0value); - break; - } - default: { - this.margin((undefined as Padding | Length | LocalizedPadding | undefined)); - } - } - } - if (modifier._backgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundColor(modifier._backgroundColor_0_0value); - break; - } - default: { - this.backgroundColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._pixelRound_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pixelRound_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pixelRound(modifier._pixelRound_0_0value); - break; - } - default: { - this.pixelRound((undefined as PixelRoundPolicy | undefined)); - } - } - } - if (modifier._backgroundImageSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundImageSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImageSize(modifier._backgroundImageSize_0_0value); - break; - } - default: { - this.backgroundImageSize((undefined as SizeOptions | ImageSize | undefined)); - } - } - } - if (modifier._backgroundImagePosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundImagePosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImagePosition(modifier._backgroundImagePosition_0_0value); - break; - } - default: { - this.backgroundImagePosition((undefined as Position | Alignment | undefined)); - } - } - } - if (modifier._backgroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundEffect(modifier._backgroundEffect_0_0value); - break; - } - default: { - this.backgroundEffect((undefined as BackgroundEffectOptions | undefined)); - } - } - } - if (modifier._backgroundImageResizable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundImageResizable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImageResizable(modifier._backgroundImageResizable_0_0value); - break; - } - default: { - this.backgroundImageResizable((undefined as ResizableOptions | undefined)); - } - } - } - if (modifier._foregroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._foregroundEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.foregroundEffect(modifier._foregroundEffect_0_0value); - break; - } - default: { - this.foregroundEffect((undefined as ForegroundEffectOptions | undefined)); - } - } - } - if (modifier._visualEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._visualEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.visualEffect(modifier._visualEffect_0_0value); - break; - } - default: { - this.visualEffect((undefined as uiEffect.VisualEffect | undefined)); - } - } - } - if (modifier._backgroundFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundFilter(modifier._backgroundFilter_0_0value); - break; - } - default: { - this.backgroundFilter((undefined as uiEffect.Filter | undefined)); - } - } - } - if (modifier._foregroundFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._foregroundFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.foregroundFilter(modifier._foregroundFilter_0_0value); - break; - } - default: { - this.foregroundFilter((undefined as uiEffect.Filter | undefined)); - } - } - } - if (modifier._compositingFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._compositingFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.compositingFilter(modifier._compositingFilter_0_0value); - break; - } - default: { - this.compositingFilter((undefined as uiEffect.Filter | undefined)); - } - } - } - if (modifier._opacity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._opacity_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.opacity(modifier._opacity_0_0value); - break; - } - default: { - this.opacity((undefined as number | Resource | undefined)); - } - } - } - if (modifier._border_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._border_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.border(modifier._border_0_0value); - break; - } - default: { - this.border((undefined as BorderOptions | undefined)); - } - } - } - if (modifier._borderStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._borderStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.borderStyle(modifier._borderStyle_0_0value); - break; - } - default: { - this.borderStyle((undefined as BorderStyle | EdgeStyles | undefined)); - } - } - } - if (modifier._borderWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._borderWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.borderWidth(modifier._borderWidth_0_0value); - break; - } - default: { - this.borderWidth((undefined as Length | EdgeWidths | LocalizedEdgeWidths | undefined)); - } - } - } - if (modifier._borderColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._borderColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.borderColor(modifier._borderColor_0_0value); - break; - } - default: { - this.borderColor((undefined as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); - } - } - } - if (modifier._borderRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._borderRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.borderRadius(modifier._borderRadius_0_0value); - break; - } - default: { - this.borderRadius((undefined as Length | BorderRadiuses | LocalizedBorderRadiuses | undefined)); - } - } - } - if (modifier._borderImage_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._borderImage_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.borderImage(modifier._borderImage_0_0value); - break; - } - default: { - this.borderImage((undefined as BorderImageOption | undefined)); - } - } - } - if (modifier._outline_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._outline_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.outline(modifier._outline_0_0value); - break; - } - default: { - this.outline((undefined as OutlineOptions | undefined)); - } - } - } - if (modifier._outlineStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._outlineStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.outlineStyle(modifier._outlineStyle_0_0value); - break; - } - default: { - this.outlineStyle((undefined as OutlineStyle | EdgeOutlineStyles | undefined)); - } - } - } - if (modifier._outlineWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._outlineWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.outlineWidth(modifier._outlineWidth_0_0value); - break; - } - default: { - this.outlineWidth((undefined as Dimension | EdgeOutlineWidths | undefined)); - } - } - } - if (modifier._outlineColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._outlineColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.outlineColor(modifier._outlineColor_0_0value); - break; - } - default: { - this.outlineColor((undefined as ResourceColor | EdgeColors | LocalizedEdgeColors | undefined)); - } - } - } - if (modifier._outlineRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._outlineRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.outlineRadius(modifier._outlineRadius_0_0value); - break; - } - default: { - this.outlineRadius((undefined as Dimension | OutlineRadiuses | undefined)); - } - } - } - if (modifier._foregroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._foregroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.foregroundColor(modifier._foregroundColor_0_0value); - break; - } - default: { - this.foregroundColor((undefined as ResourceColor | ColoringStrategy | undefined)); - } - } - } - if (modifier._onClick_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onClick_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onClick(modifier._onClick_0_0value); - break; - } - default: { - this.onClick((undefined as ((event: ClickEvent) => void) | undefined)); - } - } - } - if (modifier._onHover_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onHover_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onHover(modifier._onHover_0_0value); - break; - } - default: { - this.onHover((undefined as ((isHover: boolean,event: HoverEvent) => void) | undefined)); - } - } - } - if (modifier._onHoverMove_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onHoverMove_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onHoverMove(modifier._onHoverMove_0_0value); - break; - } - default: { - this.onHoverMove((undefined as ((value0: HoverEvent) => void) | undefined)); - } - } - } - if (modifier._onAccessibilityHover_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAccessibilityHover_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAccessibilityHover(modifier._onAccessibilityHover_0_0value); - break; - } - default: { - this.onAccessibilityHover((undefined as AccessibilityCallback | undefined)); - } - } - } - if (modifier._hoverEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hoverEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hoverEffect(modifier._hoverEffect_0_0value); - break; - } - default: { - this.hoverEffect((undefined as HoverEffect | undefined)); - } - } - } - if (modifier._onMouse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onMouse_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onMouse(modifier._onMouse_0_0value); - break; - } - default: { - this.onMouse((undefined as ((event: MouseEvent) => void) | undefined)); - } - } - } - if (modifier._onTouch_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTouch_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTouch(modifier._onTouch_0_0value); - break; - } - default: { - this.onTouch((undefined as ((event: TouchEvent) => void) | undefined)); - } - } - } - if (modifier._onKeyEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onKeyEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onKeyEvent(modifier._onKeyEvent_0_0value); - break; - } - default: { - this.onKeyEvent((undefined as ((event: KeyEvent) => void) | undefined)); - } - } - } - if (modifier._onDigitalCrown_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDigitalCrown_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDigitalCrown(modifier._onDigitalCrown_0_0value); - break; - } - default: { - this.onDigitalCrown((undefined as ((value0: CrownEvent) => void) | undefined)); - } - } - } - if (modifier._onKeyPreIme_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onKeyPreIme_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onKeyPreIme(modifier._onKeyPreIme_0_0value); - break; - } - default: { - this.onKeyPreIme((undefined as ((value0: KeyEvent) => boolean) | undefined)); - } - } - } - if (modifier._onKeyEventDispatch_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onKeyEventDispatch_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onKeyEventDispatch(modifier._onKeyEventDispatch_0_0value); - break; - } - default: { - this.onKeyEventDispatch((undefined as ((value0: KeyEvent) => boolean) | undefined)); - } - } - } - if (modifier._onFocusAxisEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFocusAxisEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFocusAxisEvent(modifier._onFocusAxisEvent_0_0value); - break; - } - default: { - this.onFocusAxisEvent((undefined as ((value0: FocusAxisEvent) => void) | undefined)); - } - } - } - if (modifier._onAxisEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAxisEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAxisEvent(modifier._onAxisEvent_0_0value); - break; - } - default: { - this.onAxisEvent((undefined as ((value0: AxisEvent) => void) | undefined)); - } - } - } - if (modifier._focusable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._focusable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusable(modifier._focusable_0_0value); - break; - } - default: { - this.focusable((undefined as boolean | undefined)); - } - } - } - if (modifier._nextFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._nextFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.nextFocus(modifier._nextFocus_0_0value); - break; - } - default: { - this.nextFocus((undefined as FocusMovement | undefined)); - } - } - } - if (modifier._tabStop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._tabStop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.tabStop(modifier._tabStop_0_0value); - break; - } - default: { - this.tabStop((undefined as boolean | undefined)); - } - } - } - if (modifier._onFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFocus(modifier._onFocus_0_0value); - break; - } - default: { - this.onFocus((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onBlur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onBlur_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onBlur(modifier._onBlur_0_0value); - break; - } - default: { - this.onBlur((undefined as (() => void) | undefined)); - } - } - } - if (modifier._tabIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._tabIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.tabIndex(modifier._tabIndex_0_0value); - break; - } - default: { - this.tabIndex((undefined as number | undefined)); - } - } - } - if (modifier._defaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._defaultFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.defaultFocus(modifier._defaultFocus_0_0value); - break; - } - default: { - this.defaultFocus((undefined as boolean | undefined)); - } - } - } - if (modifier._groupDefaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._groupDefaultFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.groupDefaultFocus(modifier._groupDefaultFocus_0_0value); - break; - } - default: { - this.groupDefaultFocus((undefined as boolean | undefined)); - } - } - } - if (modifier._focusOnTouch_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._focusOnTouch_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusOnTouch(modifier._focusOnTouch_0_0value); - break; - } - default: { - this.focusOnTouch((undefined as boolean | undefined)); - } - } - } - if (modifier._focusBox_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._focusBox_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusBox(modifier._focusBox_0_0value); - break; - } - default: { - this.focusBox((undefined as FocusBoxStyle | undefined)); - } - } - } - if (modifier._animation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._animation_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.animation(modifier._animation_0_0value); - break; - } - default: { - this.animation((undefined as AnimateParam | undefined)); - } - } - } - if (modifier._transition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._transition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.transition(modifier._transition_0_0value); - break; - } - default: { - this.transition((undefined as TransitionEffect | undefined)); - } - } - } - if (modifier._motionBlur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._motionBlur_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.motionBlur(modifier._motionBlur_0_0value); - break; - } - default: { - this.motionBlur((undefined as MotionBlurOptions | undefined)); - } - } - } - if (modifier._brightness_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._brightness_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.brightness(modifier._brightness_0_0value); - break; - } - default: { - this.brightness((undefined as number | undefined)); - } - } - } - if (modifier._contrast_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._contrast_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.contrast(modifier._contrast_0_0value); - break; - } - default: { - this.contrast((undefined as number | undefined)); - } - } - } - if (modifier._grayscale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._grayscale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.grayscale(modifier._grayscale_0_0value); - break; - } - default: { - this.grayscale((undefined as number | undefined)); - } - } - } - if (modifier._colorBlend_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._colorBlend_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.colorBlend(modifier._colorBlend_0_0value); - break; - } - default: { - this.colorBlend((undefined as Color | string | Resource | undefined)); - } - } - } - if (modifier._saturate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._saturate_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.saturate(modifier._saturate_0_0value); - break; - } - default: { - this.saturate((undefined as number | undefined)); - } - } - } - if (modifier._sepia_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sepia_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sepia(modifier._sepia_0_0value); - break; - } - default: { - this.sepia((undefined as number | undefined)); - } - } - } - if (modifier._invert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._invert_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.invert(modifier._invert_0_0value); - break; - } - default: { - this.invert((undefined as number | InvertOptions | undefined)); - } - } - } - if (modifier._hueRotate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hueRotate_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hueRotate(modifier._hueRotate_0_0value); - break; - } - default: { - this.hueRotate((undefined as number | string | undefined)); - } - } - } - if (modifier._useShadowBatching_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._useShadowBatching_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.useShadowBatching(modifier._useShadowBatching_0_0value); - break; - } - default: { - this.useShadowBatching((undefined as boolean | undefined)); - } - } - } - if (modifier._useEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._useEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.useEffect(modifier._useEffect_0_0value); - break; - } - default: { - this.useEffect((undefined as boolean | undefined)); - } - } - } - if (modifier._renderGroup_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._renderGroup_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.renderGroup(modifier._renderGroup_0_0value); - break; - } - default: { - this.renderGroup((undefined as boolean | undefined)); - } - } - } - if (modifier._freeze_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._freeze_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.freeze(modifier._freeze_0_0value); - break; - } - default: { - this.freeze((undefined as boolean | undefined)); - } - } - } - if (modifier._translate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._translate_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.translate(modifier._translate_0_0value); - break; - } - default: { - this.translate((undefined as TranslateOptions | undefined)); - } - } - } - if (modifier._scale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._scale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.scale(modifier._scale_0_0value); - break; - } - default: { - this.scale((undefined as ScaleOptions | undefined)); - } - } - } - if (modifier._rotate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._rotate_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.rotate(modifier._rotate_0_0value); - break; - } - default: { - this.rotate((undefined as RotateOptions | undefined)); - } - } - } - if (modifier._transform_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._transform_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.transform(modifier._transform_0_0value); - break; - } - default: { - this.transform((undefined as Object | undefined)); - } - } - } - if (modifier._onAppear_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAppear_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAppear(modifier._onAppear_0_0value); - break; - } - default: { - this.onAppear((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onDisAppear_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDisAppear_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDisAppear(modifier._onDisAppear_0_0value); - break; - } - default: { - this.onDisAppear((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onAttach_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAttach_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAttach(modifier._onAttach_0_0value); - break; - } - default: { - this.onAttach((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onDetach_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDetach_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDetach(modifier._onDetach_0_0value); - break; - } - default: { - this.onDetach((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onAreaChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAreaChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAreaChange(modifier._onAreaChange_0_0value); - break; - } - default: { - this.onAreaChange((undefined as ((oldValue: Area,newValue: Area) => void) | undefined)); - } - } - } - if (modifier._visibility_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._visibility_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.visibility(modifier._visibility_0_0value); - break; - } - default: { - this.visibility((undefined as Visibility | undefined)); - } - } - } - if (modifier._flexGrow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._flexGrow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.flexGrow(modifier._flexGrow_0_0value); - break; - } - default: { - this.flexGrow((undefined as number | undefined)); - } - } - } - if (modifier._flexShrink_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._flexShrink_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.flexShrink(modifier._flexShrink_0_0value); - break; - } - default: { - this.flexShrink((undefined as number | undefined)); - } - } - } - if (modifier._flexBasis_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._flexBasis_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.flexBasis(modifier._flexBasis_0_0value); - break; - } - default: { - this.flexBasis((undefined as number | string | undefined)); - } - } - } - if (modifier._alignSelf_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alignSelf_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alignSelf(modifier._alignSelf_0_0value); - break; - } - default: { - this.alignSelf((undefined as ItemAlign | undefined)); - } - } - } - if (modifier._displayPriority_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._displayPriority_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.displayPriority(modifier._displayPriority_0_0value); - break; - } - default: { - this.displayPriority((undefined as number | undefined)); - } - } - } - if (modifier._zIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._zIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.zIndex(modifier._zIndex_0_0value); - break; - } - default: { - this.zIndex((undefined as number | undefined)); - } - } - } - if (modifier._direction_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._direction_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.direction(modifier._direction_0_0value); - break; - } - default: { - this.direction((undefined as Direction | undefined)); - } - } - } - if (modifier._align_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._align_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.align(modifier._align_0_0value); - break; - } - default: { - this.align((undefined as Alignment | undefined)); - } - } - } - if (modifier._position_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._position_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.position(modifier._position_0_0value); - break; - } - default: { - this.position((undefined as Position | Edges | LocalizedEdges | undefined)); - } - } - } - if (modifier._markAnchor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._markAnchor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.markAnchor(modifier._markAnchor_0_0value); - break; - } - default: { - this.markAnchor((undefined as Position | LocalizedPosition | undefined)); - } - } - } - if (modifier._offset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._offset_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.offset(modifier._offset_0_0value); - break; - } - default: { - this.offset((undefined as Position | Edges | LocalizedEdges | undefined)); - } - } - } - if (modifier._enabled_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enabled_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enabled(modifier._enabled_0_0value); - break; - } - default: { - this.enabled((undefined as boolean | undefined)); - } - } - } - if (modifier._alignRules_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alignRules_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alignRules(modifier._alignRules_0_0value); - break; - } - default: { - this.alignRules((undefined as AlignRuleOption | undefined)); - } - } - } - if (modifier._alignRules_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alignRules_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alignRules(modifier._alignRules_1_0value); - break; - } - default: { - this.alignRules((undefined as LocalizedAlignRuleOptions | undefined)); - } - } - } - if (modifier._aspectRatio_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._aspectRatio_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.aspectRatio(modifier._aspectRatio_0_0value); - break; - } - default: { - this.aspectRatio((undefined as number | undefined)); - } - } - } - if (modifier._clickEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._clickEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.clickEffect(modifier._clickEffect_0_0value); - break; - } - default: { - this.clickEffect((undefined as ClickEffect | undefined)); - } - } - } - if (modifier._onDragStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDragStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDragStart(modifier._onDragStart_0_0value); - break; - } - default: { - this.onDragStart((undefined as ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined)); - } - } - } - if (modifier._onDragEnter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDragEnter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDragEnter(modifier._onDragEnter_0_0value); - break; - } - default: { - this.onDragEnter((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (modifier._onDragMove_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDragMove_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDragMove(modifier._onDragMove_0_0value); - break; - } - default: { - this.onDragMove((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (modifier._onDragLeave_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDragLeave_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDragLeave(modifier._onDragLeave_0_0value); - break; - } - default: { - this.onDragLeave((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (modifier._onDrop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDrop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDrop(modifier._onDrop_0_0value); - break; - } - default: { - this.onDrop((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (modifier._onDragEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDragEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDragEnd(modifier._onDragEnd_0_0value); - break; - } - default: { - this.onDragEnd((undefined as ((event: DragEvent,extraParams?: string) => void) | undefined)); - } - } - } - if (modifier._allowDrop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._allowDrop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.allowDrop(modifier._allowDrop_0_0value); - break; - } - default: { - this.allowDrop((undefined as Array | undefined)); - } - } - } - if (modifier._draggable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._draggable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.draggable(modifier._draggable_0_0value); - break; - } - default: { - this.draggable((undefined as boolean | undefined)); - } - } - } - if (modifier._dragPreview_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._dragPreview_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.dragPreview(modifier._dragPreview_0_0value); - break; - } - default: { - this.dragPreview((undefined as CustomBuilder | DragItemInfo | string | undefined)); - } - } - } - if (modifier._onPreDrag_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPreDrag_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPreDrag(modifier._onPreDrag_0_0value); - break; - } - default: { - this.onPreDrag((undefined as ((value0: PreDragStatus) => void) | undefined)); - } - } - } - if (modifier._linearGradient_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._linearGradient_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.linearGradient(modifier._linearGradient_0_0value); - break; - } - default: { - this.linearGradient((undefined as LinearGradientOptions | undefined)); - } - } - } - if (modifier._sweepGradient_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sweepGradient_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sweepGradient(modifier._sweepGradient_0_0value); - break; - } - default: { - this.sweepGradient((undefined as SweepGradientOptions | undefined)); - } - } - } - if (modifier._radialGradient_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._radialGradient_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.radialGradient(modifier._radialGradient_0_0value); - break; - } - default: { - this.radialGradient((undefined as RadialGradientOptions | undefined)); - } - } - } - if (modifier._motionPath_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._motionPath_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.motionPath(modifier._motionPath_0_0value); - break; - } - default: { - this.motionPath((undefined as MotionPathOptions | undefined)); - } - } - } - if (modifier._shadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._shadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.shadow(modifier._shadow_0_0value); - break; - } - default: { - this.shadow((undefined as ShadowOptions | ShadowStyle | undefined)); - } - } - } - if (modifier._clip_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._clip_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.clip(modifier._clip_0_0value); - break; - } - default: { - this.clip((undefined as boolean | undefined)); - } - } - } - if (modifier._clipShape_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._clipShape_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.clipShape(modifier._clipShape_0_0value); - break; - } - default: { - this.clipShape((undefined as CircleShape | EllipseShape | PathShape | RectShape | undefined)); - } - } - } - if (modifier._mask_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mask_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mask(modifier._mask_0_0value); - break; - } - default: { - this.mask((undefined as ProgressMask | undefined)); - } - } - } - if (modifier._maskShape_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maskShape_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maskShape(modifier._maskShape_0_0value); - break; - } - default: { - this.maskShape((undefined as CircleShape | EllipseShape | PathShape | RectShape | undefined)); - } - } - } - if (modifier._key_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._key_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.key(modifier._key_0_0value); - break; - } - default: { - this.key((undefined as string | undefined)); - } - } - } - if (modifier._id_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._id_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.id(modifier._id_0_0value); - break; - } - default: { - this.id((undefined as string | undefined)); - } - } - } - if (modifier._geometryTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._geometryTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.geometryTransition(modifier._geometryTransition_0_0value); - break; - } - default: { - this.geometryTransition((undefined as string | undefined)); - } - } - } - if (modifier._restoreId_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._restoreId_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.restoreId(modifier._restoreId_0_0value); - break; - } - default: { - this.restoreId((undefined as number | undefined)); - } - } - } - if (modifier._sphericalEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sphericalEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sphericalEffect(modifier._sphericalEffect_0_0value); - break; - } - default: { - this.sphericalEffect((undefined as number | undefined)); - } - } - } - if (modifier._lightUpEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._lightUpEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.lightUpEffect(modifier._lightUpEffect_0_0value); - break; - } - default: { - this.lightUpEffect((undefined as number | undefined)); - } - } - } - if (modifier._pixelStretchEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pixelStretchEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pixelStretchEffect(modifier._pixelStretchEffect_0_0value); - break; - } - default: { - this.pixelStretchEffect((undefined as PixelStretchEffectOptions | undefined)); - } - } - } - if (modifier._accessibilityGroup_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityGroup_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityGroup(modifier._accessibilityGroup_0_0value); - break; - } - default: { - this.accessibilityGroup((undefined as boolean | undefined)); - } - } - } - if (modifier._accessibilityText_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityText_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityText(modifier._accessibilityText_0_0value); - break; - } - default: { - this.accessibilityText((undefined as string | undefined)); - } - } - } - if (modifier._accessibilityNextFocusId_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityNextFocusId_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityNextFocusId(modifier._accessibilityNextFocusId_0_0value); - break; - } - default: { - this.accessibilityNextFocusId((undefined as string | undefined)); - } - } - } - if (modifier._accessibilityDefaultFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityDefaultFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityDefaultFocus(modifier._accessibilityDefaultFocus_0_0value); - break; - } - default: { - this.accessibilityDefaultFocus((undefined as boolean | undefined)); - } - } - } - if (modifier._accessibilityUseSamePage_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityUseSamePage_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityUseSamePage(modifier._accessibilityUseSamePage_0_0value); - break; - } - default: { - this.accessibilityUseSamePage((undefined as AccessibilitySamePageMode | undefined)); - } - } - } - if (modifier._accessibilityScrollTriggerable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityScrollTriggerable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityScrollTriggerable(modifier._accessibilityScrollTriggerable_0_0value); - break; - } - default: { - this.accessibilityScrollTriggerable((undefined as boolean | undefined)); - } - } - } - if (modifier._accessibilityText_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityText_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityText(modifier._accessibilityText_1_0value); - break; - } - default: { - this.accessibilityText((undefined as Resource | undefined)); - } - } - } - if (modifier._accessibilityRole_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityRole_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityRole(modifier._accessibilityRole_0_0value); - break; - } - default: { - this.accessibilityRole((undefined as AccessibilityRoleType | undefined)); - } - } - } - if (modifier._onAccessibilityFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAccessibilityFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAccessibilityFocus(modifier._onAccessibilityFocus_0_0value); - break; - } - default: { - this.onAccessibilityFocus((undefined as AccessibilityFocusCallback | undefined)); - } - } - } - if (modifier._accessibilityTextHint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityTextHint_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityTextHint(modifier._accessibilityTextHint_0_0value); - break; - } - default: { - this.accessibilityTextHint((undefined as string | undefined)); - } - } - } - if (modifier._accessibilityDescription_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityDescription_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityDescription(modifier._accessibilityDescription_0_0value); - break; - } - default: { - this.accessibilityDescription((undefined as string | undefined)); - } - } - } - if (modifier._accessibilityDescription_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityDescription_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityDescription(modifier._accessibilityDescription_1_0value); - break; - } - default: { - this.accessibilityDescription((undefined as Resource | undefined)); - } - } - } - if (modifier._accessibilityLevel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityLevel_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityLevel(modifier._accessibilityLevel_0_0value); - break; - } - default: { - this.accessibilityLevel((undefined as string | undefined)); - } - } - } - if (modifier._accessibilityVirtualNode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityVirtualNode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityVirtualNode(modifier._accessibilityVirtualNode_0_0value); - break; - } - default: { - this.accessibilityVirtualNode((undefined as CustomBuilder | undefined)); - } - } - } - if (modifier._accessibilityChecked_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityChecked_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityChecked(modifier._accessibilityChecked_0_0value); - break; - } - default: { - this.accessibilityChecked((undefined as boolean | undefined)); - } - } - } - if (modifier._accessibilitySelected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilitySelected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilitySelected(modifier._accessibilitySelected_0_0value); - break; - } - default: { - this.accessibilitySelected((undefined as boolean | undefined)); - } - } - } - if (modifier._obscured_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._obscured_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.obscured(modifier._obscured_0_0value); - break; - } - default: { - this.obscured((undefined as Array | undefined)); - } - } - } - if (modifier._reuseId_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._reuseId_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.reuseId(modifier._reuseId_0_0value); - break; - } - default: { - this.reuseId((undefined as string | undefined)); - } - } - } - if (modifier._reuse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._reuse_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.reuse(modifier._reuse_0_0value); - break; - } - default: { - this.reuse((undefined as ReuseOptions | undefined)); - } - } - } - if (modifier._renderFit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._renderFit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.renderFit(modifier._renderFit_0_0value); - break; - } - default: { - this.renderFit((undefined as RenderFit | undefined)); - } - } - } - if (modifier._gestureModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._gestureModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.gestureModifier(modifier._gestureModifier_0_0value); - break; - } - default: { - this.gestureModifier((undefined as GestureModifier | undefined)); - } - } - } - if (modifier._backgroundBrightness_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundBrightness_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundBrightness(modifier._backgroundBrightness_0_0value); - break; - } - default: { - this.backgroundBrightness((undefined as BackgroundBrightnessOptions | undefined)); - } - } - } - if (modifier._onGestureJudgeBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onGestureJudgeBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onGestureJudgeBegin(modifier._onGestureJudgeBegin_0_0value); - break; - } - default: { - this.onGestureJudgeBegin((undefined as ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined)); - } - } - } - if (modifier._onGestureRecognizerJudgeBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onGestureRecognizerJudgeBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onGestureRecognizerJudgeBegin(modifier._onGestureRecognizerJudgeBegin_0_0value); - break; - } - default: { - this.onGestureRecognizerJudgeBegin((undefined as GestureRecognizerJudgeBeginCallback | undefined)); - } - } - } - if (modifier._shouldBuiltInRecognizerParallelWith_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._shouldBuiltInRecognizerParallelWith_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.shouldBuiltInRecognizerParallelWith(modifier._shouldBuiltInRecognizerParallelWith_0_0value); - break; - } - default: { - this.shouldBuiltInRecognizerParallelWith((undefined as ShouldBuiltInRecognizerParallelWithCallback | undefined)); - } - } - } - if (modifier._monopolizeEvents_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._monopolizeEvents_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.monopolizeEvents(modifier._monopolizeEvents_0_0value); - break; - } - default: { - this.monopolizeEvents((undefined as boolean | undefined)); - } - } - } - if (modifier._onTouchIntercept_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTouchIntercept_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTouchIntercept(modifier._onTouchIntercept_0_0value); - break; - } - default: { - this.onTouchIntercept((undefined as ((value0: TouchEvent) => HitTestMode) | undefined)); - } - } - } - if (modifier._onSizeChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSizeChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSizeChange(modifier._onSizeChange_0_0value); - break; - } - default: { - this.onSizeChange((undefined as SizeChangeCallback | undefined)); - } - } - } - if (modifier._accessibilityFocusDrawLevel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityFocusDrawLevel_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityFocusDrawLevel(modifier._accessibilityFocusDrawLevel_0_0value); - break; - } - default: { - this.accessibilityFocusDrawLevel((undefined as FocusDrawLevel | undefined)); - } - } - } - if (modifier._expandSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._expandSafeArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.expandSafeArea(modifier._expandSafeArea_0_0value, modifier._expandSafeArea_0_1value); - break; - } - default: { - this.expandSafeArea((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); - } - } - } - if (modifier._background_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._background_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.background(modifier._background_0_0value, modifier._background_0_1value); - break; - } - default: { - this.background((undefined as CustomBuilder | undefined), (undefined as BackgroundOptions | undefined | undefined)); - } - } - } - if (modifier._backgroundImage_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundImage_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImage(modifier._backgroundImage_0_0value, modifier._backgroundImage_0_1value); - break; - } - default: { - this.backgroundImage((undefined as ResourceStr | image.PixelMap | undefined), (undefined as ImageRepeat | undefined | undefined)); - } - } - } - if (modifier._backgroundImage_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundImage_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImage(modifier._backgroundImage_1_0value, modifier._backgroundImage_1_1value); - break; - } - default: { - this.backgroundImage((undefined as ResourceStr | image.PixelMap | undefined), (undefined as BackgroundImageOptions | undefined | undefined)); - } - } - } - if (modifier._backgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundBlurStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundBlurStyle(modifier._backgroundBlurStyle_0_0value, modifier._backgroundBlurStyle_0_1value, modifier._backgroundBlurStyle_0_2value); - break; - } - default: { - this.backgroundBlurStyle((undefined as BlurStyle | undefined), (undefined as BackgroundBlurStyleOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (modifier._backgroundEffect_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backgroundEffect_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundEffect(modifier._backgroundEffect_1_0value, modifier._backgroundEffect_1_1value); - break; - } - default: { - this.backgroundEffect((undefined as BackgroundEffectOptions | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (modifier._foregroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._foregroundBlurStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.foregroundBlurStyle(modifier._foregroundBlurStyle_0_0value, modifier._foregroundBlurStyle_0_1value, modifier._foregroundBlurStyle_0_2value); - break; - } - default: { - this.foregroundBlurStyle((undefined as BlurStyle | undefined), (undefined as ForegroundBlurStyleOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (modifier._onClick_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onClick_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onClick(modifier._onClick_1_0value, modifier._onClick_1_1value); - break; - } - default: { - this.onClick((undefined as ((event: ClickEvent) => void) | undefined), (undefined as number | undefined)); - } - } - } - if (modifier._focusScopeId_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._focusScopeId_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusScopeId(modifier._focusScopeId_0_0value, modifier._focusScopeId_0_1value, modifier._focusScopeId_0_2value); - break; - } - default: { - this.focusScopeId((undefined as string | undefined), (undefined as boolean | undefined | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (modifier._focusScopePriority_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._focusScopePriority_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusScopePriority(modifier._focusScopePriority_0_0value, modifier._focusScopePriority_0_1value); - break; - } - default: { - this.focusScopePriority((undefined as string | undefined), (undefined as FocusPriority | undefined | undefined)); - } - } - } - if (modifier._transition_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._transition_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.transition(modifier._transition_1_0value, modifier._transition_1_1value); - break; - } - default: { - this.transition((undefined as TransitionEffect | undefined), (undefined as TransitionFinishCallback | undefined)); - } - } - } - if (modifier._gesture_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._gesture_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.gesture(modifier._gesture_0_0value, modifier._gesture_0_1value); - break; - } - default: { - this.gesture((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); - } - } - } - if (modifier._priorityGesture_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._priorityGesture_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.priorityGesture(modifier._priorityGesture_0_0value, modifier._priorityGesture_0_1value); - break; - } - default: { - this.priorityGesture((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); - } - } - } - if (modifier._parallelGesture_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._parallelGesture_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.parallelGesture(modifier._parallelGesture_0_0value, modifier._parallelGesture_0_1value); - break; - } - default: { - this.parallelGesture((undefined as GestureType | undefined), (undefined as GestureMask | undefined | undefined)); - } - } - } - if (modifier._blur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._blur_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.blur(modifier._blur_0_0value, modifier._blur_0_1value, modifier._blur_0_2value); - break; - } - default: { - this.blur((undefined as number | undefined), (undefined as BlurOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (modifier._linearGradientBlur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._linearGradientBlur_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.linearGradientBlur(modifier._linearGradientBlur_0_0value, modifier._linearGradientBlur_0_1value); - break; - } - default: { - this.linearGradientBlur((undefined as number | undefined), (undefined as LinearGradientBlurOptions | undefined)); - } - } - } - if (modifier._systemBarEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._systemBarEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.systemBarEffect(); - break; - } - default: { - this.systemBarEffect(); - } - } - } - if (modifier._useEffect_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._useEffect_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.useEffect(modifier._useEffect_1_0value, modifier._useEffect_1_1value); - break; - } - default: { - this.useEffect((undefined as boolean | undefined), (undefined as EffectType | undefined)); - } - } - } - if (modifier._backdropBlur_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backdropBlur_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backdropBlur(modifier._backdropBlur_0_0value, modifier._backdropBlur_0_1value, modifier._backdropBlur_0_2value); - break; - } - default: { - this.backdropBlur((undefined as number | undefined), (undefined as BlurOptions | undefined | undefined), (undefined as SystemAdaptiveOptions | undefined | undefined)); - } - } - } - if (modifier._sharedTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sharedTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sharedTransition(modifier._sharedTransition_0_0value, modifier._sharedTransition_0_1value); - break; - } - default: { - this.sharedTransition((undefined as string | undefined), (undefined as sharedTransitionOptions | undefined | undefined)); - } - } - } - if (modifier._chainMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._chainMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.chainMode(modifier._chainMode_0_0value, modifier._chainMode_0_1value); - break; - } - default: { - this.chainMode((undefined as Axis | undefined), (undefined as ChainStyle | undefined)); - } - } - } - if (modifier._onDrop_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDrop_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDrop(modifier._onDrop_1_0value, modifier._onDrop_1_1value); - break; - } - default: { - this.onDrop((undefined as OnDragEventCallback | undefined), (undefined as DropOptions | undefined | undefined)); - } - } - } - if (modifier._dragPreview_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._dragPreview_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.dragPreview(modifier._dragPreview_1_0value, modifier._dragPreview_1_1value); - break; - } - default: { - this.dragPreview((undefined as CustomBuilder | DragItemInfo | string | undefined), (undefined as PreviewConfiguration | undefined | undefined)); - } - } - } - if (modifier._dragPreviewOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._dragPreviewOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.dragPreviewOptions(modifier._dragPreviewOptions_0_0value, modifier._dragPreviewOptions_0_1value); - break; - } - default: { - this.dragPreviewOptions((undefined as DragPreviewOptions | undefined), (undefined as DragInteractionOptions | undefined | undefined)); - } - } - } - if (modifier._overlay_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._overlay_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.overlay(modifier._overlay_0_0value, modifier._overlay_0_1value); - break; - } - default: { - this.overlay((undefined as string | CustomBuilder | ComponentContent | undefined), (undefined as OverlayOptions | undefined | undefined)); - } - } - } - if (modifier._blendMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._blendMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.blendMode(modifier._blendMode_0_0value, modifier._blendMode_0_1value); - break; - } - default: { - this.blendMode((undefined as BlendMode | undefined), (undefined as BlendApplyType | undefined | undefined)); - } - } - } - if (modifier._geometryTransition_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._geometryTransition_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.geometryTransition(modifier._geometryTransition_1_0value, modifier._geometryTransition_1_1value); - break; - } - default: { - this.geometryTransition((undefined as string | undefined), (undefined as GeometryTransitionOptions | undefined | undefined)); - } - } - } - if (modifier._bindTips_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindTips_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindTips(modifier._bindTips_0_0value, modifier._bindTips_0_1value); - break; - } - default: { - this.bindTips((undefined as TipsMessageType | undefined), (undefined as TipsOptions | undefined | undefined)); - } - } - } - if (modifier._bindPopup_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindPopup_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindPopup(modifier._bindPopup_0_0value, modifier._bindPopup_0_1value); - break; - } - default: { - this.bindPopup((undefined as boolean | undefined), (undefined as PopupOptions | CustomPopupOptions | undefined)); - } - } - } - if (modifier._bindMenu_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindMenu_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindMenu(modifier._bindMenu_0_0value, modifier._bindMenu_0_1value); - break; - } - default: { - this.bindMenu((undefined as Array | CustomBuilder | undefined), (undefined as MenuOptions | undefined | undefined)); - } - } - } - if (modifier._bindMenu_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindMenu_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindMenu(modifier._bindMenu_1_0value, modifier._bindMenu_1_1value, modifier._bindMenu_1_2value); - break; - } - default: { - this.bindMenu((undefined as boolean | undefined), (undefined as Array | CustomBuilder | undefined), (undefined as MenuOptions | undefined | undefined)); - } - } - } - if (modifier._bindContextMenu_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindContextMenu_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindContextMenu(modifier._bindContextMenu_0_0value, modifier._bindContextMenu_0_1value, modifier._bindContextMenu_0_2value); - break; - } - default: { - this.bindContextMenu((undefined as CustomBuilder | undefined), (undefined as ResponseType | undefined), (undefined as ContextMenuOptions | undefined | undefined)); - } - } - } - if (modifier._bindContextMenu_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindContextMenu_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindContextMenu(modifier._bindContextMenu_1_0value, modifier._bindContextMenu_1_1value, modifier._bindContextMenu_1_2value); - break; - } - default: { - this.bindContextMenu((undefined as boolean | undefined), (undefined as CustomBuilder | undefined), (undefined as ContextMenuOptions | undefined | undefined)); - } - } - } - if (modifier._bindContentCover_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindContentCover_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindContentCover(modifier._bindContentCover_0_0value, modifier._bindContentCover_0_1value, modifier._bindContentCover_0_2value); - break; - } - default: { - this.bindContentCover((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as ModalTransition | undefined | undefined)); - } - } - } - if (modifier._bindContentCover_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindContentCover_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindContentCover(modifier._bindContentCover_1_0value, modifier._bindContentCover_1_1value, modifier._bindContentCover_1_2value); - break; - } - default: { - this.bindContentCover((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as ContentCoverOptions | undefined | undefined)); - } - } - } - if (modifier._bindSheet_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindSheet_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindSheet(modifier._bindSheet_0_0value, modifier._bindSheet_0_1value, modifier._bindSheet_0_2value); - break; - } - default: { - this.bindSheet((undefined as boolean | Bindable | undefined), (undefined as CustomBuilder | undefined), (undefined as SheetOptions | undefined | undefined)); - } - } - } - if (modifier._onVisibleAreaChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onVisibleAreaChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onVisibleAreaChange(modifier._onVisibleAreaChange_0_0value, modifier._onVisibleAreaChange_0_1value); - break; - } - default: { - this.onVisibleAreaChange((undefined as Array | undefined), (undefined as VisibleAreaChangeCallback | undefined)); - } - } - } - if (modifier._onVisibleAreaApproximateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onVisibleAreaApproximateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onVisibleAreaApproximateChange(modifier._onVisibleAreaApproximateChange_0_0value, modifier._onVisibleAreaApproximateChange_0_1value); - break; - } - default: { - this.onVisibleAreaApproximateChange((undefined as VisibleAreaEventOptions | undefined), (undefined as VisibleAreaChangeCallback | undefined)); - } - } - } - if (modifier._keyboardShortcut_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._keyboardShortcut_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.keyboardShortcut(modifier._keyboardShortcut_0_0value, modifier._keyboardShortcut_0_1value, modifier._keyboardShortcut_0_2value); - break; - } - default: { - this.keyboardShortcut((undefined as string | FunctionKey | undefined), (undefined as Array | undefined), (undefined as (() => void) | undefined | undefined)); - } - } - } - if (modifier._accessibilityGroup_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._accessibilityGroup_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.accessibilityGroup(modifier._accessibilityGroup_1_0value, modifier._accessibilityGroup_1_1value); - break; - } - default: { - this.accessibilityGroup((undefined as boolean | undefined), (undefined as AccessibilityOptions | undefined)); - } - } - } - if (modifier._onGestureRecognizerJudgeBegin_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onGestureRecognizerJudgeBegin_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onGestureRecognizerJudgeBegin(modifier._onGestureRecognizerJudgeBegin_1_0value, modifier._onGestureRecognizerJudgeBegin_1_1value); - break; - } - default: { - this.onGestureRecognizerJudgeBegin((undefined as GestureRecognizerJudgeBeginCallback | undefined), (undefined as boolean | undefined)); - } - } - } - } - width(value: Length | LayoutPolicy | undefined): this { - if (((this._width_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._width_0_flag = AttributeUpdaterFlag.UPDATE - this._width_0_0value = value - } else - { - this._width_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - height(value: Length | LayoutPolicy | undefined): this { - if (((this._height_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._height_0_flag = AttributeUpdaterFlag.UPDATE - this._height_0_0value = value - } else - { - this._height_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - drawModifier(value: DrawModifier | undefined): this { - if (((this._drawModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._drawModifier_0_flag = AttributeUpdaterFlag.UPDATE - this._drawModifier_0_0value = value - } else - { - this._drawModifier_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - responseRegion(value: Array | Rectangle | undefined): this { - if (((this._responseRegion_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._responseRegion_0_flag = AttributeUpdaterFlag.UPDATE - this._responseRegion_0_0value = value - } else - { - this._responseRegion_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - mouseResponseRegion(value: Array | Rectangle | undefined): this { - if (((this._mouseResponseRegion_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.UPDATE - this._mouseResponseRegion_0_0value = value - } else - { - this._mouseResponseRegion_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - size(value: SizeOptions | undefined): this { - if (((this._size_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._size_0_flag = AttributeUpdaterFlag.UPDATE - this._size_0_0value = value - } else - { - this._size_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - constraintSize(value: ConstraintSizeOptions | undefined): this { - if (((this._constraintSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._constraintSize_0_flag = AttributeUpdaterFlag.UPDATE - this._constraintSize_0_0value = value - } else - { - this._constraintSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hitTestBehavior(value: HitTestMode | undefined): this { - if (((this._hitTestBehavior_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._hitTestBehavior_0_flag = AttributeUpdaterFlag.UPDATE - this._hitTestBehavior_0_0value = value - } else - { - this._hitTestBehavior_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChildTouchTest(value: ((value: Array) => TouchResult) | undefined): this { - if (((this._onChildTouchTest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChildTouchTest_0_flag = AttributeUpdaterFlag.UPDATE - this._onChildTouchTest_0_0value = value - } else - { - this._onChildTouchTest_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - layoutWeight(value: number | string | undefined): this { - if (((this._layoutWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._layoutWeight_0_0value) !== (value))) - { - this._layoutWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._layoutWeight_0_0value = value - } else - { - this._layoutWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - chainWeight(value: ChainWeightOptions | undefined): this { - if (((this._chainWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._chainWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._chainWeight_0_0value = value - } else - { - this._chainWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - padding(value: Padding | Length | LocalizedPadding | undefined): this { - if (((this._padding_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._padding_0_flag = AttributeUpdaterFlag.UPDATE - this._padding_0_0value = value - } else - { - this._padding_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding | undefined): this { - if (((this._safeAreaPadding_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._safeAreaPadding_0_flag = AttributeUpdaterFlag.UPDATE - this._safeAreaPadding_0_0value = value - } else - { - this._safeAreaPadding_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - margin(value: Padding | Length | LocalizedPadding | undefined): this { - if (((this._margin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._margin_0_flag = AttributeUpdaterFlag.UPDATE - this._margin_0_0value = value - } else - { - this._margin_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundColor(value: ResourceColor | undefined): this { - if (((this._backgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._backgroundColor_0_flag = AttributeUpdaterFlag.UPDATE - this._backgroundColor_0_0value = value - } else - { - this._backgroundColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pixelRound(value: PixelRoundPolicy | undefined): this { - if (((this._pixelRound_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pixelRound_0_flag = AttributeUpdaterFlag.UPDATE - this._pixelRound_0_0value = value - } else - { - this._pixelRound_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundImageSize(value: SizeOptions | ImageSize | undefined): this { - if (((this._backgroundImageSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._backgroundImageSize_0_flag = AttributeUpdaterFlag.UPDATE - this._backgroundImageSize_0_0value = value - } else - { - this._backgroundImageSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundImagePosition(value: Position | Alignment | undefined): this { - if (((this._backgroundImagePosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.UPDATE - this._backgroundImagePosition_0_0value = value - } else - { - this._backgroundImagePosition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundEffect(value: BackgroundEffectOptions | undefined): this { - if (((this._backgroundEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._backgroundEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._backgroundEffect_0_0value = value - } else - { - this._backgroundEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundImageResizable(value: ResizableOptions | undefined): this { - if (((this._backgroundImageResizable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.UPDATE - this._backgroundImageResizable_0_0value = value - } else - { - this._backgroundImageResizable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - foregroundEffect(value: ForegroundEffectOptions | undefined): this { - if (((this._foregroundEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._foregroundEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._foregroundEffect_0_0value = value - } else - { - this._foregroundEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - visualEffect(value: uiEffect.VisualEffect | undefined): this { - if (((this._visualEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._visualEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._visualEffect_0_0value = value - } else - { - this._visualEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundFilter(value: uiEffect.Filter | undefined): this { - if (((this._backgroundFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._backgroundFilter_0_flag = AttributeUpdaterFlag.UPDATE - this._backgroundFilter_0_0value = value - } else - { - this._backgroundFilter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - foregroundFilter(value: uiEffect.Filter | undefined): this { - if (((this._foregroundFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._foregroundFilter_0_flag = AttributeUpdaterFlag.UPDATE - this._foregroundFilter_0_0value = value - } else - { - this._foregroundFilter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - compositingFilter(value: uiEffect.Filter | undefined): this { - if (((this._compositingFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._compositingFilter_0_flag = AttributeUpdaterFlag.UPDATE - this._compositingFilter_0_0value = value - } else - { - this._compositingFilter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - opacity(value: number | Resource | undefined): this { - if (((this._opacity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._opacity_0_flag = AttributeUpdaterFlag.UPDATE - this._opacity_0_0value = value - } else - { - this._opacity_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - border(value: BorderOptions | undefined): this { - if (((this._border_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._border_0_flag = AttributeUpdaterFlag.UPDATE - this._border_0_0value = value - } else - { - this._border_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - borderStyle(value: BorderStyle | EdgeStyles | undefined): this { - if (((this._borderStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._borderStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._borderStyle_0_0value = value - } else - { - this._borderStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths | undefined): this { - if (((this._borderWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._borderWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._borderWidth_0_0value = value - } else - { - this._borderWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { - if (((this._borderColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._borderColor_0_flag = AttributeUpdaterFlag.UPDATE - this._borderColor_0_0value = value - } else - { - this._borderColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined): this { - if (((this._borderRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._borderRadius_0_flag = AttributeUpdaterFlag.UPDATE - this._borderRadius_0_0value = value - } else - { - this._borderRadius_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - borderImage(value: BorderImageOption | undefined): this { - if (((this._borderImage_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._borderImage_0_flag = AttributeUpdaterFlag.UPDATE - this._borderImage_0_0value = value - } else - { - this._borderImage_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - outline(value: OutlineOptions | undefined): this { - if (((this._outline_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._outline_0_flag = AttributeUpdaterFlag.UPDATE - this._outline_0_0value = value - } else - { - this._outline_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - outlineStyle(value: OutlineStyle | EdgeOutlineStyles | undefined): this { - if (((this._outlineStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._outlineStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._outlineStyle_0_0value = value - } else - { - this._outlineStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - outlineWidth(value: Dimension | EdgeOutlineWidths | undefined): this { - if (((this._outlineWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._outlineWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._outlineWidth_0_0value = value - } else - { - this._outlineWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined): this { - if (((this._outlineColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._outlineColor_0_flag = AttributeUpdaterFlag.UPDATE - this._outlineColor_0_0value = value - } else - { - this._outlineColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - outlineRadius(value: Dimension | OutlineRadiuses | undefined): this { - if (((this._outlineRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._outlineRadius_0_flag = AttributeUpdaterFlag.UPDATE - this._outlineRadius_0_0value = value - } else - { - this._outlineRadius_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - foregroundColor(value: ResourceColor | ColoringStrategy | undefined): this { - if (((this._foregroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._foregroundColor_0_flag = AttributeUpdaterFlag.UPDATE - this._foregroundColor_0_0value = value - } else - { - this._foregroundColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onClick(value: ((event: ClickEvent) => void) | undefined): this { - if (((this._onClick_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onClick_0_flag = AttributeUpdaterFlag.UPDATE - this._onClick_0_0value = value - } else - { - this._onClick_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onHover(value: ((isHover: boolean,event: HoverEvent) => void) | undefined): this { - if (((this._onHover_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onHover_0_flag = AttributeUpdaterFlag.UPDATE - this._onHover_0_0value = value - } else - { - this._onHover_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onHoverMove(value: ((value0: HoverEvent) => void) | undefined): this { - if (((this._onHoverMove_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onHoverMove_0_flag = AttributeUpdaterFlag.UPDATE - this._onHoverMove_0_0value = value - } else - { - this._onHoverMove_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAccessibilityHover(value: AccessibilityCallback | undefined): this { - if (((this._onAccessibilityHover_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.UPDATE - this._onAccessibilityHover_0_0value = value - } else - { - this._onAccessibilityHover_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hoverEffect(value: HoverEffect | undefined): this { - if (((this._hoverEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._hoverEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._hoverEffect_0_0value = value - } else - { - this._hoverEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onMouse(value: ((event: MouseEvent) => void) | undefined): this { - if (((this._onMouse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onMouse_0_flag = AttributeUpdaterFlag.UPDATE - this._onMouse_0_0value = value - } else - { - this._onMouse_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTouch(value: ((event: TouchEvent) => void) | undefined): this { - if (((this._onTouch_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTouch_0_flag = AttributeUpdaterFlag.UPDATE - this._onTouch_0_0value = value - } else - { - this._onTouch_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onKeyEvent(value: ((event: KeyEvent) => void) | undefined): this { - if (((this._onKeyEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onKeyEvent_0_flag = AttributeUpdaterFlag.UPDATE - this._onKeyEvent_0_0value = value - } else - { - this._onKeyEvent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDigitalCrown(value: ((value0: CrownEvent) => void) | undefined): this { - if (((this._onDigitalCrown_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDigitalCrown_0_flag = AttributeUpdaterFlag.UPDATE - this._onDigitalCrown_0_0value = value - } else - { - this._onDigitalCrown_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onKeyPreIme(value: ((value0: KeyEvent) => boolean) | undefined): this { - if (((this._onKeyPreIme_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onKeyPreIme_0_flag = AttributeUpdaterFlag.UPDATE - this._onKeyPreIme_0_0value = value - } else - { - this._onKeyPreIme_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onKeyEventDispatch(value: ((value0: KeyEvent) => boolean) | undefined): this { - if (((this._onKeyEventDispatch_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.UPDATE - this._onKeyEventDispatch_0_0value = value - } else - { - this._onKeyEventDispatch_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFocusAxisEvent(value: ((value0: FocusAxisEvent) => void) | undefined): this { - if (((this._onFocusAxisEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.UPDATE - this._onFocusAxisEvent_0_0value = value - } else - { - this._onFocusAxisEvent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAxisEvent(value: ((value0: AxisEvent) => void) | undefined): this { - if (((this._onAxisEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAxisEvent_0_flag = AttributeUpdaterFlag.UPDATE - this._onAxisEvent_0_0value = value - } else - { - this._onAxisEvent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - focusable(value: boolean | undefined): this { - if (((this._focusable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._focusable_0_0value) !== (value))) - { - this._focusable_0_flag = AttributeUpdaterFlag.UPDATE - this._focusable_0_0value = value - } else - { - this._focusable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - nextFocus(value: FocusMovement | undefined): this { - if (((this._nextFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._nextFocus_0_flag = AttributeUpdaterFlag.UPDATE - this._nextFocus_0_0value = value - } else - { - this._nextFocus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - tabStop(value: boolean | undefined): this { - if (((this._tabStop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._tabStop_0_0value) !== (value))) - { - this._tabStop_0_flag = AttributeUpdaterFlag.UPDATE - this._tabStop_0_0value = value - } else - { - this._tabStop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFocus(value: (() => void) | undefined): this { - if (((this._onFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFocus_0_flag = AttributeUpdaterFlag.UPDATE - this._onFocus_0_0value = value - } else - { - this._onFocus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onBlur(value: (() => void) | undefined): this { - if (((this._onBlur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onBlur_0_flag = AttributeUpdaterFlag.UPDATE - this._onBlur_0_0value = value - } else - { - this._onBlur_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - tabIndex(value: number | undefined): this { - if (((this._tabIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._tabIndex_0_0value) !== (value))) - { - this._tabIndex_0_flag = AttributeUpdaterFlag.UPDATE - this._tabIndex_0_0value = value - } else - { - this._tabIndex_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - defaultFocus(value: boolean | undefined): this { - if (((this._defaultFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultFocus_0_0value) !== (value))) - { - this._defaultFocus_0_flag = AttributeUpdaterFlag.UPDATE - this._defaultFocus_0_0value = value - } else - { - this._defaultFocus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - groupDefaultFocus(value: boolean | undefined): this { - if (((this._groupDefaultFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._groupDefaultFocus_0_0value) !== (value))) - { - this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.UPDATE - this._groupDefaultFocus_0_0value = value - } else - { - this._groupDefaultFocus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - focusOnTouch(value: boolean | undefined): this { - if (((this._focusOnTouch_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._focusOnTouch_0_0value) !== (value))) - { - this._focusOnTouch_0_flag = AttributeUpdaterFlag.UPDATE - this._focusOnTouch_0_0value = value - } else - { - this._focusOnTouch_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - focusBox(value: FocusBoxStyle | undefined): this { - if (((this._focusBox_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._focusBox_0_flag = AttributeUpdaterFlag.UPDATE - this._focusBox_0_0value = value - } else - { - this._focusBox_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - animation(value: AnimateParam | undefined): this { - if (((this._animation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._animation_0_flag = AttributeUpdaterFlag.UPDATE - this._animation_0_0value = value - } else - { - this._animation_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - transition(value: TransitionEffect | undefined): this { - if (((this._transition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._transition_0_flag = AttributeUpdaterFlag.UPDATE - this._transition_0_0value = value - } else - { - this._transition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - motionBlur(value: MotionBlurOptions | undefined): this { - if (((this._motionBlur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._motionBlur_0_flag = AttributeUpdaterFlag.UPDATE - this._motionBlur_0_0value = value - } else - { - this._motionBlur_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - brightness(value: number | undefined): this { - if (((this._brightness_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._brightness_0_0value) !== (value))) - { - this._brightness_0_flag = AttributeUpdaterFlag.UPDATE - this._brightness_0_0value = value - } else - { - this._brightness_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - contrast(value: number | undefined): this { - if (((this._contrast_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._contrast_0_0value) !== (value))) - { - this._contrast_0_flag = AttributeUpdaterFlag.UPDATE - this._contrast_0_0value = value - } else - { - this._contrast_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - grayscale(value: number | undefined): this { - if (((this._grayscale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._grayscale_0_0value) !== (value))) - { - this._grayscale_0_flag = AttributeUpdaterFlag.UPDATE - this._grayscale_0_0value = value - } else - { - this._grayscale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - colorBlend(value: Color | string | Resource | undefined): this { - if (((this._colorBlend_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._colorBlend_0_flag = AttributeUpdaterFlag.UPDATE - this._colorBlend_0_0value = value - } else - { - this._colorBlend_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - saturate(value: number | undefined): this { - if (((this._saturate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._saturate_0_0value) !== (value))) - { - this._saturate_0_flag = AttributeUpdaterFlag.UPDATE - this._saturate_0_0value = value - } else - { - this._saturate_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sepia(value: number | undefined): this { - if (((this._sepia_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._sepia_0_0value) !== (value))) - { - this._sepia_0_flag = AttributeUpdaterFlag.UPDATE - this._sepia_0_0value = value - } else - { - this._sepia_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - invert(value: number | InvertOptions | undefined): this { - if (((this._invert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._invert_0_flag = AttributeUpdaterFlag.UPDATE - this._invert_0_0value = value - } else - { - this._invert_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hueRotate(value: number | string | undefined): this { - if (((this._hueRotate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hueRotate_0_0value) !== (value))) - { - this._hueRotate_0_flag = AttributeUpdaterFlag.UPDATE - this._hueRotate_0_0value = value - } else - { - this._hueRotate_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - useShadowBatching(value: boolean | undefined): this { - if (((this._useShadowBatching_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._useShadowBatching_0_0value) !== (value))) - { - this._useShadowBatching_0_flag = AttributeUpdaterFlag.UPDATE - this._useShadowBatching_0_0value = value - } else - { - this._useShadowBatching_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - useEffect(value: boolean | undefined): this { - if (((this._useEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._useEffect_0_0value) !== (value))) - { - this._useEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._useEffect_0_0value = value - } else - { - this._useEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - renderGroup(value: boolean | undefined): this { - if (((this._renderGroup_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._renderGroup_0_0value) !== (value))) - { - this._renderGroup_0_flag = AttributeUpdaterFlag.UPDATE - this._renderGroup_0_0value = value - } else - { - this._renderGroup_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - freeze(value: boolean | undefined): this { - if (((this._freeze_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._freeze_0_0value) !== (value))) - { - this._freeze_0_flag = AttributeUpdaterFlag.UPDATE - this._freeze_0_0value = value - } else - { - this._freeze_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - translate(value: TranslateOptions | undefined): this { - if (((this._translate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._translate_0_flag = AttributeUpdaterFlag.UPDATE - this._translate_0_0value = value - } else - { - this._translate_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - scale(value: ScaleOptions | undefined): this { - if (((this._scale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._scale_0_flag = AttributeUpdaterFlag.UPDATE - this._scale_0_0value = value - } else - { - this._scale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - rotate(value: RotateOptions | undefined): this { - if (((this._rotate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._rotate_0_flag = AttributeUpdaterFlag.UPDATE - this._rotate_0_0value = value - } else - { - this._rotate_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - transform(value: Object | undefined): this { - if (((this._transform_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._transform_0_0value) !== (value))) - { - this._transform_0_flag = AttributeUpdaterFlag.UPDATE - this._transform_0_0value = value - } else - { - this._transform_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAppear(value: (() => void) | undefined): this { - if (((this._onAppear_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAppear_0_flag = AttributeUpdaterFlag.UPDATE - this._onAppear_0_0value = value - } else - { - this._onAppear_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDisAppear(value: (() => void) | undefined): this { - if (((this._onDisAppear_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDisAppear_0_flag = AttributeUpdaterFlag.UPDATE - this._onDisAppear_0_0value = value - } else - { - this._onDisAppear_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAttach(value: VoidCallback | undefined): this { - if (((this._onAttach_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAttach_0_flag = AttributeUpdaterFlag.UPDATE - this._onAttach_0_0value = value - } else - { - this._onAttach_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDetach(value: VoidCallback | undefined): this { - if (((this._onDetach_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDetach_0_flag = AttributeUpdaterFlag.UPDATE - this._onDetach_0_0value = value - } else - { - this._onDetach_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAreaChange(value: ((oldValue: Area,newValue: Area) => void) | undefined): this { - if (((this._onAreaChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAreaChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onAreaChange_0_0value = value - } else - { - this._onAreaChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - visibility(value: Visibility | undefined): this { - if (((this._visibility_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._visibility_0_flag = AttributeUpdaterFlag.UPDATE - this._visibility_0_0value = value - } else - { - this._visibility_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - flexGrow(value: number | undefined): this { - if (((this._flexGrow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._flexGrow_0_0value) !== (value))) - { - this._flexGrow_0_flag = AttributeUpdaterFlag.UPDATE - this._flexGrow_0_0value = value - } else - { - this._flexGrow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - flexShrink(value: number | undefined): this { - if (((this._flexShrink_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._flexShrink_0_0value) !== (value))) - { - this._flexShrink_0_flag = AttributeUpdaterFlag.UPDATE - this._flexShrink_0_0value = value - } else - { - this._flexShrink_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - flexBasis(value: number | string | undefined): this { - if (((this._flexBasis_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._flexBasis_0_0value) !== (value))) - { - this._flexBasis_0_flag = AttributeUpdaterFlag.UPDATE - this._flexBasis_0_0value = value - } else - { - this._flexBasis_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - alignSelf(value: ItemAlign | undefined): this { - if (((this._alignSelf_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alignSelf_0_flag = AttributeUpdaterFlag.UPDATE - this._alignSelf_0_0value = value - } else - { - this._alignSelf_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - displayPriority(value: number | undefined): this { - if (((this._displayPriority_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._displayPriority_0_0value) !== (value))) - { - this._displayPriority_0_flag = AttributeUpdaterFlag.UPDATE - this._displayPriority_0_0value = value - } else - { - this._displayPriority_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - zIndex(value: number | undefined): this { - if (((this._zIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._zIndex_0_0value) !== (value))) - { - this._zIndex_0_flag = AttributeUpdaterFlag.UPDATE - this._zIndex_0_0value = value - } else - { - this._zIndex_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - direction(value: Direction | undefined): this { - if (((this._direction_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._direction_0_flag = AttributeUpdaterFlag.UPDATE - this._direction_0_0value = value - } else - { - this._direction_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - align(value: Alignment | undefined): this { - if (((this._align_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._align_0_flag = AttributeUpdaterFlag.UPDATE - this._align_0_0value = value - } else - { - this._align_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - position(value: Position | Edges | LocalizedEdges | undefined): this { - if (((this._position_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._position_0_flag = AttributeUpdaterFlag.UPDATE - this._position_0_0value = value - } else - { - this._position_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - markAnchor(value: Position | LocalizedPosition | undefined): this { - if (((this._markAnchor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._markAnchor_0_flag = AttributeUpdaterFlag.UPDATE - this._markAnchor_0_0value = value - } else - { - this._markAnchor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - offset(value: Position | Edges | LocalizedEdges | undefined): this { - if (((this._offset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._offset_0_flag = AttributeUpdaterFlag.UPDATE - this._offset_0_0value = value - } else - { - this._offset_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enabled(value: boolean | undefined): this { - if (((this._enabled_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enabled_0_0value) !== (value))) - { - this._enabled_0_flag = AttributeUpdaterFlag.UPDATE - this._enabled_0_0value = value - } else - { - this._enabled_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - alignRules(value: AlignRuleOption | undefined): this { - if (((this._alignRules_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alignRules_0_flag = AttributeUpdaterFlag.UPDATE - this._alignRules_0_0value = value - } else - { - this._alignRules_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - alignRules(value: LocalizedAlignRuleOptions | undefined): this { - if (((this._alignRules_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alignRules_1_flag = AttributeUpdaterFlag.UPDATE - this._alignRules_1_0value = value - } else - { - this._alignRules_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - aspectRatio(value: number | undefined): this { - if (((this._aspectRatio_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._aspectRatio_0_0value) !== (value))) - { - this._aspectRatio_0_flag = AttributeUpdaterFlag.UPDATE - this._aspectRatio_0_0value = value - } else - { - this._aspectRatio_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - clickEffect(value: ClickEffect | undefined): this { - if (((this._clickEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._clickEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._clickEffect_0_0value = value - } else - { - this._clickEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) | undefined): this { - if (((this._onDragStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDragStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onDragStart_0_0value = value - } else - { - this._onDragStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDragEnter(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (((this._onDragEnter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDragEnter_0_flag = AttributeUpdaterFlag.UPDATE - this._onDragEnter_0_0value = value - } else - { - this._onDragEnter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDragMove(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (((this._onDragMove_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDragMove_0_flag = AttributeUpdaterFlag.UPDATE - this._onDragMove_0_0value = value - } else - { - this._onDragMove_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDragLeave(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (((this._onDragLeave_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDragLeave_0_flag = AttributeUpdaterFlag.UPDATE - this._onDragLeave_0_0value = value - } else - { - this._onDragLeave_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDrop(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (((this._onDrop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDrop_0_flag = AttributeUpdaterFlag.UPDATE - this._onDrop_0_0value = value - } else - { - this._onDrop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDragEnd(value: ((event: DragEvent,extraParams?: string) => void) | undefined): this { - if (((this._onDragEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDragEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._onDragEnd_0_0value = value - } else - { - this._onDragEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - allowDrop(value: Array | undefined): this { - if (((this._allowDrop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._allowDrop_0_flag = AttributeUpdaterFlag.UPDATE - this._allowDrop_0_0value = value - } else - { - this._allowDrop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - draggable(value: boolean | undefined): this { - if (((this._draggable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._draggable_0_0value) !== (value))) - { - this._draggable_0_flag = AttributeUpdaterFlag.UPDATE - this._draggable_0_0value = value - } else - { - this._draggable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - dragPreview(value: CustomBuilder | DragItemInfo | string | undefined): this { - if (((this._dragPreview_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._dragPreview_0_flag = AttributeUpdaterFlag.UPDATE - this._dragPreview_0_0value = value - } else - { - this._dragPreview_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPreDrag(value: ((value0: PreDragStatus) => void) | undefined): this { - if (((this._onPreDrag_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPreDrag_0_flag = AttributeUpdaterFlag.UPDATE - this._onPreDrag_0_0value = value - } else - { - this._onPreDrag_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - linearGradient(value: LinearGradientOptions | undefined): this { - if (((this._linearGradient_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._linearGradient_0_flag = AttributeUpdaterFlag.UPDATE - this._linearGradient_0_0value = value - } else - { - this._linearGradient_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sweepGradient(value: SweepGradientOptions | undefined): this { - if (((this._sweepGradient_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._sweepGradient_0_flag = AttributeUpdaterFlag.UPDATE - this._sweepGradient_0_0value = value - } else - { - this._sweepGradient_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - radialGradient(value: RadialGradientOptions | undefined): this { - if (((this._radialGradient_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._radialGradient_0_flag = AttributeUpdaterFlag.UPDATE - this._radialGradient_0_0value = value - } else - { - this._radialGradient_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - motionPath(value: MotionPathOptions | undefined): this { - if (((this._motionPath_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._motionPath_0_flag = AttributeUpdaterFlag.UPDATE - this._motionPath_0_0value = value - } else - { - this._motionPath_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - shadow(value: ShadowOptions | ShadowStyle | undefined): this { - if (((this._shadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._shadow_0_flag = AttributeUpdaterFlag.UPDATE - this._shadow_0_0value = value - } else - { - this._shadow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - clip(value: boolean | undefined): this { - if (((this._clip_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._clip_0_0value) !== (value))) - { - this._clip_0_flag = AttributeUpdaterFlag.UPDATE - this._clip_0_0value = value - } else - { - this._clip_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - clipShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { - if (((this._clipShape_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._clipShape_0_flag = AttributeUpdaterFlag.UPDATE - this._clipShape_0_0value = value - } else - { - this._clipShape_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - mask(value: ProgressMask | undefined): this { - if (((this._mask_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._mask_0_flag = AttributeUpdaterFlag.UPDATE - this._mask_0_0value = value - } else - { - this._mask_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maskShape(value: CircleShape | EllipseShape | PathShape | RectShape | undefined): this { - if (((this._maskShape_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._maskShape_0_flag = AttributeUpdaterFlag.UPDATE - this._maskShape_0_0value = value - } else - { - this._maskShape_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - key(value: string | undefined): this { - if (((this._key_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._key_0_0value) !== (value))) - { - this._key_0_flag = AttributeUpdaterFlag.UPDATE - this._key_0_0value = value - } else - { - this._key_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - id(value: string | undefined): this { - if (((this._id_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._id_0_0value) !== (value))) - { - this._id_0_flag = AttributeUpdaterFlag.UPDATE - this._id_0_0value = value - } else - { - this._id_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - geometryTransition(value: string | undefined): this { - if (((this._geometryTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._geometryTransition_0_0value) !== (value))) - { - this._geometryTransition_0_flag = AttributeUpdaterFlag.UPDATE - this._geometryTransition_0_0value = value - } else - { - this._geometryTransition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - restoreId(value: number | undefined): this { - if (((this._restoreId_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._restoreId_0_0value) !== (value))) - { - this._restoreId_0_flag = AttributeUpdaterFlag.UPDATE - this._restoreId_0_0value = value - } else - { - this._restoreId_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sphericalEffect(value: number | undefined): this { - if (((this._sphericalEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._sphericalEffect_0_0value) !== (value))) - { - this._sphericalEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._sphericalEffect_0_0value = value - } else - { - this._sphericalEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - lightUpEffect(value: number | undefined): this { - if (((this._lightUpEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._lightUpEffect_0_0value) !== (value))) - { - this._lightUpEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._lightUpEffect_0_0value = value - } else - { - this._lightUpEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pixelStretchEffect(value: PixelStretchEffectOptions | undefined): this { - if (((this._pixelStretchEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._pixelStretchEffect_0_0value = value - } else - { - this._pixelStretchEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityGroup(value: boolean | undefined): this { - if (((this._accessibilityGroup_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityGroup_0_0value) !== (value))) - { - this._accessibilityGroup_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityGroup_0_0value = value - } else - { - this._accessibilityGroup_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityText(value: string | undefined): this { - if (((this._accessibilityText_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityText_0_0value) !== (value))) - { - this._accessibilityText_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityText_0_0value = value - } else - { - this._accessibilityText_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityNextFocusId(value: string | undefined): this { - if (((this._accessibilityNextFocusId_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityNextFocusId_0_0value) !== (value))) - { - this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityNextFocusId_0_0value = value - } else - { - this._accessibilityNextFocusId_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityDefaultFocus(value: boolean | undefined): this { - if (((this._accessibilityDefaultFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityDefaultFocus_0_0value) !== (value))) - { - this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityDefaultFocus_0_0value = value - } else - { - this._accessibilityDefaultFocus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityUseSamePage(value: AccessibilitySamePageMode | undefined): this { - if (((this._accessibilityUseSamePage_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityUseSamePage_0_0value = value - } else - { - this._accessibilityUseSamePage_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityScrollTriggerable(value: boolean | undefined): this { - if (((this._accessibilityScrollTriggerable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityScrollTriggerable_0_0value) !== (value))) - { - this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityScrollTriggerable_0_0value = value - } else - { - this._accessibilityScrollTriggerable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityText(value: Resource | undefined): this { - if (((this._accessibilityText_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._accessibilityText_1_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityText_1_0value = value - } else - { - this._accessibilityText_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityRole(value: AccessibilityRoleType | undefined): this { - if (((this._accessibilityRole_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._accessibilityRole_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityRole_0_0value = value - } else - { - this._accessibilityRole_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAccessibilityFocus(value: AccessibilityFocusCallback | undefined): this { - if (((this._onAccessibilityFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.UPDATE - this._onAccessibilityFocus_0_0value = value - } else - { - this._onAccessibilityFocus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityTextHint(value: string | undefined): this { - if (((this._accessibilityTextHint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityTextHint_0_0value) !== (value))) - { - this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityTextHint_0_0value = value - } else - { - this._accessibilityTextHint_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityDescription(value: string | undefined): this { - if (((this._accessibilityDescription_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityDescription_0_0value) !== (value))) - { - this._accessibilityDescription_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityDescription_0_0value = value - } else - { - this._accessibilityDescription_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityDescription(value: Resource | undefined): this { - if (((this._accessibilityDescription_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._accessibilityDescription_1_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityDescription_1_0value = value - } else - { - this._accessibilityDescription_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityLevel(value: string | undefined): this { - if (((this._accessibilityLevel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityLevel_0_0value) !== (value))) - { - this._accessibilityLevel_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityLevel_0_0value = value - } else - { - this._accessibilityLevel_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityVirtualNode(value: CustomBuilder | undefined): this { - if (((this._accessibilityVirtualNode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityVirtualNode_0_0value = value - } else - { - this._accessibilityVirtualNode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityChecked(value: boolean | undefined): this { - if (((this._accessibilityChecked_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityChecked_0_0value) !== (value))) - { - this._accessibilityChecked_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityChecked_0_0value = value - } else - { - this._accessibilityChecked_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilitySelected(value: boolean | undefined): this { - if (((this._accessibilitySelected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilitySelected_0_0value) !== (value))) - { - this._accessibilitySelected_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilitySelected_0_0value = value - } else - { - this._accessibilitySelected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - obscured(value: Array | undefined): this { - if (((this._obscured_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._obscured_0_flag = AttributeUpdaterFlag.UPDATE - this._obscured_0_0value = value - } else - { - this._obscured_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - reuseId(value: string | undefined): this { - if (((this._reuseId_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._reuseId_0_0value) !== (value))) - { - this._reuseId_0_flag = AttributeUpdaterFlag.UPDATE - this._reuseId_0_0value = value - } else - { - this._reuseId_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - reuse(value: ReuseOptions | undefined): this { - if (((this._reuse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._reuse_0_flag = AttributeUpdaterFlag.UPDATE - this._reuse_0_0value = value - } else - { - this._reuse_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - renderFit(value: RenderFit | undefined): this { - if (((this._renderFit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._renderFit_0_flag = AttributeUpdaterFlag.UPDATE - this._renderFit_0_0value = value - } else - { - this._renderFit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - gestureModifier(value: GestureModifier | undefined): this { - if (((this._gestureModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._gestureModifier_0_flag = AttributeUpdaterFlag.UPDATE - this._gestureModifier_0_0value = value - } else - { - this._gestureModifier_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundBrightness(value: BackgroundBrightnessOptions | undefined): this { - if (((this._backgroundBrightness_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._backgroundBrightness_0_flag = AttributeUpdaterFlag.UPDATE - this._backgroundBrightness_0_0value = value - } else - { - this._backgroundBrightness_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) | undefined): this { - if (((this._onGestureJudgeBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.UPDATE - this._onGestureJudgeBegin_0_0value = value - } else - { - this._onGestureJudgeBegin_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onGestureRecognizerJudgeBegin(value: GestureRecognizerJudgeBeginCallback | undefined): this { - if (((this._onGestureRecognizerJudgeBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.UPDATE - this._onGestureRecognizerJudgeBegin_0_0value = value - } else - { - this._onGestureRecognizerJudgeBegin_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback | undefined): this { - if (((this._shouldBuiltInRecognizerParallelWith_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.UPDATE - this._shouldBuiltInRecognizerParallelWith_0_0value = value - } else - { - this._shouldBuiltInRecognizerParallelWith_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - monopolizeEvents(value: boolean | undefined): this { - if (((this._monopolizeEvents_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._monopolizeEvents_0_0value) !== (value))) - { - this._monopolizeEvents_0_flag = AttributeUpdaterFlag.UPDATE - this._monopolizeEvents_0_0value = value - } else - { - this._monopolizeEvents_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTouchIntercept(value: ((value0: TouchEvent) => HitTestMode) | undefined): this { - if (((this._onTouchIntercept_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTouchIntercept_0_flag = AttributeUpdaterFlag.UPDATE - this._onTouchIntercept_0_0value = value - } else - { - this._onTouchIntercept_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSizeChange(value: SizeChangeCallback | undefined): this { - if (((this._onSizeChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSizeChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onSizeChange_0_0value = value - } else - { - this._onSizeChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityFocusDrawLevel(value: FocusDrawLevel | undefined): this { - if (((this._accessibilityFocusDrawLevel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityFocusDrawLevel_0_0value = value - } else - { - this._accessibilityFocusDrawLevel_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - customProperty(name: string, value: CustomProperty): this { - throw new Error("Not implemented") - } - expandSafeArea(types?: Array, edges?: Array): this { - if (((this._expandSafeArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._expandSafeArea_0_flag = AttributeUpdaterFlag.UPDATE - this._expandSafeArea_0_0value = types - this._expandSafeArea_0_1value = edges - } else - { - this._expandSafeArea_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - background(builder: CustomBuilder | undefined, options?: BackgroundOptions): this { - if (((this._background_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._background_0_flag = AttributeUpdaterFlag.UPDATE - this._background_0_0value = builder - this._background_0_1value = options - } else - { - this._background_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundImage(src: ResourceStr | image.PixelMap | undefined, repeat?: ImageRepeat): this { - if (((this._backgroundImage_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._backgroundImage_0_flag = AttributeUpdaterFlag.UPDATE - this._backgroundImage_0_0value = src - this._backgroundImage_0_1value = repeat - } else - { - this._backgroundImage_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundImage(src: ResourceStr | image.PixelMap | undefined, options?: BackgroundImageOptions): this { - if (((this._backgroundImage_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._backgroundImage_1_flag = AttributeUpdaterFlag.UPDATE - this._backgroundImage_1_0value = src - this._backgroundImage_1_1value = options - } else - { - this._backgroundImage_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundBlurStyle(style: BlurStyle | undefined, options?: BackgroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { - if (((this._backgroundBlurStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) - { - this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._backgroundBlurStyle_0_0value = style - this._backgroundBlurStyle_0_1value = options - this._backgroundBlurStyle_0_2value = sysOptions - } else - { - this._backgroundBlurStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backgroundEffect(options: BackgroundEffectOptions | undefined, sysOptions?: SystemAdaptiveOptions): this { - if (((this._backgroundEffect_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._backgroundEffect_1_flag = AttributeUpdaterFlag.UPDATE - this._backgroundEffect_1_0value = options - this._backgroundEffect_1_1value = sysOptions - } else - { - this._backgroundEffect_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - foregroundBlurStyle(style: BlurStyle | undefined, options?: ForegroundBlurStyleOptions, sysOptions?: SystemAdaptiveOptions): this { - if (((this._foregroundBlurStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) - { - this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._foregroundBlurStyle_0_0value = style - this._foregroundBlurStyle_0_1value = options - this._foregroundBlurStyle_0_2value = sysOptions - } else - { - this._foregroundBlurStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onClick(event: ((event: ClickEvent) => void) | undefined, distanceThreshold: number | undefined): this { - if (((this._onClick_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._onClick_1_1value) !== (distanceThreshold))) - { - this._onClick_1_flag = AttributeUpdaterFlag.UPDATE - this._onClick_1_0value = event - this._onClick_1_1value = distanceThreshold - } else - { - this._onClick_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - focusScopeId(id: string | undefined, isGroup?: boolean, arrowStepOut?: boolean): this { - if (((this._focusScopeId_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._focusScopeId_0_0value) !== (id)) || ((this._focusScopeId_0_1value) !== (isGroup)) || ((this._focusScopeId_0_2value) !== (arrowStepOut))) - { - this._focusScopeId_0_flag = AttributeUpdaterFlag.UPDATE - this._focusScopeId_0_0value = id - this._focusScopeId_0_1value = isGroup - this._focusScopeId_0_2value = arrowStepOut - } else - { - this._focusScopeId_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - focusScopePriority(scopeId: string | undefined, priority?: FocusPriority): this { - if (((this._focusScopePriority_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._focusScopePriority_0_0value) !== (scopeId)) || (true)) - { - this._focusScopePriority_0_flag = AttributeUpdaterFlag.UPDATE - this._focusScopePriority_0_0value = scopeId - this._focusScopePriority_0_1value = priority - } else - { - this._focusScopePriority_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - transition(effect: TransitionEffect | undefined, onFinish: TransitionFinishCallback | undefined): this { - if (((this._transition_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._transition_1_flag = AttributeUpdaterFlag.UPDATE - this._transition_1_0value = effect - this._transition_1_1value = onFinish - } else - { - this._transition_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - gesture(gesture: GestureType | undefined, mask?: GestureMask): this { - if (((this._gesture_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._gesture_0_flag = AttributeUpdaterFlag.UPDATE - this._gesture_0_0value = gesture - this._gesture_0_1value = mask - } else - { - this._gesture_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - priorityGesture(gesture: GestureType | undefined, mask?: GestureMask): this { - if (((this._priorityGesture_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._priorityGesture_0_flag = AttributeUpdaterFlag.UPDATE - this._priorityGesture_0_0value = gesture - this._priorityGesture_0_1value = mask - } else - { - this._priorityGesture_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - parallelGesture(gesture: GestureType | undefined, mask?: GestureMask): this { - if (((this._parallelGesture_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._parallelGesture_0_flag = AttributeUpdaterFlag.UPDATE - this._parallelGesture_0_0value = gesture - this._parallelGesture_0_1value = mask - } else - { - this._parallelGesture_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - blur(blurRadius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { - if (((this._blur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._blur_0_0value) !== (blurRadius)) || (true) || (true)) - { - this._blur_0_flag = AttributeUpdaterFlag.UPDATE - this._blur_0_0value = blurRadius - this._blur_0_1value = options - this._blur_0_2value = sysOptions - } else - { - this._blur_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - linearGradientBlur(value: number | undefined, options: LinearGradientBlurOptions | undefined): this { - if (((this._linearGradientBlur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._linearGradientBlur_0_0value) !== (value)) || (true)) - { - this._linearGradientBlur_0_flag = AttributeUpdaterFlag.UPDATE - this._linearGradientBlur_0_0value = value - this._linearGradientBlur_0_1value = options - } else - { - this._linearGradientBlur_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - systemBarEffect(): this { - if ((this._systemBarEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) - { - this._systemBarEffect_0_flag = AttributeUpdaterFlag.UPDATE - } else - { - this._systemBarEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - useEffect(useEffect: boolean | undefined, effectType: EffectType | undefined): this { - if (((this._useEffect_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._useEffect_1_0value) !== (useEffect)) || (true)) - { - this._useEffect_1_flag = AttributeUpdaterFlag.UPDATE - this._useEffect_1_0value = useEffect - this._useEffect_1_1value = effectType - } else - { - this._useEffect_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backdropBlur(radius: number | undefined, options?: BlurOptions, sysOptions?: SystemAdaptiveOptions): this { - if (((this._backdropBlur_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._backdropBlur_0_0value) !== (radius)) || (true) || (true)) - { - this._backdropBlur_0_flag = AttributeUpdaterFlag.UPDATE - this._backdropBlur_0_0value = radius - this._backdropBlur_0_1value = options - this._backdropBlur_0_2value = sysOptions - } else - { - this._backdropBlur_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sharedTransition(id: string | undefined, options?: sharedTransitionOptions): this { - if (((this._sharedTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._sharedTransition_0_0value) !== (id)) || (true)) - { - this._sharedTransition_0_flag = AttributeUpdaterFlag.UPDATE - this._sharedTransition_0_0value = id - this._sharedTransition_0_1value = options - } else - { - this._sharedTransition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - chainMode(direction: Axis | undefined, style: ChainStyle | undefined): this { - if (((this._chainMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._chainMode_0_flag = AttributeUpdaterFlag.UPDATE - this._chainMode_0_0value = direction - this._chainMode_0_1value = style - } else - { - this._chainMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDrop(eventCallback: OnDragEventCallback | undefined, dropOptions?: DropOptions): this { - if (((this._onDrop_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._onDrop_1_flag = AttributeUpdaterFlag.UPDATE - this._onDrop_1_0value = eventCallback - this._onDrop_1_1value = dropOptions - } else - { - this._onDrop_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - dragPreview(preview: CustomBuilder | DragItemInfo | string | undefined, config?: PreviewConfiguration): this { - if (((this._dragPreview_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._dragPreview_1_flag = AttributeUpdaterFlag.UPDATE - this._dragPreview_1_0value = preview - this._dragPreview_1_1value = config - } else - { - this._dragPreview_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - dragPreviewOptions(value: DragPreviewOptions | undefined, options?: DragInteractionOptions): this { - if (((this._dragPreviewOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._dragPreviewOptions_0_0value = value - this._dragPreviewOptions_0_1value = options - } else - { - this._dragPreviewOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - overlay(value: string | CustomBuilder | ComponentContent | undefined, options?: OverlayOptions): this { - if (((this._overlay_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._overlay_0_flag = AttributeUpdaterFlag.UPDATE - this._overlay_0_0value = value - this._overlay_0_1value = options - } else - { - this._overlay_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - blendMode(value: BlendMode | undefined, type?: BlendApplyType): this { - if (((this._blendMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._blendMode_0_flag = AttributeUpdaterFlag.UPDATE - this._blendMode_0_0value = value - this._blendMode_0_1value = type - } else - { - this._blendMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - advancedBlendMode(effect: BlendMode | uiEffect.Blender, type?: BlendApplyType): this { - throw new Error("Not implemented") - } - geometryTransition(id: string | undefined, options?: GeometryTransitionOptions): this { - if (((this._geometryTransition_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._geometryTransition_1_0value) !== (id)) || (true)) - { - this._geometryTransition_1_flag = AttributeUpdaterFlag.UPDATE - this._geometryTransition_1_0value = id - this._geometryTransition_1_1value = options - } else - { - this._geometryTransition_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindTips(message: TipsMessageType | undefined, options?: TipsOptions): this { - if (((this._bindTips_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._bindTips_0_flag = AttributeUpdaterFlag.UPDATE - this._bindTips_0_0value = message - this._bindTips_0_1value = options - } else - { - this._bindTips_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindPopup(show: boolean | undefined, popup: PopupOptions | CustomPopupOptions | undefined): this { - if (((this._bindPopup_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._bindPopup_0_0value) !== (show)) || (true)) - { - this._bindPopup_0_flag = AttributeUpdaterFlag.UPDATE - this._bindPopup_0_0value = show - this._bindPopup_0_1value = popup - } else - { - this._bindPopup_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindMenu(content: Array | CustomBuilder | undefined, options?: MenuOptions): this { - if (((this._bindMenu_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._bindMenu_0_flag = AttributeUpdaterFlag.UPDATE - this._bindMenu_0_0value = content - this._bindMenu_0_1value = options - } else - { - this._bindMenu_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindMenu(isShow: boolean | undefined, content: Array | CustomBuilder | undefined, options?: MenuOptions): this { - if (((this._bindMenu_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._bindMenu_1_0value) !== (isShow)) || (true) || (true)) - { - this._bindMenu_1_flag = AttributeUpdaterFlag.UPDATE - this._bindMenu_1_0value = isShow - this._bindMenu_1_1value = content - this._bindMenu_1_2value = options - } else - { - this._bindMenu_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindContextMenu(content: CustomBuilder | undefined, responseType: ResponseType | undefined, options?: ContextMenuOptions): this { - if (((this._bindContextMenu_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) - { - this._bindContextMenu_0_flag = AttributeUpdaterFlag.UPDATE - this._bindContextMenu_0_0value = content - this._bindContextMenu_0_1value = responseType - this._bindContextMenu_0_2value = options - } else - { - this._bindContextMenu_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindContextMenu(isShown: boolean | undefined, content: CustomBuilder | undefined, options?: ContextMenuOptions): this { - if (((this._bindContextMenu_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._bindContextMenu_1_0value) !== (isShown)) || (true) || (true)) - { - this._bindContextMenu_1_flag = AttributeUpdaterFlag.UPDATE - this._bindContextMenu_1_0value = isShown - this._bindContextMenu_1_1value = content - this._bindContextMenu_1_2value = options - } else - { - this._bindContextMenu_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, type?: ModalTransition): this { - if (((this._bindContentCover_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) - { - this._bindContentCover_0_flag = AttributeUpdaterFlag.UPDATE - this._bindContentCover_0_0value = isShow - this._bindContentCover_0_1value = builder - this._bindContentCover_0_2value = type - } else - { - this._bindContentCover_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindContentCover(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: ContentCoverOptions): this { - if (((this._bindContentCover_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) - { - this._bindContentCover_1_flag = AttributeUpdaterFlag.UPDATE - this._bindContentCover_1_0value = isShow - this._bindContentCover_1_1value = builder - this._bindContentCover_1_2value = options - } else - { - this._bindContentCover_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindSheet(isShow: boolean | Bindable | undefined, builder: CustomBuilder | undefined, options?: SheetOptions): this { - if (((this._bindSheet_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) - { - this._bindSheet_0_flag = AttributeUpdaterFlag.UPDATE - this._bindSheet_0_0value = isShow - this._bindSheet_0_1value = builder - this._bindSheet_0_2value = options - } else - { - this._bindSheet_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this { - if (((this._onVisibleAreaChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._onVisibleAreaChange_0_0value) !== (ratios)) || (true)) - { - this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onVisibleAreaChange_0_0value = ratios - this._onVisibleAreaChange_0_1value = event - } else - { - this._onVisibleAreaChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onVisibleAreaApproximateChange(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): this { - if (((this._onVisibleAreaApproximateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onVisibleAreaApproximateChange_0_0value = options - this._onVisibleAreaApproximateChange_0_1value = event - } else - { - this._onVisibleAreaApproximateChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void)): this { - if (((this._keyboardShortcut_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true)) - { - this._keyboardShortcut_0_flag = AttributeUpdaterFlag.UPDATE - this._keyboardShortcut_0_0value = value - this._keyboardShortcut_0_1value = keys - this._keyboardShortcut_0_2value = action - } else - { - this._keyboardShortcut_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - accessibilityGroup(isGroup: boolean | undefined, accessibilityOptions: AccessibilityOptions | undefined): this { - if (((this._accessibilityGroup_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._accessibilityGroup_1_0value) !== (isGroup)) || (true)) - { - this._accessibilityGroup_1_flag = AttributeUpdaterFlag.UPDATE - this._accessibilityGroup_1_0value = isGroup - this._accessibilityGroup_1_1value = accessibilityOptions - } else - { - this._accessibilityGroup_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback | undefined, exposeInnerGesture: boolean | undefined): this { - if (((this._onGestureRecognizerJudgeBegin_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._onGestureRecognizerJudgeBegin_1_1value) !== (exposeInnerGesture))) - { - this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.UPDATE - this._onGestureRecognizerJudgeBegin_1_0value = callback_ - this._onGestureRecognizerJudgeBegin_1_1value = exposeInnerGesture - } else - { - this._onGestureRecognizerJudgeBegin_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export class CommonShapeMethodModifier extends CommonMethodModifier implements CommonShapeMethod { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _stroke_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stroke_0_0value?: ResourceColor | undefined - _fill_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fill_0_0value?: ResourceColor | undefined - _strokeDashOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeDashOffset_0_0value?: number | string | undefined - _strokeLineCap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeLineCap_0_0value?: LineCapStyle | undefined - _strokeLineJoin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeLineJoin_0_0value?: LineJoinStyle | undefined - _strokeMiterLimit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeMiterLimit_0_0value?: number | string | undefined - _strokeOpacity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeOpacity_0_0value?: number | string | Resource | undefined - _fillOpacity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fillOpacity_0_0value?: number | string | Resource | undefined - _strokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeWidth_0_0value?: Length | undefined - _antiAlias_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _antiAlias_0_0value?: boolean | undefined - _strokeDashArray_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeDashArray_0_0value?: Array | undefined - applyModifierPatch(peer: ArkCommonShapeMethodPeer): void { - super.applyModifierPatch(peer) - if (this._stroke_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stroke_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStrokeAttribute((this._stroke_0_0value as ResourceColor | undefined)); - this._stroke_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stroke_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stroke_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStrokeAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._fill_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fill_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFillAttribute((this._fill_0_0value as ResourceColor | undefined)); - this._fill_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fill_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fill_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFillAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._strokeDashOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._strokeDashOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStrokeDashOffsetAttribute((this._strokeDashOffset_0_0value as number | string | undefined)); - this._strokeDashOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._strokeDashOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._strokeDashOffset_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStrokeDashOffsetAttribute((undefined as number | string | undefined)); - } - } - } - if (this._strokeLineCap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._strokeLineCap_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStrokeLineCapAttribute((this._strokeLineCap_0_0value as LineCapStyle | undefined)); - this._strokeLineCap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._strokeLineCap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._strokeLineCap_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStrokeLineCapAttribute((undefined as LineCapStyle | undefined)); - } - } - } - if (this._strokeLineJoin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._strokeLineJoin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStrokeLineJoinAttribute((this._strokeLineJoin_0_0value as LineJoinStyle | undefined)); - this._strokeLineJoin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._strokeLineJoin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._strokeLineJoin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStrokeLineJoinAttribute((undefined as LineJoinStyle | undefined)); - } - } - } - if (this._strokeMiterLimit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._strokeMiterLimit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStrokeMiterLimitAttribute((this._strokeMiterLimit_0_0value as number | string | undefined)); - this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStrokeMiterLimitAttribute((undefined as number | string | undefined)); - } - } - } - if (this._strokeOpacity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._strokeOpacity_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStrokeOpacityAttribute((this._strokeOpacity_0_0value as number | string | Resource | undefined)); - this._strokeOpacity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._strokeOpacity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._strokeOpacity_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStrokeOpacityAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._fillOpacity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fillOpacity_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFillOpacityAttribute((this._fillOpacity_0_0value as number | string | Resource | undefined)); - this._fillOpacity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fillOpacity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fillOpacity_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFillOpacityAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._strokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._strokeWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStrokeWidthAttribute((this._strokeWidth_0_0value as Length | undefined)); - this._strokeWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._strokeWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._strokeWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStrokeWidthAttribute((undefined as Length | undefined)); - } - } - } - if (this._antiAlias_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._antiAlias_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAntiAliasAttribute((this._antiAlias_0_0value as boolean | undefined)); - this._antiAlias_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._antiAlias_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._antiAlias_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAntiAliasAttribute((undefined as boolean | undefined)); - } - } - } - if (this._strokeDashArray_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._strokeDashArray_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStrokeDashArrayAttribute((this._strokeDashArray_0_0value as Array | undefined)); - this._strokeDashArray_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._strokeDashArray_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._strokeDashArray_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStrokeDashArrayAttribute((undefined as Array | undefined)); - } - } - } - } - mergeModifier(modifier: CommonShapeMethodModifier): void { - super.mergeModifier(modifier) - if (modifier._stroke_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stroke_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stroke(modifier._stroke_0_0value); - break; - } - default: { - this.stroke((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._fill_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fill_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fill(modifier._fill_0_0value); - break; - } - default: { - this.fill((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._strokeDashOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._strokeDashOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.strokeDashOffset(modifier._strokeDashOffset_0_0value); - break; - } - default: { - this.strokeDashOffset((undefined as number | string | undefined)); - } - } - } - if (modifier._strokeLineCap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._strokeLineCap_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.strokeLineCap(modifier._strokeLineCap_0_0value); - break; - } - default: { - this.strokeLineCap((undefined as LineCapStyle | undefined)); - } - } - } - if (modifier._strokeLineJoin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._strokeLineJoin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.strokeLineJoin(modifier._strokeLineJoin_0_0value); - break; - } - default: { - this.strokeLineJoin((undefined as LineJoinStyle | undefined)); - } - } - } - if (modifier._strokeMiterLimit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._strokeMiterLimit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.strokeMiterLimit(modifier._strokeMiterLimit_0_0value); - break; - } - default: { - this.strokeMiterLimit((undefined as number | string | undefined)); - } - } - } - if (modifier._strokeOpacity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._strokeOpacity_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.strokeOpacity(modifier._strokeOpacity_0_0value); - break; - } - default: { - this.strokeOpacity((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._fillOpacity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fillOpacity_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fillOpacity(modifier._fillOpacity_0_0value); - break; - } - default: { - this.fillOpacity((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._strokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._strokeWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.strokeWidth(modifier._strokeWidth_0_0value); - break; - } - default: { - this.strokeWidth((undefined as Length | undefined)); - } - } - } - if (modifier._antiAlias_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._antiAlias_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.antiAlias(modifier._antiAlias_0_0value); - break; - } - default: { - this.antiAlias((undefined as boolean | undefined)); - } - } - } - if (modifier._strokeDashArray_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._strokeDashArray_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.strokeDashArray(modifier._strokeDashArray_0_0value); - break; - } - default: { - this.strokeDashArray((undefined as Array | undefined)); - } - } - } - } - stroke(value: ResourceColor | undefined): this { - if (((this._stroke_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._stroke_0_flag = AttributeUpdaterFlag.UPDATE - this._stroke_0_0value = value - } else - { - this._stroke_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fill(value: ResourceColor | undefined): this { - if (((this._fill_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fill_0_flag = AttributeUpdaterFlag.UPDATE - this._fill_0_0value = value - } else - { - this._fill_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - strokeDashOffset(value: number | string | undefined): this { - if (((this._strokeDashOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._strokeDashOffset_0_0value) !== (value))) - { - this._strokeDashOffset_0_flag = AttributeUpdaterFlag.UPDATE - this._strokeDashOffset_0_0value = value - } else - { - this._strokeDashOffset_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - strokeLineCap(value: LineCapStyle | undefined): this { - if (((this._strokeLineCap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._strokeLineCap_0_flag = AttributeUpdaterFlag.UPDATE - this._strokeLineCap_0_0value = value - } else - { - this._strokeLineCap_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - strokeLineJoin(value: LineJoinStyle | undefined): this { - if (((this._strokeLineJoin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._strokeLineJoin_0_flag = AttributeUpdaterFlag.UPDATE - this._strokeLineJoin_0_0value = value - } else - { - this._strokeLineJoin_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - strokeMiterLimit(value: number | string | undefined): this { - if (((this._strokeMiterLimit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._strokeMiterLimit_0_0value) !== (value))) - { - this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.UPDATE - this._strokeMiterLimit_0_0value = value - } else - { - this._strokeMiterLimit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - strokeOpacity(value: number | string | Resource | undefined): this { - if (((this._strokeOpacity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._strokeOpacity_0_flag = AttributeUpdaterFlag.UPDATE - this._strokeOpacity_0_0value = value - } else - { - this._strokeOpacity_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fillOpacity(value: number | string | Resource | undefined): this { - if (((this._fillOpacity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fillOpacity_0_flag = AttributeUpdaterFlag.UPDATE - this._fillOpacity_0_0value = value - } else - { - this._fillOpacity_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - strokeWidth(value: Length | undefined): this { - if (((this._strokeWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._strokeWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._strokeWidth_0_0value = value - } else - { - this._strokeWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - antiAlias(value: boolean | undefined): this { - if (((this._antiAlias_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._antiAlias_0_0value) !== (value))) - { - this._antiAlias_0_flag = AttributeUpdaterFlag.UPDATE - this._antiAlias_0_0value = value - } else - { - this._antiAlias_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - strokeDashArray(value: Array | undefined): this { - if (((this._strokeDashArray_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._strokeDashArray_0_flag = AttributeUpdaterFlag.UPDATE - this._strokeDashArray_0_0value = value - } else - { - this._strokeDashArray_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export class ScrollableCommonMethodModifier extends CommonMethodModifier implements ScrollableCommonMethod { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _scrollBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _scrollBar_0_0value?: BarState | undefined - _scrollBarColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _scrollBarColor_0_0value?: Color | number | string | undefined - _scrollBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _scrollBarWidth_0_0value?: number | string | undefined - _nestedScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _nestedScroll_0_0value?: NestedScrollOptions | undefined - _enableScrollInteraction_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableScrollInteraction_0_0value?: boolean | undefined - _friction_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _friction_0_0value?: number | Resource | undefined - _onReachStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onReachStart_0_0value?: (() => void) | undefined - _onReachEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onReachEnd_0_0value?: (() => void) | undefined - _onScrollStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollStart_0_0value?: (() => void) | undefined - _onScrollStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollStop_0_0value?: (() => void) | undefined - _flingSpeedLimit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _flingSpeedLimit_0_0value?: number | undefined - _clipContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _clipContent_0_0value?: ContentClipMode | RectShape | undefined - _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined - _backToTop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backToTop_0_0value?: boolean | undefined - _edgeEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _edgeEffect_0_0value?: EdgeEffect | undefined - _edgeEffect_0_1value?: EdgeEffectOptions | undefined - _fadingEdge_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fadingEdge_0_0value?: boolean | undefined - _fadingEdge_0_1value?: FadingEdgeOptions | undefined - applyModifierPatch(peer: ArkScrollableCommonMethodPeer): void { - super.applyModifierPatch(peer) - if (this._scrollBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._scrollBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setScrollBarAttribute((this._scrollBar_0_0value as BarState | undefined)); - this._scrollBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._scrollBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._scrollBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setScrollBarAttribute((undefined as BarState | undefined)); - } - } - } - if (this._scrollBarColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._scrollBarColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setScrollBarColorAttribute((this._scrollBarColor_0_0value as Color | number | string | undefined)); - this._scrollBarColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._scrollBarColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._scrollBarColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setScrollBarColorAttribute((undefined as Color | number | string | undefined)); - } - } - } - if (this._scrollBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._scrollBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setScrollBarWidthAttribute((this._scrollBarWidth_0_0value as number | string | undefined)); - this._scrollBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._scrollBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._scrollBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setScrollBarWidthAttribute((undefined as number | string | undefined)); - } - } - } - if (this._nestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._nestedScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNestedScrollAttribute((this._nestedScroll_0_0value as NestedScrollOptions | undefined)); - this._nestedScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._nestedScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._nestedScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setNestedScrollAttribute((undefined as NestedScrollOptions | undefined)); - } - } - } - if (this._enableScrollInteraction_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableScrollInteraction_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableScrollInteractionAttribute((this._enableScrollInteraction_0_0value as boolean | undefined)); - this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableScrollInteractionAttribute((undefined as boolean | undefined)); - } - } - } - if (this._friction_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._friction_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFrictionAttribute((this._friction_0_0value as number | Resource | undefined)); - this._friction_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._friction_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._friction_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFrictionAttribute((undefined as number | Resource | undefined)); - } - } - } - if (this._onReachStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onReachStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnReachStartAttribute((this._onReachStart_0_0value as (() => void) | undefined)); - this._onReachStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onReachStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onReachStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnReachStartAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onReachEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onReachEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnReachEndAttribute((this._onReachEnd_0_0value as (() => void) | undefined)); - this._onReachEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onReachEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onReachEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnReachEndAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onScrollStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollStartAttribute((this._onScrollStart_0_0value as (() => void) | undefined)); - this._onScrollStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScrollStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScrollStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollStartAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onScrollStop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollStop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollStopAttribute((this._onScrollStop_0_0value as (() => void) | undefined)); - this._onScrollStop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScrollStop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScrollStop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollStopAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._flingSpeedLimit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._flingSpeedLimit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFlingSpeedLimitAttribute((this._flingSpeedLimit_0_0value as number | undefined)); - this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFlingSpeedLimitAttribute((undefined as number | undefined)); - } - } - } - if (this._clipContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._clipContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setClipContentAttribute((this._clipContent_0_0value as ContentClipMode | RectShape | undefined)); - this._clipContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._clipContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._clipContent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setClipContentAttribute((undefined as ContentClipMode | RectShape | undefined)); - } - } - } - if (this._digitalCrownSensitivity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._digitalCrownSensitivity_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDigitalCrownSensitivityAttribute((this._digitalCrownSensitivity_0_0value as CrownSensitivity | undefined)); - this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDigitalCrownSensitivityAttribute((undefined as CrownSensitivity | undefined)); - } - } - } - if (this._backToTop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backToTop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackToTopAttribute((this._backToTop_0_0value as boolean | undefined)); - this._backToTop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backToTop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backToTop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackToTopAttribute((undefined as boolean | undefined)); - } - } - } - if (this._edgeEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._edgeEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEdgeEffectAttribute((this._edgeEffect_0_0value as EdgeEffect | undefined), (this._edgeEffect_0_1value as EdgeEffectOptions | undefined)); - this._edgeEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._edgeEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._edgeEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEdgeEffectAttribute((undefined as EdgeEffect | undefined), (undefined as EdgeEffectOptions | undefined | undefined)); - } - } - } - if (this._fadingEdge_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fadingEdge_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFadingEdgeAttribute((this._fadingEdge_0_0value as boolean | undefined), (this._fadingEdge_0_1value as FadingEdgeOptions | undefined)); - this._fadingEdge_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fadingEdge_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fadingEdge_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFadingEdgeAttribute((undefined as boolean | undefined), (undefined as FadingEdgeOptions | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: ScrollableCommonMethodModifier): void { - super.mergeModifier(modifier) - if (modifier._scrollBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._scrollBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.scrollBar(modifier._scrollBar_0_0value); - break; - } - default: { - this.scrollBar((undefined as BarState | undefined)); - } - } - } - if (modifier._scrollBarColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._scrollBarColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.scrollBarColor(modifier._scrollBarColor_0_0value); - break; - } - default: { - this.scrollBarColor((undefined as Color | number | string | undefined)); - } - } - } - if (modifier._scrollBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._scrollBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.scrollBarWidth(modifier._scrollBarWidth_0_0value); - break; - } - default: { - this.scrollBarWidth((undefined as number | string | undefined)); - } - } - } - if (modifier._nestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._nestedScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.nestedScroll(modifier._nestedScroll_0_0value); - break; - } - default: { - this.nestedScroll((undefined as NestedScrollOptions | undefined)); - } - } - } - if (modifier._enableScrollInteraction_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableScrollInteraction_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableScrollInteraction(modifier._enableScrollInteraction_0_0value); - break; - } - default: { - this.enableScrollInteraction((undefined as boolean | undefined)); - } - } - } - if (modifier._friction_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._friction_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.friction(modifier._friction_0_0value); - break; - } - default: { - this.friction((undefined as number | Resource | undefined)); - } - } - } - if (modifier._onReachStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onReachStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onReachStart(modifier._onReachStart_0_0value); - break; - } - default: { - this.onReachStart((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onReachEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onReachEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onReachEnd(modifier._onReachEnd_0_0value); - break; - } - default: { - this.onReachEnd((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onScrollStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScrollStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScrollStart(modifier._onScrollStart_0_0value); - break; - } - default: { - this.onScrollStart((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onScrollStop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScrollStop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScrollStop(modifier._onScrollStop_0_0value); - break; - } - default: { - this.onScrollStop((undefined as (() => void) | undefined)); - } - } - } - if (modifier._flingSpeedLimit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._flingSpeedLimit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.flingSpeedLimit(modifier._flingSpeedLimit_0_0value); - break; - } - default: { - this.flingSpeedLimit((undefined as number | undefined)); - } - } - } - if (modifier._clipContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._clipContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.clipContent(modifier._clipContent_0_0value); - break; - } - default: { - this.clipContent((undefined as ContentClipMode | RectShape | undefined)); - } - } - } - if (modifier._digitalCrownSensitivity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._digitalCrownSensitivity_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.digitalCrownSensitivity(modifier._digitalCrownSensitivity_0_0value); - break; - } - default: { - this.digitalCrownSensitivity((undefined as CrownSensitivity | undefined)); - } - } - } - if (modifier._backToTop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backToTop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backToTop(modifier._backToTop_0_0value); - break; - } - default: { - this.backToTop((undefined as boolean | undefined)); - } - } - } - if (modifier._edgeEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._edgeEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.edgeEffect(modifier._edgeEffect_0_0value, modifier._edgeEffect_0_1value); - break; - } - default: { - this.edgeEffect((undefined as EdgeEffect | undefined), (undefined as EdgeEffectOptions | undefined | undefined)); - } - } - } - if (modifier._fadingEdge_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fadingEdge_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fadingEdge(modifier._fadingEdge_0_0value, modifier._fadingEdge_0_1value); - break; - } - default: { - this.fadingEdge((undefined as boolean | undefined), (undefined as FadingEdgeOptions | undefined | undefined)); - } - } - } - } - scrollBar(value: BarState | undefined): this { - if (((this._scrollBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._scrollBar_0_flag = AttributeUpdaterFlag.UPDATE - this._scrollBar_0_0value = value - } else - { - this._scrollBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - scrollBarColor(value: Color | number | string | undefined): this { - if (((this._scrollBarColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._scrollBarColor_0_flag = AttributeUpdaterFlag.UPDATE - this._scrollBarColor_0_0value = value - } else - { - this._scrollBarColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - scrollBarWidth(value: number | string | undefined): this { - if (((this._scrollBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._scrollBarWidth_0_0value) !== (value))) - { - this._scrollBarWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._scrollBarWidth_0_0value = value - } else - { - this._scrollBarWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - nestedScroll(value: NestedScrollOptions | undefined): this { - if (((this._nestedScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._nestedScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._nestedScroll_0_0value = value - } else - { - this._nestedScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableScrollInteraction(value: boolean | undefined): this { - if (((this._enableScrollInteraction_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableScrollInteraction_0_0value) !== (value))) - { - this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.UPDATE - this._enableScrollInteraction_0_0value = value - } else - { - this._enableScrollInteraction_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - friction(value: number | Resource | undefined): this { - if (((this._friction_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._friction_0_flag = AttributeUpdaterFlag.UPDATE - this._friction_0_0value = value - } else - { - this._friction_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onReachStart(value: (() => void) | undefined): this { - if (((this._onReachStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onReachStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onReachStart_0_0value = value - } else - { - this._onReachStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onReachEnd(value: (() => void) | undefined): this { - if (((this._onReachEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onReachEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._onReachEnd_0_0value = value - } else - { - this._onReachEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollStart(value: (() => void) | undefined): this { - if (((this._onScrollStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScrollStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onScrollStart_0_0value = value - } else - { - this._onScrollStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollStop(value: (() => void) | undefined): this { - if (((this._onScrollStop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScrollStop_0_flag = AttributeUpdaterFlag.UPDATE - this._onScrollStop_0_0value = value - } else - { - this._onScrollStop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - flingSpeedLimit(value: number | undefined): this { - if (((this._flingSpeedLimit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._flingSpeedLimit_0_0value) !== (value))) - { - this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.UPDATE - this._flingSpeedLimit_0_0value = value - } else - { - this._flingSpeedLimit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - clipContent(value: ContentClipMode | RectShape | undefined): this { - if (((this._clipContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._clipContent_0_flag = AttributeUpdaterFlag.UPDATE - this._clipContent_0_0value = value - } else - { - this._clipContent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - digitalCrownSensitivity(value: CrownSensitivity | undefined): this { - if (((this._digitalCrownSensitivity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.UPDATE - this._digitalCrownSensitivity_0_0value = value - } else - { - this._digitalCrownSensitivity_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backToTop(value: boolean | undefined): this { - if (((this._backToTop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._backToTop_0_0value) !== (value))) - { - this._backToTop_0_flag = AttributeUpdaterFlag.UPDATE - this._backToTop_0_0value = value - } else - { - this._backToTop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - edgeEffect(edgeEffect: EdgeEffect | undefined, options?: EdgeEffectOptions): this { - if (((this._edgeEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._edgeEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._edgeEffect_0_0value = edgeEffect - this._edgeEffect_0_1value = options - } else - { - this._edgeEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fadingEdge(enabled: boolean | undefined, options?: FadingEdgeOptions): this { - if (((this._fadingEdge_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fadingEdge_0_0value) !== (enabled)) || (true)) - { - this._fadingEdge_0_flag = AttributeUpdaterFlag.UPDATE - this._fadingEdge_0_0value = enabled - this._fadingEdge_0_1value = options - } else - { - this._fadingEdge_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export function postCardAction(component: Object, action: Object): void { - GlobalScope.postCardAction(component, action) -} -export function $r(value: string, params: Array): Resource { - return GlobalScope.$r(value, params) -} -export function $rawfile(value: string): Resource { - return GlobalScope.$rawfile(value) -} -export function animateTo(value: AnimateParam, event: (() => void)): void { - GlobalScope.animateTo(value, event) -} -export function animateToImmediately(value: AnimateParam, event: (() => void)): void { - GlobalScope.animateToImmediately(value, event) -} -export function vp2px(value: number): number { - return GlobalScope.vp2px(value) -} -export function px2vp(value: number): number { - return GlobalScope.px2vp(value) -} -export class GestureModifier_serializer { - public static write(buffer: SerializerBase, value: GestureModifier): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): GestureModifier { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return GestureModifierInternal.fromPtr(ptr) - } -} -export class LayoutPolicy_serializer { - public static write(buffer: SerializerBase, value: LayoutPolicy): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): LayoutPolicy { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return LayoutPolicyInternal.fromPtr(ptr) - } -} -export class NestedScrollOptions_serializer { - public static write(buffer: SerializerBase, value: NestedScrollOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForScrollForward = value.scrollForward - valueSerializer.writeInt32(TypeChecker.NestedScrollMode_ToNumeric(valueHolderForScrollForward)) - const valueHolderForScrollBackward = value.scrollBackward - valueSerializer.writeInt32(TypeChecker.NestedScrollMode_ToNumeric(valueHolderForScrollBackward)) - } - public static read(buffer: DeserializerBase): NestedScrollOptions { - let valueDeserializer : DeserializerBase = buffer - const scrollForwardTmpResult : NestedScrollMode = TypeChecker.NestedScrollMode_FromNumeric(valueDeserializer.readInt32()) - const scrollBackwardTmpResult : NestedScrollMode = TypeChecker.NestedScrollMode_FromNumeric(valueDeserializer.readInt32()) - let value : NestedScrollOptions = ({scrollForward: scrollForwardTmpResult, scrollBackward: scrollBackwardTmpResult} as NestedScrollOptions) - return value - } -} -export class PixelMapMock_serializer { - public static write(buffer: SerializerBase, value: PixelMapMock): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): PixelMapMock { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return PixelMapMockInternal.fromPtr(ptr) - } -} -export class PopupStateChangeParam_serializer { - public static write(buffer: SerializerBase, value: PopupStateChangeParam): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForIsVisible = value.isVisible - valueSerializer.writeBoolean(valueHolderForIsVisible) - } - public static read(buffer: DeserializerBase): PopupStateChangeParam { - let valueDeserializer : DeserializerBase = buffer - const isVisibleTmpResult : boolean = valueDeserializer.readBoolean() - let value : PopupStateChangeParam = ({isVisible: isVisibleTmpResult} as PopupStateChangeParam) - return value - } -} -export class ProgressMask_serializer { - public static write(buffer: SerializerBase, value: ProgressMask): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): ProgressMask { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return ProgressMaskInternal.fromPtr(ptr) - } -} -export class RectResult_serializer { - public static write(buffer: SerializerBase, value: RectResult): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForX = value.x - valueSerializer.writeNumber(valueHolderForX) - const valueHolderForY = value.y - valueSerializer.writeNumber(valueHolderForY) - const valueHolderForWidth = value.width - valueSerializer.writeNumber(valueHolderForWidth) - const valueHolderForHeight = value.height - valueSerializer.writeNumber(valueHolderForHeight) - } - public static read(buffer: DeserializerBase): RectResult { - let valueDeserializer : DeserializerBase = buffer - const xTmpResult : number = (valueDeserializer.readNumber() as number) - const yTmpResult : number = (valueDeserializer.readNumber() as number) - const widthTmpResult : number = (valueDeserializer.readNumber() as number) - const heightTmpResult : number = (valueDeserializer.readNumber() as number) - let value : RectResult = ({x: xTmpResult, y: yTmpResult, width: widthTmpResult, height: heightTmpResult} as RectResult) - return value - } -} -export class ScrollResult_serializer { - public static write(buffer: SerializerBase, value: ScrollResult): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): ScrollResult { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return ScrollResultInternal.fromPtr(ptr) - } -} -export class SizeResult_serializer { - public static write(buffer: SerializerBase, value: SizeResult): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForWidth = value.width - valueSerializer.writeNumber(valueHolderForWidth) - const valueHolderForHeight = value.height - valueSerializer.writeNumber(valueHolderForHeight) - } - public static read(buffer: DeserializerBase): SizeResult { - let valueDeserializer : DeserializerBase = buffer - const widthTmpResult : number = (valueDeserializer.readNumber() as number) - const heightTmpResult : number = (valueDeserializer.readNumber() as number) - let value : SizeResult = ({width: widthTmpResult, height: heightTmpResult} as SizeResult) - return value - } -} -export class TextContentControllerBase_serializer { - public static write(buffer: SerializerBase, value: TextContentControllerBase): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): TextContentControllerBase { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return TextContentControllerBaseInternal.fromPtr(ptr) - } -} -export class TouchTestInfo_serializer { - public static write(buffer: SerializerBase, value: TouchTestInfo): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForWindowX = value.windowX - valueSerializer.writeNumber(valueHolderForWindowX) - const valueHolderForWindowY = value.windowY - valueSerializer.writeNumber(valueHolderForWindowY) - const valueHolderForParentX = value.parentX - valueSerializer.writeNumber(valueHolderForParentX) - const valueHolderForParentY = value.parentY - valueSerializer.writeNumber(valueHolderForParentY) - const valueHolderForX = value.x - valueSerializer.writeNumber(valueHolderForX) - const valueHolderForY = value.y - valueSerializer.writeNumber(valueHolderForY) - const valueHolderForRect = value.rect - RectResult_serializer.write(valueSerializer, valueHolderForRect) - const valueHolderForId = value.id - valueSerializer.writeString(valueHolderForId) - } - public static read(buffer: DeserializerBase): TouchTestInfo { - let valueDeserializer : DeserializerBase = buffer - const windowXTmpResult : number = (valueDeserializer.readNumber() as number) - const windowYTmpResult : number = (valueDeserializer.readNumber() as number) - const parentXTmpResult : number = (valueDeserializer.readNumber() as number) - const parentYTmpResult : number = (valueDeserializer.readNumber() as number) - const xTmpResult : number = (valueDeserializer.readNumber() as number) - const yTmpResult : number = (valueDeserializer.readNumber() as number) - const rectTmpResult : RectResult = RectResult_serializer.read(valueDeserializer) - const idTmpResult : string = (valueDeserializer.readString() as string) - let value : TouchTestInfo = ({windowX: windowXTmpResult, windowY: windowYTmpResult, parentX: parentXTmpResult, parentY: parentYTmpResult, x: xTmpResult, y: yTmpResult, rect: rectTmpResult, id: idTmpResult} as TouchTestInfo) - return value - } -} -export class TransitionEffect_serializer { - public static write(buffer: SerializerBase, value: TransitionEffect): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): TransitionEffect { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return TransitionEffectInternal.fromPtr(ptr) - } -} -export class UICommonEvent_serializer { - public static write(buffer: SerializerBase, value: UICommonEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): UICommonEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return UICommonEventInternal.fromPtr(ptr) - } -} -export class UIGestureEvent_serializer { - public static write(buffer: SerializerBase, value: UIGestureEvent): void { - } - public static read(buffer: DeserializerBase): UIGestureEvent { - throw new Error("Interface with functions is not supported") - } -} -export class AlignRuleOption_serializer { - public static write(buffer: SerializerBase, value: AlignRuleOption): void { - let valueSerializer : SerializerBase = buffer - const valueHolderFor_stub = value._stub - valueSerializer.writeInt32(valueHolderFor_stub) - } - public static read(buffer: DeserializerBase): AlignRuleOption { - let valueDeserializer : DeserializerBase = buffer - const _stubTmpResult : int32 = valueDeserializer.readInt32() - let value : AlignRuleOption = ({_stub: _stubTmpResult} as AlignRuleOption) - return value - } -} -export class AsymmetricTransitionOption_serializer { - public static write(buffer: SerializerBase, value: AsymmetricTransitionOption): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForAppear = value.appear - TransitionEffect_serializer.write(valueSerializer, valueHolderForAppear) - const valueHolderForDisappear = value.disappear - TransitionEffect_serializer.write(valueSerializer, valueHolderForDisappear) - } - public static read(buffer: DeserializerBase): AsymmetricTransitionOption { - let valueDeserializer : DeserializerBase = buffer - const appearTmpResult : TransitionEffect = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) - const disappearTmpResult : TransitionEffect = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) - let value : AsymmetricTransitionOption = ({appear: appearTmpResult, disappear: disappearTmpResult} as AsymmetricTransitionOption) - return value - } -} -export class BackgroundBrightnessOptions_serializer { - public static write(buffer: SerializerBase, value: BackgroundBrightnessOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForRate = value.rate - valueSerializer.writeNumber(valueHolderForRate) - const valueHolderForLightUpDegree = value.lightUpDegree - valueSerializer.writeNumber(valueHolderForLightUpDegree) - } - public static read(buffer: DeserializerBase): BackgroundBrightnessOptions { - let valueDeserializer : DeserializerBase = buffer - const rateTmpResult : number = (valueDeserializer.readNumber() as number) - const lightUpDegreeTmpResult : number = (valueDeserializer.readNumber() as number) - let value : BackgroundBrightnessOptions = ({rate: rateTmpResult, lightUpDegree: lightUpDegreeTmpResult} as BackgroundBrightnessOptions) - return value - } -} -export class BackgroundImageOptions_serializer { - public static write(buffer: SerializerBase, value: BackgroundImageOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForSyncLoad = value.syncLoad - if (valueHolderForSyncLoad !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForSyncLoadTmpValue = valueHolderForSyncLoad! - valueSerializer.writeBoolean(valueHolderForSyncLoadTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRepeat = value.repeat - if (valueHolderForRepeat !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRepeatTmpValue = (valueHolderForRepeat as ImageRepeat) - valueSerializer.writeInt32(TypeChecker.ImageRepeat_ToNumeric(valueHolderForRepeatTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): BackgroundImageOptions { - let valueDeserializer : DeserializerBase = buffer - const syncLoadTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let syncLoadTmpBuf : boolean | undefined - if ((syncLoadTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - syncLoadTmpBuf = valueDeserializer.readBoolean() - } - const syncLoadTmpResult : boolean | undefined = syncLoadTmpBuf - const repeatTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let repeatTmpBuf : ImageRepeat | undefined - if ((repeatTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - repeatTmpBuf = TypeChecker.ImageRepeat_FromNumeric(valueDeserializer.readInt32()) - } - const repeatTmpResult : ImageRepeat | undefined = repeatTmpBuf - let value : BackgroundImageOptions = ({syncLoad: syncLoadTmpResult, repeat: repeatTmpResult} as BackgroundImageOptions) - return value - } -} -export class BackgroundOptions_serializer { - public static write(buffer: SerializerBase, value: BackgroundOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForAlign = value.align - if (valueHolderForAlign !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAlignTmpValue = (valueHolderForAlign as Alignment) - valueSerializer.writeInt32(TypeChecker.Alignment_ToNumeric(valueHolderForAlignTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): BackgroundOptions { - let valueDeserializer : DeserializerBase = buffer - const alignTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let alignTmpBuf : Alignment | undefined - if ((alignTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - alignTmpBuf = TypeChecker.Alignment_FromNumeric(valueDeserializer.readInt32()) - } - const alignTmpResult : Alignment | undefined = alignTmpBuf - let value : BackgroundOptions = ({align: alignTmpResult} as BackgroundOptions) - return value - } -} -export class Bindable_Array_Arkui_Component_Units_ResourceStr_serializer { - public static write(buffer: SerializerBase, value: Bindable>): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - valueSerializer.writeInt32((valueHolderForValue.length).toInt()) - for (let valueHolderForValueCounterI = 0; valueHolderForValueCounterI < valueHolderForValue.length; valueHolderForValueCounterI++) { - const valueHolderForValueTmpElement : ResourceStr = valueHolderForValue[valueHolderForValueCounterI] - if (valueHolderForValueTmpElement instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForValueTmpElementForIdx0 = valueHolderForValueTmpElement as string - valueSerializer.writeString(valueHolderForValueTmpElementForIdx0) - } else if (valueHolderForValueTmpElement instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForValueTmpElementForIdx1 = valueHolderForValueTmpElement as Resource - Resource_serializer.write(valueSerializer, valueHolderForValueTmpElementForIdx1) - } - } - const valueHolderForOnChange = value.onChange - valueSerializer.holdAndWriteCallback(valueHolderForOnChange) - } - public static read(buffer: DeserializerBase): Bindable> { - let valueDeserializer : DeserializerBase = buffer - const valueTmpBufLength : int32 = valueDeserializer.readInt32() - let valueTmpBuf : Array = new Array(valueTmpBufLength) - for (let valueTmpBufBufCounterI = 0; valueTmpBufBufCounterI < valueTmpBufLength; valueTmpBufBufCounterI++) { - const valueTmpBufTempBufUnionSelector : int32 = valueDeserializer.readInt8() - let valueTmpBufTempBuf : string | Resource | undefined - if (valueTmpBufTempBufUnionSelector == (0).toChar()) { - valueTmpBufTempBuf = (valueDeserializer.readString() as string) - } else if (valueTmpBufTempBufUnionSelector == (1).toChar()) { - valueTmpBufTempBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for valueTmpBufTempBuf has to be chosen through deserialisation.") - } - valueTmpBuf[valueTmpBufBufCounterI] = (valueTmpBufTempBuf as string | Resource) - } - const valueTmpResult : Array = valueTmpBuf - const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const onChangeTmpResult : ((value0: Array) => void) = (value0: Array):void => { - const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); - onChangeTmpBufBufArgsSerializer.writeInt32((value0.length).toInt()); - for (let value0CounterI = 0; value0CounterI < value0.length; value0CounterI++) { - const value0TmpElement : ResourceStr = value0[value0CounterI]; - if (value0TmpElement instanceof string) { - onChangeTmpBufBufArgsSerializer.writeInt8((0).toChar()); - const value0TmpElementForIdx0 = value0TmpElement as string; - onChangeTmpBufBufArgsSerializer.writeString(value0TmpElementForIdx0); - } else if (value0TmpElement instanceof Resource) { - onChangeTmpBufBufArgsSerializer.writeInt8((1).toChar()); - const value0TmpElementForIdx1 = value0TmpElement as Resource; - Resource_serializer.write(onChangeTmpBufBufArgsSerializer, value0TmpElementForIdx1); - } - } - InteropNativeModule._CallCallback(354105852, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); - onChangeTmpBufBufArgsSerializer.release(); - return; - } - let value : Bindable> = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable>) - return value - } -} -export class Bindable_Array_Number_serializer { - public static write(buffer: SerializerBase, value: Bindable>): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - valueSerializer.writeInt32((valueHolderForValue.length).toInt()) - for (let valueHolderForValueCounterI = 0; valueHolderForValueCounterI < valueHolderForValue.length; valueHolderForValueCounterI++) { - const valueHolderForValueTmpElement : number = valueHolderForValue[valueHolderForValueCounterI] - valueSerializer.writeNumber(valueHolderForValueTmpElement) - } - const valueHolderForOnChange = value.onChange - valueSerializer.holdAndWriteCallback(valueHolderForOnChange) - } - public static read(buffer: DeserializerBase): Bindable> { - let valueDeserializer : DeserializerBase = buffer - const valueTmpBufLength : int32 = valueDeserializer.readInt32() - let valueTmpBuf : Array = new Array(valueTmpBufLength) - for (let valueTmpBufBufCounterI = 0; valueTmpBufBufCounterI < valueTmpBufLength; valueTmpBufBufCounterI++) { - valueTmpBuf[valueTmpBufBufCounterI] = (valueDeserializer.readNumber() as number) - } - const valueTmpResult : Array = valueTmpBuf - const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const onChangeTmpResult : ((value0: Array) => void) = (value0: Array):void => { - const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); - onChangeTmpBufBufArgsSerializer.writeInt32((value0.length).toInt()); - for (let value0CounterI = 0; value0CounterI < value0.length; value0CounterI++) { - const value0TmpElement : number = value0[value0CounterI]; - onChangeTmpBufBufArgsSerializer.writeNumber(value0TmpElement); - } - InteropNativeModule._CallCallback(1442979681, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); - onChangeTmpBufBufArgsSerializer.release(); - return; - } - let value : Bindable> = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable>) - return value - } -} -export class Bindable_Boolean_serializer { - public static write(buffer: SerializerBase, value: Bindable): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - valueSerializer.writeBoolean(valueHolderForValue) - const valueHolderForOnChange = value.onChange - valueSerializer.holdAndWriteCallback(valueHolderForOnChange) - } - public static read(buffer: DeserializerBase): Bindable { - let valueDeserializer : DeserializerBase = buffer - const valueTmpResult : boolean = valueDeserializer.readBoolean() - const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const onChangeTmpResult : ((value0: boolean) => void) = (value0: boolean):void => { - const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); - onChangeTmpBufBufArgsSerializer.writeBoolean(value0); - InteropNativeModule._CallCallback(217914240, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); - onChangeTmpBufBufArgsSerializer.release(); - return; - } - let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) - return value - } -} -export class Bindable_Date_serializer { - public static write(buffer: SerializerBase, value: Bindable): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - valueSerializer.writeInt64(valueHolderForValue.getTime().toLong()) - const valueHolderForOnChange = value.onChange - valueSerializer.holdAndWriteCallback(valueHolderForOnChange) - } - public static read(buffer: DeserializerBase): Bindable { - let valueDeserializer : DeserializerBase = buffer - const valueTmpResult : Date = new Date(valueDeserializer.readInt64()) - const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const onChangeTmpResult : ((value0: Date) => void) = (value0: Date):void => { - const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); - onChangeTmpBufBufArgsSerializer.writeInt64(value0.getTime().toLong()); - InteropNativeModule._CallCallback(1108733360, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); - onChangeTmpBufBufArgsSerializer.release(); - return; - } - let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) - return value - } -} -export class Bindable_Number_serializer { - public static write(buffer: SerializerBase, value: Bindable): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - valueSerializer.writeNumber(valueHolderForValue) - const valueHolderForOnChange = value.onChange - valueSerializer.holdAndWriteCallback(valueHolderForOnChange) - } - public static read(buffer: DeserializerBase): Bindable { - let valueDeserializer : DeserializerBase = buffer - const valueTmpResult : number = (valueDeserializer.readNumber() as number) - const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const onChangeTmpResult : ((value0: number) => void) = (value0: number):void => { - const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); - onChangeTmpBufBufArgsSerializer.writeNumber(value0); - InteropNativeModule._CallCallback(1090440167, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); - onChangeTmpBufBufArgsSerializer.release(); - return; - } - let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) - return value - } -} -export class Bindable_String_serializer { - public static write(buffer: SerializerBase, value: Bindable): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - valueSerializer.writeString(valueHolderForValue) - const valueHolderForOnChange = value.onChange - valueSerializer.holdAndWriteCallback(valueHolderForOnChange) - } - public static read(buffer: DeserializerBase): Bindable { - let valueDeserializer : DeserializerBase = buffer - const valueTmpResult : string = (valueDeserializer.readString() as string) - const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const onChangeTmpResult : ((value0: string) => void) = (value0: string):void => { - const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); - onChangeTmpBufBufArgsSerializer.writeString(value0); - InteropNativeModule._CallCallback(1477958353, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); - onChangeTmpBufBufArgsSerializer.release(); - return; - } - let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) - return value - } -} -export class BlurOptions_serializer { - public static write(buffer: SerializerBase, value: BlurOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForGrayscale = value.grayscale - const valueHolderForGrayscale_0 = valueHolderForGrayscale[0] - valueSerializer.writeNumber(valueHolderForGrayscale_0) - const valueHolderForGrayscale_1 = valueHolderForGrayscale[1] - valueSerializer.writeNumber(valueHolderForGrayscale_1) - } - public static read(buffer: DeserializerBase): BlurOptions { - let valueDeserializer : DeserializerBase = buffer - const grayscaleTmpBufValue0 : number = (valueDeserializer.readNumber() as number) - const grayscaleTmpBufValue1 : number = (valueDeserializer.readNumber() as number) - const grayscaleTmpResult : [ number, number ] = ([grayscaleTmpBufValue0, grayscaleTmpBufValue1] as [ number, number ]) - let value : BlurOptions = ({grayscale: grayscaleTmpResult} as BlurOptions) - return value - } -} -export class CaretOffset_serializer { - public static write(buffer: SerializerBase, value: CaretOffset): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForIndex = value.index - valueSerializer.writeNumber(valueHolderForIndex) - const valueHolderForX = value.x - valueSerializer.writeNumber(valueHolderForX) - const valueHolderForY = value.y - valueSerializer.writeNumber(valueHolderForY) - } - public static read(buffer: DeserializerBase): CaretOffset { - let valueDeserializer : DeserializerBase = buffer - const indexTmpResult : number = (valueDeserializer.readNumber() as number) - const xTmpResult : number = (valueDeserializer.readNumber() as number) - const yTmpResult : number = (valueDeserializer.readNumber() as number) - let value : CaretOffset = ({index: indexTmpResult, x: xTmpResult, y: yTmpResult} as CaretOffset) - return value - } -} -export class ChildrenMainSize_serializer { - public static write(buffer: SerializerBase, value: ChildrenMainSize): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): ChildrenMainSize { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return ChildrenMainSizeInternal.fromPtr(ptr) - } -} -export class ClickEffect_serializer { - public static write(buffer: SerializerBase, value: ClickEffect): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForLevel = value.level - valueSerializer.writeInt32(TypeChecker.ClickEffectLevel_ToNumeric(valueHolderForLevel)) - const valueHolderForScale = value.scale - if (valueHolderForScale !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForScaleTmpValue = valueHolderForScale! - valueSerializer.writeNumber(valueHolderForScaleTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): ClickEffect { - let valueDeserializer : DeserializerBase = buffer - const levelTmpResult : ClickEffectLevel = TypeChecker.ClickEffectLevel_FromNumeric(valueDeserializer.readInt32()) - const scaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let scaleTmpBuf : number | undefined - if ((scaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - scaleTmpBuf = (valueDeserializer.readNumber() as number) - } - const scaleTmpResult : number | undefined = scaleTmpBuf - let value : ClickEffect = ({level: levelTmpResult, scale: scaleTmpResult} as ClickEffect) - return value - } -} -export class CrownEvent_serializer { - public static write(buffer: SerializerBase, value: CrownEvent): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForTimestamp = value.timestamp - valueSerializer.writeNumber(valueHolderForTimestamp) - const valueHolderForAngularVelocity = value.angularVelocity - valueSerializer.writeNumber(valueHolderForAngularVelocity) - const valueHolderForDegree = value.degree - valueSerializer.writeNumber(valueHolderForDegree) - const valueHolderForAction = value.action - valueSerializer.writeInt32(TypeChecker.CrownAction_ToNumeric(valueHolderForAction)) - const valueHolderForStopPropagation = value.stopPropagation - valueSerializer.holdAndWriteCallback(valueHolderForStopPropagation) - } - public static read(buffer: DeserializerBase): CrownEvent { - let valueDeserializer : DeserializerBase = buffer - const timestampTmpResult : number = (valueDeserializer.readNumber() as number) - const angularVelocityTmpResult : number = (valueDeserializer.readNumber() as number) - const degreeTmpResult : number = (valueDeserializer.readNumber() as number) - const actionTmpResult : CrownAction = TypeChecker.CrownAction_FromNumeric(valueDeserializer.readInt32()) - const stopPropagationTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const stopPropagationTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const stopPropagationTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const stopPropagationTmpResult : (() => void) = ():void => { - const stopPropagationTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - stopPropagationTmpBufBufArgsSerializer.writeInt32(stopPropagationTmpBufBufResource.resourceId); - stopPropagationTmpBufBufArgsSerializer.writePointer(stopPropagationTmpBufBufCall); - stopPropagationTmpBufBufArgsSerializer.writePointer(stopPropagationTmpBufBufCallSync); - InteropNativeModule._CallCallback(-1867723152, stopPropagationTmpBufBufArgsSerializer.asBuffer(), stopPropagationTmpBufBufArgsSerializer.length()); - stopPropagationTmpBufBufArgsSerializer.release(); - return; - } - let value : CrownEvent = ({timestamp: timestampTmpResult, angularVelocity: angularVelocityTmpResult, degree: degreeTmpResult, action: actionTmpResult, stopPropagation: stopPropagationTmpResult} as CrownEvent) - return value - } -} -export class DateRange_serializer { - public static write(buffer: SerializerBase, value: DateRange): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForStart = value.start - if (valueHolderForStart !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForStartTmpValue = valueHolderForStart! - valueSerializer.writeInt64(valueHolderForStartTmpValue.getTime().toLong()) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnd = value.end - if (valueHolderForEnd !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEndTmpValue = valueHolderForEnd! - valueSerializer.writeInt64(valueHolderForEndTmpValue.getTime().toLong()) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): DateRange { - let valueDeserializer : DeserializerBase = buffer - const startTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let startTmpBuf : Date | undefined - if ((startTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - startTmpBuf = new Date(valueDeserializer.readInt64()) - } - const startTmpResult : Date | undefined = startTmpBuf - const endTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let endTmpBuf : Date | undefined - if ((endTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - endTmpBuf = new Date(valueDeserializer.readInt64()) - } - const endTmpResult : Date | undefined = endTmpBuf - let value : DateRange = ({start: startTmpResult, end: endTmpResult} as DateRange) - return value - } -} -export class DismissContentCoverAction_serializer { - public static write(buffer: SerializerBase, value: DismissContentCoverAction): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForDismiss = value.dismiss - valueSerializer.holdAndWriteCallback(valueHolderForDismiss) - const valueHolderForReason = value.reason - valueSerializer.writeInt32(TypeChecker.DismissReason_ToNumeric(valueHolderForReason)) - } - public static read(buffer: DeserializerBase): DismissContentCoverAction { - let valueDeserializer : DeserializerBase = buffer - const dismissTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const dismissTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const dismissTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const dismissTmpResult : VoidCallback = ():void => { - const dismissTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - dismissTmpBufBufArgsSerializer.writeInt32(dismissTmpBufBufResource.resourceId); - dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCall); - dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCallSync); - InteropNativeModule._CallCallback(-2038961969, dismissTmpBufBufArgsSerializer.asBuffer(), dismissTmpBufBufArgsSerializer.length()); - dismissTmpBufBufArgsSerializer.release(); - return; - } - const reasonTmpResult : DismissReason = TypeChecker.DismissReason_FromNumeric(valueDeserializer.readInt32()) - let value : DismissContentCoverAction = ({dismiss: dismissTmpResult, reason: reasonTmpResult} as DismissContentCoverAction) - return value - } -} -export class DismissPopupAction_serializer { - public static write(buffer: SerializerBase, value: DismissPopupAction): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): DismissPopupAction { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return DismissPopupActionInternal.fromPtr(ptr) - } -} -export class DismissSheetAction_serializer { - public static write(buffer: SerializerBase, value: DismissSheetAction): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForDismiss = value.dismiss - valueSerializer.holdAndWriteCallback(valueHolderForDismiss) - const valueHolderForReason = value.reason - valueSerializer.writeInt32(TypeChecker.DismissReason_ToNumeric(valueHolderForReason)) - } - public static read(buffer: DeserializerBase): DismissSheetAction { - let valueDeserializer : DeserializerBase = buffer - const dismissTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const dismissTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const dismissTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const dismissTmpResult : VoidCallback = ():void => { - const dismissTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - dismissTmpBufBufArgsSerializer.writeInt32(dismissTmpBufBufResource.resourceId); - dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCall); - dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCallSync); - InteropNativeModule._CallCallback(-2038961969, dismissTmpBufBufArgsSerializer.asBuffer(), dismissTmpBufBufArgsSerializer.length()); - dismissTmpBufBufArgsSerializer.release(); - return; - } - const reasonTmpResult : DismissReason = TypeChecker.DismissReason_FromNumeric(valueDeserializer.readInt32()) - let value : DismissSheetAction = ({dismiss: dismissTmpResult, reason: reasonTmpResult} as DismissSheetAction) - return value - } -} -export class DragEvent_serializer { - public static write(buffer: SerializerBase, value: DragEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): DragEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return DragEventInternal.fromPtr(ptr) - } -} -export class DragInteractionOptions_serializer { - public static write(buffer: SerializerBase, value: DragInteractionOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForIsMultiSelectionEnabled = value.isMultiSelectionEnabled - if (valueHolderForIsMultiSelectionEnabled !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForIsMultiSelectionEnabledTmpValue = valueHolderForIsMultiSelectionEnabled! - valueSerializer.writeBoolean(valueHolderForIsMultiSelectionEnabledTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDefaultAnimationBeforeLifting = value.defaultAnimationBeforeLifting - if (valueHolderForDefaultAnimationBeforeLifting !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDefaultAnimationBeforeLiftingTmpValue = valueHolderForDefaultAnimationBeforeLifting! - valueSerializer.writeBoolean(valueHolderForDefaultAnimationBeforeLiftingTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableEdgeAutoScroll = value.enableEdgeAutoScroll - if (valueHolderForEnableEdgeAutoScroll !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableEdgeAutoScrollTmpValue = valueHolderForEnableEdgeAutoScroll! - valueSerializer.writeBoolean(valueHolderForEnableEdgeAutoScrollTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableHapticFeedback = value.enableHapticFeedback - if (valueHolderForEnableHapticFeedback !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableHapticFeedbackTmpValue = valueHolderForEnableHapticFeedback! - valueSerializer.writeBoolean(valueHolderForEnableHapticFeedbackTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForIsLiftingDisabled = value.isLiftingDisabled - if (valueHolderForIsLiftingDisabled !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForIsLiftingDisabledTmpValue = valueHolderForIsLiftingDisabled! - valueSerializer.writeBoolean(valueHolderForIsLiftingDisabledTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): DragInteractionOptions { - let valueDeserializer : DeserializerBase = buffer - const isMultiSelectionEnabledTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let isMultiSelectionEnabledTmpBuf : boolean | undefined - if ((isMultiSelectionEnabledTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - isMultiSelectionEnabledTmpBuf = valueDeserializer.readBoolean() - } - const isMultiSelectionEnabledTmpResult : boolean | undefined = isMultiSelectionEnabledTmpBuf - const defaultAnimationBeforeLiftingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let defaultAnimationBeforeLiftingTmpBuf : boolean | undefined - if ((defaultAnimationBeforeLiftingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - defaultAnimationBeforeLiftingTmpBuf = valueDeserializer.readBoolean() - } - const defaultAnimationBeforeLiftingTmpResult : boolean | undefined = defaultAnimationBeforeLiftingTmpBuf - const enableEdgeAutoScrollTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableEdgeAutoScrollTmpBuf : boolean | undefined - if ((enableEdgeAutoScrollTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableEdgeAutoScrollTmpBuf = valueDeserializer.readBoolean() - } - const enableEdgeAutoScrollTmpResult : boolean | undefined = enableEdgeAutoScrollTmpBuf - const enableHapticFeedbackTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableHapticFeedbackTmpBuf : boolean | undefined - if ((enableHapticFeedbackTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableHapticFeedbackTmpBuf = valueDeserializer.readBoolean() - } - const enableHapticFeedbackTmpResult : boolean | undefined = enableHapticFeedbackTmpBuf - const isLiftingDisabledTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let isLiftingDisabledTmpBuf : boolean | undefined - if ((isLiftingDisabledTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - isLiftingDisabledTmpBuf = valueDeserializer.readBoolean() - } - const isLiftingDisabledTmpResult : boolean | undefined = isLiftingDisabledTmpBuf - let value : DragInteractionOptions = ({isMultiSelectionEnabled: isMultiSelectionEnabledTmpResult, defaultAnimationBeforeLifting: defaultAnimationBeforeLiftingTmpResult, enableEdgeAutoScroll: enableEdgeAutoScrollTmpResult, enableHapticFeedback: enableHapticFeedbackTmpResult, isLiftingDisabled: isLiftingDisabledTmpResult} as DragInteractionOptions) - return value - } -} -export class DragItemInfo_serializer { - public static write(buffer: SerializerBase, value: DragItemInfo): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForPixelMap = value.pixelMap - if (valueHolderForPixelMap !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPixelMapTmpValue = valueHolderForPixelMap! - image_PixelMap_serializer.write(valueSerializer, valueHolderForPixelMapTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBuilder = value.builder - if (valueHolderForBuilder !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBuilderTmpValue = valueHolderForBuilder! - valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForBuilderTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForExtraInfo = value.extraInfo - if (valueHolderForExtraInfo !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForExtraInfoTmpValue = valueHolderForExtraInfo! - valueSerializer.writeString(valueHolderForExtraInfoTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): DragItemInfo { - let valueDeserializer : DeserializerBase = buffer - const pixelMapTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let pixelMapTmpBuf : image.PixelMap | undefined - if ((pixelMapTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - pixelMapTmpBuf = (image_PixelMap_serializer.read(valueDeserializer) as image.PixelMap) - } - const pixelMapTmpResult : image.PixelMap | undefined = pixelMapTmpBuf - const builderTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let builderTmpBuf : CustomBuilder | undefined - if ((builderTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const builderTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const builderTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const builderTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - builderTmpBuf = ():void => { - const builderTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - builderTmpBuf_BufArgsSerializer.writeInt32(builderTmpBuf_BufResource.resourceId); - builderTmpBuf_BufArgsSerializer.writePointer(builderTmpBuf_BufCall); - builderTmpBuf_BufArgsSerializer.writePointer(builderTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(737226752, builderTmpBuf_BufArgsSerializer.asBuffer(), builderTmpBuf_BufArgsSerializer.length()); - builderTmpBuf_BufArgsSerializer.release(); - return; - } - } - const builderTmpResult : CustomBuilder | undefined = builderTmpBuf - const extraInfoTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let extraInfoTmpBuf : string | undefined - if ((extraInfoTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - extraInfoTmpBuf = (valueDeserializer.readString() as string) - } - const extraInfoTmpResult : string | undefined = extraInfoTmpBuf - let value : DragItemInfo = ({pixelMap: pixelMapTmpResult, builder: builderTmpResult, extraInfo: extraInfoTmpResult} as DragItemInfo) - return value - } -} -export class DrawModifier_serializer { - public static write(buffer: SerializerBase, value: DrawModifier): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): DrawModifier { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return DrawModifierInternal.fromPtr(ptr) - } -} -export class DropOptions_serializer { - public static write(buffer: SerializerBase, value: DropOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForDisableDataPrefetch = value.disableDataPrefetch - if (valueHolderForDisableDataPrefetch !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDisableDataPrefetchTmpValue = valueHolderForDisableDataPrefetch! - valueSerializer.writeBoolean(valueHolderForDisableDataPrefetchTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): DropOptions { - let valueDeserializer : DeserializerBase = buffer - const disableDataPrefetchTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let disableDataPrefetchTmpBuf : boolean | undefined - if ((disableDataPrefetchTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - disableDataPrefetchTmpBuf = valueDeserializer.readBoolean() - } - const disableDataPrefetchTmpResult : boolean | undefined = disableDataPrefetchTmpBuf - let value : DropOptions = ({disableDataPrefetch: disableDataPrefetchTmpResult} as DropOptions) - return value - } -} -export class EdgeEffectOptions_serializer { - public static write(buffer: SerializerBase, value: EdgeEffectOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForAlwaysEnabled = value.alwaysEnabled - valueSerializer.writeBoolean(valueHolderForAlwaysEnabled) - const valueHolderForEffectEdge = value.effectEdge - if (valueHolderForEffectEdge !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEffectEdgeTmpValue = valueHolderForEffectEdge! - valueSerializer.writeNumber(valueHolderForEffectEdgeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): EdgeEffectOptions { - let valueDeserializer : DeserializerBase = buffer - const alwaysEnabledTmpResult : boolean = valueDeserializer.readBoolean() - const effectEdgeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let effectEdgeTmpBuf : number | undefined - if ((effectEdgeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - effectEdgeTmpBuf = (valueDeserializer.readNumber() as number) - } - const effectEdgeTmpResult : number | undefined = effectEdgeTmpBuf - let value : EdgeEffectOptions = ({alwaysEnabled: alwaysEnabledTmpResult, effectEdge: effectEdgeTmpResult} as EdgeEffectOptions) - return value - } -} -export class ExpectedFrameRateRange_serializer { - public static write(buffer: SerializerBase, value: ExpectedFrameRateRange): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForMin = value.min - valueSerializer.writeNumber(valueHolderForMin) - const valueHolderForMax = value.max - valueSerializer.writeNumber(valueHolderForMax) - const valueHolderForExpected = value.expected - valueSerializer.writeNumber(valueHolderForExpected) - } - public static read(buffer: DeserializerBase): ExpectedFrameRateRange { - let valueDeserializer : DeserializerBase = buffer - const minTmpResult : number = (valueDeserializer.readNumber() as number) - const maxTmpResult : number = (valueDeserializer.readNumber() as number) - const expectedTmpResult : number = (valueDeserializer.readNumber() as number) - let value : ExpectedFrameRateRange = ({min: minTmpResult, max: maxTmpResult, expected: expectedTmpResult} as ExpectedFrameRateRange) - return value - } -} -export class FocusMovement_serializer { - public static write(buffer: SerializerBase, value: FocusMovement): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForForward = value.forward - if (valueHolderForForward !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForForwardTmpValue = valueHolderForForward! - valueSerializer.writeString(valueHolderForForwardTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackward = value.backward - if (valueHolderForBackward !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackwardTmpValue = valueHolderForBackward! - valueSerializer.writeString(valueHolderForBackwardTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForUp = value.up - if (valueHolderForUp !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForUpTmpValue = valueHolderForUp! - valueSerializer.writeString(valueHolderForUpTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDown = value.down - if (valueHolderForDown !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDownTmpValue = valueHolderForDown! - valueSerializer.writeString(valueHolderForDownTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForLeft = value.left - if (valueHolderForLeft !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForLeftTmpValue = valueHolderForLeft! - valueSerializer.writeString(valueHolderForLeftTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRight = value.right - if (valueHolderForRight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRightTmpValue = valueHolderForRight! - valueSerializer.writeString(valueHolderForRightTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): FocusMovement { - let valueDeserializer : DeserializerBase = buffer - const forwardTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let forwardTmpBuf : string | undefined - if ((forwardTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - forwardTmpBuf = (valueDeserializer.readString() as string) - } - const forwardTmpResult : string | undefined = forwardTmpBuf - const backwardTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backwardTmpBuf : string | undefined - if ((backwardTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backwardTmpBuf = (valueDeserializer.readString() as string) - } - const backwardTmpResult : string | undefined = backwardTmpBuf - const upTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let upTmpBuf : string | undefined - if ((upTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - upTmpBuf = (valueDeserializer.readString() as string) - } - const upTmpResult : string | undefined = upTmpBuf - const downTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let downTmpBuf : string | undefined - if ((downTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - downTmpBuf = (valueDeserializer.readString() as string) - } - const downTmpResult : string | undefined = downTmpBuf - const leftTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let leftTmpBuf : string | undefined - if ((leftTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - leftTmpBuf = (valueDeserializer.readString() as string) - } - const leftTmpResult : string | undefined = leftTmpBuf - const rightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let rightTmpBuf : string | undefined - if ((rightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - rightTmpBuf = (valueDeserializer.readString() as string) - } - const rightTmpResult : string | undefined = rightTmpBuf - let value : FocusMovement = ({forward: forwardTmpResult, backward: backwardTmpResult, up: upTmpResult, down: downTmpResult, left: leftTmpResult, right: rightTmpResult} as FocusMovement) - return value - } -} -export class ForegroundEffectOptions_serializer { - public static write(buffer: SerializerBase, value: ForegroundEffectOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForRadius = value.radius - valueSerializer.writeNumber(valueHolderForRadius) - } - public static read(buffer: DeserializerBase): ForegroundEffectOptions { - let valueDeserializer : DeserializerBase = buffer - const radiusTmpResult : number = (valueDeserializer.readNumber() as number) - let value : ForegroundEffectOptions = ({radius: radiusTmpResult} as ForegroundEffectOptions) - return value - } -} -export class GeometryTransitionOptions_serializer { - public static write(buffer: SerializerBase, value: GeometryTransitionOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForFollow = value.follow - if (valueHolderForFollow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFollowTmpValue = valueHolderForFollow! - valueSerializer.writeBoolean(valueHolderForFollowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForHierarchyStrategy = value.hierarchyStrategy - if (valueHolderForHierarchyStrategy !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHierarchyStrategyTmpValue = (valueHolderForHierarchyStrategy as TransitionHierarchyStrategy) - valueSerializer.writeInt32(TypeChecker.TransitionHierarchyStrategy_ToNumeric(valueHolderForHierarchyStrategyTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): GeometryTransitionOptions { - let valueDeserializer : DeserializerBase = buffer - const followTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let followTmpBuf : boolean | undefined - if ((followTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - followTmpBuf = valueDeserializer.readBoolean() - } - const followTmpResult : boolean | undefined = followTmpBuf - const hierarchyStrategyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let hierarchyStrategyTmpBuf : TransitionHierarchyStrategy | undefined - if ((hierarchyStrategyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - hierarchyStrategyTmpBuf = TypeChecker.TransitionHierarchyStrategy_FromNumeric(valueDeserializer.readInt32()) - } - const hierarchyStrategyTmpResult : TransitionHierarchyStrategy | undefined = hierarchyStrategyTmpBuf - let value : GeometryTransitionOptions = ({follow: followTmpResult, hierarchyStrategy: hierarchyStrategyTmpResult} as GeometryTransitionOptions) - return value - } -} -export class InputCounterOptions_serializer { - public static write(buffer: SerializerBase, value: InputCounterOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForThresholdPercentage = value.thresholdPercentage - if (valueHolderForThresholdPercentage !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForThresholdPercentageTmpValue = valueHolderForThresholdPercentage! - valueSerializer.writeNumber(valueHolderForThresholdPercentageTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForHighlightBorder = value.highlightBorder - if (valueHolderForHighlightBorder !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHighlightBorderTmpValue = valueHolderForHighlightBorder! - valueSerializer.writeBoolean(valueHolderForHighlightBorderTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): InputCounterOptions { - let valueDeserializer : DeserializerBase = buffer - const thresholdPercentageTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let thresholdPercentageTmpBuf : number | undefined - if ((thresholdPercentageTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - thresholdPercentageTmpBuf = (valueDeserializer.readNumber() as number) - } - const thresholdPercentageTmpResult : number | undefined = thresholdPercentageTmpBuf - const highlightBorderTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let highlightBorderTmpBuf : boolean | undefined - if ((highlightBorderTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - highlightBorderTmpBuf = valueDeserializer.readBoolean() - } - const highlightBorderTmpResult : boolean | undefined = highlightBorderTmpBuf - let value : InputCounterOptions = ({thresholdPercentage: thresholdPercentageTmpResult, highlightBorder: highlightBorderTmpResult} as InputCounterOptions) - return value - } -} -export class InvertOptions_serializer { - public static write(buffer: SerializerBase, value: InvertOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForLow = value.low - valueSerializer.writeNumber(valueHolderForLow) - const valueHolderForHigh = value.high - valueSerializer.writeNumber(valueHolderForHigh) - const valueHolderForThreshold = value.threshold - valueSerializer.writeNumber(valueHolderForThreshold) - const valueHolderForThresholdRange = value.thresholdRange - valueSerializer.writeNumber(valueHolderForThresholdRange) - } - public static read(buffer: DeserializerBase): InvertOptions { - let valueDeserializer : DeserializerBase = buffer - const lowTmpResult : number = (valueDeserializer.readNumber() as number) - const highTmpResult : number = (valueDeserializer.readNumber() as number) - const thresholdTmpResult : number = (valueDeserializer.readNumber() as number) - const thresholdRangeTmpResult : number = (valueDeserializer.readNumber() as number) - let value : InvertOptions = ({low: lowTmpResult, high: highTmpResult, threshold: thresholdTmpResult, thresholdRange: thresholdRangeTmpResult} as InvertOptions) - return value - } -} -export class ItemDragInfo_serializer { - public static write(buffer: SerializerBase, value: ItemDragInfo): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForX = value.x - valueSerializer.writeNumber(valueHolderForX) - const valueHolderForY = value.y - valueSerializer.writeNumber(valueHolderForY) - } - public static read(buffer: DeserializerBase): ItemDragInfo { - let valueDeserializer : DeserializerBase = buffer - const xTmpResult : number = (valueDeserializer.readNumber() as number) - const yTmpResult : number = (valueDeserializer.readNumber() as number) - let value : ItemDragInfo = ({x: xTmpResult, y: yTmpResult} as ItemDragInfo) - return value - } -} -export class KeyEvent_serializer { - public static write(buffer: SerializerBase, value: KeyEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): KeyEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return KeyEventInternal.fromPtr(ptr) - } -} -export class LinearGradientBlurOptions_serializer { - public static write(buffer: SerializerBase, value: LinearGradientBlurOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForFractionStops = value.fractionStops - valueSerializer.writeInt32((valueHolderForFractionStops.length).toInt()) - for (let valueHolderForFractionStopsCounterI = 0; valueHolderForFractionStopsCounterI < valueHolderForFractionStops.length; valueHolderForFractionStopsCounterI++) { - const valueHolderForFractionStopsTmpElement : FractionStop = valueHolderForFractionStops[valueHolderForFractionStopsCounterI] - const valueHolderForFractionStopsTmpElement_0 = valueHolderForFractionStopsTmpElement[0] - valueSerializer.writeNumber(valueHolderForFractionStopsTmpElement_0) - const valueHolderForFractionStopsTmpElement_1 = valueHolderForFractionStopsTmpElement[1] - valueSerializer.writeNumber(valueHolderForFractionStopsTmpElement_1) - } - const valueHolderForDirection = value.direction - valueSerializer.writeInt32(TypeChecker.GradientDirection_ToNumeric(valueHolderForDirection)) - } - public static read(buffer: DeserializerBase): LinearGradientBlurOptions { - let valueDeserializer : DeserializerBase = buffer - const fractionStopsTmpBufLength : int32 = valueDeserializer.readInt32() - let fractionStopsTmpBuf : Array = new Array(fractionStopsTmpBufLength) - for (let fractionStopsTmpBufBufCounterI = 0; fractionStopsTmpBufBufCounterI < fractionStopsTmpBufLength; fractionStopsTmpBufBufCounterI++) { - const fractionStopsTmpBufTempBufValue0 : number = (valueDeserializer.readNumber() as number) - const fractionStopsTmpBufTempBufValue1 : number = (valueDeserializer.readNumber() as number) - fractionStopsTmpBuf[fractionStopsTmpBufBufCounterI] = ([fractionStopsTmpBufTempBufValue0, fractionStopsTmpBufTempBufValue1] as FractionStop) - } - const fractionStopsTmpResult : Array = fractionStopsTmpBuf - const directionTmpResult : GradientDirection = TypeChecker.GradientDirection_FromNumeric(valueDeserializer.readInt32()) - let value : LinearGradientBlurOptions = ({fractionStops: fractionStopsTmpResult, direction: directionTmpResult} as LinearGradientBlurOptions) - return value - } -} -export class LinearGradientOptions_serializer { - public static write(buffer: SerializerBase, value: LinearGradientOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForAngle = value.angle - if (valueHolderForAngle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAngleTmpValue = valueHolderForAngle! - if (valueHolderForAngleTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForAngleTmpValueForIdx0 = valueHolderForAngleTmpValue as number - valueSerializer.writeNumber(valueHolderForAngleTmpValueForIdx0) - } else if (valueHolderForAngleTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForAngleTmpValueForIdx1 = valueHolderForAngleTmpValue as string - valueSerializer.writeString(valueHolderForAngleTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDirection = value.direction - if (valueHolderForDirection !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDirectionTmpValue = (valueHolderForDirection as GradientDirection) - valueSerializer.writeInt32(TypeChecker.GradientDirection_ToNumeric(valueHolderForDirectionTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForColors = value.colors - valueSerializer.writeInt32((valueHolderForColors.length).toInt()) - for (let valueHolderForColorsCounterI = 0; valueHolderForColorsCounterI < valueHolderForColors.length; valueHolderForColorsCounterI++) { - const valueHolderForColorsTmpElement : [ ResourceColor, number ] = valueHolderForColors[valueHolderForColorsCounterI] - const valueHolderForColorsTmpElement_0 = valueHolderForColorsTmpElement[0] - if (valueHolderForColorsTmpElement_0 instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorsTmpElement_0ForIdx0 = valueHolderForColorsTmpElement_0 as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorsTmpElement_0ForIdx0)) - } else if (valueHolderForColorsTmpElement_0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorsTmpElement_0ForIdx1 = valueHolderForColorsTmpElement_0 as number - valueSerializer.writeNumber(valueHolderForColorsTmpElement_0ForIdx1) - } else if (valueHolderForColorsTmpElement_0 instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorsTmpElement_0ForIdx2 = valueHolderForColorsTmpElement_0 as string - valueSerializer.writeString(valueHolderForColorsTmpElement_0ForIdx2) - } else if (valueHolderForColorsTmpElement_0 instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorsTmpElement_0ForIdx3 = valueHolderForColorsTmpElement_0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorsTmpElement_0ForIdx3) - } - const valueHolderForColorsTmpElement_1 = valueHolderForColorsTmpElement[1] - valueSerializer.writeNumber(valueHolderForColorsTmpElement_1) - } - const valueHolderForRepeating = value.repeating - if (valueHolderForRepeating !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRepeatingTmpValue = valueHolderForRepeating! - valueSerializer.writeBoolean(valueHolderForRepeatingTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): LinearGradientOptions { - let valueDeserializer : DeserializerBase = buffer - const angleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let angleTmpBuf : number | string | undefined - if ((angleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const angleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let angleTmpBuf_ : number | string | undefined - if (angleTmpBuf_UnionSelector == (0).toChar()) { - angleTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (angleTmpBuf_UnionSelector == (1).toChar()) { - angleTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for angleTmpBuf_ has to be chosen through deserialisation.") - } - angleTmpBuf = (angleTmpBuf_ as number | string) - } - const angleTmpResult : number | string | undefined = angleTmpBuf - const directionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let directionTmpBuf : GradientDirection | undefined - if ((directionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - directionTmpBuf = TypeChecker.GradientDirection_FromNumeric(valueDeserializer.readInt32()) - } - const directionTmpResult : GradientDirection | undefined = directionTmpBuf - const colorsTmpBufLength : int32 = valueDeserializer.readInt32() - let colorsTmpBuf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colorsTmpBufLength) - for (let colorsTmpBufBufCounterI = 0; colorsTmpBufBufCounterI < colorsTmpBufLength; colorsTmpBufBufCounterI++) { - const colorsTmpBufTempBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() - let colorsTmpBufTempBufValue0TempBuf : Color | number | string | Resource | undefined - if (colorsTmpBufTempBufValue0TempBufUnionSelector == (0).toChar()) { - colorsTmpBufTempBufValue0TempBuf = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (1).toChar()) { - colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readNumber() as number) - } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (2).toChar()) { - colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readString() as string) - } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (3).toChar()) { - colorsTmpBufTempBufValue0TempBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for colorsTmpBufTempBufValue0TempBuf has to be chosen through deserialisation.") - } - const colorsTmpBufTempBufValue0 : ResourceColor = (colorsTmpBufTempBufValue0TempBuf as Color | number | string | Resource) - const colorsTmpBufTempBufValue1 : number = (valueDeserializer.readNumber() as number) - colorsTmpBuf[colorsTmpBufBufCounterI] = ([colorsTmpBufTempBufValue0, colorsTmpBufTempBufValue1] as [ ResourceColor, number ]) - } - const colorsTmpResult : Array<[ ResourceColor, number ]> = colorsTmpBuf - const repeatingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let repeatingTmpBuf : boolean | undefined - if ((repeatingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - repeatingTmpBuf = valueDeserializer.readBoolean() - } - const repeatingTmpResult : boolean | undefined = repeatingTmpBuf - let value : LinearGradientOptions = ({angle: angleTmpResult, direction: directionTmpResult, colors: colorsTmpResult, repeating: repeatingTmpResult} as LinearGradientOptions) - return value - } -} -export class LocalizedHorizontalAlignParam_serializer { - public static write(buffer: SerializerBase, value: LocalizedHorizontalAlignParam): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForAnchor = value.anchor - valueSerializer.writeString(valueHolderForAnchor) - const valueHolderForAlign = value.align - valueSerializer.writeInt32(TypeChecker.HorizontalAlign_ToNumeric(valueHolderForAlign)) - } - public static read(buffer: DeserializerBase): LocalizedHorizontalAlignParam { - let valueDeserializer : DeserializerBase = buffer - const anchorTmpResult : string = (valueDeserializer.readString() as string) - const alignTmpResult : HorizontalAlign = TypeChecker.HorizontalAlign_FromNumeric(valueDeserializer.readInt32()) - let value : LocalizedHorizontalAlignParam = ({anchor: anchorTmpResult, align: alignTmpResult} as LocalizedHorizontalAlignParam) - return value - } -} -export class LocalizedVerticalAlignParam_serializer { - public static write(buffer: SerializerBase, value: LocalizedVerticalAlignParam): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForAnchor = value.anchor - valueSerializer.writeString(valueHolderForAnchor) - const valueHolderForAlign = value.align - valueSerializer.writeInt32(TypeChecker.VerticalAlign_ToNumeric(valueHolderForAlign)) - } - public static read(buffer: DeserializerBase): LocalizedVerticalAlignParam { - let valueDeserializer : DeserializerBase = buffer - const anchorTmpResult : string = (valueDeserializer.readString() as string) - const alignTmpResult : VerticalAlign = TypeChecker.VerticalAlign_FromNumeric(valueDeserializer.readInt32()) - let value : LocalizedVerticalAlignParam = ({anchor: anchorTmpResult, align: alignTmpResult} as LocalizedVerticalAlignParam) - return value - } -} -export class Measurable_serializer { - public static write(buffer: SerializerBase, value: Measurable): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): Measurable { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return MeasurableInternal.fromPtr(ptr) - } -} -export class MeasureResult_serializer { - public static write(buffer: SerializerBase, value: MeasureResult): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForWidth = value.width - valueSerializer.writeNumber(valueHolderForWidth) - const valueHolderForHeight = value.height - valueSerializer.writeNumber(valueHolderForHeight) - } - public static read(buffer: DeserializerBase): MeasureResult { - let valueDeserializer : DeserializerBase = buffer - const widthTmpResult : number = (valueDeserializer.readNumber() as number) - const heightTmpResult : number = (valueDeserializer.readNumber() as number) - let value : MeasureResult = ({width: widthTmpResult, height: heightTmpResult} as MeasureResult) - return value - } -} -export class MotionBlurAnchor_serializer { - public static write(buffer: SerializerBase, value: MotionBlurAnchor): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForX = value.x - valueSerializer.writeNumber(valueHolderForX) - const valueHolderForY = value.y - valueSerializer.writeNumber(valueHolderForY) - } - public static read(buffer: DeserializerBase): MotionBlurAnchor { - let valueDeserializer : DeserializerBase = buffer - const xTmpResult : number = (valueDeserializer.readNumber() as number) - const yTmpResult : number = (valueDeserializer.readNumber() as number) - let value : MotionBlurAnchor = ({x: xTmpResult, y: yTmpResult} as MotionBlurAnchor) - return value - } -} -export class MotionBlurOptions_serializer { - public static write(buffer: SerializerBase, value: MotionBlurOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForRadius = value.radius - valueSerializer.writeNumber(valueHolderForRadius) - const valueHolderForAnchor = value.anchor - MotionBlurAnchor_serializer.write(valueSerializer, valueHolderForAnchor) - } - public static read(buffer: DeserializerBase): MotionBlurOptions { - let valueDeserializer : DeserializerBase = buffer - const radiusTmpResult : number = (valueDeserializer.readNumber() as number) - const anchorTmpResult : MotionBlurAnchor = MotionBlurAnchor_serializer.read(valueDeserializer) - let value : MotionBlurOptions = ({radius: radiusTmpResult, anchor: anchorTmpResult} as MotionBlurOptions) - return value - } -} -export class MotionPathOptions_serializer { - public static write(buffer: SerializerBase, value: MotionPathOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForPath = value.path - valueSerializer.writeString(valueHolderForPath) - const valueHolderForFrom = value.from - if (valueHolderForFrom !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFromTmpValue = valueHolderForFrom! - valueSerializer.writeNumber(valueHolderForFromTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTo = value.to - if (valueHolderForTo !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForToTmpValue = valueHolderForTo! - valueSerializer.writeNumber(valueHolderForToTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRotatable = value.rotatable - if (valueHolderForRotatable !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRotatableTmpValue = valueHolderForRotatable! - valueSerializer.writeBoolean(valueHolderForRotatableTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): MotionPathOptions { - let valueDeserializer : DeserializerBase = buffer - const pathTmpResult : string = (valueDeserializer.readString() as string) - const fromTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fromTmpBuf : number | undefined - if ((fromTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - fromTmpBuf = (valueDeserializer.readNumber() as number) - } - const fromTmpResult : number | undefined = fromTmpBuf - const toTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let toTmpBuf : number | undefined - if ((toTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - toTmpBuf = (valueDeserializer.readNumber() as number) - } - const toTmpResult : number | undefined = toTmpBuf - const rotatableTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let rotatableTmpBuf : boolean | undefined - if ((rotatableTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - rotatableTmpBuf = valueDeserializer.readBoolean() - } - const rotatableTmpResult : boolean | undefined = rotatableTmpBuf - let value : MotionPathOptions = ({path: pathTmpResult, from: fromTmpResult, to: toTmpResult, rotatable: rotatableTmpResult} as MotionPathOptions) - return value - } -} -export class OverlayOffset_serializer { - public static write(buffer: SerializerBase, value: OverlayOffset): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForX = value.x - if (valueHolderForX !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForXTmpValue = valueHolderForX! - valueSerializer.writeNumber(valueHolderForXTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForY = value.y - if (valueHolderForY !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForYTmpValue = valueHolderForY! - valueSerializer.writeNumber(valueHolderForYTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): OverlayOffset { - let valueDeserializer : DeserializerBase = buffer - const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let xTmpBuf : number | undefined - if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - xTmpBuf = (valueDeserializer.readNumber() as number) - } - const xTmpResult : number | undefined = xTmpBuf - const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let yTmpBuf : number | undefined - if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - yTmpBuf = (valueDeserializer.readNumber() as number) - } - const yTmpResult : number | undefined = yTmpBuf - let value : OverlayOffset = ({x: xTmpResult, y: yTmpResult} as OverlayOffset) - return value - } -} -export class PixelRoundPolicy_serializer { - public static write(buffer: SerializerBase, value: PixelRoundPolicy): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForStart = value.start - if (valueHolderForStart !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForStartTmpValue = (valueHolderForStart as PixelRoundCalcPolicy) - valueSerializer.writeInt32(TypeChecker.PixelRoundCalcPolicy_ToNumeric(valueHolderForStartTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTop = value.top - if (valueHolderForTop !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTopTmpValue = (valueHolderForTop as PixelRoundCalcPolicy) - valueSerializer.writeInt32(TypeChecker.PixelRoundCalcPolicy_ToNumeric(valueHolderForTopTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnd = value.end - if (valueHolderForEnd !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEndTmpValue = (valueHolderForEnd as PixelRoundCalcPolicy) - valueSerializer.writeInt32(TypeChecker.PixelRoundCalcPolicy_ToNumeric(valueHolderForEndTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBottom = value.bottom - if (valueHolderForBottom !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBottomTmpValue = (valueHolderForBottom as PixelRoundCalcPolicy) - valueSerializer.writeInt32(TypeChecker.PixelRoundCalcPolicy_ToNumeric(valueHolderForBottomTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): PixelRoundPolicy { - let valueDeserializer : DeserializerBase = buffer - const startTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let startTmpBuf : PixelRoundCalcPolicy | undefined - if ((startTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - startTmpBuf = TypeChecker.PixelRoundCalcPolicy_FromNumeric(valueDeserializer.readInt32()) - } - const startTmpResult : PixelRoundCalcPolicy | undefined = startTmpBuf - const topTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let topTmpBuf : PixelRoundCalcPolicy | undefined - if ((topTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - topTmpBuf = TypeChecker.PixelRoundCalcPolicy_FromNumeric(valueDeserializer.readInt32()) - } - const topTmpResult : PixelRoundCalcPolicy | undefined = topTmpBuf - const endTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let endTmpBuf : PixelRoundCalcPolicy | undefined - if ((endTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - endTmpBuf = TypeChecker.PixelRoundCalcPolicy_FromNumeric(valueDeserializer.readInt32()) - } - const endTmpResult : PixelRoundCalcPolicy | undefined = endTmpBuf - const bottomTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let bottomTmpBuf : PixelRoundCalcPolicy | undefined - if ((bottomTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - bottomTmpBuf = TypeChecker.PixelRoundCalcPolicy_FromNumeric(valueDeserializer.readInt32()) - } - const bottomTmpResult : PixelRoundCalcPolicy | undefined = bottomTmpBuf - let value : PixelRoundPolicy = ({start: startTmpResult, top: topTmpResult, end: endTmpResult, bottom: bottomTmpResult} as PixelRoundPolicy) - return value - } -} -export class PopupButton_serializer { - public static write(buffer: SerializerBase, value: PopupButton): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - valueSerializer.writeString(valueHolderForValue) - const valueHolderForAction = value.action - valueSerializer.holdAndWriteCallback(valueHolderForAction) - } - public static read(buffer: DeserializerBase): PopupButton { - let valueDeserializer : DeserializerBase = buffer - const valueTmpResult : string = (valueDeserializer.readString() as string) - const actionTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const actionTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const actionTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const actionTmpResult : VoidCallback = ():void => { - const actionTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - actionTmpBufBufArgsSerializer.writeInt32(actionTmpBufBufResource.resourceId); - actionTmpBufBufArgsSerializer.writePointer(actionTmpBufBufCall); - actionTmpBufBufArgsSerializer.writePointer(actionTmpBufBufCallSync); - InteropNativeModule._CallCallback(-2038961969, actionTmpBufBufArgsSerializer.asBuffer(), actionTmpBufBufArgsSerializer.length()); - actionTmpBufBufArgsSerializer.release(); - return; - } - let value : PopupButton = ({value: valueTmpResult, action: actionTmpResult} as PopupButton) - return value - } -} -export class PreviewConfiguration_serializer { - public static write(buffer: SerializerBase, value: PreviewConfiguration): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForOnlyForLifting = value.onlyForLifting - if (valueHolderForOnlyForLifting !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnlyForLiftingTmpValue = valueHolderForOnlyForLifting! - valueSerializer.writeBoolean(valueHolderForOnlyForLiftingTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDelayCreating = value.delayCreating - if (valueHolderForDelayCreating !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDelayCreatingTmpValue = valueHolderForDelayCreating! - valueSerializer.writeBoolean(valueHolderForDelayCreatingTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): PreviewConfiguration { - let valueDeserializer : DeserializerBase = buffer - const onlyForLiftingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onlyForLiftingTmpBuf : boolean | undefined - if ((onlyForLiftingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - onlyForLiftingTmpBuf = valueDeserializer.readBoolean() - } - const onlyForLiftingTmpResult : boolean | undefined = onlyForLiftingTmpBuf - const delayCreatingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let delayCreatingTmpBuf : boolean | undefined - if ((delayCreatingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - delayCreatingTmpBuf = valueDeserializer.readBoolean() - } - const delayCreatingTmpResult : boolean | undefined = delayCreatingTmpBuf - let value : PreviewConfiguration = ({onlyForLifting: onlyForLiftingTmpResult, delayCreating: delayCreatingTmpResult} as PreviewConfiguration) - return value - } -} -export class RotateOptions_serializer { - public static write(buffer: SerializerBase, value: RotateOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForX = value.x - if (valueHolderForX !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForXTmpValue = valueHolderForX! - valueSerializer.writeNumber(valueHolderForXTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForY = value.y - if (valueHolderForY !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForYTmpValue = valueHolderForY! - valueSerializer.writeNumber(valueHolderForYTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForZ = value.z - if (valueHolderForZ !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForZTmpValue = valueHolderForZ! - valueSerializer.writeNumber(valueHolderForZTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForCenterX = value.centerX - if (valueHolderForCenterX !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForCenterXTmpValue = valueHolderForCenterX! - if (valueHolderForCenterXTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCenterXTmpValueForIdx0 = valueHolderForCenterXTmpValue as number - valueSerializer.writeNumber(valueHolderForCenterXTmpValueForIdx0) - } else if (valueHolderForCenterXTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCenterXTmpValueForIdx1 = valueHolderForCenterXTmpValue as string - valueSerializer.writeString(valueHolderForCenterXTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForCenterY = value.centerY - if (valueHolderForCenterY !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForCenterYTmpValue = valueHolderForCenterY! - if (valueHolderForCenterYTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCenterYTmpValueForIdx0 = valueHolderForCenterYTmpValue as number - valueSerializer.writeNumber(valueHolderForCenterYTmpValueForIdx0) - } else if (valueHolderForCenterYTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCenterYTmpValueForIdx1 = valueHolderForCenterYTmpValue as string - valueSerializer.writeString(valueHolderForCenterYTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForCenterZ = value.centerZ - if (valueHolderForCenterZ !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForCenterZTmpValue = valueHolderForCenterZ! - valueSerializer.writeNumber(valueHolderForCenterZTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPerspective = value.perspective - if (valueHolderForPerspective !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPerspectiveTmpValue = valueHolderForPerspective! - valueSerializer.writeNumber(valueHolderForPerspectiveTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAngle = value.angle - if (valueHolderForAngle instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForAngleForIdx0 = valueHolderForAngle as number - valueSerializer.writeNumber(valueHolderForAngleForIdx0) - } else if (valueHolderForAngle instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForAngleForIdx1 = valueHolderForAngle as string - valueSerializer.writeString(valueHolderForAngleForIdx1) - } - } - public static read(buffer: DeserializerBase): RotateOptions { - let valueDeserializer : DeserializerBase = buffer - const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let xTmpBuf : number | undefined - if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - xTmpBuf = (valueDeserializer.readNumber() as number) - } - const xTmpResult : number | undefined = xTmpBuf - const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let yTmpBuf : number | undefined - if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - yTmpBuf = (valueDeserializer.readNumber() as number) - } - const yTmpResult : number | undefined = yTmpBuf - const zTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let zTmpBuf : number | undefined - if ((zTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - zTmpBuf = (valueDeserializer.readNumber() as number) - } - const zTmpResult : number | undefined = zTmpBuf - const centerXTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let centerXTmpBuf : number | string | undefined - if ((centerXTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const centerXTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let centerXTmpBuf_ : number | string | undefined - if (centerXTmpBuf_UnionSelector == (0).toChar()) { - centerXTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (centerXTmpBuf_UnionSelector == (1).toChar()) { - centerXTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for centerXTmpBuf_ has to be chosen through deserialisation.") - } - centerXTmpBuf = (centerXTmpBuf_ as number | string) - } - const centerXTmpResult : number | string | undefined = centerXTmpBuf - const centerYTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let centerYTmpBuf : number | string | undefined - if ((centerYTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const centerYTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let centerYTmpBuf_ : number | string | undefined - if (centerYTmpBuf_UnionSelector == (0).toChar()) { - centerYTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (centerYTmpBuf_UnionSelector == (1).toChar()) { - centerYTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for centerYTmpBuf_ has to be chosen through deserialisation.") - } - centerYTmpBuf = (centerYTmpBuf_ as number | string) - } - const centerYTmpResult : number | string | undefined = centerYTmpBuf - const centerZTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let centerZTmpBuf : number | undefined - if ((centerZTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - centerZTmpBuf = (valueDeserializer.readNumber() as number) - } - const centerZTmpResult : number | undefined = centerZTmpBuf - const perspectiveTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let perspectiveTmpBuf : number | undefined - if ((perspectiveTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - perspectiveTmpBuf = (valueDeserializer.readNumber() as number) - } - const perspectiveTmpResult : number | undefined = perspectiveTmpBuf - const angleTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let angleTmpBuf : number | string | undefined - if (angleTmpBufUnionSelector == (0).toChar()) { - angleTmpBuf = (valueDeserializer.readNumber() as number) - } else if (angleTmpBufUnionSelector == (1).toChar()) { - angleTmpBuf = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for angleTmpBuf has to be chosen through deserialisation.") - } - const angleTmpResult : number | string = (angleTmpBuf as number | string) - let value : RotateOptions = ({x: xTmpResult, y: yTmpResult, z: zTmpResult, centerX: centerXTmpResult, centerY: centerYTmpResult, centerZ: centerZTmpResult, perspective: perspectiveTmpResult, angle: angleTmpResult} as RotateOptions) - return value - } -} -export class ScaleOptions_serializer { - public static write(buffer: SerializerBase, value: ScaleOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForX = value.x - if (valueHolderForX !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForXTmpValue = valueHolderForX! - valueSerializer.writeNumber(valueHolderForXTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForY = value.y - if (valueHolderForY !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForYTmpValue = valueHolderForY! - valueSerializer.writeNumber(valueHolderForYTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForZ = value.z - if (valueHolderForZ !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForZTmpValue = valueHolderForZ! - valueSerializer.writeNumber(valueHolderForZTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForCenterX = value.centerX - if (valueHolderForCenterX !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForCenterXTmpValue = valueHolderForCenterX! - if (valueHolderForCenterXTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCenterXTmpValueForIdx0 = valueHolderForCenterXTmpValue as number - valueSerializer.writeNumber(valueHolderForCenterXTmpValueForIdx0) - } else if (valueHolderForCenterXTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCenterXTmpValueForIdx1 = valueHolderForCenterXTmpValue as string - valueSerializer.writeString(valueHolderForCenterXTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForCenterY = value.centerY - if (valueHolderForCenterY !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForCenterYTmpValue = valueHolderForCenterY! - if (valueHolderForCenterYTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCenterYTmpValueForIdx0 = valueHolderForCenterYTmpValue as number - valueSerializer.writeNumber(valueHolderForCenterYTmpValueForIdx0) - } else if (valueHolderForCenterYTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCenterYTmpValueForIdx1 = valueHolderForCenterYTmpValue as string - valueSerializer.writeString(valueHolderForCenterYTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): ScaleOptions { - let valueDeserializer : DeserializerBase = buffer - const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let xTmpBuf : number | undefined - if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - xTmpBuf = (valueDeserializer.readNumber() as number) - } - const xTmpResult : number | undefined = xTmpBuf - const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let yTmpBuf : number | undefined - if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - yTmpBuf = (valueDeserializer.readNumber() as number) - } - const yTmpResult : number | undefined = yTmpBuf - const zTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let zTmpBuf : number | undefined - if ((zTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - zTmpBuf = (valueDeserializer.readNumber() as number) - } - const zTmpResult : number | undefined = zTmpBuf - const centerXTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let centerXTmpBuf : number | string | undefined - if ((centerXTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const centerXTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let centerXTmpBuf_ : number | string | undefined - if (centerXTmpBuf_UnionSelector == (0).toChar()) { - centerXTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (centerXTmpBuf_UnionSelector == (1).toChar()) { - centerXTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for centerXTmpBuf_ has to be chosen through deserialisation.") - } - centerXTmpBuf = (centerXTmpBuf_ as number | string) - } - const centerXTmpResult : number | string | undefined = centerXTmpBuf - const centerYTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let centerYTmpBuf : number | string | undefined - if ((centerYTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const centerYTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let centerYTmpBuf_ : number | string | undefined - if (centerYTmpBuf_UnionSelector == (0).toChar()) { - centerYTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (centerYTmpBuf_UnionSelector == (1).toChar()) { - centerYTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for centerYTmpBuf_ has to be chosen through deserialisation.") - } - centerYTmpBuf = (centerYTmpBuf_ as number | string) - } - const centerYTmpResult : number | string | undefined = centerYTmpBuf - let value : ScaleOptions = ({x: xTmpResult, y: yTmpResult, z: zTmpResult, centerX: centerXTmpResult, centerY: centerYTmpResult} as ScaleOptions) - return value - } -} -export class SelectionOptions_serializer { - public static write(buffer: SerializerBase, value: SelectionOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForMenuPolicy = value.menuPolicy - if (valueHolderForMenuPolicy !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForMenuPolicyTmpValue = (valueHolderForMenuPolicy as MenuPolicy) - valueSerializer.writeInt32(TypeChecker.MenuPolicy_ToNumeric(valueHolderForMenuPolicyTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): SelectionOptions { - let valueDeserializer : DeserializerBase = buffer - const menuPolicyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let menuPolicyTmpBuf : MenuPolicy | undefined - if ((menuPolicyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - menuPolicyTmpBuf = TypeChecker.MenuPolicy_FromNumeric(valueDeserializer.readInt32()) - } - const menuPolicyTmpResult : MenuPolicy | undefined = menuPolicyTmpBuf - let value : SelectionOptions = ({menuPolicy: menuPolicyTmpResult} as SelectionOptions) - return value - } -} -export class SheetDismiss_serializer { - public static write(buffer: SerializerBase, value: SheetDismiss): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForDismiss = value.dismiss - valueSerializer.holdAndWriteCallback(valueHolderForDismiss) - } - public static read(buffer: DeserializerBase): SheetDismiss { - let valueDeserializer : DeserializerBase = buffer - const dismissTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const dismissTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const dismissTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const dismissTmpResult : VoidCallback = ():void => { - const dismissTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - dismissTmpBufBufArgsSerializer.writeInt32(dismissTmpBufBufResource.resourceId); - dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCall); - dismissTmpBufBufArgsSerializer.writePointer(dismissTmpBufBufCallSync); - InteropNativeModule._CallCallback(-2038961969, dismissTmpBufBufArgsSerializer.asBuffer(), dismissTmpBufBufArgsSerializer.length()); - dismissTmpBufBufArgsSerializer.release(); - return; - } - let value : SheetDismiss = ({dismiss: dismissTmpResult} as SheetDismiss) - return value - } -} -export class SpringBackAction_serializer { - public static write(buffer: SerializerBase, value: SpringBackAction): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForSpringBack = value.springBack - valueSerializer.holdAndWriteCallback(valueHolderForSpringBack) - } - public static read(buffer: DeserializerBase): SpringBackAction { - let valueDeserializer : DeserializerBase = buffer - const springBackTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const springBackTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const springBackTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const springBackTmpResult : VoidCallback = ():void => { - const springBackTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - springBackTmpBufBufArgsSerializer.writeInt32(springBackTmpBufBufResource.resourceId); - springBackTmpBufBufArgsSerializer.writePointer(springBackTmpBufBufCall); - springBackTmpBufBufArgsSerializer.writePointer(springBackTmpBufBufCallSync); - InteropNativeModule._CallCallback(-2038961969, springBackTmpBufBufArgsSerializer.asBuffer(), springBackTmpBufBufArgsSerializer.length()); - springBackTmpBufBufArgsSerializer.release(); - return; - } - let value : SpringBackAction = ({springBack: springBackTmpResult} as SpringBackAction) - return value - } -} -export class SystemAdaptiveOptions_serializer { - public static write(buffer: SerializerBase, value: SystemAdaptiveOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForDisableSystemAdaptation = value.disableSystemAdaptation - if (valueHolderForDisableSystemAdaptation !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDisableSystemAdaptationTmpValue = valueHolderForDisableSystemAdaptation! - valueSerializer.writeBoolean(valueHolderForDisableSystemAdaptationTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): SystemAdaptiveOptions { - let valueDeserializer : DeserializerBase = buffer - const disableSystemAdaptationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let disableSystemAdaptationTmpBuf : boolean | undefined - if ((disableSystemAdaptationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - disableSystemAdaptationTmpBuf = valueDeserializer.readBoolean() - } - const disableSystemAdaptationTmpResult : boolean | undefined = disableSystemAdaptationTmpBuf - let value : SystemAdaptiveOptions = ({disableSystemAdaptation: disableSystemAdaptationTmpResult} as SystemAdaptiveOptions) - return value - } -} -export class TextContentControllerOptions_serializer { - public static write(buffer: SerializerBase, value: TextContentControllerOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForOffset = value.offset - if (valueHolderForOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetTmpValue = valueHolderForOffset! - valueSerializer.writeNumber(valueHolderForOffsetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): TextContentControllerOptions { - let valueDeserializer : DeserializerBase = buffer - const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetTmpBuf : number | undefined - if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - offsetTmpBuf = (valueDeserializer.readNumber() as number) - } - const offsetTmpResult : number | undefined = offsetTmpBuf - let value : TextContentControllerOptions = ({offset: offsetTmpResult} as TextContentControllerOptions) - return value - } -} -export class TouchObject_serializer { - public static write(buffer: SerializerBase, value: TouchObject): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForType = value.type - valueSerializer.writeInt32(TypeChecker.TouchType_ToNumeric(valueHolderForType)) - const valueHolderForId = value.id - valueSerializer.writeNumber(valueHolderForId) - const valueHolderForDisplayX = value.displayX - valueSerializer.writeNumber(valueHolderForDisplayX) - const valueHolderForDisplayY = value.displayY - valueSerializer.writeNumber(valueHolderForDisplayY) - const valueHolderForWindowX = value.windowX - valueSerializer.writeNumber(valueHolderForWindowX) - const valueHolderForWindowY = value.windowY - valueSerializer.writeNumber(valueHolderForWindowY) - const valueHolderForX = value.x - valueSerializer.writeNumber(valueHolderForX) - const valueHolderForY = value.y - valueSerializer.writeNumber(valueHolderForY) - const valueHolderForHand = value.hand - if (valueHolderForHand !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHandTmpValue = (valueHolderForHand as InteractionHand) - valueSerializer.writeInt32(TypeChecker.InteractionHand_ToNumeric(valueHolderForHandTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPressedTime = value.pressedTime - if (valueHolderForPressedTime !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPressedTimeTmpValue = valueHolderForPressedTime! - valueSerializer.writeNumber(valueHolderForPressedTimeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPressure = value.pressure - if (valueHolderForPressure !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPressureTmpValue = valueHolderForPressure! - valueSerializer.writeNumber(valueHolderForPressureTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForWidth = value.width - if (valueHolderForWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForWidthTmpValue = valueHolderForWidth! - valueSerializer.writeNumber(valueHolderForWidthTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForHeight = value.height - if (valueHolderForHeight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHeightTmpValue = valueHolderForHeight! - valueSerializer.writeNumber(valueHolderForHeightTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): TouchObject { - let valueDeserializer : DeserializerBase = buffer - const typeTmpResult : TouchType = TypeChecker.TouchType_FromNumeric(valueDeserializer.readInt32()) - const idTmpResult : number = (valueDeserializer.readNumber() as number) - const displayXTmpResult : number = (valueDeserializer.readNumber() as number) - const displayYTmpResult : number = (valueDeserializer.readNumber() as number) - const windowXTmpResult : number = (valueDeserializer.readNumber() as number) - const windowYTmpResult : number = (valueDeserializer.readNumber() as number) - const xTmpResult : number = (valueDeserializer.readNumber() as number) - const yTmpResult : number = (valueDeserializer.readNumber() as number) - const handTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let handTmpBuf : InteractionHand | undefined - if ((handTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - handTmpBuf = TypeChecker.InteractionHand_FromNumeric(valueDeserializer.readInt32()) - } - const handTmpResult : InteractionHand | undefined = handTmpBuf - const pressedTimeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let pressedTimeTmpBuf : number | undefined - if ((pressedTimeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - pressedTimeTmpBuf = (valueDeserializer.readNumber() as number) - } - const pressedTimeTmpResult : number | undefined = pressedTimeTmpBuf - const pressureTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let pressureTmpBuf : number | undefined - if ((pressureTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - pressureTmpBuf = (valueDeserializer.readNumber() as number) - } - const pressureTmpResult : number | undefined = pressureTmpBuf - const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let widthTmpBuf : number | undefined - if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - widthTmpBuf = (valueDeserializer.readNumber() as number) - } - const widthTmpResult : number | undefined = widthTmpBuf - const heightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let heightTmpBuf : number | undefined - if ((heightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - heightTmpBuf = (valueDeserializer.readNumber() as number) - } - const heightTmpResult : number | undefined = heightTmpBuf - let value : TouchObject = ({type: typeTmpResult, id: idTmpResult, displayX: displayXTmpResult, displayY: displayYTmpResult, windowX: windowXTmpResult, windowY: windowYTmpResult, x: xTmpResult, y: yTmpResult, hand: handTmpResult, pressedTime: pressedTimeTmpResult, pressure: pressureTmpResult, width: widthTmpResult, height: heightTmpResult} as TouchObject) - return value - } -} -export class TouchResult_serializer { - public static write(buffer: SerializerBase, value: TouchResult): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForStrategy = value.strategy - valueSerializer.writeInt32(TypeChecker.TouchTestStrategy_ToNumeric(valueHolderForStrategy)) - const valueHolderForId = value.id - if (valueHolderForId !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForIdTmpValue = valueHolderForId! - valueSerializer.writeString(valueHolderForIdTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): TouchResult { - let valueDeserializer : DeserializerBase = buffer - const strategyTmpResult : TouchTestStrategy = TypeChecker.TouchTestStrategy_FromNumeric(valueDeserializer.readInt32()) - const idTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let idTmpBuf : string | undefined - if ((idTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - idTmpBuf = (valueDeserializer.readString() as string) - } - const idTmpResult : string | undefined = idTmpBuf - let value : TouchResult = ({strategy: strategyTmpResult, id: idTmpResult} as TouchResult) - return value - } -} -export class TranslateOptions_serializer { - public static write(buffer: SerializerBase, value: TranslateOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForX = value.x - if (valueHolderForX !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForXTmpValue = valueHolderForX! - if (valueHolderForXTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForXTmpValueForIdx0 = valueHolderForXTmpValue as number - valueSerializer.writeNumber(valueHolderForXTmpValueForIdx0) - } else if (valueHolderForXTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForXTmpValueForIdx1 = valueHolderForXTmpValue as string - valueSerializer.writeString(valueHolderForXTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForY = value.y - if (valueHolderForY !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForYTmpValue = valueHolderForY! - if (valueHolderForYTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForYTmpValueForIdx0 = valueHolderForYTmpValue as number - valueSerializer.writeNumber(valueHolderForYTmpValueForIdx0) - } else if (valueHolderForYTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForYTmpValueForIdx1 = valueHolderForYTmpValue as string - valueSerializer.writeString(valueHolderForYTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForZ = value.z - if (valueHolderForZ !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForZTmpValue = valueHolderForZ! - if (valueHolderForZTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForZTmpValueForIdx0 = valueHolderForZTmpValue as number - valueSerializer.writeNumber(valueHolderForZTmpValueForIdx0) - } else if (valueHolderForZTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForZTmpValueForIdx1 = valueHolderForZTmpValue as string - valueSerializer.writeString(valueHolderForZTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): TranslateOptions { - let valueDeserializer : DeserializerBase = buffer - const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let xTmpBuf : number | string | undefined - if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const xTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let xTmpBuf_ : number | string | undefined - if (xTmpBuf_UnionSelector == (0).toChar()) { - xTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (xTmpBuf_UnionSelector == (1).toChar()) { - xTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for xTmpBuf_ has to be chosen through deserialisation.") - } - xTmpBuf = (xTmpBuf_ as number | string) - } - const xTmpResult : number | string | undefined = xTmpBuf - const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let yTmpBuf : number | string | undefined - if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const yTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let yTmpBuf_ : number | string | undefined - if (yTmpBuf_UnionSelector == (0).toChar()) { - yTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (yTmpBuf_UnionSelector == (1).toChar()) { - yTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for yTmpBuf_ has to be chosen through deserialisation.") - } - yTmpBuf = (yTmpBuf_ as number | string) - } - const yTmpResult : number | string | undefined = yTmpBuf - const zTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let zTmpBuf : number | string | undefined - if ((zTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const zTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let zTmpBuf_ : number | string | undefined - if (zTmpBuf_UnionSelector == (0).toChar()) { - zTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (zTmpBuf_UnionSelector == (1).toChar()) { - zTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for zTmpBuf_ has to be chosen through deserialisation.") - } - zTmpBuf = (zTmpBuf_ as number | string) - } - const zTmpResult : number | string | undefined = zTmpBuf - let value : TranslateOptions = ({x: xTmpResult, y: yTmpResult, z: zTmpResult} as TranslateOptions) - return value - } -} -export class VisibleAreaEventOptions_serializer { - public static write(buffer: SerializerBase, value: VisibleAreaEventOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForRatios = value.ratios - valueSerializer.writeInt32((valueHolderForRatios.length).toInt()) - for (let valueHolderForRatiosCounterI = 0; valueHolderForRatiosCounterI < valueHolderForRatios.length; valueHolderForRatiosCounterI++) { - const valueHolderForRatiosTmpElement : number = valueHolderForRatios[valueHolderForRatiosCounterI] - valueSerializer.writeNumber(valueHolderForRatiosTmpElement) - } - const valueHolderForExpectedUpdateInterval = value.expectedUpdateInterval - if (valueHolderForExpectedUpdateInterval !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForExpectedUpdateIntervalTmpValue = valueHolderForExpectedUpdateInterval! - valueSerializer.writeNumber(valueHolderForExpectedUpdateIntervalTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): VisibleAreaEventOptions { - let valueDeserializer : DeserializerBase = buffer - const ratiosTmpBufLength : int32 = valueDeserializer.readInt32() - let ratiosTmpBuf : Array = new Array(ratiosTmpBufLength) - for (let ratiosTmpBufBufCounterI = 0; ratiosTmpBufBufCounterI < ratiosTmpBufLength; ratiosTmpBufBufCounterI++) { - ratiosTmpBuf[ratiosTmpBufBufCounterI] = (valueDeserializer.readNumber() as number) - } - const ratiosTmpResult : Array = ratiosTmpBuf - const expectedUpdateIntervalTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let expectedUpdateIntervalTmpBuf : number | undefined - if ((expectedUpdateIntervalTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - expectedUpdateIntervalTmpBuf = (valueDeserializer.readNumber() as number) - } - const expectedUpdateIntervalTmpResult : number | undefined = expectedUpdateIntervalTmpBuf - let value : VisibleAreaEventOptions = ({ratios: ratiosTmpResult, expectedUpdateInterval: expectedUpdateIntervalTmpResult} as VisibleAreaEventOptions) - return value - } -} -export class AnimateParam_serializer { - public static write(buffer: SerializerBase, value: AnimateParam): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForDuration = value.duration - if (valueHolderForDuration !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDurationTmpValue = valueHolderForDuration! - valueSerializer.writeNumber(valueHolderForDurationTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTempo = value.tempo - if (valueHolderForTempo !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTempoTmpValue = valueHolderForTempo! - valueSerializer.writeNumber(valueHolderForTempoTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForCurve = value.curve - if (valueHolderForCurve !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForCurveTmpValue = valueHolderForCurve! - if (valueHolderForCurveTmpValue instanceof curves.Curve) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCurveTmpValueForIdx0 = valueHolderForCurveTmpValue as curves.Curve - valueSerializer.writeInt32(TypeChecker.curves_Curve_ToNumeric(valueHolderForCurveTmpValueForIdx0)) - } else if (valueHolderForCurveTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCurveTmpValueForIdx1 = valueHolderForCurveTmpValue as string - valueSerializer.writeString(valueHolderForCurveTmpValueForIdx1) - } else if (valueHolderForCurveTmpValue instanceof curves.ICurve) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForCurveTmpValueForIdx2 = valueHolderForCurveTmpValue as curves.ICurve - curves_ICurve_serializer.write(valueSerializer, valueHolderForCurveTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDelay = value.delay - if (valueHolderForDelay !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDelayTmpValue = valueHolderForDelay! - valueSerializer.writeNumber(valueHolderForDelayTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForIterations = value.iterations - if (valueHolderForIterations !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForIterationsTmpValue = valueHolderForIterations! - valueSerializer.writeNumber(valueHolderForIterationsTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPlayMode = value.playMode - if (valueHolderForPlayMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPlayModeTmpValue = (valueHolderForPlayMode as PlayMode) - valueSerializer.writeInt32(TypeChecker.PlayMode_ToNumeric(valueHolderForPlayModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnFinish = value.onFinish - if (valueHolderForOnFinish !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnFinishTmpValue = valueHolderForOnFinish! - valueSerializer.holdAndWriteCallback(valueHolderForOnFinishTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFinishCallbackType = value.finishCallbackType - if (valueHolderForFinishCallbackType !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFinishCallbackTypeTmpValue = (valueHolderForFinishCallbackType as FinishCallbackType) - valueSerializer.writeInt32(TypeChecker.FinishCallbackType_ToNumeric(valueHolderForFinishCallbackTypeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForExpectedFrameRateRange = value.expectedFrameRateRange - if (valueHolderForExpectedFrameRateRange !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForExpectedFrameRateRangeTmpValue = valueHolderForExpectedFrameRateRange! - ExpectedFrameRateRange_serializer.write(valueSerializer, valueHolderForExpectedFrameRateRangeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): AnimateParam { - let valueDeserializer : DeserializerBase = buffer - const durationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let durationTmpBuf : number | undefined - if ((durationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - durationTmpBuf = (valueDeserializer.readNumber() as number) - } - const durationTmpResult : number | undefined = durationTmpBuf - const tempoTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let tempoTmpBuf : number | undefined - if ((tempoTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - tempoTmpBuf = (valueDeserializer.readNumber() as number) - } - const tempoTmpResult : number | undefined = tempoTmpBuf - const curveTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let curveTmpBuf : curves.Curve | string | curves.ICurve | undefined - if ((curveTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const curveTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let curveTmpBuf_ : curves.Curve | string | curves.ICurve | undefined - if (curveTmpBuf_UnionSelector == (0).toChar()) { - curveTmpBuf_ = TypeChecker.curves_Curve_FromNumeric(valueDeserializer.readInt32()) - } else if (curveTmpBuf_UnionSelector == (1).toChar()) { - curveTmpBuf_ = (valueDeserializer.readString() as string) - } else if (curveTmpBuf_UnionSelector == (2).toChar()) { - curveTmpBuf_ = (curves_ICurve_serializer.read(valueDeserializer) as curves.ICurve) - } else { - throw new Error("One of the branches for curveTmpBuf_ has to be chosen through deserialisation.") - } - curveTmpBuf = (curveTmpBuf_ as curves.Curve | string | curves.ICurve) - } - const curveTmpResult : curves.Curve | string | curves.ICurve | undefined = curveTmpBuf - const delayTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let delayTmpBuf : number | undefined - if ((delayTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - delayTmpBuf = (valueDeserializer.readNumber() as number) - } - const delayTmpResult : number | undefined = delayTmpBuf - const iterationsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let iterationsTmpBuf : number | undefined - if ((iterationsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - iterationsTmpBuf = (valueDeserializer.readNumber() as number) - } - const iterationsTmpResult : number | undefined = iterationsTmpBuf - const playModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let playModeTmpBuf : PlayMode | undefined - if ((playModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - playModeTmpBuf = TypeChecker.PlayMode_FromNumeric(valueDeserializer.readInt32()) - } - const playModeTmpResult : PlayMode | undefined = playModeTmpBuf - const onFinishTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onFinishTmpBuf : (() => void) | undefined - if ((onFinishTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onFinishTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onFinishTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onFinishTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onFinishTmpBuf = ():void => { - const onFinishTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onFinishTmpBuf_BufArgsSerializer.writeInt32(onFinishTmpBuf_BufResource.resourceId); - onFinishTmpBuf_BufArgsSerializer.writePointer(onFinishTmpBuf_BufCall); - onFinishTmpBuf_BufArgsSerializer.writePointer(onFinishTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onFinishTmpBuf_BufArgsSerializer.asBuffer(), onFinishTmpBuf_BufArgsSerializer.length()); - onFinishTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onFinishTmpResult : (() => void) | undefined = onFinishTmpBuf - const finishCallbackTypeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let finishCallbackTypeTmpBuf : FinishCallbackType | undefined - if ((finishCallbackTypeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - finishCallbackTypeTmpBuf = TypeChecker.FinishCallbackType_FromNumeric(valueDeserializer.readInt32()) - } - const finishCallbackTypeTmpResult : FinishCallbackType | undefined = finishCallbackTypeTmpBuf - const expectedFrameRateRangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let expectedFrameRateRangeTmpBuf : ExpectedFrameRateRange | undefined - if ((expectedFrameRateRangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - expectedFrameRateRangeTmpBuf = ExpectedFrameRateRange_serializer.read(valueDeserializer) - } - const expectedFrameRateRangeTmpResult : ExpectedFrameRateRange | undefined = expectedFrameRateRangeTmpBuf - let value : AnimateParam = ({duration: durationTmpResult, tempo: tempoTmpResult, curve: curveTmpResult, delay: delayTmpResult, iterations: iterationsTmpResult, playMode: playModeTmpResult, onFinish: onFinishTmpResult, finishCallbackType: finishCallbackTypeTmpResult, expectedFrameRateRange: expectedFrameRateRangeTmpResult} as AnimateParam) - return value - } -} -export class BackgroundBlurStyleOptions_serializer { - public static write(buffer: SerializerBase, value: BackgroundBlurStyleOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForColorMode = value.colorMode - if (valueHolderForColorMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForColorModeTmpValue = (valueHolderForColorMode as ThemeColorMode) - valueSerializer.writeInt32(TypeChecker.ThemeColorMode_ToNumeric(valueHolderForColorModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAdaptiveColor = value.adaptiveColor - if (valueHolderForAdaptiveColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAdaptiveColorTmpValue = (valueHolderForAdaptiveColor as AdaptiveColor) - valueSerializer.writeInt32(TypeChecker.AdaptiveColor_ToNumeric(valueHolderForAdaptiveColorTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForScale = value.scale - if (valueHolderForScale !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForScaleTmpValue = valueHolderForScale! - valueSerializer.writeNumber(valueHolderForScaleTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBlurOptions = value.blurOptions - if (valueHolderForBlurOptions !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBlurOptionsTmpValue = valueHolderForBlurOptions! - BlurOptions_serializer.write(valueSerializer, valueHolderForBlurOptionsTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPolicy = value.policy - if (valueHolderForPolicy !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPolicyTmpValue = (valueHolderForPolicy as BlurStyleActivePolicy) - valueSerializer.writeInt32(TypeChecker.BlurStyleActivePolicy_ToNumeric(valueHolderForPolicyTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForInactiveColor = value.inactiveColor - if (valueHolderForInactiveColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForInactiveColorTmpValue = valueHolderForInactiveColor! - if (valueHolderForInactiveColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForInactiveColorTmpValueForIdx0 = valueHolderForInactiveColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForInactiveColorTmpValueForIdx0)) - } else if (valueHolderForInactiveColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForInactiveColorTmpValueForIdx1 = valueHolderForInactiveColorTmpValue as number - valueSerializer.writeNumber(valueHolderForInactiveColorTmpValueForIdx1) - } else if (valueHolderForInactiveColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForInactiveColorTmpValueForIdx2 = valueHolderForInactiveColorTmpValue as string - valueSerializer.writeString(valueHolderForInactiveColorTmpValueForIdx2) - } else if (valueHolderForInactiveColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForInactiveColorTmpValueForIdx3 = valueHolderForInactiveColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForInactiveColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): BackgroundBlurStyleOptions { - let valueDeserializer : DeserializerBase = buffer - const colorModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let colorModeTmpBuf : ThemeColorMode | undefined - if ((colorModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - colorModeTmpBuf = TypeChecker.ThemeColorMode_FromNumeric(valueDeserializer.readInt32()) - } - const colorModeTmpResult : ThemeColorMode | undefined = colorModeTmpBuf - const adaptiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let adaptiveColorTmpBuf : AdaptiveColor | undefined - if ((adaptiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - adaptiveColorTmpBuf = TypeChecker.AdaptiveColor_FromNumeric(valueDeserializer.readInt32()) - } - const adaptiveColorTmpResult : AdaptiveColor | undefined = adaptiveColorTmpBuf - const scaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let scaleTmpBuf : number | undefined - if ((scaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - scaleTmpBuf = (valueDeserializer.readNumber() as number) - } - const scaleTmpResult : number | undefined = scaleTmpBuf - const blurOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let blurOptionsTmpBuf : BlurOptions | undefined - if ((blurOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - blurOptionsTmpBuf = BlurOptions_serializer.read(valueDeserializer) - } - const blurOptionsTmpResult : BlurOptions | undefined = blurOptionsTmpBuf - const policyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let policyTmpBuf : BlurStyleActivePolicy | undefined - if ((policyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - policyTmpBuf = TypeChecker.BlurStyleActivePolicy_FromNumeric(valueDeserializer.readInt32()) - } - const policyTmpResult : BlurStyleActivePolicy | undefined = policyTmpBuf - const inactiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let inactiveColorTmpBuf : ResourceColor | undefined - if ((inactiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const inactiveColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let inactiveColorTmpBuf_ : Color | number | string | Resource | undefined - if (inactiveColorTmpBuf_UnionSelector == (0).toChar()) { - inactiveColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (inactiveColorTmpBuf_UnionSelector == (1).toChar()) { - inactiveColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (inactiveColorTmpBuf_UnionSelector == (2).toChar()) { - inactiveColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (inactiveColorTmpBuf_UnionSelector == (3).toChar()) { - inactiveColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for inactiveColorTmpBuf_ has to be chosen through deserialisation.") - } - inactiveColorTmpBuf = (inactiveColorTmpBuf_ as Color | number | string | Resource) - } - const inactiveColorTmpResult : ResourceColor | undefined = inactiveColorTmpBuf - let value : BackgroundBlurStyleOptions = ({colorMode: colorModeTmpResult, adaptiveColor: adaptiveColorTmpResult, scale: scaleTmpResult, blurOptions: blurOptionsTmpResult, policy: policyTmpResult, inactiveColor: inactiveColorTmpResult} as BackgroundBlurStyleOptions) - return value - } -} -export class BackgroundEffectOptions_serializer { - public static write(buffer: SerializerBase, value: BackgroundEffectOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForRadius = value.radius - valueSerializer.writeNumber(valueHolderForRadius) - const valueHolderForSaturation = value.saturation - if (valueHolderForSaturation !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForSaturationTmpValue = valueHolderForSaturation! - valueSerializer.writeNumber(valueHolderForSaturationTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBrightness = value.brightness - if (valueHolderForBrightness !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBrightnessTmpValue = valueHolderForBrightness! - valueSerializer.writeNumber(valueHolderForBrightnessTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForColor = value.color - if (valueHolderForColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForColorTmpValue = valueHolderForColor! - if (valueHolderForColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) - } else if (valueHolderForColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number - valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) - } else if (valueHolderForColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string - valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) - } else if (valueHolderForColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAdaptiveColor = value.adaptiveColor - if (valueHolderForAdaptiveColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAdaptiveColorTmpValue = (valueHolderForAdaptiveColor as AdaptiveColor) - valueSerializer.writeInt32(TypeChecker.AdaptiveColor_ToNumeric(valueHolderForAdaptiveColorTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBlurOptions = value.blurOptions - if (valueHolderForBlurOptions !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBlurOptionsTmpValue = valueHolderForBlurOptions! - BlurOptions_serializer.write(valueSerializer, valueHolderForBlurOptionsTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPolicy = value.policy - if (valueHolderForPolicy !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPolicyTmpValue = (valueHolderForPolicy as BlurStyleActivePolicy) - valueSerializer.writeInt32(TypeChecker.BlurStyleActivePolicy_ToNumeric(valueHolderForPolicyTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForInactiveColor = value.inactiveColor - if (valueHolderForInactiveColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForInactiveColorTmpValue = valueHolderForInactiveColor! - if (valueHolderForInactiveColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForInactiveColorTmpValueForIdx0 = valueHolderForInactiveColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForInactiveColorTmpValueForIdx0)) - } else if (valueHolderForInactiveColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForInactiveColorTmpValueForIdx1 = valueHolderForInactiveColorTmpValue as number - valueSerializer.writeNumber(valueHolderForInactiveColorTmpValueForIdx1) - } else if (valueHolderForInactiveColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForInactiveColorTmpValueForIdx2 = valueHolderForInactiveColorTmpValue as string - valueSerializer.writeString(valueHolderForInactiveColorTmpValueForIdx2) - } else if (valueHolderForInactiveColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForInactiveColorTmpValueForIdx3 = valueHolderForInactiveColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForInactiveColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): BackgroundEffectOptions { - let valueDeserializer : DeserializerBase = buffer - const radiusTmpResult : number = (valueDeserializer.readNumber() as number) - const saturationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let saturationTmpBuf : number | undefined - if ((saturationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - saturationTmpBuf = (valueDeserializer.readNumber() as number) - } - const saturationTmpResult : number | undefined = saturationTmpBuf - const brightnessTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let brightnessTmpBuf : number | undefined - if ((brightnessTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - brightnessTmpBuf = (valueDeserializer.readNumber() as number) - } - const brightnessTmpResult : number | undefined = brightnessTmpBuf - const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let colorTmpBuf : ResourceColor | undefined - if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let colorTmpBuf_ : Color | number | string | Resource | undefined - if (colorTmpBuf_UnionSelector == (0).toChar()) { - colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorTmpBuf_UnionSelector == (1).toChar()) { - colorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (colorTmpBuf_UnionSelector == (2).toChar()) { - colorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (colorTmpBuf_UnionSelector == (3).toChar()) { - colorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") - } - colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) - } - const colorTmpResult : ResourceColor | undefined = colorTmpBuf - const adaptiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let adaptiveColorTmpBuf : AdaptiveColor | undefined - if ((adaptiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - adaptiveColorTmpBuf = TypeChecker.AdaptiveColor_FromNumeric(valueDeserializer.readInt32()) - } - const adaptiveColorTmpResult : AdaptiveColor | undefined = adaptiveColorTmpBuf - const blurOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let blurOptionsTmpBuf : BlurOptions | undefined - if ((blurOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - blurOptionsTmpBuf = BlurOptions_serializer.read(valueDeserializer) - } - const blurOptionsTmpResult : BlurOptions | undefined = blurOptionsTmpBuf - const policyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let policyTmpBuf : BlurStyleActivePolicy | undefined - if ((policyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - policyTmpBuf = TypeChecker.BlurStyleActivePolicy_FromNumeric(valueDeserializer.readInt32()) - } - const policyTmpResult : BlurStyleActivePolicy | undefined = policyTmpBuf - const inactiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let inactiveColorTmpBuf : ResourceColor | undefined - if ((inactiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const inactiveColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let inactiveColorTmpBuf_ : Color | number | string | Resource | undefined - if (inactiveColorTmpBuf_UnionSelector == (0).toChar()) { - inactiveColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (inactiveColorTmpBuf_UnionSelector == (1).toChar()) { - inactiveColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (inactiveColorTmpBuf_UnionSelector == (2).toChar()) { - inactiveColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (inactiveColorTmpBuf_UnionSelector == (3).toChar()) { - inactiveColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for inactiveColorTmpBuf_ has to be chosen through deserialisation.") - } - inactiveColorTmpBuf = (inactiveColorTmpBuf_ as Color | number | string | Resource) - } - const inactiveColorTmpResult : ResourceColor | undefined = inactiveColorTmpBuf - let value : BackgroundEffectOptions = ({radius: radiusTmpResult, saturation: saturationTmpResult, brightness: brightnessTmpResult, color: colorTmpResult, adaptiveColor: adaptiveColorTmpResult, blurOptions: blurOptionsTmpResult, policy: policyTmpResult, inactiveColor: inactiveColorTmpResult} as BackgroundEffectOptions) - return value - } -} -export class Bindable_Arkui_Component_Units_ResourceStr_serializer { - public static write(buffer: SerializerBase, value: Bindable): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - if (valueHolderForValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForValueForIdx0 = valueHolderForValue as string - valueSerializer.writeString(valueHolderForValueForIdx0) - } else if (valueHolderForValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForValueForIdx1 = valueHolderForValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForValueForIdx1) - } - const valueHolderForOnChange = value.onChange - valueSerializer.holdAndWriteCallback(valueHolderForOnChange) - } - public static read(buffer: DeserializerBase): Bindable { - let valueDeserializer : DeserializerBase = buffer - const valueTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let valueTmpBuf : string | Resource | undefined - if (valueTmpBufUnionSelector == (0).toChar()) { - valueTmpBuf = (valueDeserializer.readString() as string) - } else if (valueTmpBufUnionSelector == (1).toChar()) { - valueTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for valueTmpBuf has to be chosen through deserialisation.") - } - const valueTmpResult : ResourceStr = (valueTmpBuf as string | Resource) - const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const onChangeTmpResult : ((value0: ResourceStr) => void) = (value0: ResourceStr):void => { - const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); - if (value0 instanceof string) { - onChangeTmpBufBufArgsSerializer.writeInt8((0).toChar()); - const value0ForIdx0 = value0 as string; - onChangeTmpBufBufArgsSerializer.writeString(value0ForIdx0); - } else if (value0 instanceof Resource) { - onChangeTmpBufBufArgsSerializer.writeInt8((1).toChar()); - const value0ForIdx1 = value0 as Resource; - Resource_serializer.write(onChangeTmpBufBufArgsSerializer, value0ForIdx1); - } - InteropNativeModule._CallCallback(487399354, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); - onChangeTmpBufBufArgsSerializer.release(); - return; - } - let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) - return value - } -} -export class Bindable_Global_Resource_Resource_serializer { - public static write(buffer: SerializerBase, value: Bindable): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - Resource_serializer.write(valueSerializer, valueHolderForValue) - const valueHolderForOnChange = value.onChange - valueSerializer.holdAndWriteCallback(valueHolderForOnChange) - } - public static read(buffer: DeserializerBase): Bindable { - let valueDeserializer : DeserializerBase = buffer - const valueTmpResult : Resource = Resource_serializer.read(valueDeserializer) - const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const onChangeTmpResult : ((value0: Resource) => void) = (value0: Resource):void => { - const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); - Resource_serializer.write(onChangeTmpBufBufArgsSerializer, value0); - InteropNativeModule._CallCallback(-941798353, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); - onChangeTmpBufBufArgsSerializer.release(); - return; - } - let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) - return value - } -} -export class ContentCoverOptions_serializer { - public static write(buffer: SerializerBase, value: ContentCoverOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForBackgroundColor = value.backgroundColor - if (valueHolderForBackgroundColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! - if (valueHolderForBackgroundColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) - } else if (valueHolderForBackgroundColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number - valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) - } else if (valueHolderForBackgroundColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string - valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) - } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnAppear = value.onAppear - if (valueHolderForOnAppear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnAppearTmpValue = valueHolderForOnAppear! - valueSerializer.holdAndWriteCallback(valueHolderForOnAppearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnDisappear = value.onDisappear - if (valueHolderForOnDisappear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnDisappearTmpValue = valueHolderForOnDisappear! - valueSerializer.holdAndWriteCallback(valueHolderForOnDisappearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillAppear = value.onWillAppear - if (valueHolderForOnWillAppear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillAppearTmpValue = valueHolderForOnWillAppear! - valueSerializer.holdAndWriteCallback(valueHolderForOnWillAppearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillDisappear = value.onWillDisappear - if (valueHolderForOnWillDisappear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillDisappearTmpValue = valueHolderForOnWillDisappear! - valueSerializer.holdAndWriteCallback(valueHolderForOnWillDisappearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForModalTransition = value.modalTransition - if (valueHolderForModalTransition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForModalTransitionTmpValue = (valueHolderForModalTransition as ModalTransition) - valueSerializer.writeInt32(TypeChecker.ModalTransition_ToNumeric(valueHolderForModalTransitionTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillDismiss = value.onWillDismiss - if (valueHolderForOnWillDismiss !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! - valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTransition = value.transition - if (valueHolderForTransition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTransitionTmpValue = valueHolderForTransition! - TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): ContentCoverOptions { - let valueDeserializer : DeserializerBase = buffer - const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundColorTmpBuf : ResourceColor | undefined - if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined - if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { - backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { - backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") - } - backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) - } - const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf - const onAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onAppearTmpBuf : (() => void) | undefined - if ((onAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onAppearTmpBuf = ():void => { - const onAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onAppearTmpBuf_BufArgsSerializer.writeInt32(onAppearTmpBuf_BufResource.resourceId); - onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCall); - onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onAppearTmpBuf_BufArgsSerializer.asBuffer(), onAppearTmpBuf_BufArgsSerializer.length()); - onAppearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onAppearTmpResult : (() => void) | undefined = onAppearTmpBuf - const onDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onDisappearTmpBuf : (() => void) | undefined - if ((onDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onDisappearTmpBuf = ():void => { - const onDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onDisappearTmpBuf_BufArgsSerializer.writeInt32(onDisappearTmpBuf_BufResource.resourceId); - onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCall); - onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onDisappearTmpBuf_BufArgsSerializer.asBuffer(), onDisappearTmpBuf_BufArgsSerializer.length()); - onDisappearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onDisappearTmpResult : (() => void) | undefined = onDisappearTmpBuf - const onWillAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillAppearTmpBuf : (() => void) | undefined - if ((onWillAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onWillAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onWillAppearTmpBuf = ():void => { - const onWillAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillAppearTmpBuf_BufArgsSerializer.writeInt32(onWillAppearTmpBuf_BufResource.resourceId); - onWillAppearTmpBuf_BufArgsSerializer.writePointer(onWillAppearTmpBuf_BufCall); - onWillAppearTmpBuf_BufArgsSerializer.writePointer(onWillAppearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onWillAppearTmpBuf_BufArgsSerializer.asBuffer(), onWillAppearTmpBuf_BufArgsSerializer.length()); - onWillAppearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onWillAppearTmpResult : (() => void) | undefined = onWillAppearTmpBuf - const onWillDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillDisappearTmpBuf : (() => void) | undefined - if ((onWillDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onWillDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onWillDisappearTmpBuf = ():void => { - const onWillDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillDisappearTmpBuf_BufArgsSerializer.writeInt32(onWillDisappearTmpBuf_BufResource.resourceId); - onWillDisappearTmpBuf_BufArgsSerializer.writePointer(onWillDisappearTmpBuf_BufCall); - onWillDisappearTmpBuf_BufArgsSerializer.writePointer(onWillDisappearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onWillDisappearTmpBuf_BufArgsSerializer.asBuffer(), onWillDisappearTmpBuf_BufArgsSerializer.length()); - onWillDisappearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onWillDisappearTmpResult : (() => void) | undefined = onWillDisappearTmpBuf - const modalTransitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let modalTransitionTmpBuf : ModalTransition | undefined - if ((modalTransitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - modalTransitionTmpBuf = TypeChecker.ModalTransition_FromNumeric(valueDeserializer.readInt32()) - } - const modalTransitionTmpResult : ModalTransition | undefined = modalTransitionTmpBuf - const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillDismissTmpBuf : ((value0: DismissContentCoverAction) => void) | undefined - if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillDismissTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillDismissTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onWillDismissTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onWillDismissTmpBuf = (value0: DismissContentCoverAction):void => { - const onWillDismissTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillDismissTmpBuf_BufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufResource.resourceId); - onWillDismissTmpBuf_BufArgsSerializer.writePointer(onWillDismissTmpBuf_BufCall); - onWillDismissTmpBuf_BufArgsSerializer.writePointer(onWillDismissTmpBuf_BufCallSync); - DismissContentCoverAction_serializer.write(onWillDismissTmpBuf_BufArgsSerializer, value0); - InteropNativeModule._CallCallback(-1283506641, onWillDismissTmpBuf_BufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufArgsSerializer.length()); - onWillDismissTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onWillDismissTmpResult : ((value0: DismissContentCoverAction) => void) | undefined = onWillDismissTmpBuf - const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let transitionTmpBuf : TransitionEffect | undefined - if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) - } - const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf - let value : ContentCoverOptions = ({backgroundColor: backgroundColorTmpResult, onAppear: onAppearTmpResult, onDisappear: onDisappearTmpResult, onWillAppear: onWillAppearTmpResult, onWillDisappear: onWillDisappearTmpResult, modalTransition: modalTransitionTmpResult, onWillDismiss: onWillDismissTmpResult, transition: transitionTmpResult} as ContentCoverOptions) - return value - } -} -export class ContextMenuAnimationOptions_serializer { - public static write(buffer: SerializerBase, value: ContextMenuAnimationOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForScale = value.scale - if (valueHolderForScale !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForScaleTmpValue = valueHolderForScale! - const valueHolderForScaleTmpValue_0 = valueHolderForScaleTmpValue[0] - valueSerializer.writeNumber(valueHolderForScaleTmpValue_0) - const valueHolderForScaleTmpValue_1 = valueHolderForScaleTmpValue[1] - valueSerializer.writeNumber(valueHolderForScaleTmpValue_1) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTransition = value.transition - if (valueHolderForTransition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTransitionTmpValue = valueHolderForTransition! - TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForHoverScale = value.hoverScale - if (valueHolderForHoverScale !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHoverScaleTmpValue = valueHolderForHoverScale! - const valueHolderForHoverScaleTmpValue_0 = valueHolderForHoverScaleTmpValue[0] - valueSerializer.writeNumber(valueHolderForHoverScaleTmpValue_0) - const valueHolderForHoverScaleTmpValue_1 = valueHolderForHoverScaleTmpValue[1] - valueSerializer.writeNumber(valueHolderForHoverScaleTmpValue_1) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): ContextMenuAnimationOptions { - let valueDeserializer : DeserializerBase = buffer - const scaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let scaleTmpBuf : AnimationNumberRange | undefined - if ((scaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const scaleTmpBuf_Value0 : number = (valueDeserializer.readNumber() as number) - const scaleTmpBuf_Value1 : number = (valueDeserializer.readNumber() as number) - scaleTmpBuf = ([scaleTmpBuf_Value0, scaleTmpBuf_Value1] as AnimationNumberRange) - } - const scaleTmpResult : AnimationNumberRange | undefined = scaleTmpBuf - const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let transitionTmpBuf : TransitionEffect | undefined - if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) - } - const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf - const hoverScaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let hoverScaleTmpBuf : AnimationNumberRange | undefined - if ((hoverScaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const hoverScaleTmpBuf_Value0 : number = (valueDeserializer.readNumber() as number) - const hoverScaleTmpBuf_Value1 : number = (valueDeserializer.readNumber() as number) - hoverScaleTmpBuf = ([hoverScaleTmpBuf_Value0, hoverScaleTmpBuf_Value1] as AnimationNumberRange) - } - const hoverScaleTmpResult : AnimationNumberRange | undefined = hoverScaleTmpBuf - let value : ContextMenuAnimationOptions = ({scale: scaleTmpResult, transition: transitionTmpResult, hoverScale: hoverScaleTmpResult} as ContextMenuAnimationOptions) - return value - } -} -export class DragPreviewOptions_serializer { - public static write(buffer: SerializerBase, value: DragPreviewOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForMode = value.mode - if (valueHolderForMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForModeTmpValue = valueHolderForMode! - if (TypeChecker.isDragPreviewMode(valueHolderForModeTmpValue)) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForModeTmpValueForIdx0 = valueHolderForModeTmpValue as DragPreviewMode - valueSerializer.writeInt32(TypeChecker.DragPreviewMode_ToNumeric(valueHolderForModeTmpValueForIdx0)) - } else if (TypeChecker.isArray_DragPreviewMode(valueHolderForModeTmpValue)) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForModeTmpValueForIdx1 = valueHolderForModeTmpValue as Array - valueSerializer.writeInt32((valueHolderForModeTmpValueForIdx1.length).toInt()) - for (let valueHolderForModeTmpValueForIdx1CounterI = 0; valueHolderForModeTmpValueForIdx1CounterI < valueHolderForModeTmpValueForIdx1.length; valueHolderForModeTmpValueForIdx1CounterI++) { - const valueHolderForModeTmpValueForIdx1TmpElement : DragPreviewMode = valueHolderForModeTmpValueForIdx1[valueHolderForModeTmpValueForIdx1CounterI] - valueSerializer.writeInt32(TypeChecker.DragPreviewMode_ToNumeric(valueHolderForModeTmpValueForIdx1TmpElement)) - } - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForNumberBadge = value.numberBadge - if (valueHolderForNumberBadge !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForNumberBadgeTmpValue = valueHolderForNumberBadge! - if (valueHolderForNumberBadgeTmpValue instanceof boolean) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForNumberBadgeTmpValueForIdx0 = valueHolderForNumberBadgeTmpValue as boolean - valueSerializer.writeBoolean(valueHolderForNumberBadgeTmpValueForIdx0) - } else if (valueHolderForNumberBadgeTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForNumberBadgeTmpValueForIdx1 = valueHolderForNumberBadgeTmpValue as number - valueSerializer.writeNumber(valueHolderForNumberBadgeTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForSizeChangeEffect = value.sizeChangeEffect - if (valueHolderForSizeChangeEffect !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForSizeChangeEffectTmpValue = (valueHolderForSizeChangeEffect as DraggingSizeChangeEffect) - valueSerializer.writeInt32(TypeChecker.DraggingSizeChangeEffect_ToNumeric(valueHolderForSizeChangeEffectTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): DragPreviewOptions { - let valueDeserializer : DeserializerBase = buffer - const modeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let modeTmpBuf : DragPreviewMode | Array | undefined - if ((modeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const modeTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let modeTmpBuf_ : DragPreviewMode | Array | undefined - if (modeTmpBuf_UnionSelector == (0).toChar()) { - modeTmpBuf_ = TypeChecker.DragPreviewMode_FromNumeric(valueDeserializer.readInt32()) - } else if (modeTmpBuf_UnionSelector == (1).toChar()) { - const modeTmpBuf_BufULength : int32 = valueDeserializer.readInt32() - let modeTmpBuf_BufU : Array = new Array(modeTmpBuf_BufULength) - for (let modeTmpBuf_BufUBufCounterI = 0; modeTmpBuf_BufUBufCounterI < modeTmpBuf_BufULength; modeTmpBuf_BufUBufCounterI++) { - modeTmpBuf_BufU[modeTmpBuf_BufUBufCounterI] = TypeChecker.DragPreviewMode_FromNumeric(valueDeserializer.readInt32()) - } - modeTmpBuf_ = modeTmpBuf_BufU - } else { - throw new Error("One of the branches for modeTmpBuf_ has to be chosen through deserialisation.") - } - modeTmpBuf = (modeTmpBuf_ as DragPreviewMode | Array) - } - const modeTmpResult : DragPreviewMode | Array | undefined = modeTmpBuf - const numberBadgeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let numberBadgeTmpBuf : boolean | number | undefined - if ((numberBadgeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const numberBadgeTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let numberBadgeTmpBuf_ : boolean | number | undefined - if (numberBadgeTmpBuf_UnionSelector == (0).toChar()) { - numberBadgeTmpBuf_ = valueDeserializer.readBoolean() - } else if (numberBadgeTmpBuf_UnionSelector == (1).toChar()) { - numberBadgeTmpBuf_ = (valueDeserializer.readNumber() as number) - } else { - throw new Error("One of the branches for numberBadgeTmpBuf_ has to be chosen through deserialisation.") - } - numberBadgeTmpBuf = (numberBadgeTmpBuf_ as boolean | number) - } - const numberBadgeTmpResult : boolean | number | undefined = numberBadgeTmpBuf - const sizeChangeEffectTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let sizeChangeEffectTmpBuf : DraggingSizeChangeEffect | undefined - if ((sizeChangeEffectTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - sizeChangeEffectTmpBuf = TypeChecker.DraggingSizeChangeEffect_FromNumeric(valueDeserializer.readInt32()) - } - const sizeChangeEffectTmpResult : DraggingSizeChangeEffect | undefined = sizeChangeEffectTmpBuf - let value : DragPreviewOptions = ({mode: modeTmpResult, numberBadge: numberBadgeTmpResult, sizeChangeEffect: sizeChangeEffectTmpResult} as DragPreviewOptions) - return value - } -} -export class FadingEdgeOptions_serializer { - public static write(buffer: SerializerBase, value: FadingEdgeOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForFadingEdgeLength = value.fadingEdgeLength - if (valueHolderForFadingEdgeLength !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFadingEdgeLengthTmpValue = valueHolderForFadingEdgeLength! - LengthMetrics_serializer.write(valueSerializer, valueHolderForFadingEdgeLengthTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): FadingEdgeOptions { - let valueDeserializer : DeserializerBase = buffer - const fadingEdgeLengthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fadingEdgeLengthTmpBuf : LengthMetrics | undefined - if ((fadingEdgeLengthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - fadingEdgeLengthTmpBuf = (LengthMetrics_serializer.read(valueDeserializer) as LengthMetrics) - } - const fadingEdgeLengthTmpResult : LengthMetrics | undefined = fadingEdgeLengthTmpBuf - let value : FadingEdgeOptions = ({fadingEdgeLength: fadingEdgeLengthTmpResult} as FadingEdgeOptions) - return value - } -} -export class ForegroundBlurStyleOptions_serializer { - public static write(buffer: SerializerBase, value: ForegroundBlurStyleOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForColorMode = value.colorMode - if (valueHolderForColorMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForColorModeTmpValue = (valueHolderForColorMode as ThemeColorMode) - valueSerializer.writeInt32(TypeChecker.ThemeColorMode_ToNumeric(valueHolderForColorModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAdaptiveColor = value.adaptiveColor - if (valueHolderForAdaptiveColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAdaptiveColorTmpValue = (valueHolderForAdaptiveColor as AdaptiveColor) - valueSerializer.writeInt32(TypeChecker.AdaptiveColor_ToNumeric(valueHolderForAdaptiveColorTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForScale = value.scale - if (valueHolderForScale !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForScaleTmpValue = valueHolderForScale! - valueSerializer.writeNumber(valueHolderForScaleTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBlurOptions = value.blurOptions - if (valueHolderForBlurOptions !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBlurOptionsTmpValue = valueHolderForBlurOptions! - BlurOptions_serializer.write(valueSerializer, valueHolderForBlurOptionsTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): ForegroundBlurStyleOptions { - let valueDeserializer : DeserializerBase = buffer - const colorModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let colorModeTmpBuf : ThemeColorMode | undefined - if ((colorModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - colorModeTmpBuf = TypeChecker.ThemeColorMode_FromNumeric(valueDeserializer.readInt32()) - } - const colorModeTmpResult : ThemeColorMode | undefined = colorModeTmpBuf - const adaptiveColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let adaptiveColorTmpBuf : AdaptiveColor | undefined - if ((adaptiveColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - adaptiveColorTmpBuf = TypeChecker.AdaptiveColor_FromNumeric(valueDeserializer.readInt32()) - } - const adaptiveColorTmpResult : AdaptiveColor | undefined = adaptiveColorTmpBuf - const scaleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let scaleTmpBuf : number | undefined - if ((scaleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - scaleTmpBuf = (valueDeserializer.readNumber() as number) - } - const scaleTmpResult : number | undefined = scaleTmpBuf - const blurOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let blurOptionsTmpBuf : BlurOptions | undefined - if ((blurOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - blurOptionsTmpBuf = BlurOptions_serializer.read(valueDeserializer) - } - const blurOptionsTmpResult : BlurOptions | undefined = blurOptionsTmpBuf - let value : ForegroundBlurStyleOptions = ({colorMode: colorModeTmpResult, adaptiveColor: adaptiveColorTmpResult, scale: scaleTmpResult, blurOptions: blurOptionsTmpResult} as ForegroundBlurStyleOptions) - return value - } -} -export class HistoricalPoint_serializer { - public static write(buffer: SerializerBase, value: HistoricalPoint): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForTouchObject = value.touchObject - TouchObject_serializer.write(valueSerializer, valueHolderForTouchObject) - const valueHolderForSize = value.size - valueSerializer.writeNumber(valueHolderForSize) - const valueHolderForForce = value.force - valueSerializer.writeNumber(valueHolderForForce) - const valueHolderForTimestamp = value.timestamp - valueSerializer.writeNumber(valueHolderForTimestamp) - } - public static read(buffer: DeserializerBase): HistoricalPoint { - let valueDeserializer : DeserializerBase = buffer - const touchObjectTmpResult : TouchObject = TouchObject_serializer.read(valueDeserializer) - const sizeTmpResult : number = (valueDeserializer.readNumber() as number) - const forceTmpResult : number = (valueDeserializer.readNumber() as number) - const timestampTmpResult : number = (valueDeserializer.readNumber() as number) - let value : HistoricalPoint = ({touchObject: touchObjectTmpResult, size: sizeTmpResult, force: forceTmpResult, timestamp: timestampTmpResult} as HistoricalPoint) - return value - } -} -export class Layoutable_serializer { - public static write(buffer: SerializerBase, value: Layoutable): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): Layoutable { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return LayoutableInternal.fromPtr(ptr) - } -} -export class LightSource_serializer { - public static write(buffer: SerializerBase, value: LightSource): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForPositionX = value.positionX - if (valueHolderForPositionX instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPositionXForIdx0 = valueHolderForPositionX as string - valueSerializer.writeString(valueHolderForPositionXForIdx0) - } else if (valueHolderForPositionX instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPositionXForIdx1 = valueHolderForPositionX as number - valueSerializer.writeNumber(valueHolderForPositionXForIdx1) - } else if (valueHolderForPositionX instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForPositionXForIdx2 = valueHolderForPositionX as Resource - Resource_serializer.write(valueSerializer, valueHolderForPositionXForIdx2) - } - const valueHolderForPositionY = value.positionY - if (valueHolderForPositionY instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPositionYForIdx0 = valueHolderForPositionY as string - valueSerializer.writeString(valueHolderForPositionYForIdx0) - } else if (valueHolderForPositionY instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPositionYForIdx1 = valueHolderForPositionY as number - valueSerializer.writeNumber(valueHolderForPositionYForIdx1) - } else if (valueHolderForPositionY instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForPositionYForIdx2 = valueHolderForPositionY as Resource - Resource_serializer.write(valueSerializer, valueHolderForPositionYForIdx2) - } - const valueHolderForIntensity = value.intensity - valueSerializer.writeNumber(valueHolderForIntensity) - const valueHolderForColor = value.color - if (valueHolderForColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForColorTmpValue = valueHolderForColor! - if (valueHolderForColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) - } else if (valueHolderForColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number - valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) - } else if (valueHolderForColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string - valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) - } else if (valueHolderForColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): LightSource { - let valueDeserializer : DeserializerBase = buffer - const positionXTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let positionXTmpBuf : string | number | Resource | undefined - if (positionXTmpBufUnionSelector == (0).toChar()) { - positionXTmpBuf = (valueDeserializer.readString() as string) - } else if (positionXTmpBufUnionSelector == (1).toChar()) { - positionXTmpBuf = (valueDeserializer.readNumber() as number) - } else if (positionXTmpBufUnionSelector == (2).toChar()) { - positionXTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for positionXTmpBuf has to be chosen through deserialisation.") - } - const positionXTmpResult : Dimension = (positionXTmpBuf as string | number | Resource) - const positionYTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let positionYTmpBuf : string | number | Resource | undefined - if (positionYTmpBufUnionSelector == (0).toChar()) { - positionYTmpBuf = (valueDeserializer.readString() as string) - } else if (positionYTmpBufUnionSelector == (1).toChar()) { - positionYTmpBuf = (valueDeserializer.readNumber() as number) - } else if (positionYTmpBufUnionSelector == (2).toChar()) { - positionYTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for positionYTmpBuf has to be chosen through deserialisation.") - } - const positionYTmpResult : Dimension = (positionYTmpBuf as string | number | Resource) - const intensityTmpResult : number = (valueDeserializer.readNumber() as number) - const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let colorTmpBuf : ResourceColor | undefined - if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let colorTmpBuf_ : Color | number | string | Resource | undefined - if (colorTmpBuf_UnionSelector == (0).toChar()) { - colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorTmpBuf_UnionSelector == (1).toChar()) { - colorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (colorTmpBuf_UnionSelector == (2).toChar()) { - colorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (colorTmpBuf_UnionSelector == (3).toChar()) { - colorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") - } - colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) - } - const colorTmpResult : ResourceColor | undefined = colorTmpBuf - let value : LightSource = ({positionX: positionXTmpResult, positionY: positionYTmpResult, intensity: intensityTmpResult, color: colorTmpResult} as LightSource) - return value - } -} -export class LocalizedAlignRuleOptions_serializer { - public static write(buffer: SerializerBase, value: LocalizedAlignRuleOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForStart = value.start - if (valueHolderForStart !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForStartTmpValue = valueHolderForStart! - LocalizedHorizontalAlignParam_serializer.write(valueSerializer, valueHolderForStartTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnd = value.end - if (valueHolderForEnd !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEndTmpValue = valueHolderForEnd! - LocalizedHorizontalAlignParam_serializer.write(valueSerializer, valueHolderForEndTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForMiddle = value.middle - if (valueHolderForMiddle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForMiddleTmpValue = valueHolderForMiddle! - LocalizedHorizontalAlignParam_serializer.write(valueSerializer, valueHolderForMiddleTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTop = value.top - if (valueHolderForTop !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTopTmpValue = valueHolderForTop! - LocalizedVerticalAlignParam_serializer.write(valueSerializer, valueHolderForTopTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBottom = value.bottom - if (valueHolderForBottom !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBottomTmpValue = valueHolderForBottom! - LocalizedVerticalAlignParam_serializer.write(valueSerializer, valueHolderForBottomTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForCenter = value.center - if (valueHolderForCenter !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForCenterTmpValue = valueHolderForCenter! - LocalizedVerticalAlignParam_serializer.write(valueSerializer, valueHolderForCenterTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBias = value.bias - if (valueHolderForBias !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBiasTmpValue = valueHolderForBias! - Bias_serializer.write(valueSerializer, valueHolderForBiasTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): LocalizedAlignRuleOptions { - let valueDeserializer : DeserializerBase = buffer - const startTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let startTmpBuf : LocalizedHorizontalAlignParam | undefined - if ((startTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - startTmpBuf = LocalizedHorizontalAlignParam_serializer.read(valueDeserializer) - } - const startTmpResult : LocalizedHorizontalAlignParam | undefined = startTmpBuf - const endTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let endTmpBuf : LocalizedHorizontalAlignParam | undefined - if ((endTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - endTmpBuf = LocalizedHorizontalAlignParam_serializer.read(valueDeserializer) - } - const endTmpResult : LocalizedHorizontalAlignParam | undefined = endTmpBuf - const middleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let middleTmpBuf : LocalizedHorizontalAlignParam | undefined - if ((middleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - middleTmpBuf = LocalizedHorizontalAlignParam_serializer.read(valueDeserializer) - } - const middleTmpResult : LocalizedHorizontalAlignParam | undefined = middleTmpBuf - const topTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let topTmpBuf : LocalizedVerticalAlignParam | undefined - if ((topTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - topTmpBuf = LocalizedVerticalAlignParam_serializer.read(valueDeserializer) - } - const topTmpResult : LocalizedVerticalAlignParam | undefined = topTmpBuf - const bottomTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let bottomTmpBuf : LocalizedVerticalAlignParam | undefined - if ((bottomTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - bottomTmpBuf = LocalizedVerticalAlignParam_serializer.read(valueDeserializer) - } - const bottomTmpResult : LocalizedVerticalAlignParam | undefined = bottomTmpBuf - const centerTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let centerTmpBuf : LocalizedVerticalAlignParam | undefined - if ((centerTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - centerTmpBuf = LocalizedVerticalAlignParam_serializer.read(valueDeserializer) - } - const centerTmpResult : LocalizedVerticalAlignParam | undefined = centerTmpBuf - const biasTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let biasTmpBuf : Bias | undefined - if ((biasTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - biasTmpBuf = Bias_serializer.read(valueDeserializer) - } - const biasTmpResult : Bias | undefined = biasTmpBuf - let value : LocalizedAlignRuleOptions = ({start: startTmpResult, end: endTmpResult, middle: middleTmpResult, top: topTmpResult, bottom: bottomTmpResult, center: centerTmpResult, bias: biasTmpResult} as LocalizedAlignRuleOptions) - return value - } -} -export class MenuElement_serializer { - public static write(buffer: SerializerBase, value: MenuElement): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - if (valueHolderForValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForValueForIdx0 = valueHolderForValue as string - valueSerializer.writeString(valueHolderForValueForIdx0) - } else if (valueHolderForValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForValueForIdx1 = valueHolderForValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForValueForIdx1) - } - const valueHolderForIcon = value.icon - if (valueHolderForIcon !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForIconTmpValue = valueHolderForIcon! - if (valueHolderForIconTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForIconTmpValueForIdx0 = valueHolderForIconTmpValue as string - valueSerializer.writeString(valueHolderForIconTmpValueForIdx0) - } else if (valueHolderForIconTmpValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForIconTmpValueForIdx1 = valueHolderForIconTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForIconTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForSymbolIcon = value.symbolIcon - if (valueHolderForSymbolIcon !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForSymbolIconTmpValue = valueHolderForSymbolIcon! - SymbolGlyphModifier_serializer.write(valueSerializer, valueHolderForSymbolIconTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnabled = value.enabled - if (valueHolderForEnabled !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnabledTmpValue = valueHolderForEnabled! - valueSerializer.writeBoolean(valueHolderForEnabledTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAction = value.action - valueSerializer.holdAndWriteCallback(valueHolderForAction) - } - public static read(buffer: DeserializerBase): MenuElement { - let valueDeserializer : DeserializerBase = buffer - const valueTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let valueTmpBuf : string | Resource | undefined - if (valueTmpBufUnionSelector == (0).toChar()) { - valueTmpBuf = (valueDeserializer.readString() as string) - } else if (valueTmpBufUnionSelector == (1).toChar()) { - valueTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for valueTmpBuf has to be chosen through deserialisation.") - } - const valueTmpResult : ResourceStr = (valueTmpBuf as string | Resource) - const iconTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let iconTmpBuf : ResourceStr | undefined - if ((iconTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const iconTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let iconTmpBuf_ : string | Resource | undefined - if (iconTmpBuf_UnionSelector == (0).toChar()) { - iconTmpBuf_ = (valueDeserializer.readString() as string) - } else if (iconTmpBuf_UnionSelector == (1).toChar()) { - iconTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for iconTmpBuf_ has to be chosen through deserialisation.") - } - iconTmpBuf = (iconTmpBuf_ as string | Resource) - } - const iconTmpResult : ResourceStr | undefined = iconTmpBuf - const symbolIconTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let symbolIconTmpBuf : SymbolGlyphModifier | undefined - if ((symbolIconTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - symbolIconTmpBuf = SymbolGlyphModifier_serializer.read(valueDeserializer) - } - const symbolIconTmpResult : SymbolGlyphModifier | undefined = symbolIconTmpBuf - const enabledTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enabledTmpBuf : boolean | undefined - if ((enabledTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enabledTmpBuf = valueDeserializer.readBoolean() - } - const enabledTmpResult : boolean | undefined = enabledTmpBuf - const actionTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const actionTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const actionTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const actionTmpResult : (() => void) = ():void => { - const actionTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - actionTmpBufBufArgsSerializer.writeInt32(actionTmpBufBufResource.resourceId); - actionTmpBufBufArgsSerializer.writePointer(actionTmpBufBufCall); - actionTmpBufBufArgsSerializer.writePointer(actionTmpBufBufCallSync); - InteropNativeModule._CallCallback(-1867723152, actionTmpBufBufArgsSerializer.asBuffer(), actionTmpBufBufArgsSerializer.length()); - actionTmpBufBufArgsSerializer.release(); - return; - } - let value : MenuElement = ({value: valueTmpResult, icon: iconTmpResult, symbolIcon: symbolIconTmpResult, enabled: enabledTmpResult, action: actionTmpResult} as MenuElement) - return value - } -} -export class OverlayOptions_serializer { - public static write(buffer: SerializerBase, value: OverlayOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForAlign = value.align - if (valueHolderForAlign !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAlignTmpValue = (valueHolderForAlign as Alignment) - valueSerializer.writeInt32(TypeChecker.Alignment_ToNumeric(valueHolderForAlignTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOffset = value.offset - if (valueHolderForOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetTmpValue = valueHolderForOffset! - OverlayOffset_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): OverlayOptions { - let valueDeserializer : DeserializerBase = buffer - const alignTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let alignTmpBuf : Alignment | undefined - if ((alignTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - alignTmpBuf = TypeChecker.Alignment_FromNumeric(valueDeserializer.readInt32()) - } - const alignTmpResult : Alignment | undefined = alignTmpBuf - const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetTmpBuf : OverlayOffset | undefined - if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - offsetTmpBuf = OverlayOffset_serializer.read(valueDeserializer) - } - const offsetTmpResult : OverlayOffset | undefined = offsetTmpBuf - let value : OverlayOptions = ({align: alignTmpResult, offset: offsetTmpResult} as OverlayOptions) - return value - } -} -export class PopupMaskType_serializer { - public static write(buffer: SerializerBase, value: PopupMaskType): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForColor = value.color - if (valueHolderForColor instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorForIdx0 = valueHolderForColor as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorForIdx0)) - } else if (valueHolderForColor instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorForIdx1 = valueHolderForColor as number - valueSerializer.writeNumber(valueHolderForColorForIdx1) - } else if (valueHolderForColor instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorForIdx2 = valueHolderForColor as string - valueSerializer.writeString(valueHolderForColorForIdx2) - } else if (valueHolderForColor instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorForIdx3 = valueHolderForColor as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorForIdx3) - } - } - public static read(buffer: DeserializerBase): PopupMaskType { - let valueDeserializer : DeserializerBase = buffer - const colorTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let colorTmpBuf : Color | number | string | Resource | undefined - if (colorTmpBufUnionSelector == (0).toChar()) { - colorTmpBuf = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorTmpBufUnionSelector == (1).toChar()) { - colorTmpBuf = (valueDeserializer.readNumber() as number) - } else if (colorTmpBufUnionSelector == (2).toChar()) { - colorTmpBuf = (valueDeserializer.readString() as string) - } else if (colorTmpBufUnionSelector == (3).toChar()) { - colorTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for colorTmpBuf has to be chosen through deserialisation.") - } - const colorTmpResult : ResourceColor = (colorTmpBuf as Color | number | string | Resource) - let value : PopupMaskType = ({color: colorTmpResult} as PopupMaskType) - return value - } -} -export class ReuseOptions_serializer { - public static write(buffer: SerializerBase, value: ReuseOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForReuseId = value.reuseId - if (valueHolderForReuseId !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForReuseIdTmpValue = valueHolderForReuseId! - valueSerializer.holdAndWriteCallback(valueHolderForReuseIdTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): ReuseOptions { - let valueDeserializer : DeserializerBase = buffer - const reuseIdTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let reuseIdTmpBuf : ReuseIdCallback | undefined - if ((reuseIdTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const reuseIdTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const reuseIdTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const reuseIdTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - reuseIdTmpBuf = ():string => { - const reuseIdTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - reuseIdTmpBuf_BufArgsSerializer.writeInt32(reuseIdTmpBuf_BufResource.resourceId); - reuseIdTmpBuf_BufArgsSerializer.writePointer(reuseIdTmpBuf_BufCall); - reuseIdTmpBuf_BufArgsSerializer.writePointer(reuseIdTmpBuf_BufCallSync); - let reuseIdTmpBuf_BufContinuationValue : string | undefined; - const reuseIdTmpBuf_BufContinuationCallback : ((breakpoints: string) => void) = (value: string):void => { - reuseIdTmpBuf_BufContinuationValue = value; - } - reuseIdTmpBuf_BufArgsSerializer.holdAndWriteCallback(reuseIdTmpBuf_BufContinuationCallback); - InteropNativeModule._CallCallback(1110529154, reuseIdTmpBuf_BufArgsSerializer.asBuffer(), reuseIdTmpBuf_BufArgsSerializer.length()); - reuseIdTmpBuf_BufArgsSerializer.release(); - return (reuseIdTmpBuf_BufContinuationValue as string); - } - } - const reuseIdTmpResult : ReuseIdCallback | undefined = reuseIdTmpBuf - let value : ReuseOptions = ({reuseId: reuseIdTmpResult} as ReuseOptions) - return value - } -} -export class ShadowOptions_serializer { - public static write(buffer: SerializerBase, value: ShadowOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForRadius = value.radius - if (valueHolderForRadius instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForRadiusForIdx0 = valueHolderForRadius as number - valueSerializer.writeNumber(valueHolderForRadiusForIdx0) - } else if (valueHolderForRadius instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForRadiusForIdx1 = valueHolderForRadius as Resource - Resource_serializer.write(valueSerializer, valueHolderForRadiusForIdx1) - } - const valueHolderForType = value.type - if (valueHolderForType !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTypeTmpValue = (valueHolderForType as ShadowType) - valueSerializer.writeInt32(TypeChecker.ShadowType_ToNumeric(valueHolderForTypeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForColor = value.color - if (valueHolderForColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForColorTmpValue = valueHolderForColor! - if (valueHolderForColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) - } else if (valueHolderForColorTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as string - valueSerializer.writeString(valueHolderForColorTmpValueForIdx1) - } else if (valueHolderForColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx2) - } else if (valueHolderForColorTmpValue instanceof ColoringStrategy) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as ColoringStrategy - valueSerializer.writeInt32(TypeChecker.ColoringStrategy_ToNumeric(valueHolderForColorTmpValueForIdx3)) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOffsetX = value.offsetX - if (valueHolderForOffsetX !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetXTmpValue = valueHolderForOffsetX! - if (valueHolderForOffsetXTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOffsetXTmpValueForIdx0 = valueHolderForOffsetXTmpValue as number - valueSerializer.writeNumber(valueHolderForOffsetXTmpValueForIdx0) - } else if (valueHolderForOffsetXTmpValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOffsetXTmpValueForIdx1 = valueHolderForOffsetXTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForOffsetXTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOffsetY = value.offsetY - if (valueHolderForOffsetY !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetYTmpValue = valueHolderForOffsetY! - if (valueHolderForOffsetYTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOffsetYTmpValueForIdx0 = valueHolderForOffsetYTmpValue as number - valueSerializer.writeNumber(valueHolderForOffsetYTmpValueForIdx0) - } else if (valueHolderForOffsetYTmpValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOffsetYTmpValueForIdx1 = valueHolderForOffsetYTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForOffsetYTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFill = value.fill - if (valueHolderForFill !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFillTmpValue = valueHolderForFill! - valueSerializer.writeBoolean(valueHolderForFillTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): ShadowOptions { - let valueDeserializer : DeserializerBase = buffer - const radiusTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let radiusTmpBuf : number | Resource | undefined - if (radiusTmpBufUnionSelector == (0).toChar()) { - radiusTmpBuf = (valueDeserializer.readNumber() as number) - } else if (radiusTmpBufUnionSelector == (1).toChar()) { - radiusTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for radiusTmpBuf has to be chosen through deserialisation.") - } - const radiusTmpResult : number | Resource = (radiusTmpBuf as number | Resource) - const typeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let typeTmpBuf : ShadowType | undefined - if ((typeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - typeTmpBuf = TypeChecker.ShadowType_FromNumeric(valueDeserializer.readInt32()) - } - const typeTmpResult : ShadowType | undefined = typeTmpBuf - const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let colorTmpBuf : Color | string | Resource | ColoringStrategy | undefined - if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let colorTmpBuf_ : Color | string | Resource | ColoringStrategy | undefined - if (colorTmpBuf_UnionSelector == (0).toChar()) { - colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorTmpBuf_UnionSelector == (1).toChar()) { - colorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (colorTmpBuf_UnionSelector == (2).toChar()) { - colorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else if (colorTmpBuf_UnionSelector == (3).toChar()) { - colorTmpBuf_ = TypeChecker.ColoringStrategy_FromNumeric(valueDeserializer.readInt32()) - } else { - throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") - } - colorTmpBuf = (colorTmpBuf_ as Color | string | Resource | ColoringStrategy) - } - const colorTmpResult : Color | string | Resource | ColoringStrategy | undefined = colorTmpBuf - const offsetXTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetXTmpBuf : number | Resource | undefined - if ((offsetXTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const offsetXTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let offsetXTmpBuf_ : number | Resource | undefined - if (offsetXTmpBuf_UnionSelector == (0).toChar()) { - offsetXTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (offsetXTmpBuf_UnionSelector == (1).toChar()) { - offsetXTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for offsetXTmpBuf_ has to be chosen through deserialisation.") - } - offsetXTmpBuf = (offsetXTmpBuf_ as number | Resource) - } - const offsetXTmpResult : number | Resource | undefined = offsetXTmpBuf - const offsetYTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetYTmpBuf : number | Resource | undefined - if ((offsetYTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const offsetYTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let offsetYTmpBuf_ : number | Resource | undefined - if (offsetYTmpBuf_UnionSelector == (0).toChar()) { - offsetYTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (offsetYTmpBuf_UnionSelector == (1).toChar()) { - offsetYTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for offsetYTmpBuf_ has to be chosen through deserialisation.") - } - offsetYTmpBuf = (offsetYTmpBuf_ as number | Resource) - } - const offsetYTmpResult : number | Resource | undefined = offsetYTmpBuf - const fillTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fillTmpBuf : boolean | undefined - if ((fillTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - fillTmpBuf = valueDeserializer.readBoolean() - } - const fillTmpResult : boolean | undefined = fillTmpBuf - let value : ShadowOptions = ({radius: radiusTmpResult, type: typeTmpResult, color: colorTmpResult, offsetX: offsetXTmpResult, offsetY: offsetYTmpResult, fill: fillTmpResult} as ShadowOptions) - return value - } -} -export class sharedTransitionOptions_serializer { - public static write(buffer: SerializerBase, value: sharedTransitionOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForDuration = value.duration - if (valueHolderForDuration !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDurationTmpValue = valueHolderForDuration! - valueSerializer.writeNumber(valueHolderForDurationTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForCurve = value.curve - if (valueHolderForCurve !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForCurveTmpValue = valueHolderForCurve! - if (valueHolderForCurveTmpValue instanceof curves.Curve) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCurveTmpValueForIdx0 = valueHolderForCurveTmpValue as curves.Curve - valueSerializer.writeInt32(TypeChecker.curves_Curve_ToNumeric(valueHolderForCurveTmpValueForIdx0)) - } else if (valueHolderForCurveTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCurveTmpValueForIdx1 = valueHolderForCurveTmpValue as string - valueSerializer.writeString(valueHolderForCurveTmpValueForIdx1) - } else if (valueHolderForCurveTmpValue instanceof curves.ICurve) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForCurveTmpValueForIdx2 = valueHolderForCurveTmpValue as curves.ICurve - curves_ICurve_serializer.write(valueSerializer, valueHolderForCurveTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDelay = value.delay - if (valueHolderForDelay !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDelayTmpValue = valueHolderForDelay! - valueSerializer.writeNumber(valueHolderForDelayTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForMotionPath = value.motionPath - if (valueHolderForMotionPath !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForMotionPathTmpValue = valueHolderForMotionPath! - MotionPathOptions_serializer.write(valueSerializer, valueHolderForMotionPathTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForZIndex = value.zIndex - if (valueHolderForZIndex !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForZIndexTmpValue = valueHolderForZIndex! - valueSerializer.writeNumber(valueHolderForZIndexTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForType = value.type - if (valueHolderForType !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTypeTmpValue = (valueHolderForType as SharedTransitionEffectType) - valueSerializer.writeInt32(TypeChecker.SharedTransitionEffectType_ToNumeric(valueHolderForTypeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): sharedTransitionOptions { - let valueDeserializer : DeserializerBase = buffer - const durationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let durationTmpBuf : number | undefined - if ((durationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - durationTmpBuf = (valueDeserializer.readNumber() as number) - } - const durationTmpResult : number | undefined = durationTmpBuf - const curveTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let curveTmpBuf : curves.Curve | string | curves.ICurve | undefined - if ((curveTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const curveTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let curveTmpBuf_ : curves.Curve | string | curves.ICurve | undefined - if (curveTmpBuf_UnionSelector == (0).toChar()) { - curveTmpBuf_ = TypeChecker.curves_Curve_FromNumeric(valueDeserializer.readInt32()) - } else if (curveTmpBuf_UnionSelector == (1).toChar()) { - curveTmpBuf_ = (valueDeserializer.readString() as string) - } else if (curveTmpBuf_UnionSelector == (2).toChar()) { - curveTmpBuf_ = (curves_ICurve_serializer.read(valueDeserializer) as curves.ICurve) - } else { - throw new Error("One of the branches for curveTmpBuf_ has to be chosen through deserialisation.") - } - curveTmpBuf = (curveTmpBuf_ as curves.Curve | string | curves.ICurve) - } - const curveTmpResult : curves.Curve | string | curves.ICurve | undefined = curveTmpBuf - const delayTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let delayTmpBuf : number | undefined - if ((delayTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - delayTmpBuf = (valueDeserializer.readNumber() as number) - } - const delayTmpResult : number | undefined = delayTmpBuf - const motionPathTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let motionPathTmpBuf : MotionPathOptions | undefined - if ((motionPathTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - motionPathTmpBuf = MotionPathOptions_serializer.read(valueDeserializer) - } - const motionPathTmpResult : MotionPathOptions | undefined = motionPathTmpBuf - const zIndexTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let zIndexTmpBuf : number | undefined - if ((zIndexTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - zIndexTmpBuf = (valueDeserializer.readNumber() as number) - } - const zIndexTmpResult : number | undefined = zIndexTmpBuf - const typeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let typeTmpBuf : SharedTransitionEffectType | undefined - if ((typeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - typeTmpBuf = TypeChecker.SharedTransitionEffectType_FromNumeric(valueDeserializer.readInt32()) - } - const typeTmpResult : SharedTransitionEffectType | undefined = typeTmpBuf - let value : sharedTransitionOptions = ({duration: durationTmpResult, curve: curveTmpResult, delay: delayTmpResult, motionPath: motionPathTmpResult, zIndex: zIndexTmpResult, type: typeTmpResult} as sharedTransitionOptions) - return value - } -} -export class SheetTitleOptions_serializer { - public static write(buffer: SerializerBase, value: SheetTitleOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForTitle = value.title - if (valueHolderForTitle instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTitleForIdx0 = valueHolderForTitle as string - valueSerializer.writeString(valueHolderForTitleForIdx0) - } else if (valueHolderForTitle instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTitleForIdx1 = valueHolderForTitle as Resource - Resource_serializer.write(valueSerializer, valueHolderForTitleForIdx1) - } - const valueHolderForSubtitle = value.subtitle - if (valueHolderForSubtitle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForSubtitleTmpValue = valueHolderForSubtitle! - if (valueHolderForSubtitleTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForSubtitleTmpValueForIdx0 = valueHolderForSubtitleTmpValue as string - valueSerializer.writeString(valueHolderForSubtitleTmpValueForIdx0) - } else if (valueHolderForSubtitleTmpValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForSubtitleTmpValueForIdx1 = valueHolderForSubtitleTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForSubtitleTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): SheetTitleOptions { - let valueDeserializer : DeserializerBase = buffer - const titleTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let titleTmpBuf : string | Resource | undefined - if (titleTmpBufUnionSelector == (0).toChar()) { - titleTmpBuf = (valueDeserializer.readString() as string) - } else if (titleTmpBufUnionSelector == (1).toChar()) { - titleTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for titleTmpBuf has to be chosen through deserialisation.") - } - const titleTmpResult : ResourceStr = (titleTmpBuf as string | Resource) - const subtitleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let subtitleTmpBuf : ResourceStr | undefined - if ((subtitleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const subtitleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let subtitleTmpBuf_ : string | Resource | undefined - if (subtitleTmpBuf_UnionSelector == (0).toChar()) { - subtitleTmpBuf_ = (valueDeserializer.readString() as string) - } else if (subtitleTmpBuf_UnionSelector == (1).toChar()) { - subtitleTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for subtitleTmpBuf_ has to be chosen through deserialisation.") - } - subtitleTmpBuf = (subtitleTmpBuf_ as string | Resource) - } - const subtitleTmpResult : ResourceStr | undefined = subtitleTmpBuf - let value : SheetTitleOptions = ({title: titleTmpResult, subtitle: subtitleTmpResult} as SheetTitleOptions) - return value - } -} -export class TerminationInfo_serializer { - public static write(buffer: SerializerBase, value: TerminationInfo): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForCode = value.code - valueSerializer.writeNumber(valueHolderForCode) - const valueHolderForWant = value.want - if (valueHolderForWant !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForWantTmpValue = valueHolderForWant! - Want_serializer.write(valueSerializer, valueHolderForWantTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): TerminationInfo { - let valueDeserializer : DeserializerBase = buffer - const codeTmpResult : number = (valueDeserializer.readNumber() as number) - const wantTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let wantTmpBuf : Want | undefined - if ((wantTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - wantTmpBuf = Want_serializer.read(valueDeserializer) - } - const wantTmpResult : Want | undefined = wantTmpBuf - let value : TerminationInfo = ({code: codeTmpResult, want: wantTmpResult} as TerminationInfo) - return value - } -} -export class TextDecorationOptions_serializer { - public static write(buffer: SerializerBase, value: TextDecorationOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForType = value.type - valueSerializer.writeInt32(TypeChecker.TextDecorationType_ToNumeric(valueHolderForType)) - const valueHolderForColor = value.color - if (valueHolderForColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForColorTmpValue = valueHolderForColor! - if (valueHolderForColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) - } else if (valueHolderForColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number - valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) - } else if (valueHolderForColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string - valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) - } else if (valueHolderForColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForStyle = value.style - if (valueHolderForStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForStyleTmpValue = (valueHolderForStyle as TextDecorationStyle) - valueSerializer.writeInt32(TypeChecker.TextDecorationStyle_ToNumeric(valueHolderForStyleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): TextDecorationOptions { - let valueDeserializer : DeserializerBase = buffer - const typeTmpResult : TextDecorationType = TypeChecker.TextDecorationType_FromNumeric(valueDeserializer.readInt32()) - const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let colorTmpBuf : ResourceColor | undefined - if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let colorTmpBuf_ : Color | number | string | Resource | undefined - if (colorTmpBuf_UnionSelector == (0).toChar()) { - colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorTmpBuf_UnionSelector == (1).toChar()) { - colorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (colorTmpBuf_UnionSelector == (2).toChar()) { - colorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (colorTmpBuf_UnionSelector == (3).toChar()) { - colorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") - } - colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) - } - const colorTmpResult : ResourceColor | undefined = colorTmpBuf - const styleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let styleTmpBuf : TextDecorationStyle | undefined - if ((styleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - styleTmpBuf = TypeChecker.TextDecorationStyle_FromNumeric(valueDeserializer.readInt32()) - } - const styleTmpResult : TextDecorationStyle | undefined = styleTmpBuf - let value : TextDecorationOptions = ({type: typeTmpResult, color: colorTmpResult, style: styleTmpResult} as TextDecorationOptions) - return value - } -} -export class Bindable_Arkui_Component_Units_Length_serializer { - public static write(buffer: SerializerBase, value: Bindable): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForValue = value.value - if (valueHolderForValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForValueForIdx0 = valueHolderForValue as string - valueSerializer.writeString(valueHolderForValueForIdx0) - } else if (valueHolderForValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForValueForIdx1 = valueHolderForValue as number - valueSerializer.writeNumber(valueHolderForValueForIdx1) - } else if (valueHolderForValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForValueForIdx2 = valueHolderForValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForValueForIdx2) - } - const valueHolderForOnChange = value.onChange - valueSerializer.holdAndWriteCallback(valueHolderForOnChange) - } - public static read(buffer: DeserializerBase): Bindable { - let valueDeserializer : DeserializerBase = buffer - const valueTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let valueTmpBuf : string | number | Resource | undefined - if (valueTmpBufUnionSelector == (0).toChar()) { - valueTmpBuf = (valueDeserializer.readString() as string) - } else if (valueTmpBufUnionSelector == (1).toChar()) { - valueTmpBuf = (valueDeserializer.readNumber() as number) - } else if (valueTmpBufUnionSelector == (2).toChar()) { - valueTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for valueTmpBuf has to be chosen through deserialisation.") - } - const valueTmpResult : Length = (valueTmpBuf as string | number | Resource) - const onChangeTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onChangeTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const onChangeTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const onChangeTmpResult : ((value0: Length) => void) = (value0: Length):void => { - const onChangeTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onChangeTmpBufBufArgsSerializer.writeInt32(onChangeTmpBufBufResource.resourceId); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCall); - onChangeTmpBufBufArgsSerializer.writePointer(onChangeTmpBufBufCallSync); - if (value0 instanceof string) { - onChangeTmpBufBufArgsSerializer.writeInt8((0).toChar()); - const value0ForIdx0 = value0 as string; - onChangeTmpBufBufArgsSerializer.writeString(value0ForIdx0); - } else if (value0 instanceof number) { - onChangeTmpBufBufArgsSerializer.writeInt8((1).toChar()); - const value0ForIdx1 = value0 as number; - onChangeTmpBufBufArgsSerializer.writeNumber(value0ForIdx1); - } else if (value0 instanceof Resource) { - onChangeTmpBufBufArgsSerializer.writeInt8((2).toChar()); - const value0ForIdx2 = value0 as Resource; - Resource_serializer.write(onChangeTmpBufBufArgsSerializer, value0ForIdx2); - } - InteropNativeModule._CallCallback(46299833, onChangeTmpBufBufArgsSerializer.asBuffer(), onChangeTmpBufBufArgsSerializer.length()); - onChangeTmpBufBufArgsSerializer.release(); - return; - } - let value : Bindable = ({value: valueTmpResult, onChange: onChangeTmpResult} as Bindable) - return value - } -} -export class DividerStyle_serializer { - public static write(buffer: SerializerBase, value: DividerStyle): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForStrokeWidth = value.strokeWidth - if (valueHolderForStrokeWidth instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForStrokeWidthForIdx0 = valueHolderForStrokeWidth as string - valueSerializer.writeString(valueHolderForStrokeWidthForIdx0) - } else if (valueHolderForStrokeWidth instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForStrokeWidthForIdx1 = valueHolderForStrokeWidth as number - valueSerializer.writeNumber(valueHolderForStrokeWidthForIdx1) - } else if (valueHolderForStrokeWidth instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForStrokeWidthForIdx2 = valueHolderForStrokeWidth as Resource - Resource_serializer.write(valueSerializer, valueHolderForStrokeWidthForIdx2) - } - const valueHolderForColor = value.color - if (valueHolderForColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForColorTmpValue = valueHolderForColor! - if (valueHolderForColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) - } else if (valueHolderForColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number - valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) - } else if (valueHolderForColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string - valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) - } else if (valueHolderForColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForStartMargin = value.startMargin - if (valueHolderForStartMargin !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForStartMarginTmpValue = valueHolderForStartMargin! - if (valueHolderForStartMarginTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForStartMarginTmpValueForIdx0 = valueHolderForStartMarginTmpValue as string - valueSerializer.writeString(valueHolderForStartMarginTmpValueForIdx0) - } else if (valueHolderForStartMarginTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForStartMarginTmpValueForIdx1 = valueHolderForStartMarginTmpValue as number - valueSerializer.writeNumber(valueHolderForStartMarginTmpValueForIdx1) - } else if (valueHolderForStartMarginTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForStartMarginTmpValueForIdx2 = valueHolderForStartMarginTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForStartMarginTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEndMargin = value.endMargin - if (valueHolderForEndMargin !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEndMarginTmpValue = valueHolderForEndMargin! - if (valueHolderForEndMarginTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForEndMarginTmpValueForIdx0 = valueHolderForEndMarginTmpValue as string - valueSerializer.writeString(valueHolderForEndMarginTmpValueForIdx0) - } else if (valueHolderForEndMarginTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForEndMarginTmpValueForIdx1 = valueHolderForEndMarginTmpValue as number - valueSerializer.writeNumber(valueHolderForEndMarginTmpValueForIdx1) - } else if (valueHolderForEndMarginTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForEndMarginTmpValueForIdx2 = valueHolderForEndMarginTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForEndMarginTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): DividerStyle { - let valueDeserializer : DeserializerBase = buffer - const strokeWidthTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let strokeWidthTmpBuf : string | number | Resource | undefined - if (strokeWidthTmpBufUnionSelector == (0).toChar()) { - strokeWidthTmpBuf = (valueDeserializer.readString() as string) - } else if (strokeWidthTmpBufUnionSelector == (1).toChar()) { - strokeWidthTmpBuf = (valueDeserializer.readNumber() as number) - } else if (strokeWidthTmpBufUnionSelector == (2).toChar()) { - strokeWidthTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for strokeWidthTmpBuf has to be chosen through deserialisation.") - } - const strokeWidthTmpResult : Length = (strokeWidthTmpBuf as string | number | Resource) - const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let colorTmpBuf : ResourceColor | undefined - if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let colorTmpBuf_ : Color | number | string | Resource | undefined - if (colorTmpBuf_UnionSelector == (0).toChar()) { - colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorTmpBuf_UnionSelector == (1).toChar()) { - colorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (colorTmpBuf_UnionSelector == (2).toChar()) { - colorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (colorTmpBuf_UnionSelector == (3).toChar()) { - colorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") - } - colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) - } - const colorTmpResult : ResourceColor | undefined = colorTmpBuf - const startMarginTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let startMarginTmpBuf : Length | undefined - if ((startMarginTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const startMarginTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let startMarginTmpBuf_ : string | number | Resource | undefined - if (startMarginTmpBuf_UnionSelector == (0).toChar()) { - startMarginTmpBuf_ = (valueDeserializer.readString() as string) - } else if (startMarginTmpBuf_UnionSelector == (1).toChar()) { - startMarginTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (startMarginTmpBuf_UnionSelector == (2).toChar()) { - startMarginTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for startMarginTmpBuf_ has to be chosen through deserialisation.") - } - startMarginTmpBuf = (startMarginTmpBuf_ as string | number | Resource) - } - const startMarginTmpResult : Length | undefined = startMarginTmpBuf - const endMarginTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let endMarginTmpBuf : Length | undefined - if ((endMarginTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const endMarginTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let endMarginTmpBuf_ : string | number | Resource | undefined - if (endMarginTmpBuf_UnionSelector == (0).toChar()) { - endMarginTmpBuf_ = (valueDeserializer.readString() as string) - } else if (endMarginTmpBuf_UnionSelector == (1).toChar()) { - endMarginTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (endMarginTmpBuf_UnionSelector == (2).toChar()) { - endMarginTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for endMarginTmpBuf_ has to be chosen through deserialisation.") - } - endMarginTmpBuf = (endMarginTmpBuf_ as string | number | Resource) - } - const endMarginTmpResult : Length | undefined = endMarginTmpBuf - let value : DividerStyle = ({strokeWidth: strokeWidthTmpResult, color: colorTmpResult, startMargin: startMarginTmpResult, endMargin: endMarginTmpResult} as DividerStyle) - return value - } -} -export class PixelStretchEffectOptions_serializer { - public static write(buffer: SerializerBase, value: PixelStretchEffectOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForTop = value.top - if (valueHolderForTop !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTopTmpValue = valueHolderForTop! - if (valueHolderForTopTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTopTmpValueForIdx0 = valueHolderForTopTmpValue as string - valueSerializer.writeString(valueHolderForTopTmpValueForIdx0) - } else if (valueHolderForTopTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTopTmpValueForIdx1 = valueHolderForTopTmpValue as number - valueSerializer.writeNumber(valueHolderForTopTmpValueForIdx1) - } else if (valueHolderForTopTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForTopTmpValueForIdx2 = valueHolderForTopTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForTopTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBottom = value.bottom - if (valueHolderForBottom !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBottomTmpValue = valueHolderForBottom! - if (valueHolderForBottomTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBottomTmpValueForIdx0 = valueHolderForBottomTmpValue as string - valueSerializer.writeString(valueHolderForBottomTmpValueForIdx0) - } else if (valueHolderForBottomTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBottomTmpValueForIdx1 = valueHolderForBottomTmpValue as number - valueSerializer.writeNumber(valueHolderForBottomTmpValueForIdx1) - } else if (valueHolderForBottomTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBottomTmpValueForIdx2 = valueHolderForBottomTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForBottomTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForLeft = value.left - if (valueHolderForLeft !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForLeftTmpValue = valueHolderForLeft! - if (valueHolderForLeftTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForLeftTmpValueForIdx0 = valueHolderForLeftTmpValue as string - valueSerializer.writeString(valueHolderForLeftTmpValueForIdx0) - } else if (valueHolderForLeftTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForLeftTmpValueForIdx1 = valueHolderForLeftTmpValue as number - valueSerializer.writeNumber(valueHolderForLeftTmpValueForIdx1) - } else if (valueHolderForLeftTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForLeftTmpValueForIdx2 = valueHolderForLeftTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForLeftTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRight = value.right - if (valueHolderForRight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRightTmpValue = valueHolderForRight! - if (valueHolderForRightTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForRightTmpValueForIdx0 = valueHolderForRightTmpValue as string - valueSerializer.writeString(valueHolderForRightTmpValueForIdx0) - } else if (valueHolderForRightTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForRightTmpValueForIdx1 = valueHolderForRightTmpValue as number - valueSerializer.writeNumber(valueHolderForRightTmpValueForIdx1) - } else if (valueHolderForRightTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForRightTmpValueForIdx2 = valueHolderForRightTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForRightTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): PixelStretchEffectOptions { - let valueDeserializer : DeserializerBase = buffer - const topTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let topTmpBuf : Length | undefined - if ((topTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const topTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let topTmpBuf_ : string | number | Resource | undefined - if (topTmpBuf_UnionSelector == (0).toChar()) { - topTmpBuf_ = (valueDeserializer.readString() as string) - } else if (topTmpBuf_UnionSelector == (1).toChar()) { - topTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (topTmpBuf_UnionSelector == (2).toChar()) { - topTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for topTmpBuf_ has to be chosen through deserialisation.") - } - topTmpBuf = (topTmpBuf_ as string | number | Resource) - } - const topTmpResult : Length | undefined = topTmpBuf - const bottomTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let bottomTmpBuf : Length | undefined - if ((bottomTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const bottomTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let bottomTmpBuf_ : string | number | Resource | undefined - if (bottomTmpBuf_UnionSelector == (0).toChar()) { - bottomTmpBuf_ = (valueDeserializer.readString() as string) - } else if (bottomTmpBuf_UnionSelector == (1).toChar()) { - bottomTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (bottomTmpBuf_UnionSelector == (2).toChar()) { - bottomTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for bottomTmpBuf_ has to be chosen through deserialisation.") - } - bottomTmpBuf = (bottomTmpBuf_ as string | number | Resource) - } - const bottomTmpResult : Length | undefined = bottomTmpBuf - const leftTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let leftTmpBuf : Length | undefined - if ((leftTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const leftTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let leftTmpBuf_ : string | number | Resource | undefined - if (leftTmpBuf_UnionSelector == (0).toChar()) { - leftTmpBuf_ = (valueDeserializer.readString() as string) - } else if (leftTmpBuf_UnionSelector == (1).toChar()) { - leftTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (leftTmpBuf_UnionSelector == (2).toChar()) { - leftTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for leftTmpBuf_ has to be chosen through deserialisation.") - } - leftTmpBuf = (leftTmpBuf_ as string | number | Resource) - } - const leftTmpResult : Length | undefined = leftTmpBuf - const rightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let rightTmpBuf : Length | undefined - if ((rightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const rightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let rightTmpBuf_ : string | number | Resource | undefined - if (rightTmpBuf_UnionSelector == (0).toChar()) { - rightTmpBuf_ = (valueDeserializer.readString() as string) - } else if (rightTmpBuf_UnionSelector == (1).toChar()) { - rightTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (rightTmpBuf_UnionSelector == (2).toChar()) { - rightTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for rightTmpBuf_ has to be chosen through deserialisation.") - } - rightTmpBuf = (rightTmpBuf_ as string | number | Resource) - } - const rightTmpResult : Length | undefined = rightTmpBuf - let value : PixelStretchEffectOptions = ({top: topTmpResult, bottom: bottomTmpResult, left: leftTmpResult, right: rightTmpResult} as PixelStretchEffectOptions) - return value - } -} -export class PointLightStyle_serializer { - public static write(buffer: SerializerBase, value: PointLightStyle): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForLightSource = value.lightSource - if (valueHolderForLightSource !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForLightSourceTmpValue = valueHolderForLightSource! - LightSource_serializer.write(valueSerializer, valueHolderForLightSourceTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForIlluminated = value.illuminated - if (valueHolderForIlluminated !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForIlluminatedTmpValue = (valueHolderForIlluminated as IlluminatedType) - valueSerializer.writeInt32(TypeChecker.IlluminatedType_ToNumeric(valueHolderForIlluminatedTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBloom = value.bloom - if (valueHolderForBloom !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBloomTmpValue = valueHolderForBloom! - valueSerializer.writeNumber(valueHolderForBloomTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): PointLightStyle { - let valueDeserializer : DeserializerBase = buffer - const lightSourceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let lightSourceTmpBuf : LightSource | undefined - if ((lightSourceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - lightSourceTmpBuf = LightSource_serializer.read(valueDeserializer) - } - const lightSourceTmpResult : LightSource | undefined = lightSourceTmpBuf - const illuminatedTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let illuminatedTmpBuf : IlluminatedType | undefined - if ((illuminatedTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - illuminatedTmpBuf = TypeChecker.IlluminatedType_FromNumeric(valueDeserializer.readInt32()) - } - const illuminatedTmpResult : IlluminatedType | undefined = illuminatedTmpBuf - const bloomTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let bloomTmpBuf : number | undefined - if ((bloomTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - bloomTmpBuf = (valueDeserializer.readNumber() as number) - } - const bloomTmpResult : number | undefined = bloomTmpBuf - let value : PointLightStyle = ({lightSource: lightSourceTmpResult, illuminated: illuminatedTmpResult, bloom: bloomTmpResult} as PointLightStyle) - return value - } -} -export class RadialGradientOptions_serializer { - public static write(buffer: SerializerBase, value: RadialGradientOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForCenter = value.center - const valueHolderForCenter_0 = valueHolderForCenter[0] - if (valueHolderForCenter_0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCenter_0ForIdx0 = valueHolderForCenter_0 as string - valueSerializer.writeString(valueHolderForCenter_0ForIdx0) - } else if (valueHolderForCenter_0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCenter_0ForIdx1 = valueHolderForCenter_0 as number - valueSerializer.writeNumber(valueHolderForCenter_0ForIdx1) - } else if (valueHolderForCenter_0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForCenter_0ForIdx2 = valueHolderForCenter_0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForCenter_0ForIdx2) - } - const valueHolderForCenter_1 = valueHolderForCenter[1] - if (valueHolderForCenter_1 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCenter_1ForIdx0 = valueHolderForCenter_1 as string - valueSerializer.writeString(valueHolderForCenter_1ForIdx0) - } else if (valueHolderForCenter_1 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCenter_1ForIdx1 = valueHolderForCenter_1 as number - valueSerializer.writeNumber(valueHolderForCenter_1ForIdx1) - } else if (valueHolderForCenter_1 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForCenter_1ForIdx2 = valueHolderForCenter_1 as Resource - Resource_serializer.write(valueSerializer, valueHolderForCenter_1ForIdx2) - } - const valueHolderForRadius = value.radius - if (valueHolderForRadius instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForRadiusForIdx0 = valueHolderForRadius as string - valueSerializer.writeString(valueHolderForRadiusForIdx0) - } else if (valueHolderForRadius instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForRadiusForIdx1 = valueHolderForRadius as number - valueSerializer.writeNumber(valueHolderForRadiusForIdx1) - } else if (valueHolderForRadius instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForRadiusForIdx2 = valueHolderForRadius as Resource - Resource_serializer.write(valueSerializer, valueHolderForRadiusForIdx2) - } - const valueHolderForColors = value.colors - valueSerializer.writeInt32((valueHolderForColors.length).toInt()) - for (let valueHolderForColorsCounterI = 0; valueHolderForColorsCounterI < valueHolderForColors.length; valueHolderForColorsCounterI++) { - const valueHolderForColorsTmpElement : [ ResourceColor, number ] = valueHolderForColors[valueHolderForColorsCounterI] - const valueHolderForColorsTmpElement_0 = valueHolderForColorsTmpElement[0] - if (valueHolderForColorsTmpElement_0 instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorsTmpElement_0ForIdx0 = valueHolderForColorsTmpElement_0 as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorsTmpElement_0ForIdx0)) - } else if (valueHolderForColorsTmpElement_0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorsTmpElement_0ForIdx1 = valueHolderForColorsTmpElement_0 as number - valueSerializer.writeNumber(valueHolderForColorsTmpElement_0ForIdx1) - } else if (valueHolderForColorsTmpElement_0 instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorsTmpElement_0ForIdx2 = valueHolderForColorsTmpElement_0 as string - valueSerializer.writeString(valueHolderForColorsTmpElement_0ForIdx2) - } else if (valueHolderForColorsTmpElement_0 instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorsTmpElement_0ForIdx3 = valueHolderForColorsTmpElement_0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorsTmpElement_0ForIdx3) - } - const valueHolderForColorsTmpElement_1 = valueHolderForColorsTmpElement[1] - valueSerializer.writeNumber(valueHolderForColorsTmpElement_1) - } - const valueHolderForRepeating = value.repeating - if (valueHolderForRepeating !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRepeatingTmpValue = valueHolderForRepeating! - valueSerializer.writeBoolean(valueHolderForRepeatingTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): RadialGradientOptions { - let valueDeserializer : DeserializerBase = buffer - const centerTmpBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() - let centerTmpBufValue0TempBuf : string | number | Resource | undefined - if (centerTmpBufValue0TempBufUnionSelector == (0).toChar()) { - centerTmpBufValue0TempBuf = (valueDeserializer.readString() as string) - } else if (centerTmpBufValue0TempBufUnionSelector == (1).toChar()) { - centerTmpBufValue0TempBuf = (valueDeserializer.readNumber() as number) - } else if (centerTmpBufValue0TempBufUnionSelector == (2).toChar()) { - centerTmpBufValue0TempBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for centerTmpBufValue0TempBuf has to be chosen through deserialisation.") - } - const centerTmpBufValue0 : Length = (centerTmpBufValue0TempBuf as string | number | Resource) - const centerTmpBufValue1TempBufUnionSelector : int32 = valueDeserializer.readInt8() - let centerTmpBufValue1TempBuf : string | number | Resource | undefined - if (centerTmpBufValue1TempBufUnionSelector == (0).toChar()) { - centerTmpBufValue1TempBuf = (valueDeserializer.readString() as string) - } else if (centerTmpBufValue1TempBufUnionSelector == (1).toChar()) { - centerTmpBufValue1TempBuf = (valueDeserializer.readNumber() as number) - } else if (centerTmpBufValue1TempBufUnionSelector == (2).toChar()) { - centerTmpBufValue1TempBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for centerTmpBufValue1TempBuf has to be chosen through deserialisation.") - } - const centerTmpBufValue1 : Length = (centerTmpBufValue1TempBuf as string | number | Resource) - const centerTmpResult : [ Length, Length ] = ([centerTmpBufValue0, centerTmpBufValue1] as [ Length, Length ]) - const radiusTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let radiusTmpBuf : string | number | Resource | undefined - if (radiusTmpBufUnionSelector == (0).toChar()) { - radiusTmpBuf = (valueDeserializer.readString() as string) - } else if (radiusTmpBufUnionSelector == (1).toChar()) { - radiusTmpBuf = (valueDeserializer.readNumber() as number) - } else if (radiusTmpBufUnionSelector == (2).toChar()) { - radiusTmpBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for radiusTmpBuf has to be chosen through deserialisation.") - } - const radiusTmpResult : Length = (radiusTmpBuf as string | number | Resource) - const colorsTmpBufLength : int32 = valueDeserializer.readInt32() - let colorsTmpBuf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colorsTmpBufLength) - for (let colorsTmpBufBufCounterI = 0; colorsTmpBufBufCounterI < colorsTmpBufLength; colorsTmpBufBufCounterI++) { - const colorsTmpBufTempBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() - let colorsTmpBufTempBufValue0TempBuf : Color | number | string | Resource | undefined - if (colorsTmpBufTempBufValue0TempBufUnionSelector == (0).toChar()) { - colorsTmpBufTempBufValue0TempBuf = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (1).toChar()) { - colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readNumber() as number) - } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (2).toChar()) { - colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readString() as string) - } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (3).toChar()) { - colorsTmpBufTempBufValue0TempBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for colorsTmpBufTempBufValue0TempBuf has to be chosen through deserialisation.") - } - const colorsTmpBufTempBufValue0 : ResourceColor = (colorsTmpBufTempBufValue0TempBuf as Color | number | string | Resource) - const colorsTmpBufTempBufValue1 : number = (valueDeserializer.readNumber() as number) - colorsTmpBuf[colorsTmpBufBufCounterI] = ([colorsTmpBufTempBufValue0, colorsTmpBufTempBufValue1] as [ ResourceColor, number ]) - } - const colorsTmpResult : Array<[ ResourceColor, number ]> = colorsTmpBuf - const repeatingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let repeatingTmpBuf : boolean | undefined - if ((repeatingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - repeatingTmpBuf = valueDeserializer.readBoolean() - } - const repeatingTmpResult : boolean | undefined = repeatingTmpBuf - let value : RadialGradientOptions = ({center: centerTmpResult, radius: radiusTmpResult, colors: colorsTmpResult, repeating: repeatingTmpResult} as RadialGradientOptions) - return value - } -} -export class Rectangle_serializer { - public static write(buffer: SerializerBase, value: Rectangle): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForX = value.x - if (valueHolderForX !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForXTmpValue = valueHolderForX! - if (valueHolderForXTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForXTmpValueForIdx0 = valueHolderForXTmpValue as string - valueSerializer.writeString(valueHolderForXTmpValueForIdx0) - } else if (valueHolderForXTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForXTmpValueForIdx1 = valueHolderForXTmpValue as number - valueSerializer.writeNumber(valueHolderForXTmpValueForIdx1) - } else if (valueHolderForXTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForXTmpValueForIdx2 = valueHolderForXTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForXTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForY = value.y - if (valueHolderForY !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForYTmpValue = valueHolderForY! - if (valueHolderForYTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForYTmpValueForIdx0 = valueHolderForYTmpValue as string - valueSerializer.writeString(valueHolderForYTmpValueForIdx0) - } else if (valueHolderForYTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForYTmpValueForIdx1 = valueHolderForYTmpValue as number - valueSerializer.writeNumber(valueHolderForYTmpValueForIdx1) - } else if (valueHolderForYTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForYTmpValueForIdx2 = valueHolderForYTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForYTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForWidth = value.width - if (valueHolderForWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForWidthTmpValue = valueHolderForWidth! - if (valueHolderForWidthTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string - valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) - } else if (valueHolderForWidthTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number - valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) - } else if (valueHolderForWidthTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForHeight = value.height - if (valueHolderForHeight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHeightTmpValue = valueHolderForHeight! - if (valueHolderForHeightTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForHeightTmpValueForIdx0 = valueHolderForHeightTmpValue as string - valueSerializer.writeString(valueHolderForHeightTmpValueForIdx0) - } else if (valueHolderForHeightTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForHeightTmpValueForIdx1 = valueHolderForHeightTmpValue as number - valueSerializer.writeNumber(valueHolderForHeightTmpValueForIdx1) - } else if (valueHolderForHeightTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForHeightTmpValueForIdx2 = valueHolderForHeightTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForHeightTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): Rectangle { - let valueDeserializer : DeserializerBase = buffer - const xTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let xTmpBuf : Length | undefined - if ((xTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const xTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let xTmpBuf_ : string | number | Resource | undefined - if (xTmpBuf_UnionSelector == (0).toChar()) { - xTmpBuf_ = (valueDeserializer.readString() as string) - } else if (xTmpBuf_UnionSelector == (1).toChar()) { - xTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (xTmpBuf_UnionSelector == (2).toChar()) { - xTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for xTmpBuf_ has to be chosen through deserialisation.") - } - xTmpBuf = (xTmpBuf_ as string | number | Resource) - } - const xTmpResult : Length | undefined = xTmpBuf - const yTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let yTmpBuf : Length | undefined - if ((yTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const yTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let yTmpBuf_ : string | number | Resource | undefined - if (yTmpBuf_UnionSelector == (0).toChar()) { - yTmpBuf_ = (valueDeserializer.readString() as string) - } else if (yTmpBuf_UnionSelector == (1).toChar()) { - yTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (yTmpBuf_UnionSelector == (2).toChar()) { - yTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for yTmpBuf_ has to be chosen through deserialisation.") - } - yTmpBuf = (yTmpBuf_ as string | number | Resource) - } - const yTmpResult : Length | undefined = yTmpBuf - const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let widthTmpBuf : Length | undefined - if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let widthTmpBuf_ : string | number | Resource | undefined - if (widthTmpBuf_UnionSelector == (0).toChar()) { - widthTmpBuf_ = (valueDeserializer.readString() as string) - } else if (widthTmpBuf_UnionSelector == (1).toChar()) { - widthTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (widthTmpBuf_UnionSelector == (2).toChar()) { - widthTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") - } - widthTmpBuf = (widthTmpBuf_ as string | number | Resource) - } - const widthTmpResult : Length | undefined = widthTmpBuf - const heightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let heightTmpBuf : Length | undefined - if ((heightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const heightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let heightTmpBuf_ : string | number | Resource | undefined - if (heightTmpBuf_UnionSelector == (0).toChar()) { - heightTmpBuf_ = (valueDeserializer.readString() as string) - } else if (heightTmpBuf_UnionSelector == (1).toChar()) { - heightTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (heightTmpBuf_UnionSelector == (2).toChar()) { - heightTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for heightTmpBuf_ has to be chosen through deserialisation.") - } - heightTmpBuf = (heightTmpBuf_ as string | number | Resource) - } - const heightTmpResult : Length | undefined = heightTmpBuf - let value : Rectangle = ({x: xTmpResult, y: yTmpResult, width: widthTmpResult, height: heightTmpResult} as Rectangle) - return value - } -} -export class SweepGradientOptions_serializer { - public static write(buffer: SerializerBase, value: SweepGradientOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForCenter = value.center - const valueHolderForCenter_0 = valueHolderForCenter[0] - if (valueHolderForCenter_0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCenter_0ForIdx0 = valueHolderForCenter_0 as string - valueSerializer.writeString(valueHolderForCenter_0ForIdx0) - } else if (valueHolderForCenter_0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCenter_0ForIdx1 = valueHolderForCenter_0 as number - valueSerializer.writeNumber(valueHolderForCenter_0ForIdx1) - } else if (valueHolderForCenter_0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForCenter_0ForIdx2 = valueHolderForCenter_0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForCenter_0ForIdx2) - } - const valueHolderForCenter_1 = valueHolderForCenter[1] - if (valueHolderForCenter_1 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForCenter_1ForIdx0 = valueHolderForCenter_1 as string - valueSerializer.writeString(valueHolderForCenter_1ForIdx0) - } else if (valueHolderForCenter_1 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForCenter_1ForIdx1 = valueHolderForCenter_1 as number - valueSerializer.writeNumber(valueHolderForCenter_1ForIdx1) - } else if (valueHolderForCenter_1 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForCenter_1ForIdx2 = valueHolderForCenter_1 as Resource - Resource_serializer.write(valueSerializer, valueHolderForCenter_1ForIdx2) - } - const valueHolderForStart = value.start - if (valueHolderForStart !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForStartTmpValue = valueHolderForStart! - if (valueHolderForStartTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForStartTmpValueForIdx0 = valueHolderForStartTmpValue as number - valueSerializer.writeNumber(valueHolderForStartTmpValueForIdx0) - } else if (valueHolderForStartTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForStartTmpValueForIdx1 = valueHolderForStartTmpValue as string - valueSerializer.writeString(valueHolderForStartTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnd = value.end - if (valueHolderForEnd !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEndTmpValue = valueHolderForEnd! - if (valueHolderForEndTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForEndTmpValueForIdx0 = valueHolderForEndTmpValue as number - valueSerializer.writeNumber(valueHolderForEndTmpValueForIdx0) - } else if (valueHolderForEndTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForEndTmpValueForIdx1 = valueHolderForEndTmpValue as string - valueSerializer.writeString(valueHolderForEndTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRotation = value.rotation - if (valueHolderForRotation !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRotationTmpValue = valueHolderForRotation! - if (valueHolderForRotationTmpValue instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForRotationTmpValueForIdx0 = valueHolderForRotationTmpValue as number - valueSerializer.writeNumber(valueHolderForRotationTmpValueForIdx0) - } else if (valueHolderForRotationTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForRotationTmpValueForIdx1 = valueHolderForRotationTmpValue as string - valueSerializer.writeString(valueHolderForRotationTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForColors = value.colors - valueSerializer.writeInt32((valueHolderForColors.length).toInt()) - for (let valueHolderForColorsCounterI = 0; valueHolderForColorsCounterI < valueHolderForColors.length; valueHolderForColorsCounterI++) { - const valueHolderForColorsTmpElement : [ ResourceColor, number ] = valueHolderForColors[valueHolderForColorsCounterI] - const valueHolderForColorsTmpElement_0 = valueHolderForColorsTmpElement[0] - if (valueHolderForColorsTmpElement_0 instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorsTmpElement_0ForIdx0 = valueHolderForColorsTmpElement_0 as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorsTmpElement_0ForIdx0)) - } else if (valueHolderForColorsTmpElement_0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorsTmpElement_0ForIdx1 = valueHolderForColorsTmpElement_0 as number - valueSerializer.writeNumber(valueHolderForColorsTmpElement_0ForIdx1) - } else if (valueHolderForColorsTmpElement_0 instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorsTmpElement_0ForIdx2 = valueHolderForColorsTmpElement_0 as string - valueSerializer.writeString(valueHolderForColorsTmpElement_0ForIdx2) - } else if (valueHolderForColorsTmpElement_0 instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorsTmpElement_0ForIdx3 = valueHolderForColorsTmpElement_0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorsTmpElement_0ForIdx3) - } - const valueHolderForColorsTmpElement_1 = valueHolderForColorsTmpElement[1] - valueSerializer.writeNumber(valueHolderForColorsTmpElement_1) - } - const valueHolderForRepeating = value.repeating - if (valueHolderForRepeating !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRepeatingTmpValue = valueHolderForRepeating! - valueSerializer.writeBoolean(valueHolderForRepeatingTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): SweepGradientOptions { - let valueDeserializer : DeserializerBase = buffer - const centerTmpBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() - let centerTmpBufValue0TempBuf : string | number | Resource | undefined - if (centerTmpBufValue0TempBufUnionSelector == (0).toChar()) { - centerTmpBufValue0TempBuf = (valueDeserializer.readString() as string) - } else if (centerTmpBufValue0TempBufUnionSelector == (1).toChar()) { - centerTmpBufValue0TempBuf = (valueDeserializer.readNumber() as number) - } else if (centerTmpBufValue0TempBufUnionSelector == (2).toChar()) { - centerTmpBufValue0TempBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for centerTmpBufValue0TempBuf has to be chosen through deserialisation.") - } - const centerTmpBufValue0 : Length = (centerTmpBufValue0TempBuf as string | number | Resource) - const centerTmpBufValue1TempBufUnionSelector : int32 = valueDeserializer.readInt8() - let centerTmpBufValue1TempBuf : string | number | Resource | undefined - if (centerTmpBufValue1TempBufUnionSelector == (0).toChar()) { - centerTmpBufValue1TempBuf = (valueDeserializer.readString() as string) - } else if (centerTmpBufValue1TempBufUnionSelector == (1).toChar()) { - centerTmpBufValue1TempBuf = (valueDeserializer.readNumber() as number) - } else if (centerTmpBufValue1TempBufUnionSelector == (2).toChar()) { - centerTmpBufValue1TempBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for centerTmpBufValue1TempBuf has to be chosen through deserialisation.") - } - const centerTmpBufValue1 : Length = (centerTmpBufValue1TempBuf as string | number | Resource) - const centerTmpResult : [ Length, Length ] = ([centerTmpBufValue0, centerTmpBufValue1] as [ Length, Length ]) - const startTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let startTmpBuf : number | string | undefined - if ((startTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const startTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let startTmpBuf_ : number | string | undefined - if (startTmpBuf_UnionSelector == (0).toChar()) { - startTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (startTmpBuf_UnionSelector == (1).toChar()) { - startTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for startTmpBuf_ has to be chosen through deserialisation.") - } - startTmpBuf = (startTmpBuf_ as number | string) - } - const startTmpResult : number | string | undefined = startTmpBuf - const endTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let endTmpBuf : number | string | undefined - if ((endTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const endTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let endTmpBuf_ : number | string | undefined - if (endTmpBuf_UnionSelector == (0).toChar()) { - endTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (endTmpBuf_UnionSelector == (1).toChar()) { - endTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for endTmpBuf_ has to be chosen through deserialisation.") - } - endTmpBuf = (endTmpBuf_ as number | string) - } - const endTmpResult : number | string | undefined = endTmpBuf - const rotationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let rotationTmpBuf : number | string | undefined - if ((rotationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const rotationTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let rotationTmpBuf_ : number | string | undefined - if (rotationTmpBuf_UnionSelector == (0).toChar()) { - rotationTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (rotationTmpBuf_UnionSelector == (1).toChar()) { - rotationTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for rotationTmpBuf_ has to be chosen through deserialisation.") - } - rotationTmpBuf = (rotationTmpBuf_ as number | string) - } - const rotationTmpResult : number | string | undefined = rotationTmpBuf - const colorsTmpBufLength : int32 = valueDeserializer.readInt32() - let colorsTmpBuf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colorsTmpBufLength) - for (let colorsTmpBufBufCounterI = 0; colorsTmpBufBufCounterI < colorsTmpBufLength; colorsTmpBufBufCounterI++) { - const colorsTmpBufTempBufValue0TempBufUnionSelector : int32 = valueDeserializer.readInt8() - let colorsTmpBufTempBufValue0TempBuf : Color | number | string | Resource | undefined - if (colorsTmpBufTempBufValue0TempBufUnionSelector == (0).toChar()) { - colorsTmpBufTempBufValue0TempBuf = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (1).toChar()) { - colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readNumber() as number) - } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (2).toChar()) { - colorsTmpBufTempBufValue0TempBuf = (valueDeserializer.readString() as string) - } else if (colorsTmpBufTempBufValue0TempBufUnionSelector == (3).toChar()) { - colorsTmpBufTempBufValue0TempBuf = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for colorsTmpBufTempBufValue0TempBuf has to be chosen through deserialisation.") - } - const colorsTmpBufTempBufValue0 : ResourceColor = (colorsTmpBufTempBufValue0TempBuf as Color | number | string | Resource) - const colorsTmpBufTempBufValue1 : number = (valueDeserializer.readNumber() as number) - colorsTmpBuf[colorsTmpBufBufCounterI] = ([colorsTmpBufTempBufValue0, colorsTmpBufTempBufValue1] as [ ResourceColor, number ]) - } - const colorsTmpResult : Array<[ ResourceColor, number ]> = colorsTmpBuf - const repeatingTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let repeatingTmpBuf : boolean | undefined - if ((repeatingTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - repeatingTmpBuf = valueDeserializer.readBoolean() - } - const repeatingTmpResult : boolean | undefined = repeatingTmpBuf - let value : SweepGradientOptions = ({center: centerTmpResult, start: startTmpResult, end: endTmpResult, rotation: rotationTmpResult, colors: colorsTmpResult, repeating: repeatingTmpResult} as SweepGradientOptions) - return value - } -} -export class TipsOptions_serializer { - public static write(buffer: SerializerBase, value: TipsOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForAppearingTime = value.appearingTime - if (valueHolderForAppearingTime !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAppearingTimeTmpValue = valueHolderForAppearingTime! - valueSerializer.writeNumber(valueHolderForAppearingTimeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDisappearingTime = value.disappearingTime - if (valueHolderForDisappearingTime !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDisappearingTimeTmpValue = valueHolderForDisappearingTime! - valueSerializer.writeNumber(valueHolderForDisappearingTimeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAppearingTimeWithContinuousOperation = value.appearingTimeWithContinuousOperation - if (valueHolderForAppearingTimeWithContinuousOperation !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAppearingTimeWithContinuousOperationTmpValue = valueHolderForAppearingTimeWithContinuousOperation! - valueSerializer.writeNumber(valueHolderForAppearingTimeWithContinuousOperationTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDisappearingTimeWithContinuousOperation = value.disappearingTimeWithContinuousOperation - if (valueHolderForDisappearingTimeWithContinuousOperation !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDisappearingTimeWithContinuousOperationTmpValue = valueHolderForDisappearingTimeWithContinuousOperation! - valueSerializer.writeNumber(valueHolderForDisappearingTimeWithContinuousOperationTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableArrow = value.enableArrow - if (valueHolderForEnableArrow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! - valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowPointPosition = value.arrowPointPosition - if (valueHolderForArrowPointPosition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowPointPositionTmpValue = (valueHolderForArrowPointPosition as ArrowPointPosition) - valueSerializer.writeInt32(TypeChecker.ArrowPointPosition_ToNumeric(valueHolderForArrowPointPositionTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowWidth = value.arrowWidth - if (valueHolderForArrowWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowWidthTmpValue = valueHolderForArrowWidth! - if (valueHolderForArrowWidthTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowWidthTmpValueForIdx0 = valueHolderForArrowWidthTmpValue as string - valueSerializer.writeString(valueHolderForArrowWidthTmpValueForIdx0) - } else if (valueHolderForArrowWidthTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowWidthTmpValueForIdx1 = valueHolderForArrowWidthTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowWidthTmpValueForIdx1) - } else if (valueHolderForArrowWidthTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowWidthTmpValueForIdx2 = valueHolderForArrowWidthTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowHeight = value.arrowHeight - if (valueHolderForArrowHeight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowHeightTmpValue = valueHolderForArrowHeight! - if (valueHolderForArrowHeightTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowHeightTmpValueForIdx0 = valueHolderForArrowHeightTmpValue as string - valueSerializer.writeString(valueHolderForArrowHeightTmpValueForIdx0) - } else if (valueHolderForArrowHeightTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowHeightTmpValueForIdx1 = valueHolderForArrowHeightTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowHeightTmpValueForIdx1) - } else if (valueHolderForArrowHeightTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowHeightTmpValueForIdx2 = valueHolderForArrowHeightTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowHeightTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): TipsOptions { - let valueDeserializer : DeserializerBase = buffer - const appearingTimeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let appearingTimeTmpBuf : number | undefined - if ((appearingTimeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - appearingTimeTmpBuf = (valueDeserializer.readNumber() as number) - } - const appearingTimeTmpResult : number | undefined = appearingTimeTmpBuf - const disappearingTimeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let disappearingTimeTmpBuf : number | undefined - if ((disappearingTimeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - disappearingTimeTmpBuf = (valueDeserializer.readNumber() as number) - } - const disappearingTimeTmpResult : number | undefined = disappearingTimeTmpBuf - const appearingTimeWithContinuousOperationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let appearingTimeWithContinuousOperationTmpBuf : number | undefined - if ((appearingTimeWithContinuousOperationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - appearingTimeWithContinuousOperationTmpBuf = (valueDeserializer.readNumber() as number) - } - const appearingTimeWithContinuousOperationTmpResult : number | undefined = appearingTimeWithContinuousOperationTmpBuf - const disappearingTimeWithContinuousOperationTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let disappearingTimeWithContinuousOperationTmpBuf : number | undefined - if ((disappearingTimeWithContinuousOperationTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - disappearingTimeWithContinuousOperationTmpBuf = (valueDeserializer.readNumber() as number) - } - const disappearingTimeWithContinuousOperationTmpResult : number | undefined = disappearingTimeWithContinuousOperationTmpBuf - const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableArrowTmpBuf : boolean | undefined - if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableArrowTmpBuf = valueDeserializer.readBoolean() - } - const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf - const arrowPointPositionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowPointPositionTmpBuf : ArrowPointPosition | undefined - if ((arrowPointPositionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - arrowPointPositionTmpBuf = TypeChecker.ArrowPointPosition_FromNumeric(valueDeserializer.readInt32()) - } - const arrowPointPositionTmpResult : ArrowPointPosition | undefined = arrowPointPositionTmpBuf - const arrowWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowWidthTmpBuf : Dimension | undefined - if ((arrowWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowWidthTmpBuf_ : string | number | Resource | undefined - if (arrowWidthTmpBuf_UnionSelector == (0).toChar()) { - arrowWidthTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowWidthTmpBuf_UnionSelector == (1).toChar()) { - arrowWidthTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowWidthTmpBuf_UnionSelector == (2).toChar()) { - arrowWidthTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowWidthTmpBuf_ has to be chosen through deserialisation.") - } - arrowWidthTmpBuf = (arrowWidthTmpBuf_ as string | number | Resource) - } - const arrowWidthTmpResult : Dimension | undefined = arrowWidthTmpBuf - const arrowHeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowHeightTmpBuf : Dimension | undefined - if ((arrowHeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowHeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowHeightTmpBuf_ : string | number | Resource | undefined - if (arrowHeightTmpBuf_UnionSelector == (0).toChar()) { - arrowHeightTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowHeightTmpBuf_UnionSelector == (1).toChar()) { - arrowHeightTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowHeightTmpBuf_UnionSelector == (2).toChar()) { - arrowHeightTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowHeightTmpBuf_ has to be chosen through deserialisation.") - } - arrowHeightTmpBuf = (arrowHeightTmpBuf_ as string | number | Resource) - } - const arrowHeightTmpResult : Dimension | undefined = arrowHeightTmpBuf - let value : TipsOptions = ({appearingTime: appearingTimeTmpResult, disappearingTime: disappearingTimeTmpResult, appearingTimeWithContinuousOperation: appearingTimeWithContinuousOperationTmpResult, disappearingTimeWithContinuousOperation: disappearingTimeWithContinuousOperationTmpResult, enableArrow: enableArrowTmpResult, arrowPointPosition: arrowPointPositionTmpResult, arrowWidth: arrowWidthTmpResult, arrowHeight: arrowHeightTmpResult} as TipsOptions) - return value - } -} -export class BorderImageOption_serializer { - public static write(buffer: SerializerBase, value: BorderImageOption): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForSlice = value.slice - if (valueHolderForSlice !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForSliceTmpValue = valueHolderForSlice! - if (valueHolderForSliceTmpValue instanceof Length) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForSliceTmpValueForIdx0 = valueHolderForSliceTmpValue as Length - if (valueHolderForSliceTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForSliceTmpValueForIdx0ForIdx0 = valueHolderForSliceTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForSliceTmpValueForIdx0ForIdx0) - } else if (valueHolderForSliceTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForSliceTmpValueForIdx0ForIdx1 = valueHolderForSliceTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForSliceTmpValueForIdx0ForIdx1) - } else if (valueHolderForSliceTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForSliceTmpValueForIdx0ForIdx2 = valueHolderForSliceTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForSliceTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForSliceTmpValue instanceof EdgeWidths) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForSliceTmpValueForIdx1 = valueHolderForSliceTmpValue as EdgeWidths - EdgeWidths_serializer.write(valueSerializer, valueHolderForSliceTmpValueForIdx1) - } else if (valueHolderForSliceTmpValue instanceof LocalizedEdgeWidths) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForSliceTmpValueForIdx2 = valueHolderForSliceTmpValue as LocalizedEdgeWidths - LocalizedEdgeWidths_serializer.write(valueSerializer, valueHolderForSliceTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRepeat = value.repeat - if (valueHolderForRepeat !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRepeatTmpValue = (valueHolderForRepeat as RepeatMode) - valueSerializer.writeInt32(TypeChecker.RepeatMode_ToNumeric(valueHolderForRepeatTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForSource = value.source - if (valueHolderForSource !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForSourceTmpValue = valueHolderForSource! - if (valueHolderForSourceTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForSourceTmpValueForIdx0 = valueHolderForSourceTmpValue as string - valueSerializer.writeString(valueHolderForSourceTmpValueForIdx0) - } else if (valueHolderForSourceTmpValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForSourceTmpValueForIdx1 = valueHolderForSourceTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForSourceTmpValueForIdx1) - } else if (valueHolderForSourceTmpValue instanceof LinearGradientOptions) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForSourceTmpValueForIdx2 = valueHolderForSourceTmpValue as LinearGradientOptions - LinearGradientOptions_serializer.write(valueSerializer, valueHolderForSourceTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForWidth = value.width - if (valueHolderForWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForWidthTmpValue = valueHolderForWidth! - if (valueHolderForWidthTmpValue instanceof Length) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as Length - if (valueHolderForWidthTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForWidthTmpValueForIdx0ForIdx0 = valueHolderForWidthTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0ForIdx0) - } else if (valueHolderForWidthTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForWidthTmpValueForIdx0ForIdx1 = valueHolderForWidthTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx0ForIdx1) - } else if (valueHolderForWidthTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForWidthTmpValueForIdx0ForIdx2 = valueHolderForWidthTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForWidthTmpValue instanceof EdgeWidths) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as EdgeWidths - EdgeWidths_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx1) - } else if (valueHolderForWidthTmpValue instanceof LocalizedEdgeWidths) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as LocalizedEdgeWidths - LocalizedEdgeWidths_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOutset = value.outset - if (valueHolderForOutset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOutsetTmpValue = valueHolderForOutset! - if (valueHolderForOutsetTmpValue instanceof Length) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutsetTmpValueForIdx0 = valueHolderForOutsetTmpValue as Length - if (valueHolderForOutsetTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutsetTmpValueForIdx0ForIdx0 = valueHolderForOutsetTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForOutsetTmpValueForIdx0ForIdx0) - } else if (valueHolderForOutsetTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutsetTmpValueForIdx0ForIdx1 = valueHolderForOutsetTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForOutsetTmpValueForIdx0ForIdx1) - } else if (valueHolderForOutsetTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForOutsetTmpValueForIdx0ForIdx2 = valueHolderForOutsetTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForOutsetTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForOutsetTmpValue instanceof EdgeWidths) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutsetTmpValueForIdx1 = valueHolderForOutsetTmpValue as EdgeWidths - EdgeWidths_serializer.write(valueSerializer, valueHolderForOutsetTmpValueForIdx1) - } else if (valueHolderForOutsetTmpValue instanceof LocalizedEdgeWidths) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForOutsetTmpValueForIdx2 = valueHolderForOutsetTmpValue as LocalizedEdgeWidths - LocalizedEdgeWidths_serializer.write(valueSerializer, valueHolderForOutsetTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFill = value.fill - if (valueHolderForFill !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFillTmpValue = valueHolderForFill! - valueSerializer.writeBoolean(valueHolderForFillTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): BorderImageOption { - let valueDeserializer : DeserializerBase = buffer - const sliceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let sliceTmpBuf : Length | EdgeWidths | LocalizedEdgeWidths | undefined - if ((sliceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const sliceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let sliceTmpBuf_ : Length | EdgeWidths | LocalizedEdgeWidths | undefined - if (sliceTmpBuf_UnionSelector == (0).toChar()) { - const sliceTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let sliceTmpBuf_BufU : string | number | Resource | undefined - if (sliceTmpBuf_BufUUnionSelector == (0).toChar()) { - sliceTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (sliceTmpBuf_BufUUnionSelector == (1).toChar()) { - sliceTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (sliceTmpBuf_BufUUnionSelector == (2).toChar()) { - sliceTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for sliceTmpBuf_BufU has to be chosen through deserialisation.") - } - sliceTmpBuf_ = (sliceTmpBuf_BufU as string | number | Resource) - } else if (sliceTmpBuf_UnionSelector == (1).toChar()) { - sliceTmpBuf_ = EdgeWidths_serializer.read(valueDeserializer) - } else if (sliceTmpBuf_UnionSelector == (2).toChar()) { - sliceTmpBuf_ = LocalizedEdgeWidths_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for sliceTmpBuf_ has to be chosen through deserialisation.") - } - sliceTmpBuf = (sliceTmpBuf_ as Length | EdgeWidths | LocalizedEdgeWidths) - } - const sliceTmpResult : Length | EdgeWidths | LocalizedEdgeWidths | undefined = sliceTmpBuf - const repeatTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let repeatTmpBuf : RepeatMode | undefined - if ((repeatTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - repeatTmpBuf = TypeChecker.RepeatMode_FromNumeric(valueDeserializer.readInt32()) - } - const repeatTmpResult : RepeatMode | undefined = repeatTmpBuf - const sourceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let sourceTmpBuf : string | Resource | LinearGradientOptions | undefined - if ((sourceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const sourceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let sourceTmpBuf_ : string | Resource | LinearGradientOptions | undefined - if (sourceTmpBuf_UnionSelector == (0).toChar()) { - sourceTmpBuf_ = (valueDeserializer.readString() as string) - } else if (sourceTmpBuf_UnionSelector == (1).toChar()) { - sourceTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else if (sourceTmpBuf_UnionSelector == (2).toChar()) { - sourceTmpBuf_ = LinearGradientOptions_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for sourceTmpBuf_ has to be chosen through deserialisation.") - } - sourceTmpBuf = (sourceTmpBuf_ as string | Resource | LinearGradientOptions) - } - const sourceTmpResult : string | Resource | LinearGradientOptions | undefined = sourceTmpBuf - const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let widthTmpBuf : Length | EdgeWidths | LocalizedEdgeWidths | undefined - if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let widthTmpBuf_ : Length | EdgeWidths | LocalizedEdgeWidths | undefined - if (widthTmpBuf_UnionSelector == (0).toChar()) { - const widthTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let widthTmpBuf_BufU : string | number | Resource | undefined - if (widthTmpBuf_BufUUnionSelector == (0).toChar()) { - widthTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (widthTmpBuf_BufUUnionSelector == (1).toChar()) { - widthTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (widthTmpBuf_BufUUnionSelector == (2).toChar()) { - widthTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for widthTmpBuf_BufU has to be chosen through deserialisation.") - } - widthTmpBuf_ = (widthTmpBuf_BufU as string | number | Resource) - } else if (widthTmpBuf_UnionSelector == (1).toChar()) { - widthTmpBuf_ = EdgeWidths_serializer.read(valueDeserializer) - } else if (widthTmpBuf_UnionSelector == (2).toChar()) { - widthTmpBuf_ = LocalizedEdgeWidths_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") - } - widthTmpBuf = (widthTmpBuf_ as Length | EdgeWidths | LocalizedEdgeWidths) - } - const widthTmpResult : Length | EdgeWidths | LocalizedEdgeWidths | undefined = widthTmpBuf - const outsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let outsetTmpBuf : Length | EdgeWidths | LocalizedEdgeWidths | undefined - if ((outsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const outsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let outsetTmpBuf_ : Length | EdgeWidths | LocalizedEdgeWidths | undefined - if (outsetTmpBuf_UnionSelector == (0).toChar()) { - const outsetTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let outsetTmpBuf_BufU : string | number | Resource | undefined - if (outsetTmpBuf_BufUUnionSelector == (0).toChar()) { - outsetTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (outsetTmpBuf_BufUUnionSelector == (1).toChar()) { - outsetTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (outsetTmpBuf_BufUUnionSelector == (2).toChar()) { - outsetTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outsetTmpBuf_BufU has to be chosen through deserialisation.") - } - outsetTmpBuf_ = (outsetTmpBuf_BufU as string | number | Resource) - } else if (outsetTmpBuf_UnionSelector == (1).toChar()) { - outsetTmpBuf_ = EdgeWidths_serializer.read(valueDeserializer) - } else if (outsetTmpBuf_UnionSelector == (2).toChar()) { - outsetTmpBuf_ = LocalizedEdgeWidths_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outsetTmpBuf_ has to be chosen through deserialisation.") - } - outsetTmpBuf = (outsetTmpBuf_ as Length | EdgeWidths | LocalizedEdgeWidths) - } - const outsetTmpResult : Length | EdgeWidths | LocalizedEdgeWidths | undefined = outsetTmpBuf - const fillTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fillTmpBuf : boolean | undefined - if ((fillTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - fillTmpBuf = valueDeserializer.readBoolean() - } - const fillTmpResult : boolean | undefined = fillTmpBuf - let value : BorderImageOption = ({slice: sliceTmpResult, repeat: repeatTmpResult, source: sourceTmpResult, width: widthTmpResult, outset: outsetTmpResult, fill: fillTmpResult} as BorderImageOption) - return value - } -} -export class ContextMenuOptions_serializer { - public static write(buffer: SerializerBase, value: ContextMenuOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForOffset = value.offset - if (valueHolderForOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetTmpValue = valueHolderForOffset! - Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPlacement = value.placement - if (valueHolderForPlacement !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) - valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableArrow = value.enableArrow - if (valueHolderForEnableArrow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! - valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowOffset = value.arrowOffset - if (valueHolderForArrowOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! - if (valueHolderForArrowOffsetTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string - valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) - } else if (valueHolderForArrowOffsetTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) - } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPreview = value.preview - if (valueHolderForPreview !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPreviewTmpValue = valueHolderForPreview! - if (valueHolderForPreviewTmpValue instanceof MenuPreviewMode) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPreviewTmpValueForIdx0 = valueHolderForPreviewTmpValue as MenuPreviewMode - valueSerializer.writeInt32(TypeChecker.MenuPreviewMode_ToNumeric(valueHolderForPreviewTmpValueForIdx0)) - } else if (valueHolderForPreviewTmpValue instanceof CustomBuilder) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPreviewTmpValueForIdx1 = valueHolderForPreviewTmpValue as CustomBuilder - valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForPreviewTmpValueForIdx1)) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPreviewBorderRadius = value.previewBorderRadius - if (valueHolderForPreviewBorderRadius !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPreviewBorderRadiusTmpValue = valueHolderForPreviewBorderRadius! - if (valueHolderForPreviewBorderRadiusTmpValue instanceof Length) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx0 = valueHolderForPreviewBorderRadiusTmpValue as Length - if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx0) - } else if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx1) - } else if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForPreviewBorderRadiusTmpValue instanceof BorderRadiuses) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx1 = valueHolderForPreviewBorderRadiusTmpValue as BorderRadiuses - BorderRadiuses_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx1) - } else if (valueHolderForPreviewBorderRadiusTmpValue instanceof LocalizedBorderRadiuses) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx2 = valueHolderForPreviewBorderRadiusTmpValue as LocalizedBorderRadiuses - LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBorderRadius = value.borderRadius - if (valueHolderForBorderRadius !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBorderRadiusTmpValue = valueHolderForBorderRadius! - if (valueHolderForBorderRadiusTmpValue instanceof Length) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0 = valueHolderForBorderRadiusTmpValue as Length - if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForBorderRadiusTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForBorderRadiusTmpValueForIdx0ForIdx0) - } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForBorderRadiusTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForBorderRadiusTmpValueForIdx0ForIdx1) - } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForBorderRadiusTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForBorderRadiusTmpValue instanceof BorderRadiuses) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx1 = valueHolderForBorderRadiusTmpValue as BorderRadiuses - BorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx1) - } else if (valueHolderForBorderRadiusTmpValue instanceof LocalizedBorderRadiuses) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx2 = valueHolderForBorderRadiusTmpValue as LocalizedBorderRadiuses - LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnAppear = value.onAppear - if (valueHolderForOnAppear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnAppearTmpValue = valueHolderForOnAppear! - valueSerializer.holdAndWriteCallback(valueHolderForOnAppearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnDisappear = value.onDisappear - if (valueHolderForOnDisappear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnDisappearTmpValue = valueHolderForOnDisappear! - valueSerializer.holdAndWriteCallback(valueHolderForOnDisappearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAboutToAppear = value.aboutToAppear - if (valueHolderForAboutToAppear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAboutToAppearTmpValue = valueHolderForAboutToAppear! - valueSerializer.holdAndWriteCallback(valueHolderForAboutToAppearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAboutToDisappear = value.aboutToDisappear - if (valueHolderForAboutToDisappear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAboutToDisappearTmpValue = valueHolderForAboutToDisappear! - valueSerializer.holdAndWriteCallback(valueHolderForAboutToDisappearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForLayoutRegionMargin = value.layoutRegionMargin - if (valueHolderForLayoutRegionMargin !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForLayoutRegionMarginTmpValue = valueHolderForLayoutRegionMargin! - Padding_serializer.write(valueSerializer, valueHolderForLayoutRegionMarginTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPreviewAnimationOptions = value.previewAnimationOptions - if (valueHolderForPreviewAnimationOptions !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPreviewAnimationOptionsTmpValue = valueHolderForPreviewAnimationOptions! - ContextMenuAnimationOptions_serializer.write(valueSerializer, valueHolderForPreviewAnimationOptionsTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundColor = value.backgroundColor - if (valueHolderForBackgroundColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! - if (valueHolderForBackgroundColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) - } else if (valueHolderForBackgroundColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number - valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) - } else if (valueHolderForBackgroundColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string - valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) - } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle - if (valueHolderForBackgroundBlurStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundBlurStyleOptions = value.backgroundBlurStyleOptions - if (valueHolderForBackgroundBlurStyleOptions !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundBlurStyleOptionsTmpValue = valueHolderForBackgroundBlurStyleOptions! - BackgroundBlurStyleOptions_serializer.write(valueSerializer, valueHolderForBackgroundBlurStyleOptionsTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundEffect = value.backgroundEffect - if (valueHolderForBackgroundEffect !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundEffectTmpValue = valueHolderForBackgroundEffect! - BackgroundEffectOptions_serializer.write(valueSerializer, valueHolderForBackgroundEffectTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTransition = value.transition - if (valueHolderForTransition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTransitionTmpValue = valueHolderForTransition! - TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableHoverMode = value.enableHoverMode - if (valueHolderForEnableHoverMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! - valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOutlineColor = value.outlineColor - if (valueHolderForOutlineColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOutlineColorTmpValue = valueHolderForOutlineColor! - if (valueHolderForOutlineColorTmpValue instanceof ResourceColor) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0 = valueHolderForOutlineColorTmpValue as ResourceColor - if (valueHolderForOutlineColorTmpValueForIdx0 instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0ForIdx0 = valueHolderForOutlineColorTmpValueForIdx0 as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForOutlineColorTmpValueForIdx0ForIdx0)) - } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0ForIdx1 = valueHolderForOutlineColorTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForOutlineColorTmpValueForIdx0ForIdx1) - } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0ForIdx2 = valueHolderForOutlineColorTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForOutlineColorTmpValueForIdx0ForIdx2) - } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0ForIdx3 = valueHolderForOutlineColorTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForOutlineColorTmpValueForIdx0ForIdx3) - } - } else if (valueHolderForOutlineColorTmpValue instanceof EdgeColors) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutlineColorTmpValueForIdx1 = valueHolderForOutlineColorTmpValue as EdgeColors - EdgeColors_serializer.write(valueSerializer, valueHolderForOutlineColorTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOutlineWidth = value.outlineWidth - if (valueHolderForOutlineWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOutlineWidthTmpValue = valueHolderForOutlineWidth! - if (valueHolderForOutlineWidthTmpValue instanceof Dimension) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx0 = valueHolderForOutlineWidthTmpValue as Dimension - if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx0ForIdx0 = valueHolderForOutlineWidthTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForOutlineWidthTmpValueForIdx0ForIdx0) - } else if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx0ForIdx1 = valueHolderForOutlineWidthTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForOutlineWidthTmpValueForIdx0ForIdx1) - } else if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx0ForIdx2 = valueHolderForOutlineWidthTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForOutlineWidthTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForOutlineWidthTmpValue instanceof EdgeOutlineWidths) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx1 = valueHolderForOutlineWidthTmpValue as EdgeOutlineWidths - EdgeOutlineWidths_serializer.write(valueSerializer, valueHolderForOutlineWidthTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForHapticFeedbackMode = value.hapticFeedbackMode - if (valueHolderForHapticFeedbackMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHapticFeedbackModeTmpValue = (valueHolderForHapticFeedbackMode as HapticFeedbackMode) - valueSerializer.writeInt32(TypeChecker.HapticFeedbackMode_ToNumeric(valueHolderForHapticFeedbackModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): ContextMenuOptions { - let valueDeserializer : DeserializerBase = buffer - const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetTmpBuf : Position | undefined - if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - offsetTmpBuf = Position_serializer.read(valueDeserializer) - } - const offsetTmpResult : Position | undefined = offsetTmpBuf - const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let placementTmpBuf : Placement | undefined - if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) - } - const placementTmpResult : Placement | undefined = placementTmpBuf - const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableArrowTmpBuf : boolean | undefined - if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableArrowTmpBuf = valueDeserializer.readBoolean() - } - const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf - const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowOffsetTmpBuf : Length | undefined - if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowOffsetTmpBuf_ : string | number | Resource | undefined - if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { - arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") - } - arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) - } - const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf - const previewTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let previewTmpBuf : MenuPreviewMode | CustomBuilder | undefined - if ((previewTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const previewTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let previewTmpBuf_ : MenuPreviewMode | CustomBuilder | undefined - if (previewTmpBuf_UnionSelector == (0).toChar()) { - previewTmpBuf_ = TypeChecker.MenuPreviewMode_FromNumeric(valueDeserializer.readInt32()) - } else if (previewTmpBuf_UnionSelector == (1).toChar()) { - const previewTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const previewTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() - const previewTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() - previewTmpBuf_ = ():void => { - const previewTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); - previewTmpBuf_BufUBufArgsSerializer.writeInt32(previewTmpBuf_BufUBufResource.resourceId); - previewTmpBuf_BufUBufArgsSerializer.writePointer(previewTmpBuf_BufUBufCall); - previewTmpBuf_BufUBufArgsSerializer.writePointer(previewTmpBuf_BufUBufCallSync); - InteropNativeModule._CallCallback(737226752, previewTmpBuf_BufUBufArgsSerializer.asBuffer(), previewTmpBuf_BufUBufArgsSerializer.length()); - previewTmpBuf_BufUBufArgsSerializer.release(); - return; - } - } else { - throw new Error("One of the branches for previewTmpBuf_ has to be chosen through deserialisation.") - } - previewTmpBuf = (previewTmpBuf_ as MenuPreviewMode | CustomBuilder) - } - const previewTmpResult : MenuPreviewMode | CustomBuilder | undefined = previewTmpBuf - const previewBorderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let previewBorderRadiusTmpBuf : BorderRadiusType | undefined - if ((previewBorderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const previewBorderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let previewBorderRadiusTmpBuf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined - if (previewBorderRadiusTmpBuf_UnionSelector == (0).toChar()) { - const previewBorderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let previewBorderRadiusTmpBuf_BufU : string | number | Resource | undefined - if (previewBorderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { - previewBorderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (previewBorderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { - previewBorderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (previewBorderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { - previewBorderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for previewBorderRadiusTmpBuf_BufU has to be chosen through deserialisation.") - } - previewBorderRadiusTmpBuf_ = (previewBorderRadiusTmpBuf_BufU as string | number | Resource) - } else if (previewBorderRadiusTmpBuf_UnionSelector == (1).toChar()) { - previewBorderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) - } else if (previewBorderRadiusTmpBuf_UnionSelector == (2).toChar()) { - previewBorderRadiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for previewBorderRadiusTmpBuf_ has to be chosen through deserialisation.") - } - previewBorderRadiusTmpBuf = (previewBorderRadiusTmpBuf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) - } - const previewBorderRadiusTmpResult : BorderRadiusType | undefined = previewBorderRadiusTmpBuf - const borderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let borderRadiusTmpBuf : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined - if ((borderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const borderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let borderRadiusTmpBuf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined - if (borderRadiusTmpBuf_UnionSelector == (0).toChar()) { - const borderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let borderRadiusTmpBuf_BufU : string | number | Resource | undefined - if (borderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { - borderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (borderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { - borderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (borderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { - borderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderRadiusTmpBuf_BufU has to be chosen through deserialisation.") - } - borderRadiusTmpBuf_ = (borderRadiusTmpBuf_BufU as string | number | Resource) - } else if (borderRadiusTmpBuf_UnionSelector == (1).toChar()) { - borderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) - } else if (borderRadiusTmpBuf_UnionSelector == (2).toChar()) { - borderRadiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderRadiusTmpBuf_ has to be chosen through deserialisation.") - } - borderRadiusTmpBuf = (borderRadiusTmpBuf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) - } - const borderRadiusTmpResult : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined = borderRadiusTmpBuf - const onAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onAppearTmpBuf : (() => void) | undefined - if ((onAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onAppearTmpBuf = ():void => { - const onAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onAppearTmpBuf_BufArgsSerializer.writeInt32(onAppearTmpBuf_BufResource.resourceId); - onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCall); - onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onAppearTmpBuf_BufArgsSerializer.asBuffer(), onAppearTmpBuf_BufArgsSerializer.length()); - onAppearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onAppearTmpResult : (() => void) | undefined = onAppearTmpBuf - const onDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onDisappearTmpBuf : (() => void) | undefined - if ((onDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onDisappearTmpBuf = ():void => { - const onDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onDisappearTmpBuf_BufArgsSerializer.writeInt32(onDisappearTmpBuf_BufResource.resourceId); - onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCall); - onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onDisappearTmpBuf_BufArgsSerializer.asBuffer(), onDisappearTmpBuf_BufArgsSerializer.length()); - onDisappearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onDisappearTmpResult : (() => void) | undefined = onDisappearTmpBuf - const aboutToAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let aboutToAppearTmpBuf : (() => void) | undefined - if ((aboutToAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const aboutToAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const aboutToAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const aboutToAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - aboutToAppearTmpBuf = ():void => { - const aboutToAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - aboutToAppearTmpBuf_BufArgsSerializer.writeInt32(aboutToAppearTmpBuf_BufResource.resourceId); - aboutToAppearTmpBuf_BufArgsSerializer.writePointer(aboutToAppearTmpBuf_BufCall); - aboutToAppearTmpBuf_BufArgsSerializer.writePointer(aboutToAppearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, aboutToAppearTmpBuf_BufArgsSerializer.asBuffer(), aboutToAppearTmpBuf_BufArgsSerializer.length()); - aboutToAppearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const aboutToAppearTmpResult : (() => void) | undefined = aboutToAppearTmpBuf - const aboutToDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let aboutToDisappearTmpBuf : (() => void) | undefined - if ((aboutToDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const aboutToDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const aboutToDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const aboutToDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - aboutToDisappearTmpBuf = ():void => { - const aboutToDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - aboutToDisappearTmpBuf_BufArgsSerializer.writeInt32(aboutToDisappearTmpBuf_BufResource.resourceId); - aboutToDisappearTmpBuf_BufArgsSerializer.writePointer(aboutToDisappearTmpBuf_BufCall); - aboutToDisappearTmpBuf_BufArgsSerializer.writePointer(aboutToDisappearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, aboutToDisappearTmpBuf_BufArgsSerializer.asBuffer(), aboutToDisappearTmpBuf_BufArgsSerializer.length()); - aboutToDisappearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const aboutToDisappearTmpResult : (() => void) | undefined = aboutToDisappearTmpBuf - const layoutRegionMarginTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let layoutRegionMarginTmpBuf : Padding | undefined - if ((layoutRegionMarginTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - layoutRegionMarginTmpBuf = Padding_serializer.read(valueDeserializer) - } - const layoutRegionMarginTmpResult : Padding | undefined = layoutRegionMarginTmpBuf - const previewAnimationOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let previewAnimationOptionsTmpBuf : ContextMenuAnimationOptions | undefined - if ((previewAnimationOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - previewAnimationOptionsTmpBuf = ContextMenuAnimationOptions_serializer.read(valueDeserializer) - } - const previewAnimationOptionsTmpResult : ContextMenuAnimationOptions | undefined = previewAnimationOptionsTmpBuf - const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundColorTmpBuf : ResourceColor | undefined - if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined - if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { - backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { - backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") - } - backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) - } - const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf - const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundBlurStyleTmpBuf : BlurStyle | undefined - if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) - } - const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf - const backgroundBlurStyleOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundBlurStyleOptionsTmpBuf : BackgroundBlurStyleOptions | undefined - if ((backgroundBlurStyleOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backgroundBlurStyleOptionsTmpBuf = BackgroundBlurStyleOptions_serializer.read(valueDeserializer) - } - const backgroundBlurStyleOptionsTmpResult : BackgroundBlurStyleOptions | undefined = backgroundBlurStyleOptionsTmpBuf - const backgroundEffectTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundEffectTmpBuf : BackgroundEffectOptions | undefined - if ((backgroundEffectTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backgroundEffectTmpBuf = BackgroundEffectOptions_serializer.read(valueDeserializer) - } - const backgroundEffectTmpResult : BackgroundEffectOptions | undefined = backgroundEffectTmpBuf - const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let transitionTmpBuf : TransitionEffect | undefined - if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) - } - const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf - const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableHoverModeTmpBuf : boolean | undefined - if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableHoverModeTmpBuf = valueDeserializer.readBoolean() - } - const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf - const outlineColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let outlineColorTmpBuf : ResourceColor | EdgeColors | undefined - if ((outlineColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const outlineColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let outlineColorTmpBuf_ : ResourceColor | EdgeColors | undefined - if (outlineColorTmpBuf_UnionSelector == (0).toChar()) { - const outlineColorTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let outlineColorTmpBuf_BufU : Color | number | string | Resource | undefined - if (outlineColorTmpBuf_BufUUnionSelector == (0).toChar()) { - outlineColorTmpBuf_BufU = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (outlineColorTmpBuf_BufUUnionSelector == (1).toChar()) { - outlineColorTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (outlineColorTmpBuf_BufUUnionSelector == (2).toChar()) { - outlineColorTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (outlineColorTmpBuf_BufUUnionSelector == (3).toChar()) { - outlineColorTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outlineColorTmpBuf_BufU has to be chosen through deserialisation.") - } - outlineColorTmpBuf_ = (outlineColorTmpBuf_BufU as Color | number | string | Resource) - } else if (outlineColorTmpBuf_UnionSelector == (1).toChar()) { - outlineColorTmpBuf_ = EdgeColors_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outlineColorTmpBuf_ has to be chosen through deserialisation.") - } - outlineColorTmpBuf = (outlineColorTmpBuf_ as ResourceColor | EdgeColors) - } - const outlineColorTmpResult : ResourceColor | EdgeColors | undefined = outlineColorTmpBuf - const outlineWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let outlineWidthTmpBuf : Dimension | EdgeOutlineWidths | undefined - if ((outlineWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const outlineWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let outlineWidthTmpBuf_ : Dimension | EdgeOutlineWidths | undefined - if (outlineWidthTmpBuf_UnionSelector == (0).toChar()) { - const outlineWidthTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let outlineWidthTmpBuf_BufU : string | number | Resource | undefined - if (outlineWidthTmpBuf_BufUUnionSelector == (0).toChar()) { - outlineWidthTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (outlineWidthTmpBuf_BufUUnionSelector == (1).toChar()) { - outlineWidthTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (outlineWidthTmpBuf_BufUUnionSelector == (2).toChar()) { - outlineWidthTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outlineWidthTmpBuf_BufU has to be chosen through deserialisation.") - } - outlineWidthTmpBuf_ = (outlineWidthTmpBuf_BufU as string | number | Resource) - } else if (outlineWidthTmpBuf_UnionSelector == (1).toChar()) { - outlineWidthTmpBuf_ = EdgeOutlineWidths_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outlineWidthTmpBuf_ has to be chosen through deserialisation.") - } - outlineWidthTmpBuf = (outlineWidthTmpBuf_ as Dimension | EdgeOutlineWidths) - } - const outlineWidthTmpResult : Dimension | EdgeOutlineWidths | undefined = outlineWidthTmpBuf - const hapticFeedbackModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let hapticFeedbackModeTmpBuf : HapticFeedbackMode | undefined - if ((hapticFeedbackModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - hapticFeedbackModeTmpBuf = TypeChecker.HapticFeedbackMode_FromNumeric(valueDeserializer.readInt32()) - } - const hapticFeedbackModeTmpResult : HapticFeedbackMode | undefined = hapticFeedbackModeTmpBuf - let value : ContextMenuOptions = ({offset: offsetTmpResult, placement: placementTmpResult, enableArrow: enableArrowTmpResult, arrowOffset: arrowOffsetTmpResult, preview: previewTmpResult, previewBorderRadius: previewBorderRadiusTmpResult, borderRadius: borderRadiusTmpResult, onAppear: onAppearTmpResult, onDisappear: onDisappearTmpResult, aboutToAppear: aboutToAppearTmpResult, aboutToDisappear: aboutToDisappearTmpResult, layoutRegionMargin: layoutRegionMarginTmpResult, previewAnimationOptions: previewAnimationOptionsTmpResult, backgroundColor: backgroundColorTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, backgroundBlurStyleOptions: backgroundBlurStyleOptionsTmpResult, backgroundEffect: backgroundEffectTmpResult, transition: transitionTmpResult, enableHoverMode: enableHoverModeTmpResult, outlineColor: outlineColorTmpResult, outlineWidth: outlineWidthTmpResult, hapticFeedbackMode: hapticFeedbackModeTmpResult} as ContextMenuOptions) - return value - } -} -export class CustomPopupOptions_serializer { - public static write(buffer: SerializerBase, value: CustomPopupOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForBuilder = value.builder - valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForBuilder)) - const valueHolderForPlacement = value.placement - if (valueHolderForPlacement !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) - valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPopupColor = value.popupColor - if (valueHolderForPopupColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPopupColorTmpValue = valueHolderForPopupColor! - if (valueHolderForPopupColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPopupColorTmpValueForIdx0 = valueHolderForPopupColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForPopupColorTmpValueForIdx0)) - } else if (valueHolderForPopupColorTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPopupColorTmpValueForIdx1 = valueHolderForPopupColorTmpValue as string - valueSerializer.writeString(valueHolderForPopupColorTmpValueForIdx1) - } else if (valueHolderForPopupColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForPopupColorTmpValueForIdx2 = valueHolderForPopupColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForPopupColorTmpValueForIdx2) - } else if (valueHolderForPopupColorTmpValue instanceof number) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForPopupColorTmpValueForIdx3 = valueHolderForPopupColorTmpValue as number - valueSerializer.writeNumber(valueHolderForPopupColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableArrow = value.enableArrow - if (valueHolderForEnableArrow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! - valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAutoCancel = value.autoCancel - if (valueHolderForAutoCancel !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAutoCancelTmpValue = valueHolderForAutoCancel! - valueSerializer.writeBoolean(valueHolderForAutoCancelTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnStateChange = value.onStateChange - if (valueHolderForOnStateChange !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnStateChangeTmpValue = valueHolderForOnStateChange! - valueSerializer.holdAndWriteCallback(valueHolderForOnStateChangeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowOffset = value.arrowOffset - if (valueHolderForArrowOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! - if (valueHolderForArrowOffsetTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string - valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) - } else if (valueHolderForArrowOffsetTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) - } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShowInSubWindow = value.showInSubWindow - if (valueHolderForShowInSubWindow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! - valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForMask = value.mask - if (valueHolderForMask !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForMaskTmpValue = valueHolderForMask! - if (valueHolderForMaskTmpValue instanceof boolean) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForMaskTmpValueForIdx0 = valueHolderForMaskTmpValue as boolean - valueSerializer.writeBoolean(valueHolderForMaskTmpValueForIdx0) - } else if (valueHolderForMaskTmpValue instanceof PopupMaskType) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForMaskTmpValueForIdx1 = valueHolderForMaskTmpValue as PopupMaskType - PopupMaskType_serializer.write(valueSerializer, valueHolderForMaskTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTargetSpace = value.targetSpace - if (valueHolderForTargetSpace !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTargetSpaceTmpValue = valueHolderForTargetSpace! - if (valueHolderForTargetSpaceTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTargetSpaceTmpValueForIdx0 = valueHolderForTargetSpaceTmpValue as string - valueSerializer.writeString(valueHolderForTargetSpaceTmpValueForIdx0) - } else if (valueHolderForTargetSpaceTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTargetSpaceTmpValueForIdx1 = valueHolderForTargetSpaceTmpValue as number - valueSerializer.writeNumber(valueHolderForTargetSpaceTmpValueForIdx1) - } else if (valueHolderForTargetSpaceTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForTargetSpaceTmpValueForIdx2 = valueHolderForTargetSpaceTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForTargetSpaceTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOffset = value.offset - if (valueHolderForOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetTmpValue = valueHolderForOffset! - Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForWidth = value.width - if (valueHolderForWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForWidthTmpValue = valueHolderForWidth! - if (valueHolderForWidthTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string - valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) - } else if (valueHolderForWidthTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number - valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) - } else if (valueHolderForWidthTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowPointPosition = value.arrowPointPosition - if (valueHolderForArrowPointPosition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowPointPositionTmpValue = (valueHolderForArrowPointPosition as ArrowPointPosition) - valueSerializer.writeInt32(TypeChecker.ArrowPointPosition_ToNumeric(valueHolderForArrowPointPositionTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowWidth = value.arrowWidth - if (valueHolderForArrowWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowWidthTmpValue = valueHolderForArrowWidth! - if (valueHolderForArrowWidthTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowWidthTmpValueForIdx0 = valueHolderForArrowWidthTmpValue as string - valueSerializer.writeString(valueHolderForArrowWidthTmpValueForIdx0) - } else if (valueHolderForArrowWidthTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowWidthTmpValueForIdx1 = valueHolderForArrowWidthTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowWidthTmpValueForIdx1) - } else if (valueHolderForArrowWidthTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowWidthTmpValueForIdx2 = valueHolderForArrowWidthTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowHeight = value.arrowHeight - if (valueHolderForArrowHeight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowHeightTmpValue = valueHolderForArrowHeight! - if (valueHolderForArrowHeightTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowHeightTmpValueForIdx0 = valueHolderForArrowHeightTmpValue as string - valueSerializer.writeString(valueHolderForArrowHeightTmpValueForIdx0) - } else if (valueHolderForArrowHeightTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowHeightTmpValueForIdx1 = valueHolderForArrowHeightTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowHeightTmpValueForIdx1) - } else if (valueHolderForArrowHeightTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowHeightTmpValueForIdx2 = valueHolderForArrowHeightTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowHeightTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRadius = value.radius - if (valueHolderForRadius !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRadiusTmpValue = valueHolderForRadius! - if (valueHolderForRadiusTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForRadiusTmpValueForIdx0 = valueHolderForRadiusTmpValue as string - valueSerializer.writeString(valueHolderForRadiusTmpValueForIdx0) - } else if (valueHolderForRadiusTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForRadiusTmpValueForIdx1 = valueHolderForRadiusTmpValue as number - valueSerializer.writeNumber(valueHolderForRadiusTmpValueForIdx1) - } else if (valueHolderForRadiusTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForRadiusTmpValueForIdx2 = valueHolderForRadiusTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShadow = value.shadow - if (valueHolderForShadow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShadowTmpValue = valueHolderForShadow! - if (valueHolderForShadowTmpValue instanceof ShadowOptions) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForShadowTmpValueForIdx0 = valueHolderForShadowTmpValue as ShadowOptions - ShadowOptions_serializer.write(valueSerializer, valueHolderForShadowTmpValueForIdx0) - } else if (valueHolderForShadowTmpValue instanceof ShadowStyle) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForShadowTmpValueForIdx1 = valueHolderForShadowTmpValue as ShadowStyle - valueSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueHolderForShadowTmpValueForIdx1)) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle - if (valueHolderForBackgroundBlurStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFocusable = value.focusable - if (valueHolderForFocusable !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFocusableTmpValue = valueHolderForFocusable! - valueSerializer.writeBoolean(valueHolderForFocusableTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTransition = value.transition - if (valueHolderForTransition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTransitionTmpValue = valueHolderForTransition! - TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillDismiss = value.onWillDismiss - if (valueHolderForOnWillDismiss !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! - if (valueHolderForOnWillDismissTmpValue instanceof boolean) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOnWillDismissTmpValueForIdx0 = valueHolderForOnWillDismissTmpValue as boolean - valueSerializer.writeBoolean(valueHolderForOnWillDismissTmpValueForIdx0) - } else if (valueHolderForOnWillDismissTmpValue instanceof ((value0: DismissPopupAction) => void)) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOnWillDismissTmpValueForIdx1 = valueHolderForOnWillDismissTmpValue as ((value0: DismissPopupAction) => void) - valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableHoverMode = value.enableHoverMode - if (valueHolderForEnableHoverMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! - valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFollowTransformOfTarget = value.followTransformOfTarget - if (valueHolderForFollowTransformOfTarget !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFollowTransformOfTargetTmpValue = valueHolderForFollowTransformOfTarget! - valueSerializer.writeBoolean(valueHolderForFollowTransformOfTargetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForKeyboardAvoidMode = value.keyboardAvoidMode - if (valueHolderForKeyboardAvoidMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForKeyboardAvoidModeTmpValue = (valueHolderForKeyboardAvoidMode as KeyboardAvoidMode) - valueSerializer.writeInt32(TypeChecker.KeyboardAvoidMode_ToNumeric(valueHolderForKeyboardAvoidModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): CustomPopupOptions { - let valueDeserializer : DeserializerBase = buffer - const builderTmpBufBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const builderTmpBufBufCall : KPointer = valueDeserializer.readPointer() - const builderTmpBufBufCallSync : KPointer = valueDeserializer.readPointer() - const builderTmpResult : CustomBuilder = ():void => { - const builderTmpBufBufArgsSerializer : SerializerBase = SerializerBase.hold(); - builderTmpBufBufArgsSerializer.writeInt32(builderTmpBufBufResource.resourceId); - builderTmpBufBufArgsSerializer.writePointer(builderTmpBufBufCall); - builderTmpBufBufArgsSerializer.writePointer(builderTmpBufBufCallSync); - InteropNativeModule._CallCallback(737226752, builderTmpBufBufArgsSerializer.asBuffer(), builderTmpBufBufArgsSerializer.length()); - builderTmpBufBufArgsSerializer.release(); - return; - } - const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let placementTmpBuf : Placement | undefined - if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) - } - const placementTmpResult : Placement | undefined = placementTmpBuf - const popupColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let popupColorTmpBuf : Color | string | Resource | number | undefined - if ((popupColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const popupColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let popupColorTmpBuf_ : Color | string | Resource | number | undefined - if (popupColorTmpBuf_UnionSelector == (0).toChar()) { - popupColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (popupColorTmpBuf_UnionSelector == (1).toChar()) { - popupColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (popupColorTmpBuf_UnionSelector == (2).toChar()) { - popupColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else if (popupColorTmpBuf_UnionSelector == (3).toChar()) { - popupColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else { - throw new Error("One of the branches for popupColorTmpBuf_ has to be chosen through deserialisation.") - } - popupColorTmpBuf = (popupColorTmpBuf_ as Color | string | Resource | number) - } - const popupColorTmpResult : Color | string | Resource | number | undefined = popupColorTmpBuf - const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableArrowTmpBuf : boolean | undefined - if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableArrowTmpBuf = valueDeserializer.readBoolean() - } - const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf - const autoCancelTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let autoCancelTmpBuf : boolean | undefined - if ((autoCancelTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - autoCancelTmpBuf = valueDeserializer.readBoolean() - } - const autoCancelTmpResult : boolean | undefined = autoCancelTmpBuf - const onStateChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onStateChangeTmpBuf : PopupStateChangeCallback | undefined - if ((onStateChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onStateChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onStateChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onStateChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onStateChangeTmpBuf = (event: PopupStateChangeParam):void => { - const onStateChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onStateChangeTmpBuf_BufArgsSerializer.writeInt32(onStateChangeTmpBuf_BufResource.resourceId); - onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCall); - onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCallSync); - PopupStateChangeParam_serializer.write(onStateChangeTmpBuf_BufArgsSerializer, event); - InteropNativeModule._CallCallback(-1444325632, onStateChangeTmpBuf_BufArgsSerializer.asBuffer(), onStateChangeTmpBuf_BufArgsSerializer.length()); - onStateChangeTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onStateChangeTmpResult : PopupStateChangeCallback | undefined = onStateChangeTmpBuf - const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowOffsetTmpBuf : Length | undefined - if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowOffsetTmpBuf_ : string | number | Resource | undefined - if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { - arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") - } - arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) - } - const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf - const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let showInSubWindowTmpBuf : boolean | undefined - if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - showInSubWindowTmpBuf = valueDeserializer.readBoolean() - } - const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf - const maskTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let maskTmpBuf : boolean | PopupMaskType | undefined - if ((maskTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const maskTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let maskTmpBuf_ : boolean | PopupMaskType | undefined - if (maskTmpBuf_UnionSelector == (0).toChar()) { - maskTmpBuf_ = valueDeserializer.readBoolean() - } else if (maskTmpBuf_UnionSelector == (1).toChar()) { - maskTmpBuf_ = PopupMaskType_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for maskTmpBuf_ has to be chosen through deserialisation.") - } - maskTmpBuf = (maskTmpBuf_ as boolean | PopupMaskType) - } - const maskTmpResult : boolean | PopupMaskType | undefined = maskTmpBuf - const targetSpaceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let targetSpaceTmpBuf : Length | undefined - if ((targetSpaceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const targetSpaceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let targetSpaceTmpBuf_ : string | number | Resource | undefined - if (targetSpaceTmpBuf_UnionSelector == (0).toChar()) { - targetSpaceTmpBuf_ = (valueDeserializer.readString() as string) - } else if (targetSpaceTmpBuf_UnionSelector == (1).toChar()) { - targetSpaceTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (targetSpaceTmpBuf_UnionSelector == (2).toChar()) { - targetSpaceTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for targetSpaceTmpBuf_ has to be chosen through deserialisation.") - } - targetSpaceTmpBuf = (targetSpaceTmpBuf_ as string | number | Resource) - } - const targetSpaceTmpResult : Length | undefined = targetSpaceTmpBuf - const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetTmpBuf : Position | undefined - if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - offsetTmpBuf = Position_serializer.read(valueDeserializer) - } - const offsetTmpResult : Position | undefined = offsetTmpBuf - const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let widthTmpBuf : Dimension | undefined - if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let widthTmpBuf_ : string | number | Resource | undefined - if (widthTmpBuf_UnionSelector == (0).toChar()) { - widthTmpBuf_ = (valueDeserializer.readString() as string) - } else if (widthTmpBuf_UnionSelector == (1).toChar()) { - widthTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (widthTmpBuf_UnionSelector == (2).toChar()) { - widthTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") - } - widthTmpBuf = (widthTmpBuf_ as string | number | Resource) - } - const widthTmpResult : Dimension | undefined = widthTmpBuf - const arrowPointPositionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowPointPositionTmpBuf : ArrowPointPosition | undefined - if ((arrowPointPositionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - arrowPointPositionTmpBuf = TypeChecker.ArrowPointPosition_FromNumeric(valueDeserializer.readInt32()) - } - const arrowPointPositionTmpResult : ArrowPointPosition | undefined = arrowPointPositionTmpBuf - const arrowWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowWidthTmpBuf : Dimension | undefined - if ((arrowWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowWidthTmpBuf_ : string | number | Resource | undefined - if (arrowWidthTmpBuf_UnionSelector == (0).toChar()) { - arrowWidthTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowWidthTmpBuf_UnionSelector == (1).toChar()) { - arrowWidthTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowWidthTmpBuf_UnionSelector == (2).toChar()) { - arrowWidthTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowWidthTmpBuf_ has to be chosen through deserialisation.") - } - arrowWidthTmpBuf = (arrowWidthTmpBuf_ as string | number | Resource) - } - const arrowWidthTmpResult : Dimension | undefined = arrowWidthTmpBuf - const arrowHeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowHeightTmpBuf : Dimension | undefined - if ((arrowHeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowHeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowHeightTmpBuf_ : string | number | Resource | undefined - if (arrowHeightTmpBuf_UnionSelector == (0).toChar()) { - arrowHeightTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowHeightTmpBuf_UnionSelector == (1).toChar()) { - arrowHeightTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowHeightTmpBuf_UnionSelector == (2).toChar()) { - arrowHeightTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowHeightTmpBuf_ has to be chosen through deserialisation.") - } - arrowHeightTmpBuf = (arrowHeightTmpBuf_ as string | number | Resource) - } - const arrowHeightTmpResult : Dimension | undefined = arrowHeightTmpBuf - const radiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let radiusTmpBuf : Dimension | undefined - if ((radiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const radiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let radiusTmpBuf_ : string | number | Resource | undefined - if (radiusTmpBuf_UnionSelector == (0).toChar()) { - radiusTmpBuf_ = (valueDeserializer.readString() as string) - } else if (radiusTmpBuf_UnionSelector == (1).toChar()) { - radiusTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (radiusTmpBuf_UnionSelector == (2).toChar()) { - radiusTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for radiusTmpBuf_ has to be chosen through deserialisation.") - } - radiusTmpBuf = (radiusTmpBuf_ as string | number | Resource) - } - const radiusTmpResult : Dimension | undefined = radiusTmpBuf - const shadowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let shadowTmpBuf : ShadowOptions | ShadowStyle | undefined - if ((shadowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const shadowTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let shadowTmpBuf_ : ShadowOptions | ShadowStyle | undefined - if (shadowTmpBuf_UnionSelector == (0).toChar()) { - shadowTmpBuf_ = ShadowOptions_serializer.read(valueDeserializer) - } else if (shadowTmpBuf_UnionSelector == (1).toChar()) { - shadowTmpBuf_ = TypeChecker.ShadowStyle_FromNumeric(valueDeserializer.readInt32()) - } else { - throw new Error("One of the branches for shadowTmpBuf_ has to be chosen through deserialisation.") - } - shadowTmpBuf = (shadowTmpBuf_ as ShadowOptions | ShadowStyle) - } - const shadowTmpResult : ShadowOptions | ShadowStyle | undefined = shadowTmpBuf - const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundBlurStyleTmpBuf : BlurStyle | undefined - if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) - } - const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf - const focusableTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let focusableTmpBuf : boolean | undefined - if ((focusableTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - focusableTmpBuf = valueDeserializer.readBoolean() - } - const focusableTmpResult : boolean | undefined = focusableTmpBuf - const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let transitionTmpBuf : TransitionEffect | undefined - if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) - } - const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf - const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillDismissTmpBuf : boolean | ((value0: DismissPopupAction) => void) | undefined - if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillDismissTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let onWillDismissTmpBuf_ : boolean | ((value0: DismissPopupAction) => void) | undefined - if (onWillDismissTmpBuf_UnionSelector == (0).toChar()) { - onWillDismissTmpBuf_ = valueDeserializer.readBoolean() - } else if (onWillDismissTmpBuf_UnionSelector == (1).toChar()) { - const onWillDismissTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillDismissTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() - const onWillDismissTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() - onWillDismissTmpBuf_ = (value0: DismissPopupAction):void => { - const onWillDismissTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillDismissTmpBuf_BufUBufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufUBufResource.resourceId); - onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCall); - onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCallSync); - DismissPopupAction_serializer.write(onWillDismissTmpBuf_BufUBufArgsSerializer, value0); - InteropNativeModule._CallCallback(-2004166751, onWillDismissTmpBuf_BufUBufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufUBufArgsSerializer.length()); - onWillDismissTmpBuf_BufUBufArgsSerializer.release(); - return; - } - } else { - throw new Error("One of the branches for onWillDismissTmpBuf_ has to be chosen through deserialisation.") - } - onWillDismissTmpBuf = (onWillDismissTmpBuf_ as boolean | ((value0: DismissPopupAction) => void)) - } - const onWillDismissTmpResult : boolean | ((value0: DismissPopupAction) => void) | undefined = onWillDismissTmpBuf - const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableHoverModeTmpBuf : boolean | undefined - if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableHoverModeTmpBuf = valueDeserializer.readBoolean() - } - const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf - const followTransformOfTargetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let followTransformOfTargetTmpBuf : boolean | undefined - if ((followTransformOfTargetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - followTransformOfTargetTmpBuf = valueDeserializer.readBoolean() - } - const followTransformOfTargetTmpResult : boolean | undefined = followTransformOfTargetTmpBuf - const keyboardAvoidModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let keyboardAvoidModeTmpBuf : KeyboardAvoidMode | undefined - if ((keyboardAvoidModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - keyboardAvoidModeTmpBuf = TypeChecker.KeyboardAvoidMode_FromNumeric(valueDeserializer.readInt32()) - } - const keyboardAvoidModeTmpResult : KeyboardAvoidMode | undefined = keyboardAvoidModeTmpBuf - let value : CustomPopupOptions = ({builder: builderTmpResult, placement: placementTmpResult, popupColor: popupColorTmpResult, enableArrow: enableArrowTmpResult, autoCancel: autoCancelTmpResult, onStateChange: onStateChangeTmpResult, arrowOffset: arrowOffsetTmpResult, showInSubWindow: showInSubWindowTmpResult, mask: maskTmpResult, targetSpace: targetSpaceTmpResult, offset: offsetTmpResult, width: widthTmpResult, arrowPointPosition: arrowPointPositionTmpResult, arrowWidth: arrowWidthTmpResult, arrowHeight: arrowHeightTmpResult, radius: radiusTmpResult, shadow: shadowTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, focusable: focusableTmpResult, transition: transitionTmpResult, onWillDismiss: onWillDismissTmpResult, enableHoverMode: enableHoverModeTmpResult, followTransformOfTarget: followTransformOfTargetTmpResult, keyboardAvoidMode: keyboardAvoidModeTmpResult} as CustomPopupOptions) - return value - } -} -export class EventTarget_serializer { - public static write(buffer: SerializerBase, value: EventTarget): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForArea = value.area - Area_serializer.write(valueSerializer, valueHolderForArea) - const valueHolderForId = value.id - if (valueHolderForId !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForIdTmpValue = valueHolderForId! - valueSerializer.writeString(valueHolderForIdTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): EventTarget { - let valueDeserializer : DeserializerBase = buffer - const areaTmpResult : Area = Area_serializer.read(valueDeserializer) - const idTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let idTmpBuf : string | undefined - if ((idTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - idTmpBuf = (valueDeserializer.readString() as string) - } - const idTmpResult : string | undefined = idTmpBuf - let value : EventTarget = ({area: areaTmpResult, id: idTmpResult} as EventTarget) - return value - } -} -export class FocusAxisEvent_serializer { - public static write(buffer: SerializerBase, value: FocusAxisEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): FocusAxisEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return FocusAxisEventInternal.fromPtr(ptr) - } -} -export class GeometryInfo_serializer { - public static write(buffer: SerializerBase, value: GeometryInfo): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForWidth = value.width - valueSerializer.writeNumber(valueHolderForWidth) - const valueHolderForHeight = value.height - valueSerializer.writeNumber(valueHolderForHeight) - const valueHolderForBorderWidth = value.borderWidth - EdgeWidths_serializer.write(valueSerializer, valueHolderForBorderWidth) - const valueHolderForMargin = value.margin - Padding_serializer.write(valueSerializer, valueHolderForMargin) - const valueHolderForPadding = value.padding - Padding_serializer.write(valueSerializer, valueHolderForPadding) - } - public static read(buffer: DeserializerBase): GeometryInfo { - let valueDeserializer : DeserializerBase = buffer - const widthTmpResult : number = (valueDeserializer.readNumber() as number) - const heightTmpResult : number = (valueDeserializer.readNumber() as number) - const borderWidthTmpResult : EdgeWidths = EdgeWidths_serializer.read(valueDeserializer) - const marginTmpResult : Padding = Padding_serializer.read(valueDeserializer) - const paddingTmpResult : Padding = Padding_serializer.read(valueDeserializer) - let value : GeometryInfo = ({width: widthTmpResult, height: heightTmpResult, borderWidth: borderWidthTmpResult, margin: marginTmpResult, padding: paddingTmpResult} as GeometryInfo) - return value - } -} -export class HoverEvent_serializer { - public static write(buffer: SerializerBase, value: HoverEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): HoverEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return HoverEventInternal.fromPtr(ptr) - } -} -export class LayoutChild_serializer { - public static write(buffer: SerializerBase, value: LayoutChild): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): LayoutChild { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return LayoutChildInternal.fromPtr(ptr) - } -} -export class MenuOptions_serializer { - public static write(buffer: SerializerBase, value: MenuOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForOffset = value.offset - if (valueHolderForOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetTmpValue = valueHolderForOffset! - Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPlacement = value.placement - if (valueHolderForPlacement !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) - valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableArrow = value.enableArrow - if (valueHolderForEnableArrow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! - valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowOffset = value.arrowOffset - if (valueHolderForArrowOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! - if (valueHolderForArrowOffsetTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string - valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) - } else if (valueHolderForArrowOffsetTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) - } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPreview = value.preview - if (valueHolderForPreview !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPreviewTmpValue = valueHolderForPreview! - if (valueHolderForPreviewTmpValue instanceof MenuPreviewMode) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPreviewTmpValueForIdx0 = valueHolderForPreviewTmpValue as MenuPreviewMode - valueSerializer.writeInt32(TypeChecker.MenuPreviewMode_ToNumeric(valueHolderForPreviewTmpValueForIdx0)) - } else if (valueHolderForPreviewTmpValue instanceof CustomBuilder) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPreviewTmpValueForIdx1 = valueHolderForPreviewTmpValue as CustomBuilder - valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForPreviewTmpValueForIdx1)) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPreviewBorderRadius = value.previewBorderRadius - if (valueHolderForPreviewBorderRadius !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPreviewBorderRadiusTmpValue = valueHolderForPreviewBorderRadius! - if (valueHolderForPreviewBorderRadiusTmpValue instanceof Length) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx0 = valueHolderForPreviewBorderRadiusTmpValue as Length - if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx0) - } else if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx1) - } else if (valueHolderForPreviewBorderRadiusTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForPreviewBorderRadiusTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForPreviewBorderRadiusTmpValue instanceof BorderRadiuses) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx1 = valueHolderForPreviewBorderRadiusTmpValue as BorderRadiuses - BorderRadiuses_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx1) - } else if (valueHolderForPreviewBorderRadiusTmpValue instanceof LocalizedBorderRadiuses) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForPreviewBorderRadiusTmpValueForIdx2 = valueHolderForPreviewBorderRadiusTmpValue as LocalizedBorderRadiuses - LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForPreviewBorderRadiusTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBorderRadius = value.borderRadius - if (valueHolderForBorderRadius !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBorderRadiusTmpValue = valueHolderForBorderRadius! - if (valueHolderForBorderRadiusTmpValue instanceof Length) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0 = valueHolderForBorderRadiusTmpValue as Length - if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForBorderRadiusTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForBorderRadiusTmpValueForIdx0ForIdx0) - } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForBorderRadiusTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForBorderRadiusTmpValueForIdx0ForIdx1) - } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForBorderRadiusTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForBorderRadiusTmpValue instanceof BorderRadiuses) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx1 = valueHolderForBorderRadiusTmpValue as BorderRadiuses - BorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx1) - } else if (valueHolderForBorderRadiusTmpValue instanceof LocalizedBorderRadiuses) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx2 = valueHolderForBorderRadiusTmpValue as LocalizedBorderRadiuses - LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnAppear = value.onAppear - if (valueHolderForOnAppear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnAppearTmpValue = valueHolderForOnAppear! - valueSerializer.holdAndWriteCallback(valueHolderForOnAppearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnDisappear = value.onDisappear - if (valueHolderForOnDisappear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnDisappearTmpValue = valueHolderForOnDisappear! - valueSerializer.holdAndWriteCallback(valueHolderForOnDisappearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAboutToAppear = value.aboutToAppear - if (valueHolderForAboutToAppear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAboutToAppearTmpValue = valueHolderForAboutToAppear! - valueSerializer.holdAndWriteCallback(valueHolderForAboutToAppearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAboutToDisappear = value.aboutToDisappear - if (valueHolderForAboutToDisappear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAboutToDisappearTmpValue = valueHolderForAboutToDisappear! - valueSerializer.holdAndWriteCallback(valueHolderForAboutToDisappearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForLayoutRegionMargin = value.layoutRegionMargin - if (valueHolderForLayoutRegionMargin !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForLayoutRegionMarginTmpValue = valueHolderForLayoutRegionMargin! - Padding_serializer.write(valueSerializer, valueHolderForLayoutRegionMarginTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPreviewAnimationOptions = value.previewAnimationOptions - if (valueHolderForPreviewAnimationOptions !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPreviewAnimationOptionsTmpValue = valueHolderForPreviewAnimationOptions! - ContextMenuAnimationOptions_serializer.write(valueSerializer, valueHolderForPreviewAnimationOptionsTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundColor = value.backgroundColor - if (valueHolderForBackgroundColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! - if (valueHolderForBackgroundColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) - } else if (valueHolderForBackgroundColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number - valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) - } else if (valueHolderForBackgroundColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string - valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) - } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle - if (valueHolderForBackgroundBlurStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundBlurStyleOptions = value.backgroundBlurStyleOptions - if (valueHolderForBackgroundBlurStyleOptions !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundBlurStyleOptionsTmpValue = valueHolderForBackgroundBlurStyleOptions! - BackgroundBlurStyleOptions_serializer.write(valueSerializer, valueHolderForBackgroundBlurStyleOptionsTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundEffect = value.backgroundEffect - if (valueHolderForBackgroundEffect !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundEffectTmpValue = valueHolderForBackgroundEffect! - BackgroundEffectOptions_serializer.write(valueSerializer, valueHolderForBackgroundEffectTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTransition = value.transition - if (valueHolderForTransition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTransitionTmpValue = valueHolderForTransition! - TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableHoverMode = value.enableHoverMode - if (valueHolderForEnableHoverMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! - valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOutlineColor = value.outlineColor - if (valueHolderForOutlineColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOutlineColorTmpValue = valueHolderForOutlineColor! - if (valueHolderForOutlineColorTmpValue instanceof ResourceColor) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0 = valueHolderForOutlineColorTmpValue as ResourceColor - if (valueHolderForOutlineColorTmpValueForIdx0 instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0ForIdx0 = valueHolderForOutlineColorTmpValueForIdx0 as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForOutlineColorTmpValueForIdx0ForIdx0)) - } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0ForIdx1 = valueHolderForOutlineColorTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForOutlineColorTmpValueForIdx0ForIdx1) - } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0ForIdx2 = valueHolderForOutlineColorTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForOutlineColorTmpValueForIdx0ForIdx2) - } else if (valueHolderForOutlineColorTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForOutlineColorTmpValueForIdx0ForIdx3 = valueHolderForOutlineColorTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForOutlineColorTmpValueForIdx0ForIdx3) - } - } else if (valueHolderForOutlineColorTmpValue instanceof EdgeColors) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutlineColorTmpValueForIdx1 = valueHolderForOutlineColorTmpValue as EdgeColors - EdgeColors_serializer.write(valueSerializer, valueHolderForOutlineColorTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOutlineWidth = value.outlineWidth - if (valueHolderForOutlineWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOutlineWidthTmpValue = valueHolderForOutlineWidth! - if (valueHolderForOutlineWidthTmpValue instanceof Dimension) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx0 = valueHolderForOutlineWidthTmpValue as Dimension - if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx0ForIdx0 = valueHolderForOutlineWidthTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForOutlineWidthTmpValueForIdx0ForIdx0) - } else if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx0ForIdx1 = valueHolderForOutlineWidthTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForOutlineWidthTmpValueForIdx0ForIdx1) - } else if (valueHolderForOutlineWidthTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx0ForIdx2 = valueHolderForOutlineWidthTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForOutlineWidthTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForOutlineWidthTmpValue instanceof EdgeOutlineWidths) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOutlineWidthTmpValueForIdx1 = valueHolderForOutlineWidthTmpValue as EdgeOutlineWidths - EdgeOutlineWidths_serializer.write(valueSerializer, valueHolderForOutlineWidthTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForHapticFeedbackMode = value.hapticFeedbackMode - if (valueHolderForHapticFeedbackMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHapticFeedbackModeTmpValue = (valueHolderForHapticFeedbackMode as HapticFeedbackMode) - valueSerializer.writeInt32(TypeChecker.HapticFeedbackMode_ToNumeric(valueHolderForHapticFeedbackModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTitle = value.title - if (valueHolderForTitle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTitleTmpValue = valueHolderForTitle! - if (valueHolderForTitleTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTitleTmpValueForIdx0 = valueHolderForTitleTmpValue as string - valueSerializer.writeString(valueHolderForTitleTmpValueForIdx0) - } else if (valueHolderForTitleTmpValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTitleTmpValueForIdx1 = valueHolderForTitleTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForTitleTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShowInSubWindow = value.showInSubWindow - if (valueHolderForShowInSubWindow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! - valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): MenuOptions { - let valueDeserializer : DeserializerBase = buffer - const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetTmpBuf : Position | undefined - if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - offsetTmpBuf = Position_serializer.read(valueDeserializer) - } - const offsetTmpResult : Position | undefined = offsetTmpBuf - const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let placementTmpBuf : Placement | undefined - if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) - } - const placementTmpResult : Placement | undefined = placementTmpBuf - const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableArrowTmpBuf : boolean | undefined - if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableArrowTmpBuf = valueDeserializer.readBoolean() - } - const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf - const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowOffsetTmpBuf : Length | undefined - if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowOffsetTmpBuf_ : string | number | Resource | undefined - if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { - arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") - } - arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) - } - const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf - const previewTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let previewTmpBuf : MenuPreviewMode | CustomBuilder | undefined - if ((previewTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const previewTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let previewTmpBuf_ : MenuPreviewMode | CustomBuilder | undefined - if (previewTmpBuf_UnionSelector == (0).toChar()) { - previewTmpBuf_ = TypeChecker.MenuPreviewMode_FromNumeric(valueDeserializer.readInt32()) - } else if (previewTmpBuf_UnionSelector == (1).toChar()) { - const previewTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const previewTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() - const previewTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() - previewTmpBuf_ = ():void => { - const previewTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); - previewTmpBuf_BufUBufArgsSerializer.writeInt32(previewTmpBuf_BufUBufResource.resourceId); - previewTmpBuf_BufUBufArgsSerializer.writePointer(previewTmpBuf_BufUBufCall); - previewTmpBuf_BufUBufArgsSerializer.writePointer(previewTmpBuf_BufUBufCallSync); - InteropNativeModule._CallCallback(737226752, previewTmpBuf_BufUBufArgsSerializer.asBuffer(), previewTmpBuf_BufUBufArgsSerializer.length()); - previewTmpBuf_BufUBufArgsSerializer.release(); - return; - } - } else { - throw new Error("One of the branches for previewTmpBuf_ has to be chosen through deserialisation.") - } - previewTmpBuf = (previewTmpBuf_ as MenuPreviewMode | CustomBuilder) - } - const previewTmpResult : MenuPreviewMode | CustomBuilder | undefined = previewTmpBuf - const previewBorderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let previewBorderRadiusTmpBuf : BorderRadiusType | undefined - if ((previewBorderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const previewBorderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let previewBorderRadiusTmpBuf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined - if (previewBorderRadiusTmpBuf_UnionSelector == (0).toChar()) { - const previewBorderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let previewBorderRadiusTmpBuf_BufU : string | number | Resource | undefined - if (previewBorderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { - previewBorderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (previewBorderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { - previewBorderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (previewBorderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { - previewBorderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for previewBorderRadiusTmpBuf_BufU has to be chosen through deserialisation.") - } - previewBorderRadiusTmpBuf_ = (previewBorderRadiusTmpBuf_BufU as string | number | Resource) - } else if (previewBorderRadiusTmpBuf_UnionSelector == (1).toChar()) { - previewBorderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) - } else if (previewBorderRadiusTmpBuf_UnionSelector == (2).toChar()) { - previewBorderRadiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for previewBorderRadiusTmpBuf_ has to be chosen through deserialisation.") - } - previewBorderRadiusTmpBuf = (previewBorderRadiusTmpBuf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) - } - const previewBorderRadiusTmpResult : BorderRadiusType | undefined = previewBorderRadiusTmpBuf - const borderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let borderRadiusTmpBuf : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined - if ((borderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const borderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let borderRadiusTmpBuf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined - if (borderRadiusTmpBuf_UnionSelector == (0).toChar()) { - const borderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let borderRadiusTmpBuf_BufU : string | number | Resource | undefined - if (borderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { - borderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (borderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { - borderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (borderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { - borderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderRadiusTmpBuf_BufU has to be chosen through deserialisation.") - } - borderRadiusTmpBuf_ = (borderRadiusTmpBuf_BufU as string | number | Resource) - } else if (borderRadiusTmpBuf_UnionSelector == (1).toChar()) { - borderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) - } else if (borderRadiusTmpBuf_UnionSelector == (2).toChar()) { - borderRadiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderRadiusTmpBuf_ has to be chosen through deserialisation.") - } - borderRadiusTmpBuf = (borderRadiusTmpBuf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) - } - const borderRadiusTmpResult : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined = borderRadiusTmpBuf - const onAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onAppearTmpBuf : (() => void) | undefined - if ((onAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onAppearTmpBuf = ():void => { - const onAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onAppearTmpBuf_BufArgsSerializer.writeInt32(onAppearTmpBuf_BufResource.resourceId); - onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCall); - onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onAppearTmpBuf_BufArgsSerializer.asBuffer(), onAppearTmpBuf_BufArgsSerializer.length()); - onAppearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onAppearTmpResult : (() => void) | undefined = onAppearTmpBuf - const onDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onDisappearTmpBuf : (() => void) | undefined - if ((onDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onDisappearTmpBuf = ():void => { - const onDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onDisappearTmpBuf_BufArgsSerializer.writeInt32(onDisappearTmpBuf_BufResource.resourceId); - onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCall); - onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onDisappearTmpBuf_BufArgsSerializer.asBuffer(), onDisappearTmpBuf_BufArgsSerializer.length()); - onDisappearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onDisappearTmpResult : (() => void) | undefined = onDisappearTmpBuf - const aboutToAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let aboutToAppearTmpBuf : (() => void) | undefined - if ((aboutToAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const aboutToAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const aboutToAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const aboutToAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - aboutToAppearTmpBuf = ():void => { - const aboutToAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - aboutToAppearTmpBuf_BufArgsSerializer.writeInt32(aboutToAppearTmpBuf_BufResource.resourceId); - aboutToAppearTmpBuf_BufArgsSerializer.writePointer(aboutToAppearTmpBuf_BufCall); - aboutToAppearTmpBuf_BufArgsSerializer.writePointer(aboutToAppearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, aboutToAppearTmpBuf_BufArgsSerializer.asBuffer(), aboutToAppearTmpBuf_BufArgsSerializer.length()); - aboutToAppearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const aboutToAppearTmpResult : (() => void) | undefined = aboutToAppearTmpBuf - const aboutToDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let aboutToDisappearTmpBuf : (() => void) | undefined - if ((aboutToDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const aboutToDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const aboutToDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const aboutToDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - aboutToDisappearTmpBuf = ():void => { - const aboutToDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - aboutToDisappearTmpBuf_BufArgsSerializer.writeInt32(aboutToDisappearTmpBuf_BufResource.resourceId); - aboutToDisappearTmpBuf_BufArgsSerializer.writePointer(aboutToDisappearTmpBuf_BufCall); - aboutToDisappearTmpBuf_BufArgsSerializer.writePointer(aboutToDisappearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, aboutToDisappearTmpBuf_BufArgsSerializer.asBuffer(), aboutToDisappearTmpBuf_BufArgsSerializer.length()); - aboutToDisappearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const aboutToDisappearTmpResult : (() => void) | undefined = aboutToDisappearTmpBuf - const layoutRegionMarginTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let layoutRegionMarginTmpBuf : Padding | undefined - if ((layoutRegionMarginTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - layoutRegionMarginTmpBuf = Padding_serializer.read(valueDeserializer) - } - const layoutRegionMarginTmpResult : Padding | undefined = layoutRegionMarginTmpBuf - const previewAnimationOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let previewAnimationOptionsTmpBuf : ContextMenuAnimationOptions | undefined - if ((previewAnimationOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - previewAnimationOptionsTmpBuf = ContextMenuAnimationOptions_serializer.read(valueDeserializer) - } - const previewAnimationOptionsTmpResult : ContextMenuAnimationOptions | undefined = previewAnimationOptionsTmpBuf - const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundColorTmpBuf : ResourceColor | undefined - if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined - if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { - backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { - backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") - } - backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) - } - const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf - const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundBlurStyleTmpBuf : BlurStyle | undefined - if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) - } - const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf - const backgroundBlurStyleOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundBlurStyleOptionsTmpBuf : BackgroundBlurStyleOptions | undefined - if ((backgroundBlurStyleOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backgroundBlurStyleOptionsTmpBuf = BackgroundBlurStyleOptions_serializer.read(valueDeserializer) - } - const backgroundBlurStyleOptionsTmpResult : BackgroundBlurStyleOptions | undefined = backgroundBlurStyleOptionsTmpBuf - const backgroundEffectTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundEffectTmpBuf : BackgroundEffectOptions | undefined - if ((backgroundEffectTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backgroundEffectTmpBuf = BackgroundEffectOptions_serializer.read(valueDeserializer) - } - const backgroundEffectTmpResult : BackgroundEffectOptions | undefined = backgroundEffectTmpBuf - const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let transitionTmpBuf : TransitionEffect | undefined - if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) - } - const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf - const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableHoverModeTmpBuf : boolean | undefined - if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableHoverModeTmpBuf = valueDeserializer.readBoolean() - } - const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf - const outlineColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let outlineColorTmpBuf : ResourceColor | EdgeColors | undefined - if ((outlineColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const outlineColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let outlineColorTmpBuf_ : ResourceColor | EdgeColors | undefined - if (outlineColorTmpBuf_UnionSelector == (0).toChar()) { - const outlineColorTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let outlineColorTmpBuf_BufU : Color | number | string | Resource | undefined - if (outlineColorTmpBuf_BufUUnionSelector == (0).toChar()) { - outlineColorTmpBuf_BufU = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (outlineColorTmpBuf_BufUUnionSelector == (1).toChar()) { - outlineColorTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (outlineColorTmpBuf_BufUUnionSelector == (2).toChar()) { - outlineColorTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (outlineColorTmpBuf_BufUUnionSelector == (3).toChar()) { - outlineColorTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outlineColorTmpBuf_BufU has to be chosen through deserialisation.") - } - outlineColorTmpBuf_ = (outlineColorTmpBuf_BufU as Color | number | string | Resource) - } else if (outlineColorTmpBuf_UnionSelector == (1).toChar()) { - outlineColorTmpBuf_ = EdgeColors_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outlineColorTmpBuf_ has to be chosen through deserialisation.") - } - outlineColorTmpBuf = (outlineColorTmpBuf_ as ResourceColor | EdgeColors) - } - const outlineColorTmpResult : ResourceColor | EdgeColors | undefined = outlineColorTmpBuf - const outlineWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let outlineWidthTmpBuf : Dimension | EdgeOutlineWidths | undefined - if ((outlineWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const outlineWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let outlineWidthTmpBuf_ : Dimension | EdgeOutlineWidths | undefined - if (outlineWidthTmpBuf_UnionSelector == (0).toChar()) { - const outlineWidthTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let outlineWidthTmpBuf_BufU : string | number | Resource | undefined - if (outlineWidthTmpBuf_BufUUnionSelector == (0).toChar()) { - outlineWidthTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (outlineWidthTmpBuf_BufUUnionSelector == (1).toChar()) { - outlineWidthTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (outlineWidthTmpBuf_BufUUnionSelector == (2).toChar()) { - outlineWidthTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outlineWidthTmpBuf_BufU has to be chosen through deserialisation.") - } - outlineWidthTmpBuf_ = (outlineWidthTmpBuf_BufU as string | number | Resource) - } else if (outlineWidthTmpBuf_UnionSelector == (1).toChar()) { - outlineWidthTmpBuf_ = EdgeOutlineWidths_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for outlineWidthTmpBuf_ has to be chosen through deserialisation.") - } - outlineWidthTmpBuf = (outlineWidthTmpBuf_ as Dimension | EdgeOutlineWidths) - } - const outlineWidthTmpResult : Dimension | EdgeOutlineWidths | undefined = outlineWidthTmpBuf - const hapticFeedbackModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let hapticFeedbackModeTmpBuf : HapticFeedbackMode | undefined - if ((hapticFeedbackModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - hapticFeedbackModeTmpBuf = TypeChecker.HapticFeedbackMode_FromNumeric(valueDeserializer.readInt32()) - } - const hapticFeedbackModeTmpResult : HapticFeedbackMode | undefined = hapticFeedbackModeTmpBuf - const titleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let titleTmpBuf : ResourceStr | undefined - if ((titleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const titleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let titleTmpBuf_ : string | Resource | undefined - if (titleTmpBuf_UnionSelector == (0).toChar()) { - titleTmpBuf_ = (valueDeserializer.readString() as string) - } else if (titleTmpBuf_UnionSelector == (1).toChar()) { - titleTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for titleTmpBuf_ has to be chosen through deserialisation.") - } - titleTmpBuf = (titleTmpBuf_ as string | Resource) - } - const titleTmpResult : ResourceStr | undefined = titleTmpBuf - const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let showInSubWindowTmpBuf : boolean | undefined - if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - showInSubWindowTmpBuf = valueDeserializer.readBoolean() - } - const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf - let value : MenuOptions = ({offset: offsetTmpResult, placement: placementTmpResult, enableArrow: enableArrowTmpResult, arrowOffset: arrowOffsetTmpResult, preview: previewTmpResult, previewBorderRadius: previewBorderRadiusTmpResult, borderRadius: borderRadiusTmpResult, onAppear: onAppearTmpResult, onDisappear: onDisappearTmpResult, aboutToAppear: aboutToAppearTmpResult, aboutToDisappear: aboutToDisappearTmpResult, layoutRegionMargin: layoutRegionMarginTmpResult, previewAnimationOptions: previewAnimationOptionsTmpResult, backgroundColor: backgroundColorTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, backgroundBlurStyleOptions: backgroundBlurStyleOptionsTmpResult, backgroundEffect: backgroundEffectTmpResult, transition: transitionTmpResult, enableHoverMode: enableHoverModeTmpResult, outlineColor: outlineColorTmpResult, outlineWidth: outlineWidthTmpResult, hapticFeedbackMode: hapticFeedbackModeTmpResult, title: titleTmpResult, showInSubWindow: showInSubWindowTmpResult} as MenuOptions) - return value - } -} -export class MouseEvent_serializer { - public static write(buffer: SerializerBase, value: MouseEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): MouseEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return MouseEventInternal.fromPtr(ptr) - } -} -export class PickerDialogButtonStyle_serializer { - public static write(buffer: SerializerBase, value: PickerDialogButtonStyle): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForType = value.type - if (valueHolderForType !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTypeTmpValue = (valueHolderForType as ButtonType) - valueSerializer.writeInt32(TypeChecker.ButtonType_ToNumeric(valueHolderForTypeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForStyle = value.style - if (valueHolderForStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForStyleTmpValue = (valueHolderForStyle as ButtonStyleMode) - valueSerializer.writeInt32(TypeChecker.ButtonStyleMode_ToNumeric(valueHolderForStyleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRole = value.role - if (valueHolderForRole !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRoleTmpValue = (valueHolderForRole as ButtonRole) - valueSerializer.writeInt32(TypeChecker.ButtonRole_ToNumeric(valueHolderForRoleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFontSize = value.fontSize - if (valueHolderForFontSize !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFontSizeTmpValue = valueHolderForFontSize! - if (valueHolderForFontSizeTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForFontSizeTmpValueForIdx0 = valueHolderForFontSizeTmpValue as string - valueSerializer.writeString(valueHolderForFontSizeTmpValueForIdx0) - } else if (valueHolderForFontSizeTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForFontSizeTmpValueForIdx1 = valueHolderForFontSizeTmpValue as number - valueSerializer.writeNumber(valueHolderForFontSizeTmpValueForIdx1) - } else if (valueHolderForFontSizeTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForFontSizeTmpValueForIdx2 = valueHolderForFontSizeTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForFontSizeTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFontColor = value.fontColor - if (valueHolderForFontColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFontColorTmpValue = valueHolderForFontColor! - if (valueHolderForFontColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForFontColorTmpValueForIdx0 = valueHolderForFontColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForFontColorTmpValueForIdx0)) - } else if (valueHolderForFontColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForFontColorTmpValueForIdx1 = valueHolderForFontColorTmpValue as number - valueSerializer.writeNumber(valueHolderForFontColorTmpValueForIdx1) - } else if (valueHolderForFontColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForFontColorTmpValueForIdx2 = valueHolderForFontColorTmpValue as string - valueSerializer.writeString(valueHolderForFontColorTmpValueForIdx2) - } else if (valueHolderForFontColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForFontColorTmpValueForIdx3 = valueHolderForFontColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForFontColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFontWeight = value.fontWeight - if (valueHolderForFontWeight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFontWeightTmpValue = valueHolderForFontWeight! - if (valueHolderForFontWeightTmpValue instanceof FontWeight) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForFontWeightTmpValueForIdx0 = valueHolderForFontWeightTmpValue as FontWeight - valueSerializer.writeInt32(TypeChecker.FontWeight_ToNumeric(valueHolderForFontWeightTmpValueForIdx0)) - } else if (valueHolderForFontWeightTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForFontWeightTmpValueForIdx1 = valueHolderForFontWeightTmpValue as number - valueSerializer.writeNumber(valueHolderForFontWeightTmpValueForIdx1) - } else if (valueHolderForFontWeightTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForFontWeightTmpValueForIdx2 = valueHolderForFontWeightTmpValue as string - valueSerializer.writeString(valueHolderForFontWeightTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFontStyle = value.fontStyle - if (valueHolderForFontStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFontStyleTmpValue = (valueHolderForFontStyle as FontStyle) - valueSerializer.writeInt32(TypeChecker.FontStyle_ToNumeric(valueHolderForFontStyleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFontFamily = value.fontFamily - if (valueHolderForFontFamily !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFontFamilyTmpValue = valueHolderForFontFamily! - if (valueHolderForFontFamilyTmpValue instanceof Resource) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForFontFamilyTmpValueForIdx0 = valueHolderForFontFamilyTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForFontFamilyTmpValueForIdx0) - } else if (valueHolderForFontFamilyTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForFontFamilyTmpValueForIdx1 = valueHolderForFontFamilyTmpValue as string - valueSerializer.writeString(valueHolderForFontFamilyTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundColor = value.backgroundColor - if (valueHolderForBackgroundColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! - if (valueHolderForBackgroundColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) - } else if (valueHolderForBackgroundColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number - valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) - } else if (valueHolderForBackgroundColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string - valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) - } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBorderRadius = value.borderRadius - if (valueHolderForBorderRadius !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBorderRadiusTmpValue = valueHolderForBorderRadius! - if (valueHolderForBorderRadiusTmpValue instanceof Length) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0 = valueHolderForBorderRadiusTmpValue as Length - if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0ForIdx0 = valueHolderForBorderRadiusTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForBorderRadiusTmpValueForIdx0ForIdx0) - } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0ForIdx1 = valueHolderForBorderRadiusTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForBorderRadiusTmpValueForIdx0ForIdx1) - } else if (valueHolderForBorderRadiusTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx0ForIdx2 = valueHolderForBorderRadiusTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForBorderRadiusTmpValue instanceof BorderRadiuses) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderRadiusTmpValueForIdx1 = valueHolderForBorderRadiusTmpValue as BorderRadiuses - BorderRadiuses_serializer.write(valueSerializer, valueHolderForBorderRadiusTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPrimary = value.primary - if (valueHolderForPrimary !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPrimaryTmpValue = valueHolderForPrimary! - valueSerializer.writeBoolean(valueHolderForPrimaryTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): PickerDialogButtonStyle { - let valueDeserializer : DeserializerBase = buffer - const typeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let typeTmpBuf : ButtonType | undefined - if ((typeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - typeTmpBuf = TypeChecker.ButtonType_FromNumeric(valueDeserializer.readInt32()) - } - const typeTmpResult : ButtonType | undefined = typeTmpBuf - const styleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let styleTmpBuf : ButtonStyleMode | undefined - if ((styleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - styleTmpBuf = TypeChecker.ButtonStyleMode_FromNumeric(valueDeserializer.readInt32()) - } - const styleTmpResult : ButtonStyleMode | undefined = styleTmpBuf - const roleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let roleTmpBuf : ButtonRole | undefined - if ((roleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - roleTmpBuf = TypeChecker.ButtonRole_FromNumeric(valueDeserializer.readInt32()) - } - const roleTmpResult : ButtonRole | undefined = roleTmpBuf - const fontSizeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fontSizeTmpBuf : Length | undefined - if ((fontSizeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const fontSizeTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let fontSizeTmpBuf_ : string | number | Resource | undefined - if (fontSizeTmpBuf_UnionSelector == (0).toChar()) { - fontSizeTmpBuf_ = (valueDeserializer.readString() as string) - } else if (fontSizeTmpBuf_UnionSelector == (1).toChar()) { - fontSizeTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (fontSizeTmpBuf_UnionSelector == (2).toChar()) { - fontSizeTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for fontSizeTmpBuf_ has to be chosen through deserialisation.") - } - fontSizeTmpBuf = (fontSizeTmpBuf_ as string | number | Resource) - } - const fontSizeTmpResult : Length | undefined = fontSizeTmpBuf - const fontColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fontColorTmpBuf : ResourceColor | undefined - if ((fontColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const fontColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let fontColorTmpBuf_ : Color | number | string | Resource | undefined - if (fontColorTmpBuf_UnionSelector == (0).toChar()) { - fontColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (fontColorTmpBuf_UnionSelector == (1).toChar()) { - fontColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (fontColorTmpBuf_UnionSelector == (2).toChar()) { - fontColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (fontColorTmpBuf_UnionSelector == (3).toChar()) { - fontColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for fontColorTmpBuf_ has to be chosen through deserialisation.") - } - fontColorTmpBuf = (fontColorTmpBuf_ as Color | number | string | Resource) - } - const fontColorTmpResult : ResourceColor | undefined = fontColorTmpBuf - const fontWeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fontWeightTmpBuf : FontWeight | number | string | undefined - if ((fontWeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const fontWeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let fontWeightTmpBuf_ : FontWeight | number | string | undefined - if (fontWeightTmpBuf_UnionSelector == (0).toChar()) { - fontWeightTmpBuf_ = TypeChecker.FontWeight_FromNumeric(valueDeserializer.readInt32()) - } else if (fontWeightTmpBuf_UnionSelector == (1).toChar()) { - fontWeightTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (fontWeightTmpBuf_UnionSelector == (2).toChar()) { - fontWeightTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for fontWeightTmpBuf_ has to be chosen through deserialisation.") - } - fontWeightTmpBuf = (fontWeightTmpBuf_ as FontWeight | number | string) - } - const fontWeightTmpResult : FontWeight | number | string | undefined = fontWeightTmpBuf - const fontStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fontStyleTmpBuf : FontStyle | undefined - if ((fontStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - fontStyleTmpBuf = TypeChecker.FontStyle_FromNumeric(valueDeserializer.readInt32()) - } - const fontStyleTmpResult : FontStyle | undefined = fontStyleTmpBuf - const fontFamilyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fontFamilyTmpBuf : Resource | string | undefined - if ((fontFamilyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const fontFamilyTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let fontFamilyTmpBuf_ : Resource | string | undefined - if (fontFamilyTmpBuf_UnionSelector == (0).toChar()) { - fontFamilyTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else if (fontFamilyTmpBuf_UnionSelector == (1).toChar()) { - fontFamilyTmpBuf_ = (valueDeserializer.readString() as string) - } else { - throw new Error("One of the branches for fontFamilyTmpBuf_ has to be chosen through deserialisation.") - } - fontFamilyTmpBuf = (fontFamilyTmpBuf_ as Resource | string) - } - const fontFamilyTmpResult : Resource | string | undefined = fontFamilyTmpBuf - const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundColorTmpBuf : ResourceColor | undefined - if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined - if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { - backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { - backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") - } - backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) - } - const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf - const borderRadiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let borderRadiusTmpBuf : Length | BorderRadiuses | undefined - if ((borderRadiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const borderRadiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let borderRadiusTmpBuf_ : Length | BorderRadiuses | undefined - if (borderRadiusTmpBuf_UnionSelector == (0).toChar()) { - const borderRadiusTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let borderRadiusTmpBuf_BufU : string | number | Resource | undefined - if (borderRadiusTmpBuf_BufUUnionSelector == (0).toChar()) { - borderRadiusTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (borderRadiusTmpBuf_BufUUnionSelector == (1).toChar()) { - borderRadiusTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (borderRadiusTmpBuf_BufUUnionSelector == (2).toChar()) { - borderRadiusTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderRadiusTmpBuf_BufU has to be chosen through deserialisation.") - } - borderRadiusTmpBuf_ = (borderRadiusTmpBuf_BufU as string | number | Resource) - } else if (borderRadiusTmpBuf_UnionSelector == (1).toChar()) { - borderRadiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderRadiusTmpBuf_ has to be chosen through deserialisation.") - } - borderRadiusTmpBuf = (borderRadiusTmpBuf_ as Length | BorderRadiuses) - } - const borderRadiusTmpResult : Length | BorderRadiuses | undefined = borderRadiusTmpBuf - const primaryTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let primaryTmpBuf : boolean | undefined - if ((primaryTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - primaryTmpBuf = valueDeserializer.readBoolean() - } - const primaryTmpResult : boolean | undefined = primaryTmpBuf - let value : PickerDialogButtonStyle = ({type: typeTmpResult, style: styleTmpResult, role: roleTmpResult, fontSize: fontSizeTmpResult, fontColor: fontColorTmpResult, fontWeight: fontWeightTmpResult, fontStyle: fontStyleTmpResult, fontFamily: fontFamilyTmpResult, backgroundColor: backgroundColorTmpResult, borderRadius: borderRadiusTmpResult, primary: primaryTmpResult} as PickerDialogButtonStyle) - return value - } -} -export class PickerTextStyle_serializer { - public static write(buffer: SerializerBase, value: PickerTextStyle): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForColor = value.color - if (valueHolderForColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForColorTmpValue = valueHolderForColor! - if (valueHolderForColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForColorTmpValueForIdx0 = valueHolderForColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForColorTmpValueForIdx0)) - } else if (valueHolderForColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForColorTmpValueForIdx1 = valueHolderForColorTmpValue as number - valueSerializer.writeNumber(valueHolderForColorTmpValueForIdx1) - } else if (valueHolderForColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForColorTmpValueForIdx2 = valueHolderForColorTmpValue as string - valueSerializer.writeString(valueHolderForColorTmpValueForIdx2) - } else if (valueHolderForColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForColorTmpValueForIdx3 = valueHolderForColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFont = value.font - if (valueHolderForFont !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFontTmpValue = valueHolderForFont! - Font_serializer.write(valueSerializer, valueHolderForFontTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): PickerTextStyle { - let valueDeserializer : DeserializerBase = buffer - const colorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let colorTmpBuf : ResourceColor | undefined - if ((colorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const colorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let colorTmpBuf_ : Color | number | string | Resource | undefined - if (colorTmpBuf_UnionSelector == (0).toChar()) { - colorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (colorTmpBuf_UnionSelector == (1).toChar()) { - colorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (colorTmpBuf_UnionSelector == (2).toChar()) { - colorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (colorTmpBuf_UnionSelector == (3).toChar()) { - colorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for colorTmpBuf_ has to be chosen through deserialisation.") - } - colorTmpBuf = (colorTmpBuf_ as Color | number | string | Resource) - } - const colorTmpResult : ResourceColor | undefined = colorTmpBuf - const fontTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fontTmpBuf : Font | undefined - if ((fontTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - fontTmpBuf = Font_serializer.read(valueDeserializer) - } - const fontTmpResult : Font | undefined = fontTmpBuf - let value : PickerTextStyle = ({color: colorTmpResult, font: fontTmpResult} as PickerTextStyle) - return value - } -} -export class PopupCommonOptions_serializer { - public static write(buffer: SerializerBase, value: PopupCommonOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForPlacement = value.placement - if (valueHolderForPlacement !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) - valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPopupColor = value.popupColor - if (valueHolderForPopupColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPopupColorTmpValue = valueHolderForPopupColor! - if (valueHolderForPopupColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPopupColorTmpValueForIdx0 = valueHolderForPopupColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForPopupColorTmpValueForIdx0)) - } else if (valueHolderForPopupColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPopupColorTmpValueForIdx1 = valueHolderForPopupColorTmpValue as number - valueSerializer.writeNumber(valueHolderForPopupColorTmpValueForIdx1) - } else if (valueHolderForPopupColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForPopupColorTmpValueForIdx2 = valueHolderForPopupColorTmpValue as string - valueSerializer.writeString(valueHolderForPopupColorTmpValueForIdx2) - } else if (valueHolderForPopupColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForPopupColorTmpValueForIdx3 = valueHolderForPopupColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForPopupColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableArrow = value.enableArrow - if (valueHolderForEnableArrow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! - valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAutoCancel = value.autoCancel - if (valueHolderForAutoCancel !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAutoCancelTmpValue = valueHolderForAutoCancel! - valueSerializer.writeBoolean(valueHolderForAutoCancelTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnStateChange = value.onStateChange - if (valueHolderForOnStateChange !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnStateChangeTmpValue = valueHolderForOnStateChange! - valueSerializer.holdAndWriteCallback(valueHolderForOnStateChangeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowOffset = value.arrowOffset - if (valueHolderForArrowOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! - if (valueHolderForArrowOffsetTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string - valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) - } else if (valueHolderForArrowOffsetTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) - } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShowInSubWindow = value.showInSubWindow - if (valueHolderForShowInSubWindow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! - valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForMask = value.mask - if (valueHolderForMask !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForMaskTmpValue = valueHolderForMask! - if (valueHolderForMaskTmpValue instanceof boolean) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForMaskTmpValueForIdx0 = valueHolderForMaskTmpValue as boolean - valueSerializer.writeBoolean(valueHolderForMaskTmpValueForIdx0) - } else if (valueHolderForMaskTmpValue instanceof PopupMaskType) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForMaskTmpValueForIdx1 = valueHolderForMaskTmpValue as PopupMaskType - PopupMaskType_serializer.write(valueSerializer, valueHolderForMaskTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTargetSpace = value.targetSpace - if (valueHolderForTargetSpace !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTargetSpaceTmpValue = valueHolderForTargetSpace! - if (valueHolderForTargetSpaceTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTargetSpaceTmpValueForIdx0 = valueHolderForTargetSpaceTmpValue as string - valueSerializer.writeString(valueHolderForTargetSpaceTmpValueForIdx0) - } else if (valueHolderForTargetSpaceTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTargetSpaceTmpValueForIdx1 = valueHolderForTargetSpaceTmpValue as number - valueSerializer.writeNumber(valueHolderForTargetSpaceTmpValueForIdx1) - } else if (valueHolderForTargetSpaceTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForTargetSpaceTmpValueForIdx2 = valueHolderForTargetSpaceTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForTargetSpaceTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOffset = value.offset - if (valueHolderForOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetTmpValue = valueHolderForOffset! - Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForWidth = value.width - if (valueHolderForWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForWidthTmpValue = valueHolderForWidth! - if (valueHolderForWidthTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string - valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) - } else if (valueHolderForWidthTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number - valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) - } else if (valueHolderForWidthTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowPointPosition = value.arrowPointPosition - if (valueHolderForArrowPointPosition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowPointPositionTmpValue = (valueHolderForArrowPointPosition as ArrowPointPosition) - valueSerializer.writeInt32(TypeChecker.ArrowPointPosition_ToNumeric(valueHolderForArrowPointPositionTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowWidth = value.arrowWidth - if (valueHolderForArrowWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowWidthTmpValue = valueHolderForArrowWidth! - if (valueHolderForArrowWidthTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowWidthTmpValueForIdx0 = valueHolderForArrowWidthTmpValue as string - valueSerializer.writeString(valueHolderForArrowWidthTmpValueForIdx0) - } else if (valueHolderForArrowWidthTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowWidthTmpValueForIdx1 = valueHolderForArrowWidthTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowWidthTmpValueForIdx1) - } else if (valueHolderForArrowWidthTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowWidthTmpValueForIdx2 = valueHolderForArrowWidthTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowHeight = value.arrowHeight - if (valueHolderForArrowHeight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowHeightTmpValue = valueHolderForArrowHeight! - if (valueHolderForArrowHeightTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowHeightTmpValueForIdx0 = valueHolderForArrowHeightTmpValue as string - valueSerializer.writeString(valueHolderForArrowHeightTmpValueForIdx0) - } else if (valueHolderForArrowHeightTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowHeightTmpValueForIdx1 = valueHolderForArrowHeightTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowHeightTmpValueForIdx1) - } else if (valueHolderForArrowHeightTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowHeightTmpValueForIdx2 = valueHolderForArrowHeightTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowHeightTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRadius = value.radius - if (valueHolderForRadius !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRadiusTmpValue = valueHolderForRadius! - if (valueHolderForRadiusTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForRadiusTmpValueForIdx0 = valueHolderForRadiusTmpValue as string - valueSerializer.writeString(valueHolderForRadiusTmpValueForIdx0) - } else if (valueHolderForRadiusTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForRadiusTmpValueForIdx1 = valueHolderForRadiusTmpValue as number - valueSerializer.writeNumber(valueHolderForRadiusTmpValueForIdx1) - } else if (valueHolderForRadiusTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForRadiusTmpValueForIdx2 = valueHolderForRadiusTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShadow = value.shadow - if (valueHolderForShadow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShadowTmpValue = valueHolderForShadow! - if (valueHolderForShadowTmpValue instanceof ShadowOptions) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForShadowTmpValueForIdx0 = valueHolderForShadowTmpValue as ShadowOptions - ShadowOptions_serializer.write(valueSerializer, valueHolderForShadowTmpValueForIdx0) - } else if (valueHolderForShadowTmpValue instanceof ShadowStyle) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForShadowTmpValueForIdx1 = valueHolderForShadowTmpValue as ShadowStyle - valueSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueHolderForShadowTmpValueForIdx1)) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle - if (valueHolderForBackgroundBlurStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFocusable = value.focusable - if (valueHolderForFocusable !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFocusableTmpValue = valueHolderForFocusable! - valueSerializer.writeBoolean(valueHolderForFocusableTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTransition = value.transition - if (valueHolderForTransition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTransitionTmpValue = valueHolderForTransition! - TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillDismiss = value.onWillDismiss - if (valueHolderForOnWillDismiss !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! - if (valueHolderForOnWillDismissTmpValue instanceof boolean) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOnWillDismissTmpValueForIdx0 = valueHolderForOnWillDismissTmpValue as boolean - valueSerializer.writeBoolean(valueHolderForOnWillDismissTmpValueForIdx0) - } else if (valueHolderForOnWillDismissTmpValue instanceof ((value0: DismissPopupAction) => void)) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOnWillDismissTmpValueForIdx1 = valueHolderForOnWillDismissTmpValue as ((value0: DismissPopupAction) => void) - valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableHoverMode = value.enableHoverMode - if (valueHolderForEnableHoverMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! - valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFollowTransformOfTarget = value.followTransformOfTarget - if (valueHolderForFollowTransformOfTarget !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFollowTransformOfTargetTmpValue = valueHolderForFollowTransformOfTarget! - valueSerializer.writeBoolean(valueHolderForFollowTransformOfTargetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): PopupCommonOptions { - let valueDeserializer : DeserializerBase = buffer - const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let placementTmpBuf : Placement | undefined - if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) - } - const placementTmpResult : Placement | undefined = placementTmpBuf - const popupColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let popupColorTmpBuf : ResourceColor | undefined - if ((popupColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const popupColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let popupColorTmpBuf_ : Color | number | string | Resource | undefined - if (popupColorTmpBuf_UnionSelector == (0).toChar()) { - popupColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (popupColorTmpBuf_UnionSelector == (1).toChar()) { - popupColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (popupColorTmpBuf_UnionSelector == (2).toChar()) { - popupColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (popupColorTmpBuf_UnionSelector == (3).toChar()) { - popupColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for popupColorTmpBuf_ has to be chosen through deserialisation.") - } - popupColorTmpBuf = (popupColorTmpBuf_ as Color | number | string | Resource) - } - const popupColorTmpResult : ResourceColor | undefined = popupColorTmpBuf - const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableArrowTmpBuf : boolean | undefined - if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableArrowTmpBuf = valueDeserializer.readBoolean() - } - const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf - const autoCancelTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let autoCancelTmpBuf : boolean | undefined - if ((autoCancelTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - autoCancelTmpBuf = valueDeserializer.readBoolean() - } - const autoCancelTmpResult : boolean | undefined = autoCancelTmpBuf - const onStateChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onStateChangeTmpBuf : PopupStateChangeCallback | undefined - if ((onStateChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onStateChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onStateChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onStateChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onStateChangeTmpBuf = (event: PopupStateChangeParam):void => { - const onStateChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onStateChangeTmpBuf_BufArgsSerializer.writeInt32(onStateChangeTmpBuf_BufResource.resourceId); - onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCall); - onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCallSync); - PopupStateChangeParam_serializer.write(onStateChangeTmpBuf_BufArgsSerializer, event); - InteropNativeModule._CallCallback(-1444325632, onStateChangeTmpBuf_BufArgsSerializer.asBuffer(), onStateChangeTmpBuf_BufArgsSerializer.length()); - onStateChangeTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onStateChangeTmpResult : PopupStateChangeCallback | undefined = onStateChangeTmpBuf - const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowOffsetTmpBuf : Length | undefined - if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowOffsetTmpBuf_ : string | number | Resource | undefined - if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { - arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") - } - arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) - } - const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf - const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let showInSubWindowTmpBuf : boolean | undefined - if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - showInSubWindowTmpBuf = valueDeserializer.readBoolean() - } - const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf - const maskTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let maskTmpBuf : boolean | PopupMaskType | undefined - if ((maskTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const maskTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let maskTmpBuf_ : boolean | PopupMaskType | undefined - if (maskTmpBuf_UnionSelector == (0).toChar()) { - maskTmpBuf_ = valueDeserializer.readBoolean() - } else if (maskTmpBuf_UnionSelector == (1).toChar()) { - maskTmpBuf_ = PopupMaskType_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for maskTmpBuf_ has to be chosen through deserialisation.") - } - maskTmpBuf = (maskTmpBuf_ as boolean | PopupMaskType) - } - const maskTmpResult : boolean | PopupMaskType | undefined = maskTmpBuf - const targetSpaceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let targetSpaceTmpBuf : Length | undefined - if ((targetSpaceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const targetSpaceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let targetSpaceTmpBuf_ : string | number | Resource | undefined - if (targetSpaceTmpBuf_UnionSelector == (0).toChar()) { - targetSpaceTmpBuf_ = (valueDeserializer.readString() as string) - } else if (targetSpaceTmpBuf_UnionSelector == (1).toChar()) { - targetSpaceTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (targetSpaceTmpBuf_UnionSelector == (2).toChar()) { - targetSpaceTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for targetSpaceTmpBuf_ has to be chosen through deserialisation.") - } - targetSpaceTmpBuf = (targetSpaceTmpBuf_ as string | number | Resource) - } - const targetSpaceTmpResult : Length | undefined = targetSpaceTmpBuf - const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetTmpBuf : Position | undefined - if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - offsetTmpBuf = Position_serializer.read(valueDeserializer) - } - const offsetTmpResult : Position | undefined = offsetTmpBuf - const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let widthTmpBuf : Dimension | undefined - if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let widthTmpBuf_ : string | number | Resource | undefined - if (widthTmpBuf_UnionSelector == (0).toChar()) { - widthTmpBuf_ = (valueDeserializer.readString() as string) - } else if (widthTmpBuf_UnionSelector == (1).toChar()) { - widthTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (widthTmpBuf_UnionSelector == (2).toChar()) { - widthTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") - } - widthTmpBuf = (widthTmpBuf_ as string | number | Resource) - } - const widthTmpResult : Dimension | undefined = widthTmpBuf - const arrowPointPositionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowPointPositionTmpBuf : ArrowPointPosition | undefined - if ((arrowPointPositionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - arrowPointPositionTmpBuf = TypeChecker.ArrowPointPosition_FromNumeric(valueDeserializer.readInt32()) - } - const arrowPointPositionTmpResult : ArrowPointPosition | undefined = arrowPointPositionTmpBuf - const arrowWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowWidthTmpBuf : Dimension | undefined - if ((arrowWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowWidthTmpBuf_ : string | number | Resource | undefined - if (arrowWidthTmpBuf_UnionSelector == (0).toChar()) { - arrowWidthTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowWidthTmpBuf_UnionSelector == (1).toChar()) { - arrowWidthTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowWidthTmpBuf_UnionSelector == (2).toChar()) { - arrowWidthTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowWidthTmpBuf_ has to be chosen through deserialisation.") - } - arrowWidthTmpBuf = (arrowWidthTmpBuf_ as string | number | Resource) - } - const arrowWidthTmpResult : Dimension | undefined = arrowWidthTmpBuf - const arrowHeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowHeightTmpBuf : Dimension | undefined - if ((arrowHeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowHeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowHeightTmpBuf_ : string | number | Resource | undefined - if (arrowHeightTmpBuf_UnionSelector == (0).toChar()) { - arrowHeightTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowHeightTmpBuf_UnionSelector == (1).toChar()) { - arrowHeightTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowHeightTmpBuf_UnionSelector == (2).toChar()) { - arrowHeightTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowHeightTmpBuf_ has to be chosen through deserialisation.") - } - arrowHeightTmpBuf = (arrowHeightTmpBuf_ as string | number | Resource) - } - const arrowHeightTmpResult : Dimension | undefined = arrowHeightTmpBuf - const radiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let radiusTmpBuf : Dimension | undefined - if ((radiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const radiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let radiusTmpBuf_ : string | number | Resource | undefined - if (radiusTmpBuf_UnionSelector == (0).toChar()) { - radiusTmpBuf_ = (valueDeserializer.readString() as string) - } else if (radiusTmpBuf_UnionSelector == (1).toChar()) { - radiusTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (radiusTmpBuf_UnionSelector == (2).toChar()) { - radiusTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for radiusTmpBuf_ has to be chosen through deserialisation.") - } - radiusTmpBuf = (radiusTmpBuf_ as string | number | Resource) - } - const radiusTmpResult : Dimension | undefined = radiusTmpBuf - const shadowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let shadowTmpBuf : ShadowOptions | ShadowStyle | undefined - if ((shadowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const shadowTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let shadowTmpBuf_ : ShadowOptions | ShadowStyle | undefined - if (shadowTmpBuf_UnionSelector == (0).toChar()) { - shadowTmpBuf_ = ShadowOptions_serializer.read(valueDeserializer) - } else if (shadowTmpBuf_UnionSelector == (1).toChar()) { - shadowTmpBuf_ = TypeChecker.ShadowStyle_FromNumeric(valueDeserializer.readInt32()) - } else { - throw new Error("One of the branches for shadowTmpBuf_ has to be chosen through deserialisation.") - } - shadowTmpBuf = (shadowTmpBuf_ as ShadowOptions | ShadowStyle) - } - const shadowTmpResult : ShadowOptions | ShadowStyle | undefined = shadowTmpBuf - const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundBlurStyleTmpBuf : BlurStyle | undefined - if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) - } - const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf - const focusableTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let focusableTmpBuf : boolean | undefined - if ((focusableTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - focusableTmpBuf = valueDeserializer.readBoolean() - } - const focusableTmpResult : boolean | undefined = focusableTmpBuf - const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let transitionTmpBuf : TransitionEffect | undefined - if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) - } - const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf - const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillDismissTmpBuf : boolean | ((value0: DismissPopupAction) => void) | undefined - if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillDismissTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let onWillDismissTmpBuf_ : boolean | ((value0: DismissPopupAction) => void) | undefined - if (onWillDismissTmpBuf_UnionSelector == (0).toChar()) { - onWillDismissTmpBuf_ = valueDeserializer.readBoolean() - } else if (onWillDismissTmpBuf_UnionSelector == (1).toChar()) { - const onWillDismissTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillDismissTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() - const onWillDismissTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() - onWillDismissTmpBuf_ = (value0: DismissPopupAction):void => { - const onWillDismissTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillDismissTmpBuf_BufUBufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufUBufResource.resourceId); - onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCall); - onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCallSync); - DismissPopupAction_serializer.write(onWillDismissTmpBuf_BufUBufArgsSerializer, value0); - InteropNativeModule._CallCallback(-2004166751, onWillDismissTmpBuf_BufUBufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufUBufArgsSerializer.length()); - onWillDismissTmpBuf_BufUBufArgsSerializer.release(); - return; - } - } else { - throw new Error("One of the branches for onWillDismissTmpBuf_ has to be chosen through deserialisation.") - } - onWillDismissTmpBuf = (onWillDismissTmpBuf_ as boolean | ((value0: DismissPopupAction) => void)) - } - const onWillDismissTmpResult : boolean | ((value0: DismissPopupAction) => void) | undefined = onWillDismissTmpBuf - const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableHoverModeTmpBuf : boolean | undefined - if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableHoverModeTmpBuf = valueDeserializer.readBoolean() - } - const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf - const followTransformOfTargetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let followTransformOfTargetTmpBuf : boolean | undefined - if ((followTransformOfTargetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - followTransformOfTargetTmpBuf = valueDeserializer.readBoolean() - } - const followTransformOfTargetTmpResult : boolean | undefined = followTransformOfTargetTmpBuf - let value : PopupCommonOptions = ({placement: placementTmpResult, popupColor: popupColorTmpResult, enableArrow: enableArrowTmpResult, autoCancel: autoCancelTmpResult, onStateChange: onStateChangeTmpResult, arrowOffset: arrowOffsetTmpResult, showInSubWindow: showInSubWindowTmpResult, mask: maskTmpResult, targetSpace: targetSpaceTmpResult, offset: offsetTmpResult, width: widthTmpResult, arrowPointPosition: arrowPointPositionTmpResult, arrowWidth: arrowWidthTmpResult, arrowHeight: arrowHeightTmpResult, radius: radiusTmpResult, shadow: shadowTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, focusable: focusableTmpResult, transition: transitionTmpResult, onWillDismiss: onWillDismissTmpResult, enableHoverMode: enableHoverModeTmpResult, followTransformOfTarget: followTransformOfTargetTmpResult} as PopupCommonOptions) - return value - } -} -export class PopupMessageOptions_serializer { - public static write(buffer: SerializerBase, value: PopupMessageOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForTextColor = value.textColor - if (valueHolderForTextColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTextColorTmpValue = valueHolderForTextColor! - if (valueHolderForTextColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTextColorTmpValueForIdx0 = valueHolderForTextColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForTextColorTmpValueForIdx0)) - } else if (valueHolderForTextColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTextColorTmpValueForIdx1 = valueHolderForTextColorTmpValue as number - valueSerializer.writeNumber(valueHolderForTextColorTmpValueForIdx1) - } else if (valueHolderForTextColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForTextColorTmpValueForIdx2 = valueHolderForTextColorTmpValue as string - valueSerializer.writeString(valueHolderForTextColorTmpValueForIdx2) - } else if (valueHolderForTextColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForTextColorTmpValueForIdx3 = valueHolderForTextColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForTextColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFont = value.font - if (valueHolderForFont !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFontTmpValue = valueHolderForFont! - Font_serializer.write(valueSerializer, valueHolderForFontTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): PopupMessageOptions { - let valueDeserializer : DeserializerBase = buffer - const textColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let textColorTmpBuf : ResourceColor | undefined - if ((textColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const textColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let textColorTmpBuf_ : Color | number | string | Resource | undefined - if (textColorTmpBuf_UnionSelector == (0).toChar()) { - textColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (textColorTmpBuf_UnionSelector == (1).toChar()) { - textColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (textColorTmpBuf_UnionSelector == (2).toChar()) { - textColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (textColorTmpBuf_UnionSelector == (3).toChar()) { - textColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for textColorTmpBuf_ has to be chosen through deserialisation.") - } - textColorTmpBuf = (textColorTmpBuf_ as Color | number | string | Resource) - } - const textColorTmpResult : ResourceColor | undefined = textColorTmpBuf - const fontTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fontTmpBuf : Font | undefined - if ((fontTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - fontTmpBuf = Font_serializer.read(valueDeserializer) - } - const fontTmpResult : Font | undefined = fontTmpBuf - let value : PopupMessageOptions = ({textColor: textColorTmpResult, font: fontTmpResult} as PopupMessageOptions) - return value - } -} -export class SheetOptions_serializer { - public static write(buffer: SerializerBase, value: SheetOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForBackgroundColor = value.backgroundColor - if (valueHolderForBackgroundColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundColorTmpValue = valueHolderForBackgroundColor! - if (valueHolderForBackgroundColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx0 = valueHolderForBackgroundColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBackgroundColorTmpValueForIdx0)) - } else if (valueHolderForBackgroundColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx1 = valueHolderForBackgroundColorTmpValue as number - valueSerializer.writeNumber(valueHolderForBackgroundColorTmpValueForIdx1) - } else if (valueHolderForBackgroundColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx2 = valueHolderForBackgroundColorTmpValue as string - valueSerializer.writeString(valueHolderForBackgroundColorTmpValueForIdx2) - } else if (valueHolderForBackgroundColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForBackgroundColorTmpValueForIdx3 = valueHolderForBackgroundColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForBackgroundColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnAppear = value.onAppear - if (valueHolderForOnAppear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnAppearTmpValue = valueHolderForOnAppear! - valueSerializer.holdAndWriteCallback(valueHolderForOnAppearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnDisappear = value.onDisappear - if (valueHolderForOnDisappear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnDisappearTmpValue = valueHolderForOnDisappear! - valueSerializer.holdAndWriteCallback(valueHolderForOnDisappearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillAppear = value.onWillAppear - if (valueHolderForOnWillAppear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillAppearTmpValue = valueHolderForOnWillAppear! - valueSerializer.holdAndWriteCallback(valueHolderForOnWillAppearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillDisappear = value.onWillDisappear - if (valueHolderForOnWillDisappear !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillDisappearTmpValue = valueHolderForOnWillDisappear! - valueSerializer.holdAndWriteCallback(valueHolderForOnWillDisappearTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForHeight = value.height - if (valueHolderForHeight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHeightTmpValue = valueHolderForHeight! - if (valueHolderForHeightTmpValue instanceof SheetSize) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForHeightTmpValueForIdx0 = valueHolderForHeightTmpValue as SheetSize - valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForHeightTmpValueForIdx0)) - } else if (valueHolderForHeightTmpValue instanceof Length) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForHeightTmpValueForIdx1 = valueHolderForHeightTmpValue as Length - if (valueHolderForHeightTmpValueForIdx1 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForHeightTmpValueForIdx1ForIdx0 = valueHolderForHeightTmpValueForIdx1 as string - valueSerializer.writeString(valueHolderForHeightTmpValueForIdx1ForIdx0) - } else if (valueHolderForHeightTmpValueForIdx1 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForHeightTmpValueForIdx1ForIdx1 = valueHolderForHeightTmpValueForIdx1 as number - valueSerializer.writeNumber(valueHolderForHeightTmpValueForIdx1ForIdx1) - } else if (valueHolderForHeightTmpValueForIdx1 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForHeightTmpValueForIdx1ForIdx2 = valueHolderForHeightTmpValueForIdx1 as Resource - Resource_serializer.write(valueSerializer, valueHolderForHeightTmpValueForIdx1ForIdx2) - } - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDragBar = value.dragBar - if (valueHolderForDragBar !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDragBarTmpValue = valueHolderForDragBar! - valueSerializer.writeBoolean(valueHolderForDragBarTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForMaskColor = value.maskColor - if (valueHolderForMaskColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForMaskColorTmpValue = valueHolderForMaskColor! - if (valueHolderForMaskColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForMaskColorTmpValueForIdx0 = valueHolderForMaskColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForMaskColorTmpValueForIdx0)) - } else if (valueHolderForMaskColorTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForMaskColorTmpValueForIdx1 = valueHolderForMaskColorTmpValue as number - valueSerializer.writeNumber(valueHolderForMaskColorTmpValueForIdx1) - } else if (valueHolderForMaskColorTmpValue instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForMaskColorTmpValueForIdx2 = valueHolderForMaskColorTmpValue as string - valueSerializer.writeString(valueHolderForMaskColorTmpValueForIdx2) - } else if (valueHolderForMaskColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForMaskColorTmpValueForIdx3 = valueHolderForMaskColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForMaskColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDetents = value.detents - if (valueHolderForDetents !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDetentsTmpValue = valueHolderForDetents! - const valueHolderForDetentsTmpValue_0 = valueHolderForDetentsTmpValue[0] - if (valueHolderForDetentsTmpValue_0 instanceof SheetSize) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForDetentsTmpValue_0ForIdx0 = valueHolderForDetentsTmpValue_0 as SheetSize - valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForDetentsTmpValue_0ForIdx0)) - } else if (valueHolderForDetentsTmpValue_0 instanceof Length) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForDetentsTmpValue_0ForIdx1 = valueHolderForDetentsTmpValue_0 as Length - if (valueHolderForDetentsTmpValue_0ForIdx1 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForDetentsTmpValue_0ForIdx1ForIdx0 = valueHolderForDetentsTmpValue_0ForIdx1 as string - valueSerializer.writeString(valueHolderForDetentsTmpValue_0ForIdx1ForIdx0) - } else if (valueHolderForDetentsTmpValue_0ForIdx1 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForDetentsTmpValue_0ForIdx1ForIdx1 = valueHolderForDetentsTmpValue_0ForIdx1 as number - valueSerializer.writeNumber(valueHolderForDetentsTmpValue_0ForIdx1ForIdx1) - } else if (valueHolderForDetentsTmpValue_0ForIdx1 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForDetentsTmpValue_0ForIdx1ForIdx2 = valueHolderForDetentsTmpValue_0ForIdx1 as Resource - Resource_serializer.write(valueSerializer, valueHolderForDetentsTmpValue_0ForIdx1ForIdx2) - } - } - const valueHolderForDetentsTmpValue_1 = valueHolderForDetentsTmpValue[1] - if (valueHolderForDetentsTmpValue_1 !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDetentsTmpValue_1TmpValue = valueHolderForDetentsTmpValue_1! - if (valueHolderForDetentsTmpValue_1TmpValue instanceof SheetSize) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForDetentsTmpValue_1TmpValueForIdx0 = valueHolderForDetentsTmpValue_1TmpValue as SheetSize - valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForDetentsTmpValue_1TmpValueForIdx0)) - } else if (valueHolderForDetentsTmpValue_1TmpValue instanceof Length) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForDetentsTmpValue_1TmpValueForIdx1 = valueHolderForDetentsTmpValue_1TmpValue as Length - if (valueHolderForDetentsTmpValue_1TmpValueForIdx1 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx0 = valueHolderForDetentsTmpValue_1TmpValueForIdx1 as string - valueSerializer.writeString(valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx0) - } else if (valueHolderForDetentsTmpValue_1TmpValueForIdx1 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx1 = valueHolderForDetentsTmpValue_1TmpValueForIdx1 as number - valueSerializer.writeNumber(valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx1) - } else if (valueHolderForDetentsTmpValue_1TmpValueForIdx1 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx2 = valueHolderForDetentsTmpValue_1TmpValueForIdx1 as Resource - Resource_serializer.write(valueSerializer, valueHolderForDetentsTmpValue_1TmpValueForIdx1ForIdx2) - } - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDetentsTmpValue_2 = valueHolderForDetentsTmpValue[2] - if (valueHolderForDetentsTmpValue_2 !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDetentsTmpValue_2TmpValue = valueHolderForDetentsTmpValue_2! - if (valueHolderForDetentsTmpValue_2TmpValue instanceof SheetSize) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForDetentsTmpValue_2TmpValueForIdx0 = valueHolderForDetentsTmpValue_2TmpValue as SheetSize - valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForDetentsTmpValue_2TmpValueForIdx0)) - } else if (valueHolderForDetentsTmpValue_2TmpValue instanceof Length) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForDetentsTmpValue_2TmpValueForIdx1 = valueHolderForDetentsTmpValue_2TmpValue as Length - if (valueHolderForDetentsTmpValue_2TmpValueForIdx1 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx0 = valueHolderForDetentsTmpValue_2TmpValueForIdx1 as string - valueSerializer.writeString(valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx0) - } else if (valueHolderForDetentsTmpValue_2TmpValueForIdx1 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx1 = valueHolderForDetentsTmpValue_2TmpValueForIdx1 as number - valueSerializer.writeNumber(valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx1) - } else if (valueHolderForDetentsTmpValue_2TmpValueForIdx1 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx2 = valueHolderForDetentsTmpValue_2TmpValueForIdx1 as Resource - Resource_serializer.write(valueSerializer, valueHolderForDetentsTmpValue_2TmpValueForIdx1ForIdx2) - } - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBlurStyle = value.blurStyle - if (valueHolderForBlurStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBlurStyleTmpValue = (valueHolderForBlurStyle as BlurStyle) - valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBlurStyleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShowClose = value.showClose - if (valueHolderForShowClose !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShowCloseTmpValue = valueHolderForShowClose! - if (valueHolderForShowCloseTmpValue instanceof boolean) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForShowCloseTmpValueForIdx0 = valueHolderForShowCloseTmpValue as boolean - valueSerializer.writeBoolean(valueHolderForShowCloseTmpValueForIdx0) - } else if (valueHolderForShowCloseTmpValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForShowCloseTmpValueForIdx1 = valueHolderForShowCloseTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForShowCloseTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPreferType = value.preferType - if (valueHolderForPreferType !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPreferTypeTmpValue = (valueHolderForPreferType as SheetType) - valueSerializer.writeInt32(TypeChecker.SheetType_ToNumeric(valueHolderForPreferTypeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTitle = value.title - if (valueHolderForTitle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTitleTmpValue = valueHolderForTitle! - if (valueHolderForTitleTmpValue instanceof SheetTitleOptions) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTitleTmpValueForIdx0 = valueHolderForTitleTmpValue as SheetTitleOptions - SheetTitleOptions_serializer.write(valueSerializer, valueHolderForTitleTmpValueForIdx0) - } else if (valueHolderForTitleTmpValue instanceof CustomBuilder) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTitleTmpValueForIdx1 = valueHolderForTitleTmpValue as CustomBuilder - valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(valueHolderForTitleTmpValueForIdx1)) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShouldDismiss = value.shouldDismiss - if (valueHolderForShouldDismiss !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShouldDismissTmpValue = valueHolderForShouldDismiss! - valueSerializer.holdAndWriteCallback(valueHolderForShouldDismissTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillDismiss = value.onWillDismiss - if (valueHolderForOnWillDismiss !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! - valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillSpringBackWhenDismiss = value.onWillSpringBackWhenDismiss - if (valueHolderForOnWillSpringBackWhenDismiss !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillSpringBackWhenDismissTmpValue = valueHolderForOnWillSpringBackWhenDismiss! - valueSerializer.holdAndWriteCallback(valueHolderForOnWillSpringBackWhenDismissTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableOutsideInteractive = value.enableOutsideInteractive - if (valueHolderForEnableOutsideInteractive !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableOutsideInteractiveTmpValue = valueHolderForEnableOutsideInteractive! - valueSerializer.writeBoolean(valueHolderForEnableOutsideInteractiveTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForWidth = value.width - if (valueHolderForWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForWidthTmpValue = valueHolderForWidth! - if (valueHolderForWidthTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string - valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) - } else if (valueHolderForWidthTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number - valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) - } else if (valueHolderForWidthTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBorderWidth = value.borderWidth - if (valueHolderForBorderWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBorderWidthTmpValue = valueHolderForBorderWidth! - if (valueHolderForBorderWidthTmpValue instanceof Dimension) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderWidthTmpValueForIdx0 = valueHolderForBorderWidthTmpValue as Dimension - if (valueHolderForBorderWidthTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderWidthTmpValueForIdx0ForIdx0 = valueHolderForBorderWidthTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForBorderWidthTmpValueForIdx0ForIdx0) - } else if (valueHolderForBorderWidthTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderWidthTmpValueForIdx0ForIdx1 = valueHolderForBorderWidthTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForBorderWidthTmpValueForIdx0ForIdx1) - } else if (valueHolderForBorderWidthTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBorderWidthTmpValueForIdx0ForIdx2 = valueHolderForBorderWidthTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForBorderWidthTmpValueForIdx0ForIdx2) - } - } else if (valueHolderForBorderWidthTmpValue instanceof EdgeWidths) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderWidthTmpValueForIdx1 = valueHolderForBorderWidthTmpValue as EdgeWidths - EdgeWidths_serializer.write(valueSerializer, valueHolderForBorderWidthTmpValueForIdx1) - } else if (valueHolderForBorderWidthTmpValue instanceof LocalizedEdgeWidths) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBorderWidthTmpValueForIdx2 = valueHolderForBorderWidthTmpValue as LocalizedEdgeWidths - LocalizedEdgeWidths_serializer.write(valueSerializer, valueHolderForBorderWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBorderColor = value.borderColor - if (valueHolderForBorderColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBorderColorTmpValue = valueHolderForBorderColor! - if (valueHolderForBorderColorTmpValue instanceof ResourceColor) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderColorTmpValueForIdx0 = valueHolderForBorderColorTmpValue as ResourceColor - if (valueHolderForBorderColorTmpValueForIdx0 instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderColorTmpValueForIdx0ForIdx0 = valueHolderForBorderColorTmpValueForIdx0 as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForBorderColorTmpValueForIdx0ForIdx0)) - } else if (valueHolderForBorderColorTmpValueForIdx0 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderColorTmpValueForIdx0ForIdx1 = valueHolderForBorderColorTmpValueForIdx0 as number - valueSerializer.writeNumber(valueHolderForBorderColorTmpValueForIdx0ForIdx1) - } else if (valueHolderForBorderColorTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBorderColorTmpValueForIdx0ForIdx2 = valueHolderForBorderColorTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForBorderColorTmpValueForIdx0ForIdx2) - } else if (valueHolderForBorderColorTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForBorderColorTmpValueForIdx0ForIdx3 = valueHolderForBorderColorTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForBorderColorTmpValueForIdx0ForIdx3) - } - } else if (valueHolderForBorderColorTmpValue instanceof EdgeColors) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderColorTmpValueForIdx1 = valueHolderForBorderColorTmpValue as EdgeColors - EdgeColors_serializer.write(valueSerializer, valueHolderForBorderColorTmpValueForIdx1) - } else if (valueHolderForBorderColorTmpValue instanceof LocalizedEdgeColors) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForBorderColorTmpValueForIdx2 = valueHolderForBorderColorTmpValue as LocalizedEdgeColors - LocalizedEdgeColors_serializer.write(valueSerializer, valueHolderForBorderColorTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBorderStyle = value.borderStyle - if (valueHolderForBorderStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBorderStyleTmpValue = valueHolderForBorderStyle! - if (valueHolderForBorderStyleTmpValue instanceof BorderStyle) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForBorderStyleTmpValueForIdx0 = valueHolderForBorderStyleTmpValue as BorderStyle - valueSerializer.writeInt32(TypeChecker.BorderStyle_ToNumeric(valueHolderForBorderStyleTmpValueForIdx0)) - } else if (valueHolderForBorderStyleTmpValue instanceof EdgeStyles) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForBorderStyleTmpValueForIdx1 = valueHolderForBorderStyleTmpValue as EdgeStyles - EdgeStyles_serializer.write(valueSerializer, valueHolderForBorderStyleTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShadow = value.shadow - if (valueHolderForShadow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShadowTmpValue = valueHolderForShadow! - if (valueHolderForShadowTmpValue instanceof ShadowOptions) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForShadowTmpValueForIdx0 = valueHolderForShadowTmpValue as ShadowOptions - ShadowOptions_serializer.write(valueSerializer, valueHolderForShadowTmpValueForIdx0) - } else if (valueHolderForShadowTmpValue instanceof ShadowStyle) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForShadowTmpValueForIdx1 = valueHolderForShadowTmpValue as ShadowStyle - valueSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueHolderForShadowTmpValueForIdx1)) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnHeightDidChange = value.onHeightDidChange - if (valueHolderForOnHeightDidChange !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnHeightDidChangeTmpValue = valueHolderForOnHeightDidChange! - valueSerializer.holdAndWriteCallback(valueHolderForOnHeightDidChangeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForMode = value.mode - if (valueHolderForMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForModeTmpValue = (valueHolderForMode as SheetMode) - valueSerializer.writeInt32(TypeChecker.SheetMode_ToNumeric(valueHolderForModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForScrollSizeMode = value.scrollSizeMode - if (valueHolderForScrollSizeMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForScrollSizeModeTmpValue = (valueHolderForScrollSizeMode as ScrollSizeMode) - valueSerializer.writeInt32(TypeChecker.ScrollSizeMode_ToNumeric(valueHolderForScrollSizeModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnDetentsDidChange = value.onDetentsDidChange - if (valueHolderForOnDetentsDidChange !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnDetentsDidChangeTmpValue = valueHolderForOnDetentsDidChange! - valueSerializer.holdAndWriteCallback(valueHolderForOnDetentsDidChangeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWidthDidChange = value.onWidthDidChange - if (valueHolderForOnWidthDidChange !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWidthDidChangeTmpValue = valueHolderForOnWidthDidChange! - valueSerializer.holdAndWriteCallback(valueHolderForOnWidthDidChangeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnTypeDidChange = value.onTypeDidChange - if (valueHolderForOnTypeDidChange !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnTypeDidChangeTmpValue = valueHolderForOnTypeDidChange! - valueSerializer.holdAndWriteCallback(valueHolderForOnTypeDidChangeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForUiContext = value.uiContext - if (valueHolderForUiContext !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForUiContextTmpValue = valueHolderForUiContext! - UIContext_serializer.write(valueSerializer, valueHolderForUiContextTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForKeyboardAvoidMode = value.keyboardAvoidMode - if (valueHolderForKeyboardAvoidMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForKeyboardAvoidModeTmpValue = (valueHolderForKeyboardAvoidMode as SheetKeyboardAvoidMode) - valueSerializer.writeInt32(TypeChecker.SheetKeyboardAvoidMode_ToNumeric(valueHolderForKeyboardAvoidModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableHoverMode = value.enableHoverMode - if (valueHolderForEnableHoverMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! - valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForHoverModeArea = value.hoverModeArea - if (valueHolderForHoverModeArea !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForHoverModeAreaTmpValue = (valueHolderForHoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32(TypeChecker.HoverModeAreaType_ToNumeric(valueHolderForHoverModeAreaTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOffset = value.offset - if (valueHolderForOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetTmpValue = valueHolderForOffset! - Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEffectEdge = value.effectEdge - if (valueHolderForEffectEdge !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEffectEdgeTmpValue = valueHolderForEffectEdge! - valueSerializer.writeNumber(valueHolderForEffectEdgeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRadius = value.radius - if (valueHolderForRadius !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRadiusTmpValue = valueHolderForRadius! - if (valueHolderForRadiusTmpValue instanceof LengthMetrics) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForRadiusTmpValueForIdx0 = valueHolderForRadiusTmpValue as LengthMetrics - LengthMetrics_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx0) - } else if (valueHolderForRadiusTmpValue instanceof BorderRadiuses) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForRadiusTmpValueForIdx1 = valueHolderForRadiusTmpValue as BorderRadiuses - BorderRadiuses_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx1) - } else if (valueHolderForRadiusTmpValue instanceof LocalizedBorderRadiuses) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForRadiusTmpValueForIdx2 = valueHolderForRadiusTmpValue as LocalizedBorderRadiuses - LocalizedBorderRadiuses_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForDetentSelection = value.detentSelection - if (valueHolderForDetentSelection !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForDetentSelectionTmpValue = valueHolderForDetentSelection! - if (valueHolderForDetentSelectionTmpValue instanceof SheetSize) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForDetentSelectionTmpValueForIdx0 = valueHolderForDetentSelectionTmpValue as SheetSize - valueSerializer.writeInt32(TypeChecker.SheetSize_ToNumeric(valueHolderForDetentSelectionTmpValueForIdx0)) - } else if (valueHolderForDetentSelectionTmpValue instanceof Length) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForDetentSelectionTmpValueForIdx1 = valueHolderForDetentSelectionTmpValue as Length - if (valueHolderForDetentSelectionTmpValueForIdx1 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForDetentSelectionTmpValueForIdx1ForIdx0 = valueHolderForDetentSelectionTmpValueForIdx1 as string - valueSerializer.writeString(valueHolderForDetentSelectionTmpValueForIdx1ForIdx0) - } else if (valueHolderForDetentSelectionTmpValueForIdx1 instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForDetentSelectionTmpValueForIdx1ForIdx1 = valueHolderForDetentSelectionTmpValueForIdx1 as number - valueSerializer.writeNumber(valueHolderForDetentSelectionTmpValueForIdx1ForIdx1) - } else if (valueHolderForDetentSelectionTmpValueForIdx1 instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForDetentSelectionTmpValueForIdx1ForIdx2 = valueHolderForDetentSelectionTmpValueForIdx1 as Resource - Resource_serializer.write(valueSerializer, valueHolderForDetentSelectionTmpValueForIdx1ForIdx2) - } - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShowInSubWindow = value.showInSubWindow - if (valueHolderForShowInSubWindow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! - valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPlacement = value.placement - if (valueHolderForPlacement !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) - valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPlacementOnTarget = value.placementOnTarget - if (valueHolderForPlacementOnTarget !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPlacementOnTargetTmpValue = valueHolderForPlacementOnTarget! - valueSerializer.writeBoolean(valueHolderForPlacementOnTargetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): SheetOptions { - let valueDeserializer : DeserializerBase = buffer - const backgroundColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundColorTmpBuf : ResourceColor | undefined - if ((backgroundColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const backgroundColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let backgroundColorTmpBuf_ : Color | number | string | Resource | undefined - if (backgroundColorTmpBuf_UnionSelector == (0).toChar()) { - backgroundColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (backgroundColorTmpBuf_UnionSelector == (1).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (backgroundColorTmpBuf_UnionSelector == (2).toChar()) { - backgroundColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (backgroundColorTmpBuf_UnionSelector == (3).toChar()) { - backgroundColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for backgroundColorTmpBuf_ has to be chosen through deserialisation.") - } - backgroundColorTmpBuf = (backgroundColorTmpBuf_ as Color | number | string | Resource) - } - const backgroundColorTmpResult : ResourceColor | undefined = backgroundColorTmpBuf - const onAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onAppearTmpBuf : (() => void) | undefined - if ((onAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onAppearTmpBuf = ():void => { - const onAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onAppearTmpBuf_BufArgsSerializer.writeInt32(onAppearTmpBuf_BufResource.resourceId); - onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCall); - onAppearTmpBuf_BufArgsSerializer.writePointer(onAppearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onAppearTmpBuf_BufArgsSerializer.asBuffer(), onAppearTmpBuf_BufArgsSerializer.length()); - onAppearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onAppearTmpResult : (() => void) | undefined = onAppearTmpBuf - const onDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onDisappearTmpBuf : (() => void) | undefined - if ((onDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onDisappearTmpBuf = ():void => { - const onDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onDisappearTmpBuf_BufArgsSerializer.writeInt32(onDisappearTmpBuf_BufResource.resourceId); - onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCall); - onDisappearTmpBuf_BufArgsSerializer.writePointer(onDisappearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onDisappearTmpBuf_BufArgsSerializer.asBuffer(), onDisappearTmpBuf_BufArgsSerializer.length()); - onDisappearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onDisappearTmpResult : (() => void) | undefined = onDisappearTmpBuf - const onWillAppearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillAppearTmpBuf : (() => void) | undefined - if ((onWillAppearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillAppearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillAppearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onWillAppearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onWillAppearTmpBuf = ():void => { - const onWillAppearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillAppearTmpBuf_BufArgsSerializer.writeInt32(onWillAppearTmpBuf_BufResource.resourceId); - onWillAppearTmpBuf_BufArgsSerializer.writePointer(onWillAppearTmpBuf_BufCall); - onWillAppearTmpBuf_BufArgsSerializer.writePointer(onWillAppearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onWillAppearTmpBuf_BufArgsSerializer.asBuffer(), onWillAppearTmpBuf_BufArgsSerializer.length()); - onWillAppearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onWillAppearTmpResult : (() => void) | undefined = onWillAppearTmpBuf - const onWillDisappearTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillDisappearTmpBuf : (() => void) | undefined - if ((onWillDisappearTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillDisappearTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillDisappearTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onWillDisappearTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onWillDisappearTmpBuf = ():void => { - const onWillDisappearTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillDisappearTmpBuf_BufArgsSerializer.writeInt32(onWillDisappearTmpBuf_BufResource.resourceId); - onWillDisappearTmpBuf_BufArgsSerializer.writePointer(onWillDisappearTmpBuf_BufCall); - onWillDisappearTmpBuf_BufArgsSerializer.writePointer(onWillDisappearTmpBuf_BufCallSync); - InteropNativeModule._CallCallback(-1867723152, onWillDisappearTmpBuf_BufArgsSerializer.asBuffer(), onWillDisappearTmpBuf_BufArgsSerializer.length()); - onWillDisappearTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onWillDisappearTmpResult : (() => void) | undefined = onWillDisappearTmpBuf - const heightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let heightTmpBuf : SheetSize | Length | undefined - if ((heightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const heightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let heightTmpBuf_ : SheetSize | Length | undefined - if (heightTmpBuf_UnionSelector == (0).toChar()) { - heightTmpBuf_ = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) - } else if (heightTmpBuf_UnionSelector == (1).toChar()) { - const heightTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let heightTmpBuf_BufU : string | number | Resource | undefined - if (heightTmpBuf_BufUUnionSelector == (0).toChar()) { - heightTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (heightTmpBuf_BufUUnionSelector == (1).toChar()) { - heightTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (heightTmpBuf_BufUUnionSelector == (2).toChar()) { - heightTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for heightTmpBuf_BufU has to be chosen through deserialisation.") - } - heightTmpBuf_ = (heightTmpBuf_BufU as string | number | Resource) - } else { - throw new Error("One of the branches for heightTmpBuf_ has to be chosen through deserialisation.") - } - heightTmpBuf = (heightTmpBuf_ as SheetSize | Length) - } - const heightTmpResult : SheetSize | Length | undefined = heightTmpBuf - const dragBarTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let dragBarTmpBuf : boolean | undefined - if ((dragBarTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - dragBarTmpBuf = valueDeserializer.readBoolean() - } - const dragBarTmpResult : boolean | undefined = dragBarTmpBuf - const maskColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let maskColorTmpBuf : ResourceColor | undefined - if ((maskColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const maskColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let maskColorTmpBuf_ : Color | number | string | Resource | undefined - if (maskColorTmpBuf_UnionSelector == (0).toChar()) { - maskColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (maskColorTmpBuf_UnionSelector == (1).toChar()) { - maskColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (maskColorTmpBuf_UnionSelector == (2).toChar()) { - maskColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (maskColorTmpBuf_UnionSelector == (3).toChar()) { - maskColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for maskColorTmpBuf_ has to be chosen through deserialisation.") - } - maskColorTmpBuf = (maskColorTmpBuf_ as Color | number | string | Resource) - } - const maskColorTmpResult : ResourceColor | undefined = maskColorTmpBuf - const detentsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let detentsTmpBuf : TripleLengthDetents | undefined - if ((detentsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const detentsTmpBuf_Value0TempBufUnionSelector : int32 = valueDeserializer.readInt8() - let detentsTmpBuf_Value0TempBuf : SheetSize | Length | undefined - if (detentsTmpBuf_Value0TempBufUnionSelector == (0).toChar()) { - detentsTmpBuf_Value0TempBuf = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) - } else if (detentsTmpBuf_Value0TempBufUnionSelector == (1).toChar()) { - const detentsTmpBuf_Value0TempBufBufUUnionSelector : int32 = valueDeserializer.readInt8() - let detentsTmpBuf_Value0TempBufBufU : string | number | Resource | undefined - if (detentsTmpBuf_Value0TempBufBufUUnionSelector == (0).toChar()) { - detentsTmpBuf_Value0TempBufBufU = (valueDeserializer.readString() as string) - } else if (detentsTmpBuf_Value0TempBufBufUUnionSelector == (1).toChar()) { - detentsTmpBuf_Value0TempBufBufU = (valueDeserializer.readNumber() as number) - } else if (detentsTmpBuf_Value0TempBufBufUUnionSelector == (2).toChar()) { - detentsTmpBuf_Value0TempBufBufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for detentsTmpBuf_Value0TempBufBufU has to be chosen through deserialisation.") - } - detentsTmpBuf_Value0TempBuf = (detentsTmpBuf_Value0TempBufBufU as string | number | Resource) - } else { - throw new Error("One of the branches for detentsTmpBuf_Value0TempBuf has to be chosen through deserialisation.") - } - const detentsTmpBuf_Value0 : SheetSize | Length = (detentsTmpBuf_Value0TempBuf as SheetSize | Length) - const detentsTmpBuf_Value1TempBuf_runtimeType = valueDeserializer.readInt8().toInt() - let detentsTmpBuf_Value1TempBuf : SheetSize | Length | undefined - if ((detentsTmpBuf_Value1TempBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const detentsTmpBuf_Value1TempBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let detentsTmpBuf_Value1TempBuf_ : SheetSize | Length | undefined - if (detentsTmpBuf_Value1TempBuf_UnionSelector == (0).toChar()) { - detentsTmpBuf_Value1TempBuf_ = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) - } else if (detentsTmpBuf_Value1TempBuf_UnionSelector == (1).toChar()) { - const detentsTmpBuf_Value1TempBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let detentsTmpBuf_Value1TempBuf_BufU : string | number | Resource | undefined - if (detentsTmpBuf_Value1TempBuf_BufUUnionSelector == (0).toChar()) { - detentsTmpBuf_Value1TempBuf_BufU = (valueDeserializer.readString() as string) - } else if (detentsTmpBuf_Value1TempBuf_BufUUnionSelector == (1).toChar()) { - detentsTmpBuf_Value1TempBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (detentsTmpBuf_Value1TempBuf_BufUUnionSelector == (2).toChar()) { - detentsTmpBuf_Value1TempBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for detentsTmpBuf_Value1TempBuf_BufU has to be chosen through deserialisation.") - } - detentsTmpBuf_Value1TempBuf_ = (detentsTmpBuf_Value1TempBuf_BufU as string | number | Resource) - } else { - throw new Error("One of the branches for detentsTmpBuf_Value1TempBuf_ has to be chosen through deserialisation.") - } - detentsTmpBuf_Value1TempBuf = (detentsTmpBuf_Value1TempBuf_ as SheetSize | Length) - } - const detentsTmpBuf_Value1 : SheetSize | Length | undefined = detentsTmpBuf_Value1TempBuf - const detentsTmpBuf_Value2TempBuf_runtimeType = valueDeserializer.readInt8().toInt() - let detentsTmpBuf_Value2TempBuf : SheetSize | Length | undefined - if ((detentsTmpBuf_Value2TempBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const detentsTmpBuf_Value2TempBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let detentsTmpBuf_Value2TempBuf_ : SheetSize | Length | undefined - if (detentsTmpBuf_Value2TempBuf_UnionSelector == (0).toChar()) { - detentsTmpBuf_Value2TempBuf_ = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) - } else if (detentsTmpBuf_Value2TempBuf_UnionSelector == (1).toChar()) { - const detentsTmpBuf_Value2TempBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let detentsTmpBuf_Value2TempBuf_BufU : string | number | Resource | undefined - if (detentsTmpBuf_Value2TempBuf_BufUUnionSelector == (0).toChar()) { - detentsTmpBuf_Value2TempBuf_BufU = (valueDeserializer.readString() as string) - } else if (detentsTmpBuf_Value2TempBuf_BufUUnionSelector == (1).toChar()) { - detentsTmpBuf_Value2TempBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (detentsTmpBuf_Value2TempBuf_BufUUnionSelector == (2).toChar()) { - detentsTmpBuf_Value2TempBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for detentsTmpBuf_Value2TempBuf_BufU has to be chosen through deserialisation.") - } - detentsTmpBuf_Value2TempBuf_ = (detentsTmpBuf_Value2TempBuf_BufU as string | number | Resource) - } else { - throw new Error("One of the branches for detentsTmpBuf_Value2TempBuf_ has to be chosen through deserialisation.") - } - detentsTmpBuf_Value2TempBuf = (detentsTmpBuf_Value2TempBuf_ as SheetSize | Length) - } - const detentsTmpBuf_Value2 : SheetSize | Length | undefined = detentsTmpBuf_Value2TempBuf - detentsTmpBuf = ([detentsTmpBuf_Value0, detentsTmpBuf_Value1, detentsTmpBuf_Value2] as TripleLengthDetents) - } - const detentsTmpResult : TripleLengthDetents | undefined = detentsTmpBuf - const blurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let blurStyleTmpBuf : BlurStyle | undefined - if ((blurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - blurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) - } - const blurStyleTmpResult : BlurStyle | undefined = blurStyleTmpBuf - const showCloseTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let showCloseTmpBuf : boolean | Resource | undefined - if ((showCloseTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const showCloseTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let showCloseTmpBuf_ : boolean | Resource | undefined - if (showCloseTmpBuf_UnionSelector == (0).toChar()) { - showCloseTmpBuf_ = valueDeserializer.readBoolean() - } else if (showCloseTmpBuf_UnionSelector == (1).toChar()) { - showCloseTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for showCloseTmpBuf_ has to be chosen through deserialisation.") - } - showCloseTmpBuf = (showCloseTmpBuf_ as boolean | Resource) - } - const showCloseTmpResult : boolean | Resource | undefined = showCloseTmpBuf - const preferTypeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let preferTypeTmpBuf : SheetType | undefined - if ((preferTypeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - preferTypeTmpBuf = TypeChecker.SheetType_FromNumeric(valueDeserializer.readInt32()) - } - const preferTypeTmpResult : SheetType | undefined = preferTypeTmpBuf - const titleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let titleTmpBuf : SheetTitleOptions | CustomBuilder | undefined - if ((titleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const titleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let titleTmpBuf_ : SheetTitleOptions | CustomBuilder | undefined - if (titleTmpBuf_UnionSelector == (0).toChar()) { - titleTmpBuf_ = SheetTitleOptions_serializer.read(valueDeserializer) - } else if (titleTmpBuf_UnionSelector == (1).toChar()) { - const titleTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const titleTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() - const titleTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() - titleTmpBuf_ = ():void => { - const titleTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); - titleTmpBuf_BufUBufArgsSerializer.writeInt32(titleTmpBuf_BufUBufResource.resourceId); - titleTmpBuf_BufUBufArgsSerializer.writePointer(titleTmpBuf_BufUBufCall); - titleTmpBuf_BufUBufArgsSerializer.writePointer(titleTmpBuf_BufUBufCallSync); - InteropNativeModule._CallCallback(737226752, titleTmpBuf_BufUBufArgsSerializer.asBuffer(), titleTmpBuf_BufUBufArgsSerializer.length()); - titleTmpBuf_BufUBufArgsSerializer.release(); - return; - } - } else { - throw new Error("One of the branches for titleTmpBuf_ has to be chosen through deserialisation.") - } - titleTmpBuf = (titleTmpBuf_ as SheetTitleOptions | CustomBuilder) - } - const titleTmpResult : SheetTitleOptions | CustomBuilder | undefined = titleTmpBuf - const shouldDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let shouldDismissTmpBuf : ((sheetDismiss: SheetDismiss) => void) | undefined - if ((shouldDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const shouldDismissTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const shouldDismissTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const shouldDismissTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - shouldDismissTmpBuf = (sheetDismiss: SheetDismiss):void => { - const shouldDismissTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - shouldDismissTmpBuf_BufArgsSerializer.writeInt32(shouldDismissTmpBuf_BufResource.resourceId); - shouldDismissTmpBuf_BufArgsSerializer.writePointer(shouldDismissTmpBuf_BufCall); - shouldDismissTmpBuf_BufArgsSerializer.writePointer(shouldDismissTmpBuf_BufCallSync); - SheetDismiss_serializer.write(shouldDismissTmpBuf_BufArgsSerializer, sheetDismiss); - InteropNativeModule._CallCallback(22609082, shouldDismissTmpBuf_BufArgsSerializer.asBuffer(), shouldDismissTmpBuf_BufArgsSerializer.length()); - shouldDismissTmpBuf_BufArgsSerializer.release(); - return; - } - } - const shouldDismissTmpResult : ((sheetDismiss: SheetDismiss) => void) | undefined = shouldDismissTmpBuf - const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillDismissTmpBuf : ((value0: DismissSheetAction) => void) | undefined - if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillDismissTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillDismissTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onWillDismissTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onWillDismissTmpBuf = (value0: DismissSheetAction):void => { - const onWillDismissTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillDismissTmpBuf_BufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufResource.resourceId); - onWillDismissTmpBuf_BufArgsSerializer.writePointer(onWillDismissTmpBuf_BufCall); - onWillDismissTmpBuf_BufArgsSerializer.writePointer(onWillDismissTmpBuf_BufCallSync); - DismissSheetAction_serializer.write(onWillDismissTmpBuf_BufArgsSerializer, value0); - InteropNativeModule._CallCallback(889549796, onWillDismissTmpBuf_BufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufArgsSerializer.length()); - onWillDismissTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onWillDismissTmpResult : ((value0: DismissSheetAction) => void) | undefined = onWillDismissTmpBuf - const onWillSpringBackWhenDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillSpringBackWhenDismissTmpBuf : ((value0: SpringBackAction) => void) | undefined - if ((onWillSpringBackWhenDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillSpringBackWhenDismissTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillSpringBackWhenDismissTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onWillSpringBackWhenDismissTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onWillSpringBackWhenDismissTmpBuf = (value0: SpringBackAction):void => { - const onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.writeInt32(onWillSpringBackWhenDismissTmpBuf_BufResource.resourceId); - onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.writePointer(onWillSpringBackWhenDismissTmpBuf_BufCall); - onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.writePointer(onWillSpringBackWhenDismissTmpBuf_BufCallSync); - SpringBackAction_serializer.write(onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer, value0); - InteropNativeModule._CallCallback(1536231691, onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.asBuffer(), onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.length()); - onWillSpringBackWhenDismissTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onWillSpringBackWhenDismissTmpResult : ((value0: SpringBackAction) => void) | undefined = onWillSpringBackWhenDismissTmpBuf - const enableOutsideInteractiveTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableOutsideInteractiveTmpBuf : boolean | undefined - if ((enableOutsideInteractiveTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableOutsideInteractiveTmpBuf = valueDeserializer.readBoolean() - } - const enableOutsideInteractiveTmpResult : boolean | undefined = enableOutsideInteractiveTmpBuf - const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let widthTmpBuf : Dimension | undefined - if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let widthTmpBuf_ : string | number | Resource | undefined - if (widthTmpBuf_UnionSelector == (0).toChar()) { - widthTmpBuf_ = (valueDeserializer.readString() as string) - } else if (widthTmpBuf_UnionSelector == (1).toChar()) { - widthTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (widthTmpBuf_UnionSelector == (2).toChar()) { - widthTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") - } - widthTmpBuf = (widthTmpBuf_ as string | number | Resource) - } - const widthTmpResult : Dimension | undefined = widthTmpBuf - const borderWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let borderWidthTmpBuf : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined - if ((borderWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const borderWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let borderWidthTmpBuf_ : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined - if (borderWidthTmpBuf_UnionSelector == (0).toChar()) { - const borderWidthTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let borderWidthTmpBuf_BufU : string | number | Resource | undefined - if (borderWidthTmpBuf_BufUUnionSelector == (0).toChar()) { - borderWidthTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (borderWidthTmpBuf_BufUUnionSelector == (1).toChar()) { - borderWidthTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (borderWidthTmpBuf_BufUUnionSelector == (2).toChar()) { - borderWidthTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderWidthTmpBuf_BufU has to be chosen through deserialisation.") - } - borderWidthTmpBuf_ = (borderWidthTmpBuf_BufU as string | number | Resource) - } else if (borderWidthTmpBuf_UnionSelector == (1).toChar()) { - borderWidthTmpBuf_ = EdgeWidths_serializer.read(valueDeserializer) - } else if (borderWidthTmpBuf_UnionSelector == (2).toChar()) { - borderWidthTmpBuf_ = LocalizedEdgeWidths_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderWidthTmpBuf_ has to be chosen through deserialisation.") - } - borderWidthTmpBuf = (borderWidthTmpBuf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) - } - const borderWidthTmpResult : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined = borderWidthTmpBuf - const borderColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let borderColorTmpBuf : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined - if ((borderColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const borderColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let borderColorTmpBuf_ : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined - if (borderColorTmpBuf_UnionSelector == (0).toChar()) { - const borderColorTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let borderColorTmpBuf_BufU : Color | number | string | Resource | undefined - if (borderColorTmpBuf_BufUUnionSelector == (0).toChar()) { - borderColorTmpBuf_BufU = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (borderColorTmpBuf_BufUUnionSelector == (1).toChar()) { - borderColorTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (borderColorTmpBuf_BufUUnionSelector == (2).toChar()) { - borderColorTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (borderColorTmpBuf_BufUUnionSelector == (3).toChar()) { - borderColorTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderColorTmpBuf_BufU has to be chosen through deserialisation.") - } - borderColorTmpBuf_ = (borderColorTmpBuf_BufU as Color | number | string | Resource) - } else if (borderColorTmpBuf_UnionSelector == (1).toChar()) { - borderColorTmpBuf_ = EdgeColors_serializer.read(valueDeserializer) - } else if (borderColorTmpBuf_UnionSelector == (2).toChar()) { - borderColorTmpBuf_ = LocalizedEdgeColors_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderColorTmpBuf_ has to be chosen through deserialisation.") - } - borderColorTmpBuf = (borderColorTmpBuf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) - } - const borderColorTmpResult : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined = borderColorTmpBuf - const borderStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let borderStyleTmpBuf : BorderStyle | EdgeStyles | undefined - if ((borderStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const borderStyleTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let borderStyleTmpBuf_ : BorderStyle | EdgeStyles | undefined - if (borderStyleTmpBuf_UnionSelector == (0).toChar()) { - borderStyleTmpBuf_ = TypeChecker.BorderStyle_FromNumeric(valueDeserializer.readInt32()) - } else if (borderStyleTmpBuf_UnionSelector == (1).toChar()) { - borderStyleTmpBuf_ = EdgeStyles_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for borderStyleTmpBuf_ has to be chosen through deserialisation.") - } - borderStyleTmpBuf = (borderStyleTmpBuf_ as BorderStyle | EdgeStyles) - } - const borderStyleTmpResult : BorderStyle | EdgeStyles | undefined = borderStyleTmpBuf - const shadowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let shadowTmpBuf : ShadowOptions | ShadowStyle | undefined - if ((shadowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const shadowTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let shadowTmpBuf_ : ShadowOptions | ShadowStyle | undefined - if (shadowTmpBuf_UnionSelector == (0).toChar()) { - shadowTmpBuf_ = ShadowOptions_serializer.read(valueDeserializer) - } else if (shadowTmpBuf_UnionSelector == (1).toChar()) { - shadowTmpBuf_ = TypeChecker.ShadowStyle_FromNumeric(valueDeserializer.readInt32()) - } else { - throw new Error("One of the branches for shadowTmpBuf_ has to be chosen through deserialisation.") - } - shadowTmpBuf = (shadowTmpBuf_ as ShadowOptions | ShadowStyle) - } - const shadowTmpResult : ShadowOptions | ShadowStyle | undefined = shadowTmpBuf - const onHeightDidChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onHeightDidChangeTmpBuf : ((value0: number) => void) | undefined - if ((onHeightDidChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onHeightDidChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onHeightDidChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onHeightDidChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onHeightDidChangeTmpBuf = (value0: number):void => { - const onHeightDidChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onHeightDidChangeTmpBuf_BufArgsSerializer.writeInt32(onHeightDidChangeTmpBuf_BufResource.resourceId); - onHeightDidChangeTmpBuf_BufArgsSerializer.writePointer(onHeightDidChangeTmpBuf_BufCall); - onHeightDidChangeTmpBuf_BufArgsSerializer.writePointer(onHeightDidChangeTmpBuf_BufCallSync); - onHeightDidChangeTmpBuf_BufArgsSerializer.writeNumber(value0); - InteropNativeModule._CallCallback(36519084, onHeightDidChangeTmpBuf_BufArgsSerializer.asBuffer(), onHeightDidChangeTmpBuf_BufArgsSerializer.length()); - onHeightDidChangeTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onHeightDidChangeTmpResult : ((value0: number) => void) | undefined = onHeightDidChangeTmpBuf - const modeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let modeTmpBuf : SheetMode | undefined - if ((modeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - modeTmpBuf = TypeChecker.SheetMode_FromNumeric(valueDeserializer.readInt32()) - } - const modeTmpResult : SheetMode | undefined = modeTmpBuf - const scrollSizeModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let scrollSizeModeTmpBuf : ScrollSizeMode | undefined - if ((scrollSizeModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - scrollSizeModeTmpBuf = TypeChecker.ScrollSizeMode_FromNumeric(valueDeserializer.readInt32()) - } - const scrollSizeModeTmpResult : ScrollSizeMode | undefined = scrollSizeModeTmpBuf - const onDetentsDidChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onDetentsDidChangeTmpBuf : ((value0: number) => void) | undefined - if ((onDetentsDidChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onDetentsDidChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onDetentsDidChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onDetentsDidChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onDetentsDidChangeTmpBuf = (value0: number):void => { - const onDetentsDidChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onDetentsDidChangeTmpBuf_BufArgsSerializer.writeInt32(onDetentsDidChangeTmpBuf_BufResource.resourceId); - onDetentsDidChangeTmpBuf_BufArgsSerializer.writePointer(onDetentsDidChangeTmpBuf_BufCall); - onDetentsDidChangeTmpBuf_BufArgsSerializer.writePointer(onDetentsDidChangeTmpBuf_BufCallSync); - onDetentsDidChangeTmpBuf_BufArgsSerializer.writeNumber(value0); - InteropNativeModule._CallCallback(36519084, onDetentsDidChangeTmpBuf_BufArgsSerializer.asBuffer(), onDetentsDidChangeTmpBuf_BufArgsSerializer.length()); - onDetentsDidChangeTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onDetentsDidChangeTmpResult : ((value0: number) => void) | undefined = onDetentsDidChangeTmpBuf - const onWidthDidChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWidthDidChangeTmpBuf : ((value0: number) => void) | undefined - if ((onWidthDidChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWidthDidChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWidthDidChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onWidthDidChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onWidthDidChangeTmpBuf = (value0: number):void => { - const onWidthDidChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWidthDidChangeTmpBuf_BufArgsSerializer.writeInt32(onWidthDidChangeTmpBuf_BufResource.resourceId); - onWidthDidChangeTmpBuf_BufArgsSerializer.writePointer(onWidthDidChangeTmpBuf_BufCall); - onWidthDidChangeTmpBuf_BufArgsSerializer.writePointer(onWidthDidChangeTmpBuf_BufCallSync); - onWidthDidChangeTmpBuf_BufArgsSerializer.writeNumber(value0); - InteropNativeModule._CallCallback(36519084, onWidthDidChangeTmpBuf_BufArgsSerializer.asBuffer(), onWidthDidChangeTmpBuf_BufArgsSerializer.length()); - onWidthDidChangeTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onWidthDidChangeTmpResult : ((value0: number) => void) | undefined = onWidthDidChangeTmpBuf - const onTypeDidChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onTypeDidChangeTmpBuf : ((value0: SheetType) => void) | undefined - if ((onTypeDidChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onTypeDidChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onTypeDidChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onTypeDidChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onTypeDidChangeTmpBuf = (value0: SheetType):void => { - const onTypeDidChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onTypeDidChangeTmpBuf_BufArgsSerializer.writeInt32(onTypeDidChangeTmpBuf_BufResource.resourceId); - onTypeDidChangeTmpBuf_BufArgsSerializer.writePointer(onTypeDidChangeTmpBuf_BufCall); - onTypeDidChangeTmpBuf_BufArgsSerializer.writePointer(onTypeDidChangeTmpBuf_BufCallSync); - onTypeDidChangeTmpBuf_BufArgsSerializer.writeInt32(TypeChecker.SheetType_ToNumeric(value0)); - InteropNativeModule._CallCallback(-224451112, onTypeDidChangeTmpBuf_BufArgsSerializer.asBuffer(), onTypeDidChangeTmpBuf_BufArgsSerializer.length()); - onTypeDidChangeTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onTypeDidChangeTmpResult : ((value0: SheetType) => void) | undefined = onTypeDidChangeTmpBuf - const uiContextTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let uiContextTmpBuf : UIContext | undefined - if ((uiContextTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - uiContextTmpBuf = (UIContext_serializer.read(valueDeserializer) as UIContext) - } - const uiContextTmpResult : UIContext | undefined = uiContextTmpBuf - const keyboardAvoidModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let keyboardAvoidModeTmpBuf : SheetKeyboardAvoidMode | undefined - if ((keyboardAvoidModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - keyboardAvoidModeTmpBuf = TypeChecker.SheetKeyboardAvoidMode_FromNumeric(valueDeserializer.readInt32()) - } - const keyboardAvoidModeTmpResult : SheetKeyboardAvoidMode | undefined = keyboardAvoidModeTmpBuf - const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableHoverModeTmpBuf : boolean | undefined - if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableHoverModeTmpBuf = valueDeserializer.readBoolean() - } - const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf - const hoverModeAreaTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let hoverModeAreaTmpBuf : HoverModeAreaType | undefined - if ((hoverModeAreaTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - hoverModeAreaTmpBuf = TypeChecker.HoverModeAreaType_FromNumeric(valueDeserializer.readInt32()) - } - const hoverModeAreaTmpResult : HoverModeAreaType | undefined = hoverModeAreaTmpBuf - const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetTmpBuf : Position | undefined - if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - offsetTmpBuf = Position_serializer.read(valueDeserializer) - } - const offsetTmpResult : Position | undefined = offsetTmpBuf - const effectEdgeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let effectEdgeTmpBuf : number | undefined - if ((effectEdgeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - effectEdgeTmpBuf = (valueDeserializer.readNumber() as number) - } - const effectEdgeTmpResult : number | undefined = effectEdgeTmpBuf - const radiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let radiusTmpBuf : LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses | undefined - if ((radiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const radiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let radiusTmpBuf_ : LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses | undefined - if (radiusTmpBuf_UnionSelector == (0).toChar()) { - radiusTmpBuf_ = (LengthMetrics_serializer.read(valueDeserializer) as LengthMetrics) - } else if (radiusTmpBuf_UnionSelector == (1).toChar()) { - radiusTmpBuf_ = BorderRadiuses_serializer.read(valueDeserializer) - } else if (radiusTmpBuf_UnionSelector == (2).toChar()) { - radiusTmpBuf_ = LocalizedBorderRadiuses_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for radiusTmpBuf_ has to be chosen through deserialisation.") - } - radiusTmpBuf = (radiusTmpBuf_ as LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses) - } - const radiusTmpResult : LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses | undefined = radiusTmpBuf - const detentSelectionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let detentSelectionTmpBuf : SheetSize | Length | undefined - if ((detentSelectionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const detentSelectionTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let detentSelectionTmpBuf_ : SheetSize | Length | undefined - if (detentSelectionTmpBuf_UnionSelector == (0).toChar()) { - detentSelectionTmpBuf_ = TypeChecker.SheetSize_FromNumeric(valueDeserializer.readInt32()) - } else if (detentSelectionTmpBuf_UnionSelector == (1).toChar()) { - const detentSelectionTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let detentSelectionTmpBuf_BufU : string | number | Resource | undefined - if (detentSelectionTmpBuf_BufUUnionSelector == (0).toChar()) { - detentSelectionTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (detentSelectionTmpBuf_BufUUnionSelector == (1).toChar()) { - detentSelectionTmpBuf_BufU = (valueDeserializer.readNumber() as number) - } else if (detentSelectionTmpBuf_BufUUnionSelector == (2).toChar()) { - detentSelectionTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for detentSelectionTmpBuf_BufU has to be chosen through deserialisation.") - } - detentSelectionTmpBuf_ = (detentSelectionTmpBuf_BufU as string | number | Resource) - } else { - throw new Error("One of the branches for detentSelectionTmpBuf_ has to be chosen through deserialisation.") - } - detentSelectionTmpBuf = (detentSelectionTmpBuf_ as SheetSize | Length) - } - const detentSelectionTmpResult : SheetSize | Length | undefined = detentSelectionTmpBuf - const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let showInSubWindowTmpBuf : boolean | undefined - if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - showInSubWindowTmpBuf = valueDeserializer.readBoolean() - } - const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf - const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let placementTmpBuf : Placement | undefined - if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) - } - const placementTmpResult : Placement | undefined = placementTmpBuf - const placementOnTargetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let placementOnTargetTmpBuf : boolean | undefined - if ((placementOnTargetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - placementOnTargetTmpBuf = valueDeserializer.readBoolean() - } - const placementOnTargetTmpResult : boolean | undefined = placementOnTargetTmpBuf - let value : SheetOptions = ({backgroundColor: backgroundColorTmpResult, onAppear: onAppearTmpResult, onDisappear: onDisappearTmpResult, onWillAppear: onWillAppearTmpResult, onWillDisappear: onWillDisappearTmpResult, height: heightTmpResult, dragBar: dragBarTmpResult, maskColor: maskColorTmpResult, detents: detentsTmpResult, blurStyle: blurStyleTmpResult, showClose: showCloseTmpResult, preferType: preferTypeTmpResult, title: titleTmpResult, shouldDismiss: shouldDismissTmpResult, onWillDismiss: onWillDismissTmpResult, onWillSpringBackWhenDismiss: onWillSpringBackWhenDismissTmpResult, enableOutsideInteractive: enableOutsideInteractiveTmpResult, width: widthTmpResult, borderWidth: borderWidthTmpResult, borderColor: borderColorTmpResult, borderStyle: borderStyleTmpResult, shadow: shadowTmpResult, onHeightDidChange: onHeightDidChangeTmpResult, mode: modeTmpResult, scrollSizeMode: scrollSizeModeTmpResult, onDetentsDidChange: onDetentsDidChangeTmpResult, onWidthDidChange: onWidthDidChangeTmpResult, onTypeDidChange: onTypeDidChangeTmpResult, uiContext: uiContextTmpResult, keyboardAvoidMode: keyboardAvoidModeTmpResult, enableHoverMode: enableHoverModeTmpResult, hoverModeArea: hoverModeAreaTmpResult, offset: offsetTmpResult, effectEdge: effectEdgeTmpResult, radius: radiusTmpResult, detentSelection: detentSelectionTmpResult, showInSubWindow: showInSubWindowTmpResult, placement: placementTmpResult, placementOnTarget: placementOnTargetTmpResult} as SheetOptions) - return value - } -} -export class TouchEvent_serializer { - public static write(buffer: SerializerBase, value: TouchEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): TouchEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return TouchEventInternal.fromPtr(ptr) - } -} -export class AccessibilityHoverEvent_serializer { - public static write(buffer: SerializerBase, value: AccessibilityHoverEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): AccessibilityHoverEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return AccessibilityHoverEventInternal.fromPtr(ptr) - } -} -export class AxisEvent_serializer { - public static write(buffer: SerializerBase, value: AxisEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): AxisEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return AxisEventInternal.fromPtr(ptr) - } -} -export class BaseEvent_serializer { - public static write(buffer: SerializerBase, value: BaseEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): BaseEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return BaseEventInternal.fromPtr(ptr) - } -} -export class ClickEvent_serializer { - public static write(buffer: SerializerBase, value: ClickEvent): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): ClickEvent { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return ClickEventInternal.fromPtr(ptr) - } -} -export class PopupOptions_serializer { - public static write(buffer: SerializerBase, value: PopupOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForMessage = value.message - valueSerializer.writeString(valueHolderForMessage) - const valueHolderForPlacement = value.placement - if (valueHolderForPlacement !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPlacementTmpValue = (valueHolderForPlacement as Placement) - valueSerializer.writeInt32(TypeChecker.Placement_ToNumeric(valueHolderForPlacementTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPrimaryButton = value.primaryButton - if (valueHolderForPrimaryButton !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPrimaryButtonTmpValue = valueHolderForPrimaryButton! - PopupButton_serializer.write(valueSerializer, valueHolderForPrimaryButtonTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForSecondaryButton = value.secondaryButton - if (valueHolderForSecondaryButton !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForSecondaryButtonTmpValue = valueHolderForSecondaryButton! - PopupButton_serializer.write(valueSerializer, valueHolderForSecondaryButtonTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnStateChange = value.onStateChange - if (valueHolderForOnStateChange !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnStateChangeTmpValue = valueHolderForOnStateChange! - valueSerializer.holdAndWriteCallback(valueHolderForOnStateChangeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowOffset = value.arrowOffset - if (valueHolderForArrowOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowOffsetTmpValue = valueHolderForArrowOffset! - if (valueHolderForArrowOffsetTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx0 = valueHolderForArrowOffsetTmpValue as string - valueSerializer.writeString(valueHolderForArrowOffsetTmpValueForIdx0) - } else if (valueHolderForArrowOffsetTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx1 = valueHolderForArrowOffsetTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowOffsetTmpValueForIdx1) - } else if (valueHolderForArrowOffsetTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowOffsetTmpValueForIdx2 = valueHolderForArrowOffsetTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowOffsetTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShowInSubWindow = value.showInSubWindow - if (valueHolderForShowInSubWindow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShowInSubWindowTmpValue = valueHolderForShowInSubWindow! - valueSerializer.writeBoolean(valueHolderForShowInSubWindowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForMask = value.mask - if (valueHolderForMask !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForMaskTmpValue = valueHolderForMask! - if (valueHolderForMaskTmpValue instanceof boolean) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForMaskTmpValueForIdx0 = valueHolderForMaskTmpValue as boolean - valueSerializer.writeBoolean(valueHolderForMaskTmpValueForIdx0) - } else if (valueHolderForMaskTmpValue instanceof PopupMaskType) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForMaskTmpValueForIdx1 = valueHolderForMaskTmpValue as PopupMaskType - PopupMaskType_serializer.write(valueSerializer, valueHolderForMaskTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForMessageOptions = value.messageOptions - if (valueHolderForMessageOptions !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForMessageOptionsTmpValue = valueHolderForMessageOptions! - PopupMessageOptions_serializer.write(valueSerializer, valueHolderForMessageOptionsTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTargetSpace = value.targetSpace - if (valueHolderForTargetSpace !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTargetSpaceTmpValue = valueHolderForTargetSpace! - if (valueHolderForTargetSpaceTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTargetSpaceTmpValueForIdx0 = valueHolderForTargetSpaceTmpValue as string - valueSerializer.writeString(valueHolderForTargetSpaceTmpValueForIdx0) - } else if (valueHolderForTargetSpaceTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTargetSpaceTmpValueForIdx1 = valueHolderForTargetSpaceTmpValue as number - valueSerializer.writeNumber(valueHolderForTargetSpaceTmpValueForIdx1) - } else if (valueHolderForTargetSpaceTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForTargetSpaceTmpValueForIdx2 = valueHolderForTargetSpaceTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForTargetSpaceTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableArrow = value.enableArrow - if (valueHolderForEnableArrow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableArrowTmpValue = valueHolderForEnableArrow! - valueSerializer.writeBoolean(valueHolderForEnableArrowTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOffset = value.offset - if (valueHolderForOffset !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOffsetTmpValue = valueHolderForOffset! - Position_serializer.write(valueSerializer, valueHolderForOffsetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForPopupColor = value.popupColor - if (valueHolderForPopupColor !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPopupColorTmpValue = valueHolderForPopupColor! - if (valueHolderForPopupColorTmpValue instanceof Color) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPopupColorTmpValueForIdx0 = valueHolderForPopupColorTmpValue as Color - valueSerializer.writeInt32(TypeChecker.Color_ToNumeric(valueHolderForPopupColorTmpValueForIdx0)) - } else if (valueHolderForPopupColorTmpValue instanceof string) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPopupColorTmpValueForIdx1 = valueHolderForPopupColorTmpValue as string - valueSerializer.writeString(valueHolderForPopupColorTmpValueForIdx1) - } else if (valueHolderForPopupColorTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForPopupColorTmpValueForIdx2 = valueHolderForPopupColorTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForPopupColorTmpValueForIdx2) - } else if (valueHolderForPopupColorTmpValue instanceof number) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForPopupColorTmpValueForIdx3 = valueHolderForPopupColorTmpValue as number - valueSerializer.writeNumber(valueHolderForPopupColorTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForAutoCancel = value.autoCancel - if (valueHolderForAutoCancel !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForAutoCancelTmpValue = valueHolderForAutoCancel! - valueSerializer.writeBoolean(valueHolderForAutoCancelTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForWidth = value.width - if (valueHolderForWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForWidthTmpValue = valueHolderForWidth! - if (valueHolderForWidthTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForWidthTmpValueForIdx0 = valueHolderForWidthTmpValue as string - valueSerializer.writeString(valueHolderForWidthTmpValueForIdx0) - } else if (valueHolderForWidthTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForWidthTmpValueForIdx1 = valueHolderForWidthTmpValue as number - valueSerializer.writeNumber(valueHolderForWidthTmpValueForIdx1) - } else if (valueHolderForWidthTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForWidthTmpValueForIdx2 = valueHolderForWidthTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowPointPosition = value.arrowPointPosition - if (valueHolderForArrowPointPosition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowPointPositionTmpValue = (valueHolderForArrowPointPosition as ArrowPointPosition) - valueSerializer.writeInt32(TypeChecker.ArrowPointPosition_ToNumeric(valueHolderForArrowPointPositionTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowWidth = value.arrowWidth - if (valueHolderForArrowWidth !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowWidthTmpValue = valueHolderForArrowWidth! - if (valueHolderForArrowWidthTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowWidthTmpValueForIdx0 = valueHolderForArrowWidthTmpValue as string - valueSerializer.writeString(valueHolderForArrowWidthTmpValueForIdx0) - } else if (valueHolderForArrowWidthTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowWidthTmpValueForIdx1 = valueHolderForArrowWidthTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowWidthTmpValueForIdx1) - } else if (valueHolderForArrowWidthTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowWidthTmpValueForIdx2 = valueHolderForArrowWidthTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowWidthTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForArrowHeight = value.arrowHeight - if (valueHolderForArrowHeight !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForArrowHeightTmpValue = valueHolderForArrowHeight! - if (valueHolderForArrowHeightTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForArrowHeightTmpValueForIdx0 = valueHolderForArrowHeightTmpValue as string - valueSerializer.writeString(valueHolderForArrowHeightTmpValueForIdx0) - } else if (valueHolderForArrowHeightTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForArrowHeightTmpValueForIdx1 = valueHolderForArrowHeightTmpValue as number - valueSerializer.writeNumber(valueHolderForArrowHeightTmpValueForIdx1) - } else if (valueHolderForArrowHeightTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForArrowHeightTmpValueForIdx2 = valueHolderForArrowHeightTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForArrowHeightTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForRadius = value.radius - if (valueHolderForRadius !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForRadiusTmpValue = valueHolderForRadius! - if (valueHolderForRadiusTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForRadiusTmpValueForIdx0 = valueHolderForRadiusTmpValue as string - valueSerializer.writeString(valueHolderForRadiusTmpValueForIdx0) - } else if (valueHolderForRadiusTmpValue instanceof number) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForRadiusTmpValueForIdx1 = valueHolderForRadiusTmpValue as number - valueSerializer.writeNumber(valueHolderForRadiusTmpValueForIdx1) - } else if (valueHolderForRadiusTmpValue instanceof Resource) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForRadiusTmpValueForIdx2 = valueHolderForRadiusTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForRadiusTmpValueForIdx2) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForShadow = value.shadow - if (valueHolderForShadow !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForShadowTmpValue = valueHolderForShadow! - if (valueHolderForShadowTmpValue instanceof ShadowOptions) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForShadowTmpValueForIdx0 = valueHolderForShadowTmpValue as ShadowOptions - ShadowOptions_serializer.write(valueSerializer, valueHolderForShadowTmpValueForIdx0) - } else if (valueHolderForShadowTmpValue instanceof ShadowStyle) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForShadowTmpValueForIdx1 = valueHolderForShadowTmpValue as ShadowStyle - valueSerializer.writeInt32(TypeChecker.ShadowStyle_ToNumeric(valueHolderForShadowTmpValueForIdx1)) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForBackgroundBlurStyle = value.backgroundBlurStyle - if (valueHolderForBackgroundBlurStyle !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForBackgroundBlurStyleTmpValue = (valueHolderForBackgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueHolderForBackgroundBlurStyleTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForTransition = value.transition - if (valueHolderForTransition !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTransitionTmpValue = valueHolderForTransition! - TransitionEffect_serializer.write(valueSerializer, valueHolderForTransitionTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnWillDismiss = value.onWillDismiss - if (valueHolderForOnWillDismiss !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnWillDismissTmpValue = valueHolderForOnWillDismiss! - if (valueHolderForOnWillDismissTmpValue instanceof boolean) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForOnWillDismissTmpValueForIdx0 = valueHolderForOnWillDismissTmpValue as boolean - valueSerializer.writeBoolean(valueHolderForOnWillDismissTmpValueForIdx0) - } else if (valueHolderForOnWillDismissTmpValue instanceof ((value0: DismissPopupAction) => void)) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForOnWillDismissTmpValueForIdx1 = valueHolderForOnWillDismissTmpValue as ((value0: DismissPopupAction) => void) - valueSerializer.holdAndWriteCallback(valueHolderForOnWillDismissTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForEnableHoverMode = value.enableHoverMode - if (valueHolderForEnableHoverMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForEnableHoverModeTmpValue = valueHolderForEnableHoverMode! - valueSerializer.writeBoolean(valueHolderForEnableHoverModeTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFollowTransformOfTarget = value.followTransformOfTarget - if (valueHolderForFollowTransformOfTarget !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFollowTransformOfTargetTmpValue = valueHolderForFollowTransformOfTarget! - valueSerializer.writeBoolean(valueHolderForFollowTransformOfTargetTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForKeyboardAvoidMode = value.keyboardAvoidMode - if (valueHolderForKeyboardAvoidMode !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForKeyboardAvoidModeTmpValue = (valueHolderForKeyboardAvoidMode as KeyboardAvoidMode) - valueSerializer.writeInt32(TypeChecker.KeyboardAvoidMode_ToNumeric(valueHolderForKeyboardAvoidModeTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): PopupOptions { - let valueDeserializer : DeserializerBase = buffer - const messageTmpResult : string = (valueDeserializer.readString() as string) - const placementTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let placementTmpBuf : Placement | undefined - if ((placementTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - placementTmpBuf = TypeChecker.Placement_FromNumeric(valueDeserializer.readInt32()) - } - const placementTmpResult : Placement | undefined = placementTmpBuf - const primaryButtonTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let primaryButtonTmpBuf : PopupButton | undefined - if ((primaryButtonTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - primaryButtonTmpBuf = PopupButton_serializer.read(valueDeserializer) - } - const primaryButtonTmpResult : PopupButton | undefined = primaryButtonTmpBuf - const secondaryButtonTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let secondaryButtonTmpBuf : PopupButton | undefined - if ((secondaryButtonTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - secondaryButtonTmpBuf = PopupButton_serializer.read(valueDeserializer) - } - const secondaryButtonTmpResult : PopupButton | undefined = secondaryButtonTmpBuf - const onStateChangeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onStateChangeTmpBuf : PopupStateChangeCallback | undefined - if ((onStateChangeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onStateChangeTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onStateChangeTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onStateChangeTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onStateChangeTmpBuf = (event: PopupStateChangeParam):void => { - const onStateChangeTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onStateChangeTmpBuf_BufArgsSerializer.writeInt32(onStateChangeTmpBuf_BufResource.resourceId); - onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCall); - onStateChangeTmpBuf_BufArgsSerializer.writePointer(onStateChangeTmpBuf_BufCallSync); - PopupStateChangeParam_serializer.write(onStateChangeTmpBuf_BufArgsSerializer, event); - InteropNativeModule._CallCallback(-1444325632, onStateChangeTmpBuf_BufArgsSerializer.asBuffer(), onStateChangeTmpBuf_BufArgsSerializer.length()); - onStateChangeTmpBuf_BufArgsSerializer.release(); - return; - } - } - const onStateChangeTmpResult : PopupStateChangeCallback | undefined = onStateChangeTmpBuf - const arrowOffsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowOffsetTmpBuf : Length | undefined - if ((arrowOffsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowOffsetTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowOffsetTmpBuf_ : string | number | Resource | undefined - if (arrowOffsetTmpBuf_UnionSelector == (0).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowOffsetTmpBuf_UnionSelector == (1).toChar()) { - arrowOffsetTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowOffsetTmpBuf_UnionSelector == (2).toChar()) { - arrowOffsetTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowOffsetTmpBuf_ has to be chosen through deserialisation.") - } - arrowOffsetTmpBuf = (arrowOffsetTmpBuf_ as string | number | Resource) - } - const arrowOffsetTmpResult : Length | undefined = arrowOffsetTmpBuf - const showInSubWindowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let showInSubWindowTmpBuf : boolean | undefined - if ((showInSubWindowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - showInSubWindowTmpBuf = valueDeserializer.readBoolean() - } - const showInSubWindowTmpResult : boolean | undefined = showInSubWindowTmpBuf - const maskTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let maskTmpBuf : boolean | PopupMaskType | undefined - if ((maskTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const maskTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let maskTmpBuf_ : boolean | PopupMaskType | undefined - if (maskTmpBuf_UnionSelector == (0).toChar()) { - maskTmpBuf_ = valueDeserializer.readBoolean() - } else if (maskTmpBuf_UnionSelector == (1).toChar()) { - maskTmpBuf_ = PopupMaskType_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for maskTmpBuf_ has to be chosen through deserialisation.") - } - maskTmpBuf = (maskTmpBuf_ as boolean | PopupMaskType) - } - const maskTmpResult : boolean | PopupMaskType | undefined = maskTmpBuf - const messageOptionsTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let messageOptionsTmpBuf : PopupMessageOptions | undefined - if ((messageOptionsTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - messageOptionsTmpBuf = PopupMessageOptions_serializer.read(valueDeserializer) - } - const messageOptionsTmpResult : PopupMessageOptions | undefined = messageOptionsTmpBuf - const targetSpaceTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let targetSpaceTmpBuf : Length | undefined - if ((targetSpaceTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const targetSpaceTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let targetSpaceTmpBuf_ : string | number | Resource | undefined - if (targetSpaceTmpBuf_UnionSelector == (0).toChar()) { - targetSpaceTmpBuf_ = (valueDeserializer.readString() as string) - } else if (targetSpaceTmpBuf_UnionSelector == (1).toChar()) { - targetSpaceTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (targetSpaceTmpBuf_UnionSelector == (2).toChar()) { - targetSpaceTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for targetSpaceTmpBuf_ has to be chosen through deserialisation.") - } - targetSpaceTmpBuf = (targetSpaceTmpBuf_ as string | number | Resource) - } - const targetSpaceTmpResult : Length | undefined = targetSpaceTmpBuf - const enableArrowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableArrowTmpBuf : boolean | undefined - if ((enableArrowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableArrowTmpBuf = valueDeserializer.readBoolean() - } - const enableArrowTmpResult : boolean | undefined = enableArrowTmpBuf - const offsetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let offsetTmpBuf : Position | undefined - if ((offsetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - offsetTmpBuf = Position_serializer.read(valueDeserializer) - } - const offsetTmpResult : Position | undefined = offsetTmpBuf - const popupColorTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let popupColorTmpBuf : Color | string | Resource | number | undefined - if ((popupColorTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const popupColorTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let popupColorTmpBuf_ : Color | string | Resource | number | undefined - if (popupColorTmpBuf_UnionSelector == (0).toChar()) { - popupColorTmpBuf_ = TypeChecker.Color_FromNumeric(valueDeserializer.readInt32()) - } else if (popupColorTmpBuf_UnionSelector == (1).toChar()) { - popupColorTmpBuf_ = (valueDeserializer.readString() as string) - } else if (popupColorTmpBuf_UnionSelector == (2).toChar()) { - popupColorTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else if (popupColorTmpBuf_UnionSelector == (3).toChar()) { - popupColorTmpBuf_ = (valueDeserializer.readNumber() as number) - } else { - throw new Error("One of the branches for popupColorTmpBuf_ has to be chosen through deserialisation.") - } - popupColorTmpBuf = (popupColorTmpBuf_ as Color | string | Resource | number) - } - const popupColorTmpResult : Color | string | Resource | number | undefined = popupColorTmpBuf - const autoCancelTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let autoCancelTmpBuf : boolean | undefined - if ((autoCancelTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - autoCancelTmpBuf = valueDeserializer.readBoolean() - } - const autoCancelTmpResult : boolean | undefined = autoCancelTmpBuf - const widthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let widthTmpBuf : Dimension | undefined - if ((widthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const widthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let widthTmpBuf_ : string | number | Resource | undefined - if (widthTmpBuf_UnionSelector == (0).toChar()) { - widthTmpBuf_ = (valueDeserializer.readString() as string) - } else if (widthTmpBuf_UnionSelector == (1).toChar()) { - widthTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (widthTmpBuf_UnionSelector == (2).toChar()) { - widthTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for widthTmpBuf_ has to be chosen through deserialisation.") - } - widthTmpBuf = (widthTmpBuf_ as string | number | Resource) - } - const widthTmpResult : Dimension | undefined = widthTmpBuf - const arrowPointPositionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowPointPositionTmpBuf : ArrowPointPosition | undefined - if ((arrowPointPositionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - arrowPointPositionTmpBuf = TypeChecker.ArrowPointPosition_FromNumeric(valueDeserializer.readInt32()) - } - const arrowPointPositionTmpResult : ArrowPointPosition | undefined = arrowPointPositionTmpBuf - const arrowWidthTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowWidthTmpBuf : Dimension | undefined - if ((arrowWidthTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowWidthTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowWidthTmpBuf_ : string | number | Resource | undefined - if (arrowWidthTmpBuf_UnionSelector == (0).toChar()) { - arrowWidthTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowWidthTmpBuf_UnionSelector == (1).toChar()) { - arrowWidthTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowWidthTmpBuf_UnionSelector == (2).toChar()) { - arrowWidthTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowWidthTmpBuf_ has to be chosen through deserialisation.") - } - arrowWidthTmpBuf = (arrowWidthTmpBuf_ as string | number | Resource) - } - const arrowWidthTmpResult : Dimension | undefined = arrowWidthTmpBuf - const arrowHeightTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let arrowHeightTmpBuf : Dimension | undefined - if ((arrowHeightTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const arrowHeightTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let arrowHeightTmpBuf_ : string | number | Resource | undefined - if (arrowHeightTmpBuf_UnionSelector == (0).toChar()) { - arrowHeightTmpBuf_ = (valueDeserializer.readString() as string) - } else if (arrowHeightTmpBuf_UnionSelector == (1).toChar()) { - arrowHeightTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (arrowHeightTmpBuf_UnionSelector == (2).toChar()) { - arrowHeightTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for arrowHeightTmpBuf_ has to be chosen through deserialisation.") - } - arrowHeightTmpBuf = (arrowHeightTmpBuf_ as string | number | Resource) - } - const arrowHeightTmpResult : Dimension | undefined = arrowHeightTmpBuf - const radiusTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let radiusTmpBuf : Dimension | undefined - if ((radiusTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const radiusTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let radiusTmpBuf_ : string | number | Resource | undefined - if (radiusTmpBuf_UnionSelector == (0).toChar()) { - radiusTmpBuf_ = (valueDeserializer.readString() as string) - } else if (radiusTmpBuf_UnionSelector == (1).toChar()) { - radiusTmpBuf_ = (valueDeserializer.readNumber() as number) - } else if (radiusTmpBuf_UnionSelector == (2).toChar()) { - radiusTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for radiusTmpBuf_ has to be chosen through deserialisation.") - } - radiusTmpBuf = (radiusTmpBuf_ as string | number | Resource) - } - const radiusTmpResult : Dimension | undefined = radiusTmpBuf - const shadowTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let shadowTmpBuf : ShadowOptions | ShadowStyle | undefined - if ((shadowTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const shadowTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let shadowTmpBuf_ : ShadowOptions | ShadowStyle | undefined - if (shadowTmpBuf_UnionSelector == (0).toChar()) { - shadowTmpBuf_ = ShadowOptions_serializer.read(valueDeserializer) - } else if (shadowTmpBuf_UnionSelector == (1).toChar()) { - shadowTmpBuf_ = TypeChecker.ShadowStyle_FromNumeric(valueDeserializer.readInt32()) - } else { - throw new Error("One of the branches for shadowTmpBuf_ has to be chosen through deserialisation.") - } - shadowTmpBuf = (shadowTmpBuf_ as ShadowOptions | ShadowStyle) - } - const shadowTmpResult : ShadowOptions | ShadowStyle | undefined = shadowTmpBuf - const backgroundBlurStyleTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let backgroundBlurStyleTmpBuf : BlurStyle | undefined - if ((backgroundBlurStyleTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - backgroundBlurStyleTmpBuf = TypeChecker.BlurStyle_FromNumeric(valueDeserializer.readInt32()) - } - const backgroundBlurStyleTmpResult : BlurStyle | undefined = backgroundBlurStyleTmpBuf - const transitionTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let transitionTmpBuf : TransitionEffect | undefined - if ((transitionTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - transitionTmpBuf = (TransitionEffect_serializer.read(valueDeserializer) as TransitionEffect) - } - const transitionTmpResult : TransitionEffect | undefined = transitionTmpBuf - const onWillDismissTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onWillDismissTmpBuf : boolean | ((value0: DismissPopupAction) => void) | undefined - if ((onWillDismissTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onWillDismissTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let onWillDismissTmpBuf_ : boolean | ((value0: DismissPopupAction) => void) | undefined - if (onWillDismissTmpBuf_UnionSelector == (0).toChar()) { - onWillDismissTmpBuf_ = valueDeserializer.readBoolean() - } else if (onWillDismissTmpBuf_UnionSelector == (1).toChar()) { - const onWillDismissTmpBuf_BufUBufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onWillDismissTmpBuf_BufUBufCall : KPointer = valueDeserializer.readPointer() - const onWillDismissTmpBuf_BufUBufCallSync : KPointer = valueDeserializer.readPointer() - onWillDismissTmpBuf_ = (value0: DismissPopupAction):void => { - const onWillDismissTmpBuf_BufUBufArgsSerializer : SerializerBase = SerializerBase.hold(); - onWillDismissTmpBuf_BufUBufArgsSerializer.writeInt32(onWillDismissTmpBuf_BufUBufResource.resourceId); - onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCall); - onWillDismissTmpBuf_BufUBufArgsSerializer.writePointer(onWillDismissTmpBuf_BufUBufCallSync); - DismissPopupAction_serializer.write(onWillDismissTmpBuf_BufUBufArgsSerializer, value0); - InteropNativeModule._CallCallback(-2004166751, onWillDismissTmpBuf_BufUBufArgsSerializer.asBuffer(), onWillDismissTmpBuf_BufUBufArgsSerializer.length()); - onWillDismissTmpBuf_BufUBufArgsSerializer.release(); - return; - } - } else { - throw new Error("One of the branches for onWillDismissTmpBuf_ has to be chosen through deserialisation.") - } - onWillDismissTmpBuf = (onWillDismissTmpBuf_ as boolean | ((value0: DismissPopupAction) => void)) - } - const onWillDismissTmpResult : boolean | ((value0: DismissPopupAction) => void) | undefined = onWillDismissTmpBuf - const enableHoverModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let enableHoverModeTmpBuf : boolean | undefined - if ((enableHoverModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - enableHoverModeTmpBuf = valueDeserializer.readBoolean() - } - const enableHoverModeTmpResult : boolean | undefined = enableHoverModeTmpBuf - const followTransformOfTargetTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let followTransformOfTargetTmpBuf : boolean | undefined - if ((followTransformOfTargetTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - followTransformOfTargetTmpBuf = valueDeserializer.readBoolean() - } - const followTransformOfTargetTmpResult : boolean | undefined = followTransformOfTargetTmpBuf - const keyboardAvoidModeTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let keyboardAvoidModeTmpBuf : KeyboardAvoidMode | undefined - if ((keyboardAvoidModeTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - keyboardAvoidModeTmpBuf = TypeChecker.KeyboardAvoidMode_FromNumeric(valueDeserializer.readInt32()) - } - const keyboardAvoidModeTmpResult : KeyboardAvoidMode | undefined = keyboardAvoidModeTmpBuf - let value : PopupOptions = ({message: messageTmpResult, placement: placementTmpResult, primaryButton: primaryButtonTmpResult, secondaryButton: secondaryButtonTmpResult, onStateChange: onStateChangeTmpResult, arrowOffset: arrowOffsetTmpResult, showInSubWindow: showInSubWindowTmpResult, mask: maskTmpResult, messageOptions: messageOptionsTmpResult, targetSpace: targetSpaceTmpResult, enableArrow: enableArrowTmpResult, offset: offsetTmpResult, popupColor: popupColorTmpResult, autoCancel: autoCancelTmpResult, width: widthTmpResult, arrowPointPosition: arrowPointPositionTmpResult, arrowWidth: arrowWidthTmpResult, arrowHeight: arrowHeightTmpResult, radius: radiusTmpResult, shadow: shadowTmpResult, backgroundBlurStyle: backgroundBlurStyleTmpResult, transition: transitionTmpResult, onWillDismiss: onWillDismissTmpResult, enableHoverMode: enableHoverModeTmpResult, followTransformOfTarget: followTransformOfTargetTmpResult, keyboardAvoidMode: keyboardAvoidModeTmpResult} as PopupOptions) - return value - } -} -export interface AccessibilityHoverEvent { - type: AccessibilityHoverType - x: number - y: number - displayX: number - displayY: number - windowX: number - windowY: number -} -export class AccessibilityHoverEventInternal extends BaseEventInternal implements MaterializedBase,AccessibilityHoverEvent { - get type(): AccessibilityHoverType { - return this.getType() - } - set type(type: AccessibilityHoverType) { - this.setType(type) - } - get x(): number { - return this.getX() - } - set x(x: number) { - this.setX(x) - } - get y(): number { - return this.getY() - } - set y(y: number) { - this.setY(y) - } - get displayX(): number { - return this.getDisplayX() - } - set displayX(displayX: number) { - this.setDisplayX(displayX) - } - get displayY(): number { - return this.getDisplayY() - } - set displayY(displayY: number) { - this.setDisplayY(displayY) - } - get windowX(): number { - return this.getWindowX() - } - set windowX(windowX: number) { - this.setWindowX(windowX) - } - get windowY(): number { - return this.getWindowY() - } - set windowY(windowY: number) { - this.setWindowY(windowY) - } - constructor(peerPtr: KPointer) { - super(peerPtr) - } - constructor() { - this(AccessibilityHoverEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): AccessibilityHoverEventInternal { - return new AccessibilityHoverEventInternal(ptr) - } - private getType(): AccessibilityHoverType { - return this.getType_serialize() - } - private setType(type: AccessibilityHoverType): void { - const type_casted = type as (AccessibilityHoverType) - this.setType_serialize(type_casted) - return - } - private getX(): number { - return this.getX_serialize() - } - private setX(x: number): void { - const x_casted = x as (number) - this.setX_serialize(x_casted) - return - } - private getY(): number { - return this.getY_serialize() - } - private setY(y: number): void { - const y_casted = y as (number) - this.setY_serialize(y_casted) - return - } - private getDisplayX(): number { - return this.getDisplayX_serialize() - } - private setDisplayX(displayX: number): void { - const displayX_casted = displayX as (number) - this.setDisplayX_serialize(displayX_casted) - return - } - private getDisplayY(): number { - return this.getDisplayY_serialize() - } - private setDisplayY(displayY: number): void { - const displayY_casted = displayY as (number) - this.setDisplayY_serialize(displayY_casted) - return - } - private getWindowX(): number { - return this.getWindowX_serialize() - } - private setWindowX(windowX: number): void { - const windowX_casted = windowX as (number) - this.setWindowX_serialize(windowX_casted) - return - } - private getWindowY(): number { - return this.getWindowY_serialize() - } - private setWindowY(windowY: number): void { - const windowY_casted = windowY as (number) - this.setWindowY_serialize(windowY_casted) - return - } - private getType_serialize(): AccessibilityHoverType { - const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getType(this.peer!.ptr) - return TypeChecker.AccessibilityHoverType_FromNumeric(retval) - } - private setType_serialize(type: AccessibilityHoverType): void { - ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setType(this.peer!.ptr, TypeChecker.AccessibilityHoverType_ToNumeric(type)) - } - private getX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getX(this.peer!.ptr) - return retval - } - private setX_serialize(x: number): void { - ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setX(this.peer!.ptr, x) - } - private getY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getY(this.peer!.ptr) - return retval - } - private setY_serialize(y: number): void { - ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setY(this.peer!.ptr, y) - } - private getDisplayX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getDisplayX(this.peer!.ptr) - return retval - } - private setDisplayX_serialize(displayX: number): void { - ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setDisplayX(this.peer!.ptr, displayX) - } - private getDisplayY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getDisplayY(this.peer!.ptr) - return retval - } - private setDisplayY_serialize(displayY: number): void { - ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setDisplayY(this.peer!.ptr, displayY) - } - private getWindowX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getWindowX(this.peer!.ptr) - return retval - } - private setWindowX_serialize(windowX: number): void { - ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setWindowX(this.peer!.ptr, windowX) - } - private getWindowY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getWindowY(this.peer!.ptr) - return retval - } - private setWindowY_serialize(windowY: number): void { - ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setWindowY(this.peer!.ptr, windowY) - } -} -export interface AxisEvent { - action: AxisAction - displayX: number - displayY: number - windowX: number - windowY: number - x: number - y: number - scrollStep?: number | undefined - propagation: (() => void) - getHorizontalAxisValue(): number - getVerticalAxisValue(): number -} -export class AxisEventInternal extends BaseEventInternal implements MaterializedBase,AxisEvent { - get action(): AxisAction { - return this.getAction() - } - set action(action: AxisAction) { - this.setAction(action) - } - get displayX(): number { - return this.getDisplayX() - } - set displayX(displayX: number) { - this.setDisplayX(displayX) - } - get displayY(): number { - return this.getDisplayY() - } - set displayY(displayY: number) { - this.setDisplayY(displayY) - } - get windowX(): number { - return this.getWindowX() - } - set windowX(windowX: number) { - this.setWindowX(windowX) - } - get windowY(): number { - return this.getWindowY() - } - set windowY(windowY: number) { - this.setWindowY(windowY) - } - get x(): number { - return this.getX() - } - set x(x: number) { - this.setX(x) - } - get y(): number { - return this.getY() - } - set y(y: number) { - this.setY(y) - } - get scrollStep(): number | undefined { - return this.getScrollStep() - } - set scrollStep(scrollStep: number | undefined) { - const scrollStep_NonNull = (scrollStep as number) - this.setScrollStep(scrollStep_NonNull) - } - get propagation(): (() => void) { - return this.getPropagation() - } - set propagation(propagation: (() => void)) { - this.setPropagation(propagation) - } - constructor(peerPtr: KPointer) { - super(peerPtr) - } - constructor() { - this(AxisEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._AxisEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._AxisEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): AxisEventInternal { - return new AxisEventInternal(ptr) - } - public getHorizontalAxisValue(): number { - return this.getHorizontalAxisValue_serialize() - } - public getVerticalAxisValue(): number { - return this.getVerticalAxisValue_serialize() - } - private getAction(): AxisAction { - return this.getAction_serialize() - } - private setAction(action: AxisAction): void { - const action_casted = action as (AxisAction) - this.setAction_serialize(action_casted) - return - } - private getDisplayX(): number { - return this.getDisplayX_serialize() - } - private setDisplayX(displayX: number): void { - const displayX_casted = displayX as (number) - this.setDisplayX_serialize(displayX_casted) - return - } - private getDisplayY(): number { - return this.getDisplayY_serialize() - } - private setDisplayY(displayY: number): void { - const displayY_casted = displayY as (number) - this.setDisplayY_serialize(displayY_casted) - return - } - private getWindowX(): number { - return this.getWindowX_serialize() - } - private setWindowX(windowX: number): void { - const windowX_casted = windowX as (number) - this.setWindowX_serialize(windowX_casted) - return - } - private getWindowY(): number { - return this.getWindowY_serialize() - } - private setWindowY(windowY: number): void { - const windowY_casted = windowY as (number) - this.setWindowY_serialize(windowY_casted) - return - } - private getX(): number { - return this.getX_serialize() - } - private setX(x: number): void { - const x_casted = x as (number) - this.setX_serialize(x_casted) - return - } - private getY(): number { - return this.getY_serialize() - } - private setY(y: number): void { - const y_casted = y as (number) - this.setY_serialize(y_casted) - return - } - private getScrollStep(): number | undefined { - return this.getScrollStep_serialize() - } - private setScrollStep(scrollStep: number | undefined): void { - const scrollStep_casted = scrollStep as (number | undefined) - this.setScrollStep_serialize(scrollStep_casted) - return - } - private getPropagation(): (() => void) { - return this.getPropagation_serialize() - } - private setPropagation(propagation: (() => void)): void { - const propagation_casted = propagation as ((() => void)) - this.setPropagation_serialize(propagation_casted) - return - } - private getHorizontalAxisValue_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getHorizontalAxisValue(this.peer!.ptr) - return retval - } - private getVerticalAxisValue_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getVerticalAxisValue(this.peer!.ptr) - return retval - } - private getAction_serialize(): AxisAction { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getAction(this.peer!.ptr) - return TypeChecker.AxisAction_FromNumeric(retval) - } - private setAction_serialize(action: AxisAction): void { - ArkUIGeneratedNativeModule._AxisEvent_setAction(this.peer!.ptr, TypeChecker.AxisAction_ToNumeric(action)) - } - private getDisplayX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getDisplayX(this.peer!.ptr) - return retval - } - private setDisplayX_serialize(displayX: number): void { - ArkUIGeneratedNativeModule._AxisEvent_setDisplayX(this.peer!.ptr, displayX) - } - private getDisplayY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getDisplayY(this.peer!.ptr) - return retval - } - private setDisplayY_serialize(displayY: number): void { - ArkUIGeneratedNativeModule._AxisEvent_setDisplayY(this.peer!.ptr, displayY) - } - private getWindowX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getWindowX(this.peer!.ptr) - return retval - } - private setWindowX_serialize(windowX: number): void { - ArkUIGeneratedNativeModule._AxisEvent_setWindowX(this.peer!.ptr, windowX) - } - private getWindowY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getWindowY(this.peer!.ptr) - return retval - } - private setWindowY_serialize(windowY: number): void { - ArkUIGeneratedNativeModule._AxisEvent_setWindowY(this.peer!.ptr, windowY) - } - private getX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getX(this.peer!.ptr) - return retval - } - private setX_serialize(x: number): void { - ArkUIGeneratedNativeModule._AxisEvent_setX(this.peer!.ptr, x) - } - private getY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getY(this.peer!.ptr) - return retval - } - private setY_serialize(y: number): void { - ArkUIGeneratedNativeModule._AxisEvent_setY(this.peer!.ptr, y) - } - private getScrollStep_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getScrollStep(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setScrollStep_serialize(scrollStep: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (scrollStep !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const scrollStepTmpValue = scrollStep! - thisSerializer.writeNumber(scrollStepTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AxisEvent_setScrollStep(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getPropagation_serialize(): (() => void) { - const retval = ArkUIGeneratedNativeModule._AxisEvent_getPropagation(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } - private setPropagation_serialize(propagation: (() => void)): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(propagation) - ArkUIGeneratedNativeModule._AxisEvent_setPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface ClickEvent { - displayX: number - displayY: number - windowX: number - windowY: number - x: number - y: number - hand?: InteractionHand | undefined - preventDefault: (() => void) -} -export class ClickEventInternal extends BaseEventInternal implements MaterializedBase,ClickEvent { - get displayX(): number { - return this.getDisplayX() - } - set displayX(displayX: number) { - this.setDisplayX(displayX) - } - get displayY(): number { - return this.getDisplayY() - } - set displayY(displayY: number) { - this.setDisplayY(displayY) - } - get windowX(): number { - return this.getWindowX() - } - set windowX(windowX: number) { - this.setWindowX(windowX) - } - get windowY(): number { - return this.getWindowY() - } - set windowY(windowY: number) { - this.setWindowY(windowY) - } - get x(): number { - return this.getX() - } - set x(x: number) { - this.setX(x) - } - get y(): number { - return this.getY() - } - set y(y: number) { - this.setY(y) - } - get hand(): InteractionHand | undefined { - return this.getHand() - } - set hand(hand: InteractionHand | undefined) { - const hand_NonNull = (hand as InteractionHand) - this.setHand(hand_NonNull) - } - get preventDefault(): (() => void) { - return this.getPreventDefault() - } - set preventDefault(preventDefault: (() => void)) { - this.setPreventDefault(preventDefault) - } - constructor(peerPtr: KPointer) { - super(peerPtr) - } - constructor() { - this(ClickEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._ClickEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._ClickEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): ClickEventInternal { - return new ClickEventInternal(ptr) - } - private getDisplayX(): number { - return this.getDisplayX_serialize() - } - private setDisplayX(displayX: number): void { - const displayX_casted = displayX as (number) - this.setDisplayX_serialize(displayX_casted) - return - } - private getDisplayY(): number { - return this.getDisplayY_serialize() - } - private setDisplayY(displayY: number): void { - const displayY_casted = displayY as (number) - this.setDisplayY_serialize(displayY_casted) - return - } - private getWindowX(): number { - return this.getWindowX_serialize() - } - private setWindowX(windowX: number): void { - const windowX_casted = windowX as (number) - this.setWindowX_serialize(windowX_casted) - return - } - private getWindowY(): number { - return this.getWindowY_serialize() - } - private setWindowY(windowY: number): void { - const windowY_casted = windowY as (number) - this.setWindowY_serialize(windowY_casted) - return - } - private getX(): number { - return this.getX_serialize() - } - private setX(x: number): void { - const x_casted = x as (number) - this.setX_serialize(x_casted) - return - } - private getY(): number { - return this.getY_serialize() - } - private setY(y: number): void { - const y_casted = y as (number) - this.setY_serialize(y_casted) - return - } - private getHand(): InteractionHand | undefined { - return this.getHand_serialize() - } - private setHand(hand: InteractionHand | undefined): void { - const hand_casted = hand as (InteractionHand | undefined) - this.setHand_serialize(hand_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) - return - } - private getDisplayX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._ClickEvent_getDisplayX(this.peer!.ptr) - return retval - } - private setDisplayX_serialize(displayX: number): void { - ArkUIGeneratedNativeModule._ClickEvent_setDisplayX(this.peer!.ptr, displayX) - } - private getDisplayY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._ClickEvent_getDisplayY(this.peer!.ptr) - return retval - } - private setDisplayY_serialize(displayY: number): void { - ArkUIGeneratedNativeModule._ClickEvent_setDisplayY(this.peer!.ptr, displayY) - } - private getWindowX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._ClickEvent_getWindowX(this.peer!.ptr) - return retval - } - private setWindowX_serialize(windowX: number): void { - ArkUIGeneratedNativeModule._ClickEvent_setWindowX(this.peer!.ptr, windowX) - } - private getWindowY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._ClickEvent_getWindowY(this.peer!.ptr) - return retval - } - private setWindowY_serialize(windowY: number): void { - ArkUIGeneratedNativeModule._ClickEvent_setWindowY(this.peer!.ptr, windowY) - } - private getX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._ClickEvent_getX(this.peer!.ptr) - return retval - } - private setX_serialize(x: number): void { - ArkUIGeneratedNativeModule._ClickEvent_setX(this.peer!.ptr, x) - } - private getY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._ClickEvent_getY(this.peer!.ptr) - return retval - } - private setY_serialize(y: number): void { - ArkUIGeneratedNativeModule._ClickEvent_setY(this.peer!.ptr, y) - } - private getHand_serialize(): InteractionHand | undefined { - const retval = ArkUIGeneratedNativeModule._ClickEvent_getHand(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : InteractionHand | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = TypeChecker.InteractionHand_FromNumeric(retvalDeserializer.readInt32()) - } - const returnResult : InteractionHand | undefined = buffer - return returnResult - } - private setHand_serialize(hand: InteractionHand | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (hand !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const handTmpValue = (hand as InteractionHand) - thisSerializer.writeInt32(TypeChecker.InteractionHand_ToNumeric(handTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._ClickEvent_setHand(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - 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 : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(preventDefault) - ArkUIGeneratedNativeModule._ClickEvent_setPreventDefault(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface FocusAxisEvent { - axisMap: Map - stopPropagation: (() => void) -} -export class FocusAxisEventInternal extends BaseEventInternal implements MaterializedBase,FocusAxisEvent { - get axisMap(): Map { - return this.getAxisMap() - } - set axisMap(axisMap: Map) { - this.setAxisMap(axisMap) - } - get stopPropagation(): (() => void) { - return this.getStopPropagation() - } - set stopPropagation(stopPropagation: (() => void)) { - this.setStopPropagation(stopPropagation) - } - constructor(peerPtr: KPointer) { - super(peerPtr) - } - constructor() { - this(FocusAxisEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._FocusAxisEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._FocusAxisEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): FocusAxisEventInternal { - return new FocusAxisEventInternal(ptr) - } - private getAxisMap(): Map { - return this.getAxisMap_serialize() - } - private setAxisMap(axisMap: Map): void { - const axisMap_casted = axisMap as (Map) - this.setAxisMap_serialize(axisMap_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 getAxisMap_serialize(): Map { - const retval = ArkUIGeneratedNativeModule._FocusAxisEvent_getAxisMap(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const bufferSizeVar : int32 = retvalDeserializer.readInt32() - let buffer : Map = new Map() - // TODO: TS map resize - for (let bufferIVar = 0; bufferIVar < bufferSizeVar; bufferIVar++) { - const bufferKeyVar : AxisModel = TypeChecker.AxisModel_FromNumeric(retvalDeserializer.readInt32()) - const bufferValueVar : number = (retvalDeserializer.readNumber() as number) - buffer.set(bufferKeyVar, bufferValueVar) - } - const returnResult : Map = buffer - return returnResult - } - private setAxisMap_serialize(axisMap: Map): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - thisSerializer.writeInt32((axisMap.size).toInt()) - for (const pair of axisMap) { - const axisMapKeyVar = pair[0] - const axisMapValueVar = pair[1] - thisSerializer.writeInt32(TypeChecker.AxisModel_ToNumeric(axisMapKeyVar)) - thisSerializer.writeNumber(axisMapValueVar) - } - ArkUIGeneratedNativeModule._FocusAxisEvent_setAxisMap(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getStopPropagation_serialize(): (() => void) { - const retval = ArkUIGeneratedNativeModule._FocusAxisEvent_getStopPropagation(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } - private setStopPropagation_serialize(stopPropagation: (() => void)): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(stopPropagation) - ArkUIGeneratedNativeModule._FocusAxisEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface HoverEvent { - x?: number | undefined - y?: number | undefined - windowX?: number | undefined - windowY?: number | undefined - displayX?: number | undefined - displayY?: number | undefined - stopPropagation: (() => void) -} -export class HoverEventInternal extends BaseEventInternal implements MaterializedBase,HoverEvent { - get x(): number | undefined { - return this.getX() - } - set x(x: number | undefined) { - const x_NonNull = (x as number) - this.setX(x_NonNull) - } - get y(): number | undefined { - return this.getY() - } - set y(y: number | undefined) { - const y_NonNull = (y as number) - this.setY(y_NonNull) - } - get windowX(): number | undefined { - return this.getWindowX() - } - set windowX(windowX: number | undefined) { - const windowX_NonNull = (windowX as number) - this.setWindowX(windowX_NonNull) - } - get windowY(): number | undefined { - return this.getWindowY() - } - set windowY(windowY: number | undefined) { - const windowY_NonNull = (windowY as number) - this.setWindowY(windowY_NonNull) - } - get displayX(): number | undefined { - return this.getDisplayX() - } - set displayX(displayX: number | undefined) { - const displayX_NonNull = (displayX as number) - this.setDisplayX(displayX_NonNull) - } - get displayY(): number | undefined { - return this.getDisplayY() - } - set displayY(displayY: number | undefined) { - const displayY_NonNull = (displayY as number) - this.setDisplayY(displayY_NonNull) - } - get stopPropagation(): (() => void) { - return this.getStopPropagation() - } - set stopPropagation(stopPropagation: (() => void)) { - this.setStopPropagation(stopPropagation) - } - constructor(peerPtr: KPointer) { - super(peerPtr) - } - constructor() { - this(HoverEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._HoverEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._HoverEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): HoverEventInternal { - return new HoverEventInternal(ptr) - } - private getX(): number | undefined { - return this.getX_serialize() - } - private setX(x: number | undefined): void { - const x_casted = x as (number | undefined) - this.setX_serialize(x_casted) - return - } - private getY(): number | undefined { - return this.getY_serialize() - } - private setY(y: number | undefined): void { - const y_casted = y as (number | undefined) - this.setY_serialize(y_casted) - return - } - private getWindowX(): number | undefined { - return this.getWindowX_serialize() - } - private setWindowX(windowX: number | undefined): void { - const windowX_casted = windowX as (number | undefined) - this.setWindowX_serialize(windowX_casted) - return - } - private getWindowY(): number | undefined { - return this.getWindowY_serialize() - } - private setWindowY(windowY: number | undefined): void { - const windowY_casted = windowY as (number | undefined) - this.setWindowY_serialize(windowY_casted) - return - } - private getDisplayX(): number | undefined { - return this.getDisplayX_serialize() - } - private setDisplayX(displayX: number | undefined): void { - const displayX_casted = displayX as (number | undefined) - this.setDisplayX_serialize(displayX_casted) - return - } - private getDisplayY(): number | undefined { - return this.getDisplayY_serialize() - } - private setDisplayY(displayY: number | undefined): void { - const displayY_casted = displayY as (number | undefined) - this.setDisplayY_serialize(displayY_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 getX_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._HoverEvent_getX(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setX_serialize(x: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (x !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const xTmpValue = x! - thisSerializer.writeNumber(xTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._HoverEvent_setX(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getY_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._HoverEvent_getY(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setY_serialize(y: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (y !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const yTmpValue = y! - thisSerializer.writeNumber(yTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._HoverEvent_setY(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getWindowX_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._HoverEvent_getWindowX(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setWindowX_serialize(windowX: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (windowX !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const windowXTmpValue = windowX! - thisSerializer.writeNumber(windowXTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._HoverEvent_setWindowX(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getWindowY_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._HoverEvent_getWindowY(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setWindowY_serialize(windowY: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (windowY !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const windowYTmpValue = windowY! - thisSerializer.writeNumber(windowYTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._HoverEvent_setWindowY(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getDisplayX_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._HoverEvent_getDisplayX(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setDisplayX_serialize(displayX: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (displayX !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const displayXTmpValue = displayX! - thisSerializer.writeNumber(displayXTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._HoverEvent_setDisplayX(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getDisplayY_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._HoverEvent_getDisplayY(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setDisplayY_serialize(displayY: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (displayY !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const displayYTmpValue = displayY! - thisSerializer.writeNumber(displayYTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._HoverEvent_setDisplayY(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - 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 : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(stopPropagation) - ArkUIGeneratedNativeModule._HoverEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface MouseEvent { - button: MouseButton - action: MouseAction - displayX: number - displayY: number - windowX: number - windowY: number - x: number - y: number - stopPropagation: (() => void) - rawDeltaX?: number | undefined - rawDeltaY?: number | undefined - pressedButtons?: Array | undefined -} -export class MouseEventInternal extends BaseEventInternal implements MaterializedBase,MouseEvent { - get button(): MouseButton { - return this.getButton() - } - set button(button: MouseButton) { - this.setButton(button) - } - get action(): MouseAction { - return this.getAction() - } - set action(action: MouseAction) { - this.setAction(action) - } - get displayX(): number { - return this.getDisplayX() - } - set displayX(displayX: number) { - this.setDisplayX(displayX) - } - get displayY(): number { - return this.getDisplayY() - } - set displayY(displayY: number) { - this.setDisplayY(displayY) - } - get windowX(): number { - return this.getWindowX() - } - set windowX(windowX: number) { - this.setWindowX(windowX) - } - get windowY(): number { - return this.getWindowY() - } - set windowY(windowY: number) { - this.setWindowY(windowY) - } - get x(): number { - return this.getX() - } - set x(x: number) { - this.setX(x) - } - get y(): number { - return this.getY() - } - set y(y: number) { - this.setY(y) - } - get stopPropagation(): (() => void) { - return this.getStopPropagation() - } - set stopPropagation(stopPropagation: (() => void)) { - this.setStopPropagation(stopPropagation) - } - get rawDeltaX(): number | undefined { - return this.getRawDeltaX() - } - set rawDeltaX(rawDeltaX: number | undefined) { - const rawDeltaX_NonNull = (rawDeltaX as number) - this.setRawDeltaX(rawDeltaX_NonNull) - } - get rawDeltaY(): number | undefined { - return this.getRawDeltaY() - } - set rawDeltaY(rawDeltaY: number | undefined) { - const rawDeltaY_NonNull = (rawDeltaY as number) - this.setRawDeltaY(rawDeltaY_NonNull) - } - get pressedButtons(): Array | undefined { - return this.getPressedButtons() - } - set pressedButtons(pressedButtons: Array | undefined) { - const pressedButtons_NonNull = (pressedButtons as Array) - this.setPressedButtons(pressedButtons_NonNull) - } - constructor(peerPtr: KPointer) { - super(peerPtr) - } - constructor() { - this(MouseEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._MouseEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._MouseEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): MouseEventInternal { - return new MouseEventInternal(ptr) - } - private getButton(): MouseButton { - return this.getButton_serialize() - } - private setButton(button: MouseButton): void { - const button_casted = button as (MouseButton) - this.setButton_serialize(button_casted) - return - } - private getAction(): MouseAction { - return this.getAction_serialize() - } - private setAction(action: MouseAction): void { - const action_casted = action as (MouseAction) - this.setAction_serialize(action_casted) - return - } - private getDisplayX(): number { - return this.getDisplayX_serialize() - } - private setDisplayX(displayX: number): void { - const displayX_casted = displayX as (number) - this.setDisplayX_serialize(displayX_casted) - return - } - private getDisplayY(): number { - return this.getDisplayY_serialize() - } - private setDisplayY(displayY: number): void { - const displayY_casted = displayY as (number) - this.setDisplayY_serialize(displayY_casted) - return - } - private getWindowX(): number { - return this.getWindowX_serialize() - } - private setWindowX(windowX: number): void { - const windowX_casted = windowX as (number) - this.setWindowX_serialize(windowX_casted) - return - } - private getWindowY(): number { - return this.getWindowY_serialize() - } - private setWindowY(windowY: number): void { - const windowY_casted = windowY as (number) - this.setWindowY_serialize(windowY_casted) - return - } - private getX(): number { - return this.getX_serialize() - } - private setX(x: number): void { - const x_casted = x as (number) - this.setX_serialize(x_casted) - return - } - private getY(): number { - return this.getY_serialize() - } - private setY(y: number): void { - const y_casted = y as (number) - 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) - return - } - private getRawDeltaX(): number | undefined { - return this.getRawDeltaX_serialize() - } - private setRawDeltaX(rawDeltaX: number | undefined): void { - const rawDeltaX_casted = rawDeltaX as (number | undefined) - this.setRawDeltaX_serialize(rawDeltaX_casted) - return - } - private getRawDeltaY(): number | undefined { - return this.getRawDeltaY_serialize() - } - private setRawDeltaY(rawDeltaY: number | undefined): void { - const rawDeltaY_casted = rawDeltaY as (number | undefined) - this.setRawDeltaY_serialize(rawDeltaY_casted) - return - } - private getPressedButtons(): Array | undefined { - return this.getPressedButtons_serialize() - } - private setPressedButtons(pressedButtons: Array | undefined): void { - const pressedButtons_casted = pressedButtons as (Array | undefined) - this.setPressedButtons_serialize(pressedButtons_casted) - return - } - private getButton_serialize(): MouseButton { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getButton(this.peer!.ptr) - return TypeChecker.MouseButton_FromNumeric(retval) - } - private setButton_serialize(button: MouseButton): void { - ArkUIGeneratedNativeModule._MouseEvent_setButton(this.peer!.ptr, TypeChecker.MouseButton_ToNumeric(button)) - } - private getAction_serialize(): MouseAction { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getAction(this.peer!.ptr) - return TypeChecker.MouseAction_FromNumeric(retval) - } - private setAction_serialize(action: MouseAction): void { - ArkUIGeneratedNativeModule._MouseEvent_setAction(this.peer!.ptr, TypeChecker.MouseAction_ToNumeric(action)) - } - private getDisplayX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getDisplayX(this.peer!.ptr) - return retval - } - private setDisplayX_serialize(displayX: number): void { - ArkUIGeneratedNativeModule._MouseEvent_setDisplayX(this.peer!.ptr, displayX) - } - private getDisplayY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getDisplayY(this.peer!.ptr) - return retval - } - private setDisplayY_serialize(displayY: number): void { - ArkUIGeneratedNativeModule._MouseEvent_setDisplayY(this.peer!.ptr, displayY) - } - private getWindowX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getWindowX(this.peer!.ptr) - return retval - } - private setWindowX_serialize(windowX: number): void { - ArkUIGeneratedNativeModule._MouseEvent_setWindowX(this.peer!.ptr, windowX) - } - private getWindowY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getWindowY(this.peer!.ptr) - return retval - } - private setWindowY_serialize(windowY: number): void { - ArkUIGeneratedNativeModule._MouseEvent_setWindowY(this.peer!.ptr, windowY) - } - private getX_serialize(): number { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getX(this.peer!.ptr) - return retval - } - private setX_serialize(x: number): void { - ArkUIGeneratedNativeModule._MouseEvent_setX(this.peer!.ptr, x) - } - private getY_serialize(): number { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getY(this.peer!.ptr) - return retval - } - 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 : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(stopPropagation) - ArkUIGeneratedNativeModule._MouseEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getRawDeltaX_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getRawDeltaX(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setRawDeltaX_serialize(rawDeltaX: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (rawDeltaX !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const rawDeltaXTmpValue = rawDeltaX! - thisSerializer.writeNumber(rawDeltaXTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._MouseEvent_setRawDeltaX(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getRawDeltaY_serialize(): number | undefined { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getRawDeltaY(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : number | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - buffer = (retvalDeserializer.readNumber() as number) - } - const returnResult : number | undefined = buffer - return returnResult - } - private setRawDeltaY_serialize(rawDeltaY: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (rawDeltaY !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const rawDeltaYTmpValue = rawDeltaY! - thisSerializer.writeNumber(rawDeltaYTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._MouseEvent_setRawDeltaY(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getPressedButtons_serialize(): Array | undefined { - const retval = ArkUIGeneratedNativeModule._MouseEvent_getPressedButtons(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : Array | undefined - if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { - const buffer_Length : int32 = retvalDeserializer.readInt32() - let buffer_ : Array = new Array(buffer_Length) - for (let buffer_BufCounterI = 0; buffer_BufCounterI < buffer_Length; buffer_BufCounterI++) { - buffer_[buffer_BufCounterI] = TypeChecker.MouseButton_FromNumeric(retvalDeserializer.readInt32()) - } - buffer = buffer_ - } - const returnResult : Array | undefined = buffer - return returnResult - } - private setPressedButtons_serialize(pressedButtons: Array | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (pressedButtons !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const pressedButtonsTmpValue = pressedButtons! - thisSerializer.writeInt32((pressedButtonsTmpValue.length).toInt()) - for (let pressedButtonsTmpValueCounterI = 0; pressedButtonsTmpValueCounterI < pressedButtonsTmpValue.length; pressedButtonsTmpValueCounterI++) { - const pressedButtonsTmpValueTmpElement : MouseButton = pressedButtonsTmpValue[pressedButtonsTmpValueCounterI] - thisSerializer.writeInt32(TypeChecker.MouseButton_ToNumeric(pressedButtonsTmpValueTmpElement)) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._MouseEvent_setPressedButtons(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface TouchEvent { - type: TouchType - touches: Array - changedTouches: Array - stopPropagation: (() => void) - preventDefault: (() => void) - getHistoricalPoints(): Array -} -export class TouchEventInternal extends BaseEventInternal implements MaterializedBase,TouchEvent { - get type(): TouchType { - return this.getType() - } - set type(type: TouchType) { - this.setType(type) - } - get touches(): Array { - return this.getTouches() - } - set touches(touches: Array) { - this.setTouches(touches) - } - get changedTouches(): Array { - return this.getChangedTouches() - } - set changedTouches(changedTouches: Array) { - this.setChangedTouches(changedTouches) - } - get stopPropagation(): (() => void) { - return this.getStopPropagation() - } - set stopPropagation(stopPropagation: (() => void)) { - this.setStopPropagation(stopPropagation) - } - get preventDefault(): (() => void) { - return this.getPreventDefault() - } - set preventDefault(preventDefault: (() => void)) { - this.setPreventDefault(preventDefault) - } - constructor(peerPtr: KPointer) { - super(peerPtr) - } - constructor() { - this(TouchEventInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._TouchEvent_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._TouchEvent_getFinalizer() - } - public static fromPtr(ptr: KPointer): TouchEventInternal { - return new TouchEventInternal(ptr) - } - public getHistoricalPoints(): Array { - return this.getHistoricalPoints_serialize() - } - private getType(): TouchType { - return this.getType_serialize() - } - private setType(type: TouchType): void { - const type_casted = type as (TouchType) - this.setType_serialize(type_casted) - return - } - private getTouches(): Array { - return this.getTouches_serialize() - } - private setTouches(touches: Array): void { - const touches_casted = touches as (Array) - this.setTouches_serialize(touches_casted) - return - } - private getChangedTouches(): Array { - return this.getChangedTouches_serialize() - } - private setChangedTouches(changedTouches: Array): void { - const changedTouches_casted = changedTouches as (Array) - this.setChangedTouches_serialize(changedTouches_casted) - 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) - return - } - private getHistoricalPoints_serialize(): Array { - const retval = ArkUIGeneratedNativeModule._TouchEvent_getHistoricalPoints(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const bufferLength : int32 = retvalDeserializer.readInt32() - let buffer : Array = new Array(bufferLength) - for (let bufferBufCounterI = 0; bufferBufCounterI < bufferLength; bufferBufCounterI++) { - buffer[bufferBufCounterI] = HistoricalPoint_serializer.read(retvalDeserializer) - } - const returnResult : Array = buffer - return returnResult - } - private getType_serialize(): TouchType { - const retval = ArkUIGeneratedNativeModule._TouchEvent_getType(this.peer!.ptr) - return TypeChecker.TouchType_FromNumeric(retval) - } - private setType_serialize(type: TouchType): void { - ArkUIGeneratedNativeModule._TouchEvent_setType(this.peer!.ptr, TypeChecker.TouchType_ToNumeric(type)) - } - private getTouches_serialize(): Array { - const retval = ArkUIGeneratedNativeModule._TouchEvent_getTouches(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const bufferLength : int32 = retvalDeserializer.readInt32() - let buffer : Array = new Array(bufferLength) - for (let bufferBufCounterI = 0; bufferBufCounterI < bufferLength; bufferBufCounterI++) { - buffer[bufferBufCounterI] = TouchObject_serializer.read(retvalDeserializer) - } - const returnResult : Array = buffer - return returnResult - } - private setTouches_serialize(touches: Array): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - thisSerializer.writeInt32((touches.length).toInt()) - for (let touchesCounterI = 0; touchesCounterI < touches.length; touchesCounterI++) { - const touchesTmpElement : TouchObject = touches[touchesCounterI] - TouchObject_serializer.write(thisSerializer, touchesTmpElement) - } - ArkUIGeneratedNativeModule._TouchEvent_setTouches(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private getChangedTouches_serialize(): Array { - const retval = ArkUIGeneratedNativeModule._TouchEvent_getChangedTouches(this.peer!.ptr) - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const bufferLength : int32 = retvalDeserializer.readInt32() - let buffer : Array = new Array(bufferLength) - for (let bufferBufCounterI = 0; bufferBufCounterI < bufferLength; bufferBufCounterI++) { - buffer[bufferBufCounterI] = TouchObject_serializer.read(retvalDeserializer) - } - const returnResult : Array = buffer - return returnResult - } - private setChangedTouches_serialize(changedTouches: Array): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - thisSerializer.writeInt32((changedTouches.length).toInt()) - for (let changedTouchesCounterI = 0; changedTouchesCounterI < changedTouches.length; changedTouchesCounterI++) { - const changedTouchesTmpElement : TouchObject = changedTouches[changedTouchesCounterI] - TouchObject_serializer.write(thisSerializer, changedTouchesTmpElement) - } - ArkUIGeneratedNativeModule._TouchEvent_setChangedTouches(this.peer!.ptr, thisSerializer.asBuffer(), 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 : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(stopPropagation) - ArkUIGeneratedNativeModule._TouchEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asBuffer(), 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 : SerializerBase = SerializerBase.hold() - thisSerializer.holdAndWriteCallback(preventDefault) - ArkUIGeneratedNativeModule._TouchEvent_setPreventDefault(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export namespace cursorControl { - export function setCursor(value: pointer.PointerStyle): void { - GlobalScope.cursorControl_setCursor(value) - } - export function restoreDefault(): void { - GlobalScope.cursorControl_restoreDefault() - } -} -export namespace focusControl { - export function requestFocus(value: string): boolean { - return GlobalScope.focusControl_requestFocus(value) - } +export interface ContentModifier { + applyContent(): WrappedBuilder>; } diff --git a/arkoala-arkts/arkui/src/component/customComponent.ets b/arkoala-arkts/arkui/src/component/customComponent.ets index ad0908e48f1db4190e504c94b91a85ce57c01e09..7951d568b5c5c901ecaf52b7b33de4e2c4dd7573 100644 --- a/arkoala-arkts/arkui/src/component/customComponent.ets +++ b/arkoala-arkts/arkui/src/component/customComponent.ets @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * 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 @@ -13,176 +13,250 @@ * limitations under the License. */ +import { AnimateParam, ArkComponentRootPeer, ArkColumnPeer, PageTransitionOptions, LayoutChild, ConstraintSizeOptions, GeometryInfo, Layoutable, Measurable, SizeResult, PageLifeCycle, LayoutCallback } from "#generated" +import { memo } from "@koalaui/runtime/annotations" +import { rememberDisposable, remember, rememberMutableState, mutableState, MutableState, NodeAttach, RunEffect } from "@koalaui/runtime" +import { addPartialUpdate } from '../ArkUIEntry' +import { CurrentRouterTransitionState, RouterTransitionVisibility } from "../Router"; +import { PeerNode } from "../PeerNode"; +import { PageTransitionEnter, PageTransitionExit } from "../ArkPageTransition" +import { ExtendableComponent, UIContext } from './extendableComponent' +export interface AttributeModifier { -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + isUpdater(): boolean; + applyNormalAttribute(instance: T): void; + applyPressedAttribute(instance: T): void; + applyFocusedAttribute(instance: T): void; + applyDisabledAttribute(instance: T): void; + applySelectedAttribute(instance: T): void; +} + +export interface UICommonBase { + @memo +__applyStyle( + @memo + style: (instance: T, args: A) => T, + arg: A +): T -import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { GeometryInfo_serializer, Layoutable_serializer, Measurable_serializer, SizeResult_serializer, GeometryInfo, Layoutable, LayoutableInternal, Measurable, MeasurableInternal, SizeResult } from "./common" -import { ConstraintSizeOptions_serializer, ConstraintSizeOptions } from "./units" -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { CallbackTransformer } from "./../CallbackTransformer" -import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" -export interface LayoutCallback { - onPlaceChildren(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void - onMeasureSize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult +@memo +__applyAnimatableExtend( + @memo + func: (instance: T, arg: A) => T, + arg: A +): T + +animationStart(param: AnimateParam): this +animationEnd(): this } -export class LayoutCallbackInternal implements MaterializedBase,LayoutCallback { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, LayoutCallbackInternal.getFinalizer()) - } - constructor() { - this(LayoutCallbackInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._LayoutCallback_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._LayoutCallback_getFinalizer() - } - public static fromPtr(ptr: KPointer): LayoutCallbackInternal { - return new LayoutCallbackInternal(ptr) - } - public onPlaceChildren(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void { - const selfLayoutInfo_casted = selfLayoutInfo as (GeometryInfo) - const children_casted = children as (Array) - const constraint_casted = constraint as (ConstraintSizeOptions) - this.onPlaceChildren_serialize(selfLayoutInfo_casted, children_casted, constraint_casted) - return - } - public onMeasureSize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult { - const selfLayoutInfo_casted = selfLayoutInfo as (GeometryInfo) - const children_casted = children as (Array) - const constraint_casted = constraint as (ConstraintSizeOptions) - return this.onMeasureSize_serialize(selfLayoutInfo_casted, children_casted, constraint_casted) - } - private onPlaceChildren_serialize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - GeometryInfo_serializer.write(thisSerializer, selfLayoutInfo) - thisSerializer.writeInt32((children.length).toInt()) - for (let childrenCounterI = 0; childrenCounterI < children.length; childrenCounterI++) { - const childrenTmpElement : Layoutable = children[childrenCounterI] - Layoutable_serializer.write(thisSerializer, childrenTmpElement) - } - ConstraintSizeOptions_serializer.write(thisSerializer, constraint) - ArkUIGeneratedNativeModule._LayoutCallback_onPlaceChildren(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private onMeasureSize_serialize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult { - const thisSerializer : SerializerBase = SerializerBase.hold() - GeometryInfo_serializer.write(thisSerializer, selfLayoutInfo) - thisSerializer.writeInt32((children.length).toInt()) - for (let childrenCounterI = 0; childrenCounterI < children.length; childrenCounterI++) { - const childrenTmpElement : Measurable = children[childrenCounterI] - Measurable_serializer.write(thisSerializer, childrenTmpElement) - } - ConstraintSizeOptions_serializer.write(thisSerializer, constraint) - const retval = ArkUIGeneratedNativeModule._LayoutCallback_onMeasureSize(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) - const returnResult : SizeResult = SizeResult_serializer.read(retvalDeserializer) - return returnResult - } + +export function $r(str: string): string { + return str } -export interface PageLifeCycle { - onPageShow(): void - onPageHide(): void - onBackPress(): boolean - pageTransition(): void - onNewParam(param: Object | undefined): void + +export function $rawfile(arg: string): string { + return arg } -export class PageLifeCycleInternal implements MaterializedBase,PageLifeCycle { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, PageLifeCycleInternal.getFinalizer()) - } - constructor() { - this(PageLifeCycleInternal.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._PageLifeCycle_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._PageLifeCycle_getFinalizer() - } - public static fromPtr(ptr: KPointer): PageLifeCycleInternal { - return new PageLifeCycleInternal(ptr) - } - public onPageShow(): void { - this.onPageShow_serialize() - return - } - public onPageHide(): void { - this.onPageHide_serialize() - return - } - public onBackPress(): boolean { - return this.onBackPress_serialize() - } - public pageTransition(): void { - this.pageTransition_serialize() - return - } - public onNewParam(param: Object | undefined): void { - const param_casted = param as (Object | undefined) - this.onNewParam_serialize(param_casted) - return + +export abstract class BaseCustomComponent extends ExtendableComponent { + /** + * aboutToRecycle Method. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + abstract aboutToRecycle(): void; +} +export class CustomComponent, OptionsT extends Object> extends BaseCustomComponent { + @memo + static $_instantiate, OptionsS extends Object>( + @memo attributeApplier: ((instance: S) => void) | undefined, + factory: () => S, + options?: OptionsS, + reuseId?: string, + @memo content?: () => void + ): void { + @memo const create = (): S => { + return rememberDisposable( + (): S => { + const instance = factory() + instance.__initializeStruct(options, content) + return instance + }, (instance: S | undefined): void => { + instance?.aboutToDisappear() + instance?.__disposeStruct() + } + ) + } + + if (reuseId) { + /* need to wrap both states and build() of @Component */ + NodeAttach( + // temporarily using Column, will replace with purely frontend node + (): PeerNode => ArkColumnPeer.create(), + (node: PeerNode): void => { + const receiver = create() + node.setOnRecycle(() => { + receiver.aboutToRecycle() + }) + node.setOnReuse(() => { + receiver.aboutToReuse(receiver.__toRecord(options)) + }) + receiver.__buildWrapper(attributeApplier, options, content) + }, + reuseId + ) + } else { + const receiver = create() + receiver.__buildWrapper(attributeApplier, options, content) + } } - private onPageShow_serialize(): void { - ArkUIGeneratedNativeModule._PageLifeCycle_onPageShow(this.peer!.ptr) + + @memo + private __buildWrapper( + @memo attributeApplier: ((instance: T) => void) | undefined, + options: OptionsT|undefined, + @memo content: (() => void) | undefined + ): void { + NodeAttach( + (): PeerNode => ArkComponentRootPeer.create(), + (node: PeerNode): void => { + const ready = remember>( + (): MutableState => { + const state = mutableState(false) + addPartialUpdate(() => { + this.aboutToAppear() + state.value = true + }, this, () => {}) + return state + } + ) + if (!ready.value) { + return + } + + if (this.isEntry()) { + const visible = rememberMutableState(false) + const state = CurrentRouterTransitionState() + if (state) { + RunEffect(state.visibility, (visibility: RouterTransitionVisibility): void => { + switch (visibility.valueOf()) { + case RouterTransitionVisibility.Visible.valueOf(): + case RouterTransitionVisibility.Showing.valueOf(): + if (!visible.value) { + visible.value = true + this.onPageShow() + } + break + case RouterTransitionVisibility.Hidden.valueOf(): + case RouterTransitionVisibility.Hiding.valueOf(): + if (visible.value) { + visible.value = false + this.onPageHide() + } + break + default: break + } + }) + } + this.pageTransition() + } + this.__updateStruct(options) + this._build(attributeApplier, content, options) + this.onDidBuild() + } + ) } - private onPageHide_serialize(): void { - ArkUIGeneratedNativeModule._PageLifeCycle_onPageHide(this.peer!.ptr) + + protected __initializeStruct( + initializers?: Object, + @memo + content?: () => void + ): void {} + + /** + * This method is called when the component is completely removed from the UI tree. + * It can be used to clean up dependencies, such as added listeners. + */ + protected __disposeStruct(): void {} + + /** + * This method is used when the component is going to be reused + */ + protected __toRecord(initializers?: Object): Record { + return {} } - private onBackPress_serialize(): boolean { - const retval = ArkUIGeneratedNativeModule._PageLifeCycle_onBackPress(this.peer!.ptr) - return retval + + @memo + protected __updateStruct(initializers?: OptionsT): void {} + + @memo + build(): void { + throw new Error("The struct build() should never be executed directly") } - private pageTransition_serialize(): void { - ArkUIGeneratedNativeModule._PageLifeCycle_pageTransition(this.peer!.ptr) + + @memo + protected _build( + @memo + style: ((instance: T) => void) | undefined, + @memo + content: (() => void) | undefined, + options: Object | undefined + ): void { + throw new Error("The struct _build() must have a valid override") } - private onNewParam_serialize(param: Object | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (param !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const paramTmpValue = param! - thisSerializer.holdAndWriteObject(paramTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._PageLifeCycle_onNewParam(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() + + /** + * This method defines whether component is a page entry point + */ + protected isEntry(): boolean { + return this instanceof PageLifeCycle } -} -export class LayoutCallback_serializer { - public static write(buffer: SerializerBase, value: LayoutCallback): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) + + /** + * This method defines whether component customizes layout of its child components + */ + protected isCustomLayoutComponent(): boolean { + return this instanceof LayoutCallback } - public static read(buffer: DeserializerBase): LayoutCallback { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return LayoutCallbackInternal.fromPtr(ptr) + + aboutToAppear(): void {} + aboutToDisappear(): void {} + aboutToReuse(params: Record): void {} + aboutToRecycle(): void {} + onDidBuild(): void {} + + getUIContext(): UIContext { return new UIContext() } + getUniqueId(): int { return 666 } + + onLayout(children: Array, constraint: ConstraintSizeOptions): void {} + onMeasure(children: Array, constraint: ConstraintSizeOptions): void {} + + onPlaceChildren(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void {} + onMeasureSize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult { + throw new Error("Unexpected use of base class method") } -} -export class PageLifeCycle_serializer { - public static write(buffer: SerializerBase, value: PageLifeCycle): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) + + onPageShow(): void {} + onPageHide(): void {} + onBackPress(): boolean { return false } + @memo + pageTransition(): void { + PageTransitionEnter({ delay: 100 } as PageTransitionOptions) + PageTransitionExit({ delay: 100 } as PageTransitionOptions) } - public static read(buffer: DeserializerBase): PageLifeCycle { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return PageLifeCycleInternal.fromPtr(ptr) + + protected isFreezable(): boolean { + return false } } + +// Improve: implement this +export interface SubscribaleAbstract { } +export interface CommonTransition { } +export interface IPropertySubscriber { } +export interface ISinglePropertyChangeSubscriber { } + +export interface CustomComponentV2 {} diff --git a/arkoala-arkts/arkui/src/handwritten/component/interop.ets b/arkoala-arkts/arkui/src/component/interop.ets similarity index 98% rename from arkoala-arkts/arkui/src/handwritten/component/interop.ets rename to arkoala-arkts/arkui/src/component/interop.ets index 95117fa385fef5722673ccdd6672990c6e4bcb53..9fc57a2a15b310dee72f14e163644392637aec77 100644 --- a/arkoala-arkts/arkui/src/handwritten/component/interop.ets +++ b/arkoala-arkts/arkui/src/component/interop.ets @@ -15,11 +15,11 @@ import { ArkUIAniModule } from "arkui.ani" import { KPointer } from '@koalaui/interop'; -import { PeerNode } from '../../PeerNode'; +import { PeerNode } from '../PeerNode'; import { int32 } from '@koalaui/common'; import { NodeAttach } from '@koalaui/runtime'; import { memo } from "@koalaui/runtime/annotations" -import { ExtendableComponent } from '../component/extendableComponent'; +import { ExtendableComponent } from './extendableComponent'; import { StateDecoratedVariable, ProvideDecoratedVariable, @@ -29,8 +29,8 @@ import { WatchFunc, UIUtils, IObservedObject -} from '../../stateManagement'; -import { IDecoratedV1Variable, WatchFuncType, WatchIdType } from '../../stateManagement/decorator'; +} from '../stateManagement'; +import { IDecoratedV1Variable, WatchFuncType, WatchIdType } from '../stateManagement/decorator'; export class CompatiblePeerNode extends PeerNode { protected constructor(peerPtr: KPointer, id: int32, view: ESValue, name: string = '', flags: int32 = 0) { diff --git a/arkoala-arkts/arkui/src/handwritten/component/base.ets b/arkoala-arkts/arkui/src/handwritten/component/base.ets deleted file mode 100644 index 7f35dccb24bd2eb6c2378456bb9fb67d5f1565a1..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/handwritten/component/base.ets +++ /dev/null @@ -1,277 +0,0 @@ -/* - * 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. - */ - -package arkui.component.customComponent; - -import { - AnimateParam, - ArkComponentRootPeer, - ArkColumnPeer, - PageTransitionOptions, - LayoutChild, - ConstraintSizeOptions, - GeometryInfo, - Layoutable, - Measurable, - SizeResult, - PageLifeCycle, - LayoutCallback -} from "../../generated" -import { memo } from "@koalaui/runtime/annotations" -import { rememberDisposable, remember, rememberMutableState, mutableState, MutableState, NodeAttach, RunEffect } from "@koalaui/runtime" -import { addPartialUpdate } from '../../ArkUIEntry' -import { CurrentRouterTransitionState, RouterTransitionVisibility } from "../Router"; -import { PeerNode } from "../../PeerNode"; -import { PageTransitionEnter, PageTransitionExit } from "../ArkPageTransition" -import { ExtendableComponent, UIContext } from './extendableComponent' -export interface AttributeModifier { - - isUpdater(): boolean; - applyNormalAttribute(instance: T): void; - applyPressedAttribute(instance: T): void; - applyFocusedAttribute(instance: T): void; - applyDisabledAttribute(instance: T): void; - applySelectedAttribute(instance: T): void; -} - -export interface UICommonBase { - @memo -__applyStyle( - @memo - style: (instance: T, args: A) => T, - arg: A -): T - -@memo -__applyAnimatableExtend( - @memo - func: (instance: T, arg: A) => T, - arg: A -): T - -animationStart(param: AnimateParam): this -animationEnd(): this -} - -export function $r(str: string): string { - return str -} - -export function $rawfile(arg: string): string { - return arg -} - -export abstract class BaseCustomComponent extends ExtendableComponent { - /** - * aboutToRecycle Method. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - abstract aboutToRecycle(): void; -} -export class CustomComponent, OptionsT extends Object> extends BaseCustomComponent { - @memo - static $_instantiate, OptionsS extends Object>( - @memo attributeApplier: ((instance: S) => void) | undefined, - factory: () => S, - options?: OptionsS, - reuseId?: string, - @memo content?: () => void - ): void { - @memo const create = (): S => { - return rememberDisposable( - (): S => { - const instance = factory() - instance.__initializeStruct(options, content) - return instance - }, (instance: S | undefined): void => { - instance?.aboutToDisappear() - instance?.__disposeStruct() - } - ) - } - - if (reuseId) { - /* need to wrap both states and build() of @Component */ - NodeAttach( - // temporarily using Column, will replace with purely frontend node - (): PeerNode => ArkColumnPeer.create(), - (node: PeerNode): void => { - const receiver = create() - node.setOnRecycle(() => { - receiver.aboutToRecycle() - }) - node.setOnReuse(() => { - receiver.aboutToReuse(receiver.__toRecord(options)) - }) - receiver.__buildWrapper(attributeApplier, options, content) - }, - reuseId - ) - } else { - const receiver = create() - receiver.__buildWrapper(attributeApplier, options, content) - } - } - - @memo - private __buildWrapper( - @memo attributeApplier: ((instance: T) => void) | undefined, - options: OptionsT|undefined, - @memo content: (() => void) | undefined - ): void { - NodeAttach( - (): PeerNode => ArkComponentRootPeer.create(), - (node: PeerNode): void => { - const ready = remember>( - (): MutableState => { - const state = mutableState(false) - addPartialUpdate(() => { - this.aboutToAppear() - state.value = true - }, this, () => {}) - return state - } - ) - if (!ready.value) { - return - } - - if (this.isEntry()) { - const visible = rememberMutableState(false) - const state = CurrentRouterTransitionState() - if (state) { - RunEffect(state.visibility, (visibility: RouterTransitionVisibility): void => { - switch (visibility.valueOf()) { - case RouterTransitionVisibility.Visible.valueOf(): - case RouterTransitionVisibility.Showing.valueOf(): - if (!visible.value) { - visible.value = true - this.onPageShow() - } - break - case RouterTransitionVisibility.Hidden.valueOf(): - case RouterTransitionVisibility.Hiding.valueOf(): - if (visible.value) { - visible.value = false - this.onPageHide() - } - break - default: break - } - }) - } - this.pageTransition() - } - this.__updateStruct(options) - this._build(attributeApplier, content, options) - this.onDidBuild() - } - ) - } - - protected __initializeStruct( - initializers?: Object, - @memo - content?: () => void - ): void {} - - /** - * This method is called when the component is completely removed from the UI tree. - * It can be used to clean up dependencies, such as added listeners. - */ - protected __disposeStruct(): void {} - - /** - * This method is used when the component is going to be reused - */ - protected __toRecord(initializers?: Object): Record { - return {} - } - - @memo - protected __updateStruct(initializers?: OptionsT): void {} - - @memo - build(): void { - throw new Error("The struct build() should never be executed directly") - } - - @memo - protected _build( - @memo - style: ((instance: T) => void) | undefined, - @memo - content: (() => void) | undefined, - options: Object | undefined - ): void { - throw new Error("The struct _build() must have a valid override") - } - - /** - * This method defines whether component is a page entry point - */ - protected isEntry(): boolean { - return this instanceof PageLifeCycle - } - - /** - * This method defines whether component customizes layout of its child components - */ - protected isCustomLayoutComponent(): boolean { - return this instanceof LayoutCallback - } - - aboutToAppear(): void {} - aboutToDisappear(): void {} - aboutToReuse(params: Record): void {} - aboutToRecycle(): void {} - onDidBuild(): void {} - - getUIContext(): UIContext { return new UIContext() } - getUniqueId(): int { return 666 } - - onLayout(children: Array, constraint: ConstraintSizeOptions): void {} - onMeasure(children: Array, constraint: ConstraintSizeOptions): void {} - - onPlaceChildren(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void {} - onMeasureSize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult { - throw new Error("Unexpected use of base class method") - } - - onPageShow(): void {} - onPageHide(): void {} - onBackPress(): boolean { return false } - @memo - pageTransition(): void { - PageTransitionEnter({ delay: 100 } as PageTransitionOptions) - PageTransitionExit({ delay: 100 } as PageTransitionOptions) - } - - protected isFreezable(): boolean { - return false - } -} - -// Improve: implement this -export interface SubscribaleAbstract { } -export interface CommonTransition { } -export interface IPropertySubscriber { } -export interface ISinglePropertyChangeSubscriber { } - -export interface CustomComponentV2 {} diff --git a/arkoala-arkts/arkui/src/handwritten/component/builder.ets b/arkoala-arkts/arkui/src/handwritten/component/builder.ets deleted file mode 100644 index b1a4b1ea8ef4ff608fc1b53b51a0c7a15a29e5d8..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/handwritten/component/builder.ets +++ /dev/null @@ -1,14 +0,0 @@ -package arkui.component.builder - -import { memo } from "@koalaui/runtime/annotations" - -export class WrappedBuilder { - @memo builder: T; - constructor(t: T) { - this.builder = t; - } -} - -export function wrapBuilder(builder: T): WrappedBuilder { - return new WrappedBuilder(builder); -} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/handwritten/component/common.ets b/arkoala-arkts/arkui/src/handwritten/component/common.ets deleted file mode 100644 index e6550ef8a44830fa82d8d8bedf25c030ebab022f..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/handwritten/component/common.ets +++ /dev/null @@ -1,8 +0,0 @@ -package arkui.component.common - -import { WrappedBuilder } from "./builder" -import { CustomBuilderT } from "../../component/builder" - -export interface ContentModifier { - applyContent(): WrappedBuilder>; -} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/handwritten/component/extendableComponent.d.ets b/arkoala-arkts/arkui/src/handwritten/component/extendableComponent.d.ets deleted file mode 100644 index 3778cd06d6bb733131a9e6297e8eb5e2d774f119..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/handwritten/component/extendableComponent.d.ets +++ /dev/null @@ -1,112 +0,0 @@ -/* - * 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. - */ -/** - * @file - * @kit ArkUI - */ -import { memo } from "@koalaui/runtime/annotations" - -export class UIContext {} - -/** - * Defining interface of LifeCycle for custom component and custom dialog - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ -export interface LifeCycle { - /** - * aboutToAppear Method. - * - * The aboutToAppear function is executed after a new instance of the custom component is created, - * before its build() function is executed. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - aboutToAppear(): void - - /** - * aboutToDisappear Method. - * - * The aboutToDisappear function executes before a custom component is destroyed. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - aboutToDisappear(): void - - /** - * The callback method after the custom component is built. - * - * Triggered when the custom component has been built. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - onDidBuild(): void - - /** - * Customize the build process of the custom component. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - @memo - build(): void -} - -/** - * Definition of extendable component, which is base class of custom component and custom dialog. - * - * @implements LifeCycle - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ -export abstract class ExtendableComponent implements LifeCycle { - /** - * Get current UIContext. - * - * @returns { UIContext } The UIContext that the custom component belongs to. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - abstract getUIContext(): UIContext - - /** - * Get uniqueId of the custom component. - * - * @returns { int } - The uniqueId of the custom component. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - abstract getUniqueId(): int -} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/index.ets b/arkoala-arkts/arkui/src/index.ets index b135b6a286d83dbe2005cfe93ccdf40f6155f4f1..85a164da20c754218081996f665f9b9d99b17e00 100644 --- a/arkoala-arkts/arkui/src/index.ets +++ b/arkoala-arkts/arkui/src/index.ets @@ -12,8 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export * from "./generated" -export * from "./handwritten" +export * from "./framework" export * from "./stateAnnotations" export * from "./componentAnnotations" @@ -28,3 +27,14 @@ export * from "./PeerNode" export * from "./Events" export * from "./CallbacksChecker" export * from "./Storage" +export * from "./ArkAnimation" +export * from "./ArkPageTransition" +export * from "./ArkPageTransitionData" +export * from "./AttributeUpdater" +export * from "./TestComponent" +export * from "./Router" +export * from "./ForeignFunctions" +export * from "./resources" +export * from "./ContentModifierHooks" +export * from "./TestApiHooks" +export * from "./ArkStateStyle" diff --git a/arkoala-arkts/arkui/src/ohos.arkui.UIContext.ets b/arkoala-arkts/arkui/src/ohos.arkui.UIContext.ets index b76bafa94d2648c86a8814fa1729d0e2f6579cc4..42bc1d7340fc635fb530fceca66e4beeadb040be 100644 --- a/arkoala-arkts/arkui/src/ohos.arkui.UIContext.ets +++ b/arkoala-arkts/arkui/src/ohos.arkui.UIContext.ets @@ -16,11 +16,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { FrameNode, FrameNodeInternal } from "./generated/arkui.FrameNode" -import { GlobalScope_ohos_font } from "./generated" -import { GlobalScope_ohos_measure_utils } from "./generated" -import { FontOptions, FontInfo, MeasureOptions } from "./generated" -import { SizeOptions } from "./generated" +import { FrameNode, FrameNodeInternal } from "#generated/arkui.FrameNode" +import { GlobalScope_ohos_font } from "#generated" +import { GlobalScope_ohos_measure_utils } from "#generated" +import { MeasureOptions } from "#generated/ohos.measure" +import { FontOptions, FontInfo } from "#generated/ohos.font" +import { SizeOptions } from "#generated" import { ArkUIGeneratedNativeModule } from "#components" import { int32 } from "@koalaui/common" import { nullptr } from "@koalaui/interop" diff --git a/arkoala-arkts/arkui/src/ohos.measure.ets b/arkoala-arkts/arkui/src/ohos.measure.ets index 793986aa9b614b4c9a2a14c10a6a6f6b1fdba1f1..6debd9de6fabc0af2b778b599eb1b57f3f2c2090 100644 --- a/arkoala-arkts/arkui/src/ohos.measure.ets +++ b/arkoala-arkts/arkui/src/ohos.measure.ets @@ -13,7 +13,7 @@ * limitations under the License. */ -import { GlobalScope_ohos_measure_utils, MeasureOptions } from "./generated"; +import { GlobalScope_ohos_measure_utils, MeasureOptions } from "#generated"; import { SizeOptions } from "./component/units"; export class MeasureText { diff --git a/arkoala-arkts/arkui/src/ohos/router.ets b/arkoala-arkts/arkui/src/ohos/router.ets index ebf6645b8b0076f8bcb2a2da000bb5abe15d44c3..d144f8b3c39cd1e4951924fbc69c9ca8d75b6767 100644 --- a/arkoala-arkts/arkui/src/ohos/router.ets +++ b/arkoala-arkts/arkui/src/ohos/router.ets @@ -13,7 +13,7 @@ * limitations under the License. */ -import { Router } from "../handwritten" +import { Router } from "#handwritten" interface RouterOptions { url: string diff --git a/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ets b/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ets index f39391cc618bcf7343d24678fa0a6bb6b7e20b86..9ebc4f689271085cf6b370c3a9b0a3633a10a44a 100644 --- a/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ets +++ b/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ets @@ -20,9 +20,9 @@ import { int32 } from "@koalaui/common" import { KPointer } from "@koalaui/interop" import { ComponentBase } from "../ComponentBase" import { ArkUIGeneratedNativeModule } from "#components" -import { SystemBarStyle, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavigationOperation, NavigationMode, ToolbarItem, NavigationTitleOptions, NavigationToolbarOptions, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBarPosition, PixelMap, Resource, SymbolGlyphModifier, CustomBuilder, ResourceStr, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../generated" +import { SystemBarStyle, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavigationOperation, NavigationMode, ToolbarItem, NavigationTitleOptions, NavigationToolbarOptions, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBarPosition, PixelMap, Resource, SymbolGlyphModifier, CustomBuilder, ResourceStr, LayoutSafeAreaType, LayoutSafeAreaEdge } from "#generated" import { PeerNode } from "../PeerNode" -import { ArkCommonMethodPeer, Dimension, Length, NavExtender, NavPathStack } from "../generated" +import { ArkCommonMethodPeer, Dimension, Length, NavExtender, NavPathStack } from "#generated" export class ArkNavigationPeer extends ArkCommonMethodPeer { diff --git a/arkoala-arkts/arkui/src/handwritten/resources.ets b/arkoala-arkts/arkui/src/resources.ets similarity index 98% rename from arkoala-arkts/arkui/src/handwritten/resources.ets rename to arkoala-arkts/arkui/src/resources.ets index 440806e73f0bb3e0108bfb29e4a6e0ae4814d9bc..7639c3243b5cd39eaa76e0cb3b56bac011307279 100644 --- a/arkoala-arkts/arkui/src/handwritten/resources.ets +++ b/arkoala-arkts/arkui/src/resources.ets @@ -13,7 +13,7 @@ * limitations under the License. */ -import { Resource } from "../generated"; +import { Resource } from "#generated"; import { int32, int64 } from "@koalaui/common"; import { SerializerBase } from "@koalaui/interop"; import { ArkUIGeneratedNativeModule } from "#components"; diff --git a/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorProp.ts b/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorProp.ts index 431ca46dba42041ab5778f15c431feb8cdba28f3..17b02a3864a02e49ebd8a090fd1186c3e7d08afd 100644 --- a/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorProp.ts +++ b/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorProp.ts @@ -25,7 +25,7 @@ import { ObserveSingleton } from '../base/observeSingleton'; import { NullableObject } from '../base/types'; import { StateMgmtConsole } from '../tools/stateMgmtDFX'; import { UIUtils } from '../utils'; -import { CompatibleStateChangeCallback, getObservedObject, isDynamicObject } from '../../handwritten/component/interop'; +import { CompatibleStateChangeCallback, getObservedObject, isDynamicObject } from '../../component/interop'; import { StateMgmtTool } from '../tools/arkts/stateMgmtTool'; import { WatchFunc } from './decoratorWatch'; /** diff --git a/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorProvide.ts b/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorProvide.ts index 0a294fb4dc685bf80862ded3ad66d2e5c296df79..00a2af1a7c3600bad058b49bfdf97122de24cec0 100644 --- a/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorProvide.ts +++ b/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorProvide.ts @@ -22,7 +22,7 @@ import { FactoryInternal } from '../base/iFactoryInternal'; import { ObserveSingleton } from '../base/observeSingleton'; import { NullableObject } from '../base/types'; import { UIUtils } from '../utils'; -import { CompatibleStateChangeCallback, getObservedObject, isDynamicObject } from '../../handwritten/component/interop'; +import { CompatibleStateChangeCallback, getObservedObject, isDynamicObject } from '../../component/interop'; import { WatchFunc } from './decoratorWatch'; import { StateMgmtTool } from '../tools/arkts/stateMgmtTool'; diff --git a/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorState.ts b/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorState.ts index 4856a40221196cb44a1ffa2823eaf8b9b2d729a4..7dc1c4e4300760b35ff7a7d15ef45ea2a175cf44 100644 --- a/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorState.ts +++ b/arkoala-arkts/arkui/src/stateManagement/decoratorImpl/decoratorState.ts @@ -26,7 +26,7 @@ import { WatchFunc } from './decoratorWatch'; import { StateMgmtConsole } from '../tools/stateMgmtDFX'; import { NullableObject } from '../base/types'; import { UIUtils } from '../utils'; -import { CompatibleStateChangeCallback, getObservedObject, isDynamicObject } from '../../handwritten/component/interop'; +import { CompatibleStateChangeCallback, getObservedObject, isDynamicObject } from '../../component/interop'; import { StateMgmtTool } from '../tools/arkts/stateMgmtTool'; export interface __MkPropReturnType { prop: PropDecoratedVariable; diff --git a/arkoala-arkts/arkui/ui2abcconfig.json b/arkoala-arkts/arkui/ui2abcconfig.json index 992ee5b0dd503c35124502749a7316739d5d525f..25f76fbe60942529e7af7fa7c51d3379367bd016 100644 --- a/arkoala-arkts/arkui/ui2abcconfig.json +++ b/arkoala-arkts/arkui/ui2abcconfig.json @@ -2,9 +2,11 @@ "compilerOptions": { "package": "arkui", "outDir": "build", - "baseUrl": "./src", + "baseUrl": "./prepared", "paths": { - "#components": ["./generated/arkts"], + "#components": ["./framework/arkts"], + "#generated": ["./framework"], + "#handwritten": ["./"], "#stateMgmtTool": ["./stateManagement/tools/arkts"], "arkui.ani": ["./ani/arkts/ArkUIAniModule"], "@ohos.arkui.stateManagement": ["./stateManagement"], @@ -29,12 +31,14 @@ ] }, "include": [ - "./src/ani/arkts/ArkUIAniModule.ts", - "./src/stateManagement/**/*.ts", - "./src/**/*.ets" + "./prepared/ani/arkts/ArkUIAniModule.ts", + "./prepared/stateManagement/**/*.ts", + "./prepared/**/*.ets" ], "exclude": [ "./src/generated/ts/*.ets", + "./src/src/**/*.ets", + "./src/src/**/*.ts", "./src/sdk/**/*.ets" ] } diff --git a/arkoala-arkts/tools/peer-generator/package.json b/arkoala-arkts/tools/peer-generator/package.json index 97770612c0d1e09d60e0be45620a9d685ac63641..440a1781be97c2c3ec7b91e1a7b0ace5971f1851 100644 --- a/arkoala-arkts/tools/peer-generator/package.json +++ b/arkoala-arkts/tools/peer-generator/package.json @@ -12,7 +12,7 @@ "scripts": { "interface-sdk:download": "npm run interface-sdk:download --prefix ../../arkui", "clean:ts": "rimraf ../../../arkoala/arkui/src/generated", - "clean:arkts": "rimraf ../../arkui/sdk/generated ../../arkui/sdk/component && rimraf ../../arkui/src/generated ../../arkui/src/component", + "clean:arkts": "rimraf ../../arkui/sdk/framework ../../arkui/sdk/component && rimraf ../../arkui/generated", "clean:all": "npm run clean:ts && npm run clean:arkts", "generate:ts": "npm run clean:ts && cd ../../../../ && npm run compile --prefix ./runner && node ./runner m3 sdk-patched-arkts external --language ts", "generate:arkts": "npm run clean:arkts && cd ../../../../ && npm run compile --prefix ./runner && node ./runner m3 sdk-patched-arkts external --language arkts", diff --git a/arkoala-arkts/tools/prepare.mjs b/arkoala-arkts/tools/prepare.mjs new file mode 100644 index 0000000000000000000000000000000000000000..f9fa9427e42d59d60a4d49ad0e162b021905f7ae --- /dev/null +++ b/arkoala-arkts/tools/prepare.mjs @@ -0,0 +1,143 @@ +/* + * 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 { cpSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs" +import { EOL } from "node:os" +import { dirname, join, relative, resolve } from "node:path" + +function scan(dir) { + return statSync(dir).isDirectory() + ? readdirSync(dir).flatMap(d => scan(join(dir, d))) + : [dir] +} + +function scanEts(dir) { + return scan(dir).filter(file => file.endsWith('.ets') || file.endsWith('.ts')) +} + +function scanRelativeEts(dir) { + return scanEts(dir).map(file => relative(dir, file)) +} + +function processLines(lines) { + const importDict = new Map() + const nonImport = [] + const pattern = /^import\s*{([^}]+)}\s*from\s*(["\'])(.*?)\2\s*;?\s*$/ + for (const line of lines) { + const stripped = line.trim() + const matched = pattern.exec(stripped) + if (matched) { + const [,symbolsStr, , module] = matched + const symbols = symbolsStr.split(',').map(it => it.trim()) + if (!importDict.has(module)) { + importDict.set(module, new Set()) + } + symbols.forEach(sym => { + importDict.get(module).add(sym) + }) + } else { + nonImport.push(line) + } + } + return [importDict, nonImport] +} + +function dumpImports(imports) { + const importLines = [] + for (const [module, symbols] of Array.from(imports).sort()) { + const sorted = Array.from(symbols).sort() + importLines.push(`import {${sorted.join(', ')}} from "${module}"`) + } + + return importLines +} + +function applyChanges(f1, f2, root) { + const lines1 = readFileSync(f1, "utf-8") + const lines2 = readFileSync(f2, "utf-8") + + const [imports1, nonImport1] = processLines(lines1.split('\n')) + const [imports2, nonImport2] = processLines(lines2.split('\n')) + + const mergedImports = new Map() + const imports12 = [imports1, imports2] + imports12.forEach(table => { + table.forEach((set, name) => { + if (!mergedImports.has(name)) { + mergedImports.set(name, new Set()) + } + set.forEach(imp => { + mergedImports.get(name).add(imp) + }) + }) + }) + + const importLines = dumpImports(mergedImports) + writeFileSync( + f1, + importLines + .concat(nonImport1) + .concat(nonImport2) + .join(EOL), + 'utf-8' + ) +} + +function copyAndAdjust(src, dst, root) { + const lines1 = readFileSync(src, "utf-8") + const [imports, nonImport] = processLines(lines1.split('\n')) + + const importLines = dumpImports(imports) + mkdirSync(dirname(dst), { recursive: true }) + writeFileSync( + dst, + importLines + .concat(nonImport) + .join(EOL), + 'utf-8' + ) +} + +function applyGenerated(source, generated) { + const sourceFiles = new Set(scanRelativeEts(source)) + const generatedFiles = scanRelativeEts(generated) + + for (const generatedFile of generatedFiles) { + if (sourceFiles.has(generatedFile)) { + applyChanges(join(source, generatedFile), join(generated, generatedFile), source) + } else { + copyAndAdjust(join(generated, generatedFile), join(source, generatedFile), source) + } + } +} + +function copySrcDir(source, destination) { + rmSync(destination, { force: true, recursive: true }) + cpSync(source, destination, { recursive: true }) +} + +function main([arkoalaArktsPath]) { + arkoalaArktsPath = resolve(arkoalaArktsPath) + + const arkuiPath = join(arkoalaArktsPath, 'arkui') + const arkuiSrc = join(arkuiPath, 'src') + const arkuiPreparedSrc = join(arkuiPath, 'prepared') + copySrcDir(arkuiSrc, arkuiPreparedSrc) + + const arkuiGeneratedSrc = join(arkuiPath, 'generated') + + applyGenerated(arkuiPreparedSrc, arkuiGeneratedSrc) +} +main(process.argv.slice(2)) diff --git a/interop/src/cpp/ani/convertors-ani.cc b/interop/src/cpp/ani/convertors-ani.cc index b564d5295b2a3743d98b964fbf187014f78e12fa..42c1c0a8135c237c48bd706e5e781ca90c873979 100644 --- a/interop/src/cpp/ani/convertors-ani.cc +++ b/interop/src/cpp/ani/convertors-ani.cc @@ -147,9 +147,9 @@ void AniExports::setClasspath(const char* module, const char *classpath) { static std::map g_defaultClasspaths = { {"InteropNativeModule", "@koalaui.interop.InteropNativeModule.InteropNativeModule"}, // Improve: leave just InteropNativeModule, define others via KOALA_ETS_INTEROP_MODULE_CLASSPATH - {"TestNativeModule", "arkui.generated.arkts.TestNativeModule.TestNativeModule"}, - {"ArkUINativeModule", "arkui.generated.arkts.ArkUINativeModule.ArkUINativeModule"}, - {"ArkUIGeneratedNativeModule", "arkui.generated.arkts.ArkUIGeneratedNativeModule.ArkUIGeneratedNativeModule"}, + {"TestNativeModule", "arkui.framework.arkts.TestNativeModule.TestNativeModule"}, + {"ArkUINativeModule", "arkui.framework.arkts.ArkUINativeModule.ArkUINativeModule"}, + {"ArkUIGeneratedNativeModule", "arkui.framework.arkts.ArkUIGeneratedNativeModule.ArkUIGeneratedNativeModule"}, }; const std::string& AniExports::getClasspath(const std::string& module) { diff --git a/subset/arkoala-arkts/arkui/src/Application.ets b/subset/arkoala-arkts/arkui/generated/Application.ets similarity index 98% rename from subset/arkoala-arkts/arkui/src/Application.ets rename to subset/arkoala-arkts/arkui/generated/Application.ets index 16221500cd0a940a28311cfb531d2bf08d01b99d..b392c3544e27fbc5d9f8309dec9bff09af404d40 100644 --- a/subset/arkoala-arkts/arkui/src/Application.ets +++ b/subset/arkoala-arkts/arkui/generated/Application.ets @@ -18,15 +18,15 @@ import { int32, int64, scheduleCoroutine } from "@koalaui/common" import { pointer, nullptr, KPointer, InteropNativeModule, registerNativeModuleLibraryName, KSerializerBuffer, wrapSystemCallback } from "@koalaui/interop" import { PeerNode } from "./PeerNode" import { ArkUINativeModule } from "#components" -import { EventEmulator } from "./generated" +import { EventEmulator } from "./framework" import { UserView, UserViewBuilder } from "./UserView" -import { ClickEvent, ClickEventInternal } from "./generated" +import { ClickEvent, ClickEventInternal } from "./framework" import { checkEvents, setCustomEventsChecker } from "./Events" import { checkArkoalaCallbacks } from "./CallbacksChecker" import { setUIDetachedRootCreator } from "./CallbackTransformer" import { enterForeignContext, leaveForeignContext } from "./handwritten" import { Routed } from "./handwritten" -import { deserializeAndCallCallback } from "./generated/peers/CallbackDeserializeCall" +import { deserializeAndCallCallback } from "./framework/peers/CallbackDeserializeCall" import { DeserializerBase } from "@koalaui/interop" import { NativeLog } from "./NativeLog" diff --git a/subset/arkoala-arkts/arkui/src/CallbackTransformer.ets b/subset/arkoala-arkts/arkui/generated/CallbackTransformer.ets similarity index 95% rename from subset/arkoala-arkts/arkui/src/CallbackTransformer.ets rename to subset/arkoala-arkts/arkui/generated/CallbackTransformer.ets index 26081afdd8a8d027f2a6329fad038e96c98a2ddd..0fb8189860eb019c793754870cd428debdcbb81f 100644 --- a/subset/arkoala-arkts/arkui/src/CallbackTransformer.ets +++ b/subset/arkoala-arkts/arkui/generated/CallbackTransformer.ets @@ -15,8 +15,8 @@ import { KPointer } from "@koalaui/interop" import { PeerNode } from "./PeerNode" -import { CustomBuilder } from "./generated" -import { ArkComponentRootPeer } from "./generated" +import { CustomBuilder } from "./framework" +import { ArkComponentRootPeer } from "./framework" // Improve: need invert dependency: createUiDetachedRoot should be imported from @koalaui/arkoala same as in TS export type UIDetachedRootCreator = ( diff --git a/subset/arkoala-arkts/arkui/src/CallbacksChecker.ets b/subset/arkoala-arkts/arkui/generated/CallbacksChecker.ets similarity index 96% rename from subset/arkoala-arkts/arkui/src/CallbacksChecker.ets rename to subset/arkoala-arkts/arkui/generated/CallbacksChecker.ets index a96e14e6ee00c604cb9265cd3900f05ca9be634e..bcc41373ec5fcb24c3a926b6129fe8495fbf324a 100644 --- a/subset/arkoala-arkts/arkui/src/CallbacksChecker.ets +++ b/subset/arkoala-arkts/arkui/generated/CallbacksChecker.ets @@ -14,7 +14,7 @@ */ import { KBuffer } from "@koalaui/interop" -import { deserializeAndCallCallback } from "./generated/peers/CallbackDeserializeCall" +import { deserializeAndCallCallback } from "./framework/peers/CallbackDeserializeCall" import { ResourceHolder, InteropNativeModule, DeserializerBase } from "@koalaui/interop" enum CallbackEventKind { diff --git a/subset/arkoala-arkts/arkui/src/ComponentBase.ets b/subset/arkoala-arkts/arkui/generated/ComponentBase.ets similarity index 97% rename from subset/arkoala-arkts/arkui/src/ComponentBase.ets rename to subset/arkoala-arkts/arkui/generated/ComponentBase.ets index 2555d974f45c40e428c47b2c660c8604a824ae2a..f0b6f07bf33d43fa093ad61929e183eaa5aaad1b 100644 --- a/subset/arkoala-arkts/arkui/src/ComponentBase.ets +++ b/subset/arkoala-arkts/arkui/generated/ComponentBase.ets @@ -15,7 +15,7 @@ import { PeerNode } from './PeerNode' import { ArkUINativeModule } from "#components" -import { AnimateParam } from './generated' +import { AnimateParam } from './framework' import { _animationEnd, _animationStart, UICommonBase } from './handwritten' import { unsafeCast } from "@koalaui/common" diff --git a/subset/arkoala-arkts/arkui/src/Events.ets b/subset/arkoala-arkts/arkui/generated/Events.ets similarity index 100% rename from subset/arkoala-arkts/arkui/src/Events.ets rename to subset/arkoala-arkts/arkui/generated/Events.ets diff --git a/subset/arkoala-arkts/arkui/src/NativeLog.ets b/subset/arkoala-arkts/arkui/generated/NativeLog.ets similarity index 100% rename from subset/arkoala-arkts/arkui/src/NativeLog.ets rename to subset/arkoala-arkts/arkui/generated/NativeLog.ets diff --git a/subset/arkoala-arkts/arkui/src/NativePeerNode.ets b/subset/arkoala-arkts/arkui/generated/NativePeerNode.ets similarity index 100% rename from subset/arkoala-arkts/arkui/src/NativePeerNode.ets rename to subset/arkoala-arkts/arkui/generated/NativePeerNode.ets diff --git a/subset/arkoala-arkts/arkui/src/PeerNode.ets b/subset/arkoala-arkts/arkui/generated/PeerNode.ets similarity index 99% rename from subset/arkoala-arkts/arkui/src/PeerNode.ets rename to subset/arkoala-arkts/arkui/generated/PeerNode.ets index a9ca2a0b36be9193616a74167d10c70a3b927440..0f121919bf9d6430d8dfcb95df08fe6d32b380ce 100644 --- a/subset/arkoala-arkts/arkui/src/PeerNode.ets +++ b/subset/arkoala-arkts/arkui/generated/PeerNode.ets @@ -17,7 +17,7 @@ import { int32, KoalaCallsiteKey } from "@koalaui/common" import { Disposable, IncrementalNode, scheduleCallback } from "@koalaui/runtime" import { NativePeerNode } from "./NativePeerNode" import { nullptr, pointer } from "@koalaui/interop" -import { ArkRootPeer } from "./generated" +import { ArkRootPeer } from "./framework" import { ReusablePool } from "./ReusablePool" export const PeerNodeType = 11 diff --git a/subset/arkoala-arkts/arkui/src/ReusablePool.ets b/subset/arkoala-arkts/arkui/generated/ReusablePool.ets similarity index 100% rename from subset/arkoala-arkts/arkui/src/ReusablePool.ets rename to subset/arkoala-arkts/arkui/generated/ReusablePool.ets diff --git a/subset/arkoala-arkts/arkui/src/UserView.ets b/subset/arkoala-arkts/arkui/generated/UserView.ets similarity index 100% rename from subset/arkoala-arkts/arkui/src/UserView.ets rename to subset/arkoala-arkts/arkui/generated/UserView.ets diff --git a/subset/arkoala-arkts/arkui/src/annotations/index.ets b/subset/arkoala-arkts/arkui/generated/annotations/index.ets similarity index 100% rename from subset/arkoala-arkts/arkui/src/annotations/index.ets rename to subset/arkoala-arkts/arkui/generated/annotations/index.ets diff --git a/subset/arkoala-arkts/arkui/src/generated/arkts/index.ets b/subset/arkoala-arkts/arkui/generated/framework/arkts/index.ets similarity index 100% rename from subset/arkoala-arkts/arkui/src/generated/arkts/index.ets rename to subset/arkoala-arkts/arkui/generated/framework/arkts/index.ets diff --git a/subset/arkoala-arkts/arkui/src/generated/main.ets b/subset/arkoala-arkts/arkui/generated/framework/main.ets similarity index 100% rename from subset/arkoala-arkts/arkui/src/generated/main.ets rename to subset/arkoala-arkts/arkui/generated/framework/main.ets diff --git a/subset/arkoala-arkts/arkui/src/generated/test_utils.ets b/subset/arkoala-arkts/arkui/generated/framework/test_utils.ets similarity index 100% rename from subset/arkoala-arkts/arkui/src/generated/test_utils.ets rename to subset/arkoala-arkts/arkui/generated/framework/test_utils.ets diff --git a/subset/arkoala-arkts/arkui/src/handwritten/index.ets b/subset/arkoala-arkts/arkui/generated/handwritten/index.ets similarity index 88% rename from subset/arkoala-arkts/arkui/src/handwritten/index.ets rename to subset/arkoala-arkts/arkui/generated/handwritten/index.ets index dacdd8a751514d9145ff6e8f30fe4dfacc5bcbf4..a46e8f3356a317dee107eb2492a029867dca3880 100644 --- a/subset/arkoala-arkts/arkui/src/handwritten/index.ets +++ b/subset/arkoala-arkts/arkui/generated/handwritten/index.ets @@ -14,22 +14,22 @@ */ import { KPointer } from "@koalaui/interop" import { image } from "@ohos.multimedia.image" -import { CommonMethod, StateStyles } from "../generated" +import { CommonMethod, StateStyles } from "../framework" -import { AnimateParam } from '../generated' -import { ArkButtonComponent, ButtonConfiguration} from "../generated" -import { ArkCheckboxComponent, CheckBoxConfiguration } from "../generated" -import { ArkDataPanelComponent, DataPanelConfiguration } from "../generated" -import { ArkGaugeComponent, GaugeConfiguration } from "../generated" -import { ArkLoadingProgressComponent, LoadingProgressConfiguration } from "../generated" -import { ArkProgressComponent, ProgressConfiguration } from "../generated" -import { ArkRadioComponent, RadioConfiguration } from "../generated" -import { ArkRatingComponent, RatingConfiguration } from "../generated" -import { ArkSelectComponent, MenuItemConfiguration } from "../generated" -import { ArkSliderComponent, SliderConfiguration } from "../generated" -import { ArkTextClockComponent, TextClockConfiguration } from "../generated" -import { ArkTextTimerComponent, TextTimerConfiguration } from "../generated" -import { ArkToggleComponent, ToggleConfiguration } from "../generated" +import { AnimateParam } from '../framework' +import { ArkButtonComponent, ButtonConfiguration} from "../framework" +import { ArkCheckboxComponent, CheckBoxConfiguration } from "../framework" +import { ArkDataPanelComponent, DataPanelConfiguration } from "../framework" +import { ArkGaugeComponent, GaugeConfiguration } from "../framework" +import { ArkLoadingProgressComponent, LoadingProgressConfiguration } from "../framework" +import { ArkProgressComponent, ProgressConfiguration } from "../framework" +import { ArkRadioComponent, RadioConfiguration } from "../framework" +import { ArkRatingComponent, RatingConfiguration } from "../framework" +import { ArkSelectComponent, MenuItemConfiguration } from "../framework" +import { ArkSliderComponent, SliderConfiguration } from "../framework" +import { ArkTextClockComponent, TextClockConfiguration } from "../framework" +import { ArkTextTimerComponent, TextTimerConfiguration } from "../framework" +import { ArkToggleComponent, ToggleConfiguration } from "../framework" import { pointer } from "@koalaui/interop" export interface PageTransitionExitInterface {} diff --git a/subset/subset.json b/subset/subset.json index f800dc862b792c03d392563653f0dd38959d4f9d..76e445708d180a6083b8fe622ad03da9058fa338 100644 --- a/subset/subset.json +++ b/subset/subset.json @@ -2,21 +2,21 @@ "subset": [ "arkoala-arkts/arkui/sdk/handwritten/index.ets", "arkoala-arkts/arkui/sdk/annotations/index.ets", - "arkoala-arkts/arkui/src/annotations/index.ets", - "arkoala-arkts/arkui/src/Application.ets", - "arkoala-arkts/arkui/src/CallbacksChecker.ets", - "arkoala-arkts/arkui/src/CallbackTransformer.ets", - "arkoala-arkts/arkui/src/ComponentBase.ets", - "arkoala-arkts/arkui/src/Events.ets", - "arkoala-arkts/arkui/src/generated/main.ets", - "arkoala-arkts/arkui/src/generated/test_utils.ets", - "arkoala-arkts/arkui/src/generated/arkts/index.ets", - "arkoala-arkts/arkui/src/handwritten/index.ets", - "arkoala-arkts/arkui/src/NativeLog.ets", - "arkoala-arkts/arkui/src/NativePeerNode.ets", - "arkoala-arkts/arkui/src/PeerNode.ets", - "arkoala-arkts/arkui/src/ReusablePool.ets", - "arkoala-arkts/arkui/src/UserView.ets", + "arkoala-arkts/arkui/generated/annotations/index.ets", + "arkoala-arkts/arkui/generated/Application.ets", + "arkoala-arkts/arkui/generated/CallbacksChecker.ets", + "arkoala-arkts/arkui/generated/CallbackTransformer.ets", + "arkoala-arkts/arkui/generated/ComponentBase.ets", + "arkoala-arkts/arkui/generated/Events.ets", + "arkoala-arkts/arkui/generated/handwritten/index.ets", + "arkoala-arkts/arkui/generated/NativeLog.ets", + "arkoala-arkts/arkui/generated/NativePeerNode.ets", + "arkoala-arkts/arkui/generated/PeerNode.ets", + "arkoala-arkts/arkui/generated/ReusablePool.ets", + "arkoala-arkts/arkui/generated/UserView.ets", + "arkoala-arkts/arkui/generated/framework/main.ets", + "arkoala-arkts/arkui/generated/framework/test_utils.ets", + "arkoala-arkts/arkui/generated/framework/arkts/index.ets", "arkoala-cj/framework/cangjie/src/CallbacksChecker.cj", "arkoala-cj/framework/cangjie/src/CallbackTransformer.cj", "arkoala-cj/framework/cangjie/src/ComponentBase.cj", @@ -98,7 +98,7 @@ "arkoala-arkts/external/src/index.ts" ], "generatedSubset": [ - "arkoala-arkts/arkui/src/generated/arkts/index.ets", + "arkoala-arkts/arkui/generated/framework/arkts/index.ets", "arkoala/arkui/src/generated/shared/generated-utils.ts" ] }