diff --git a/arkoala-arkts/.gitlab-ci.yml b/arkoala-arkts/.gitlab-ci.yml index dc8cdf36da40f063025bbfe661ac16dd2813e724..c672bde86a77a1d7d991cebf28d513eadea56f53 100644 --- a/arkoala-arkts/.gitlab-ci.yml +++ b/arkoala-arkts/.gitlab-ci.yml @@ -159,6 +159,22 @@ build arkui.abc: - arkoala-arkts/arkui/build/arkui.abc expire_in: 1 day +build modules.abc: + stage: build-ets + interruptible: true + extends: + - .linux-vm-shell-task + needs: + - build ui2abc-all M3 + - annotate all + script: + - npm run build:modules --prefix arkoala-arkts + - ls -l arkoala-arkts/modules/global.resource/build/src/resource.abc + artifacts: + paths: + - arkoala-arkts/modules/global.resource/build/src/resource.abc + expire_in: 1 day + build arkoala.abc: stage: build-ets interruptible: true @@ -170,10 +186,12 @@ build arkoala.abc: - build incremental.abc - build interop.abc - build arkui.abc + - build modules.abc before_script: - ls -l incremental/runtime/build/incremental.abc - ls -l interop/build/interop.abc - ls -l arkoala-arkts/arkui/build/arkui.abc + - ls -l arkoala-arkts/modules/global.resource/build/src/resource.abc script: - npm run link --prefix arkoala-arkts - ls -l arkoala-arkts/build/bootPandaFiles/arkoala.abc 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/alphabetIndexer.ets b/arkoala-arkts/arkui/generated/AlphabetIndexerModifier.ets similarity index 50% rename from arkoala-arkts/arkui/src/component/alphabetIndexer.ets rename to arkoala-arkts/arkui/generated/AlphabetIndexerModifier.ets index aba11533e8a0eb4126c397236273fe63d22a4148..5594afb5a35c18b67f90270675b5c3ad8c6b2e49 100644 --- a/arkoala-arkts/arkui/src/component/alphabetIndexer.ets +++ b/arkoala-arkts/arkui/generated/AlphabetIndexerModifier.ets @@ -16,993 +16,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 { 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" -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 { 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" -export class ArkAlphabetIndexerPeer 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): ArkAlphabetIndexerPeer { - const peerId = PeerNode.nextId() - const _peerPtr = ArkUIGeneratedNativeModule._AlphabetIndexer_construct(peerId, flags) - const _peer = new ArkAlphabetIndexerPeer(_peerPtr, peerId, 'AlphabetIndexer', flags) - component?.setPeer(_peer) - return _peer - } - setAlphabetIndexerOptionsAttribute(options: AlphabetIndexerOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - AlphabetIndexerOptions_serializer.write(thisSerializer, options) - ArkUIGeneratedNativeModule._AlphabetIndexerInterface_setAlphabetIndexerOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setColorAttribute(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._AlphabetIndexerAttribute_setColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSelectedColorAttribute(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._AlphabetIndexerAttribute_setSelectedColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupColorAttribute(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._AlphabetIndexerAttribute_setPopupColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSelectedBackgroundColorAttribute(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._AlphabetIndexerAttribute_setSelectedBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupBackgroundAttribute(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._AlphabetIndexerAttribute_setPopupBackground(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupSelectedColorAttribute(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._AlphabetIndexerAttribute_setPopupSelectedColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupUnselectedColorAttribute(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._AlphabetIndexerAttribute_setPopupUnselectedColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupItemBackgroundColorAttribute(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._AlphabetIndexerAttribute_setPopupItemBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setUsingPopupAttribute(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._AlphabetIndexerAttribute_setUsingPopup(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSelectedFontAttribute(value: Font | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - Font_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setSelectedFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupFontAttribute(value: Font | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - Font_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setPopupFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupItemFontAttribute(value: Font | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - Font_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setPopupItemFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setItemSizeAttribute(value: string | number | 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 { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setItemSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontAttribute(value: Font | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - Font_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnSelectAttribute(value: OnAlphabetIndexerSelectCallback | 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._AlphabetIndexerAttribute_setOnSelect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnRequestPopupDataAttribute(value: OnAlphabetIndexerRequestPopupDataCallback | 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._AlphabetIndexerAttribute_setOnRequestPopupData(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnPopupSelectAttribute(value: OnAlphabetIndexerPopupSelectCallback | 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._AlphabetIndexerAttribute_setOnPopupSelect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSelectedAttribute(value: number | Bindable | 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 Bindable) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Bindable - Bindable_Number_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setSelected(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupPositionAttribute(value: Position | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - Position_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setPopupPosition(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAutoCollapseAttribute(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._AlphabetIndexerAttribute_setAutoCollapse(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupItemBorderRadiusAttribute(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._AlphabetIndexerAttribute_setPopupItemBorderRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setItemBorderRadiusAttribute(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._AlphabetIndexerAttribute_setItemBorderRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupBackgroundBlurStyleAttribute(value: BlurStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as BlurStyle) - thisSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setPopupBackgroundBlurStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPopupTitleBackgroundAttribute(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._AlphabetIndexerAttribute_setPopupTitleBackground(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnableHapticFeedbackAttribute(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._AlphabetIndexerAttribute_setEnableHapticFeedback(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAlignStyleAttribute(value: IndexerAlign | undefined, offset?: Length): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as IndexerAlign) - thisSerializer.writeInt32(TypeChecker.IndexerAlign_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (offset !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const offsetTmpValue = offset! - if (offsetTmpValue instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const offsetTmpValueForIdx0 = offsetTmpValue as string - thisSerializer.writeString(offsetTmpValueForIdx0) - } else if (offsetTmpValue instanceof number) { - thisSerializer.writeInt8((1).toChar()) - const offsetTmpValueForIdx1 = offsetTmpValue as number - thisSerializer.writeNumber(offsetTmpValueForIdx1) - } else if (offsetTmpValue instanceof Resource) { - thisSerializer.writeInt8((2).toChar()) - const offsetTmpValueForIdx2 = offsetTmpValue as Resource - Resource_serializer.write(thisSerializer, offsetTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setAlignStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export enum IndexerAlign { - LEFT = 0, - Left = 0, - RIGHT = 1, - Right = 1, - START = 2, - END = 3 -} -export interface AlphabetIndexerOptions { - arrayValue: Array; - selected: number | Bindable; -} -export type OnAlphabetIndexerSelectCallback = (index: number) => void; -export type OnAlphabetIndexerPopupSelectCallback = (index: number) => void; -export type OnAlphabetIndexerRequestPopupDataCallback = (index: number) => Array; -export interface AlphabetIndexerAttribute extends CommonMethod { - color(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method color") - } - selectedColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method selectedColor") - } - popupColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method popupColor") - } - selectedBackgroundColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method selectedBackgroundColor") - } - popupBackground(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method popupBackground") - } - popupSelectedColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method popupSelectedColor") - } - popupUnselectedColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method popupUnselectedColor") - } - popupItemBackgroundColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method popupItemBackgroundColor") - } - usingPopup(value: boolean | undefined): this { - throw new Error("Unimplemented method usingPopup") - } - selectedFont(value: Font | undefined): this { - throw new Error("Unimplemented method selectedFont") - } - popupFont(value: Font | undefined): this { - throw new Error("Unimplemented method popupFont") - } - popupItemFont(value: Font | undefined): this { - throw new Error("Unimplemented method popupItemFont") - } - itemSize(value: string | number | undefined): this { - throw new Error("Unimplemented method itemSize") - } - font(value: Font | undefined): this { - throw new Error("Unimplemented method font") - } - onSelect(value: OnAlphabetIndexerSelectCallback | undefined): this { - throw new Error("Unimplemented method onSelect") - } - onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback | undefined): this { - throw new Error("Unimplemented method onRequestPopupData") - } - onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback | undefined): this { - throw new Error("Unimplemented method onPopupSelect") - } - selected(value: number | Bindable | undefined): this { - throw new Error("Unimplemented method selected") - } - popupPosition(value: Position | undefined): this { - throw new Error("Unimplemented method popupPosition") - } - autoCollapse(value: boolean | undefined): this { - throw new Error("Unimplemented method autoCollapse") - } - popupItemBorderRadius(value: number | undefined): this { - throw new Error("Unimplemented method popupItemBorderRadius") - } - itemBorderRadius(value: number | undefined): this { - throw new Error("Unimplemented method itemBorderRadius") - } - popupBackgroundBlurStyle(value: BlurStyle | undefined): this { - throw new Error("Unimplemented method popupBackgroundBlurStyle") - } - popupTitleBackground(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method popupTitleBackground") - } - enableHapticFeedback(value: boolean | undefined): this { - throw new Error("Unimplemented method enableHapticFeedback") - } - alignStyle(value: IndexerAlign | undefined, offset?: Length): this { - throw new Error("Unimplemented method alignStyle") - } - attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Unimplemented method attributeModifier") - } -} -export class ArkAlphabetIndexerStyle extends ArkCommonMethodStyle implements AlphabetIndexerAttribute { - color_value?: ResourceColor | undefined - selectedColor_value?: ResourceColor | undefined - popupColor_value?: ResourceColor | undefined - selectedBackgroundColor_value?: ResourceColor | undefined - popupBackground_value?: ResourceColor | undefined - popupSelectedColor_value?: ResourceColor | undefined - popupUnselectedColor_value?: ResourceColor | undefined - popupItemBackgroundColor_value?: ResourceColor | undefined - usingPopup_value?: boolean | undefined - selectedFont_value?: Font | undefined - popupFont_value?: Font | undefined - popupItemFont_value?: Font | undefined - itemSize_value?: string | number | undefined - font_value?: Font | undefined - onSelect_value?: OnAlphabetIndexerSelectCallback | undefined - onRequestPopupData_value?: OnAlphabetIndexerRequestPopupDataCallback | undefined - onPopupSelect_value?: OnAlphabetIndexerPopupSelectCallback | undefined - selected_value?: number | Bindable | undefined - popupPosition_value?: Position | undefined - autoCollapse_value?: boolean | undefined - popupItemBorderRadius_value?: number | undefined - itemBorderRadius_value?: number | undefined - popupBackgroundBlurStyle_value?: BlurStyle | undefined - popupTitleBackground_value?: ResourceColor | undefined - enableHapticFeedback_value?: boolean | undefined - attributeModifier_value?: AttributeModifier | AttributeModifier | undefined - public color(value: ResourceColor | undefined): this { - return this - } - public selectedColor(value: ResourceColor | undefined): this { - return this - } - public popupColor(value: ResourceColor | undefined): this { - return this - } - public selectedBackgroundColor(value: ResourceColor | undefined): this { - return this - } - public popupBackground(value: ResourceColor | undefined): this { - return this - } - public popupSelectedColor(value: ResourceColor | undefined): this { - return this - } - public popupUnselectedColor(value: ResourceColor | undefined): this { - return this - } - public popupItemBackgroundColor(value: ResourceColor | undefined): this { - return this - } - public usingPopup(value: boolean | undefined): this { - return this - } - public selectedFont(value: Font | undefined): this { - return this - } - public popupFont(value: Font | undefined): this { - return this - } - public popupItemFont(value: Font | undefined): this { - return this - } - public itemSize(value: string | number | undefined): this { - return this - } - public font(value: Font | undefined): this { - return this - } - public onSelect(value: OnAlphabetIndexerSelectCallback | undefined): this { - return this - } - public onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback | undefined): this { - return this - } - public onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback | undefined): this { - return this - } - public selected(value: number | Bindable | undefined): this { - return this - } - public popupPosition(value: Position | undefined): this { - return this - } - public autoCollapse(value: boolean | undefined): this { - return this - } - public popupItemBorderRadius(value: number | undefined): this { - return this - } - public itemBorderRadius(value: number | undefined): this { - return this - } - public popupBackgroundBlurStyle(value: BlurStyle | undefined): this { - return this - } - public popupTitleBackground(value: ResourceColor | undefined): this { - return this - } - public enableHapticFeedback(value: boolean | undefined): this { - return this - } - public alignStyle(value: IndexerAlign | undefined, offset?: Length): this { - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} - -export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent implements AlphabetIndexerAttribute { - getPeer(): ArkAlphabetIndexerPeer { - return (this.peer as ArkAlphabetIndexerPeer) - } - public setAlphabetIndexerOptions(options: AlphabetIndexerOptions): this { - if (this.checkPriority("setAlphabetIndexerOptions")) { - const options_casted = options as (AlphabetIndexerOptions) - this.getPeer()?.setAlphabetIndexerOptionsAttribute(options_casted) - return this - } - return this - } - public color(value: ResourceColor | undefined): this { - if (this.checkPriority("color")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setColorAttribute(value_casted) - return this - } - return this - } - public selectedColor(value: ResourceColor | undefined): this { - if (this.checkPriority("selectedColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setSelectedColorAttribute(value_casted) - return this - } - return this - } - public popupColor(value: ResourceColor | undefined): this { - if (this.checkPriority("popupColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setPopupColorAttribute(value_casted) - return this - } - return this - } - public selectedBackgroundColor(value: ResourceColor | undefined): this { - if (this.checkPriority("selectedBackgroundColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setSelectedBackgroundColorAttribute(value_casted) - return this - } - return this - } - public popupBackground(value: ResourceColor | undefined): this { - if (this.checkPriority("popupBackground")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setPopupBackgroundAttribute(value_casted) - return this - } - return this - } - public popupSelectedColor(value: ResourceColor | undefined): this { - if (this.checkPriority("popupSelectedColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setPopupSelectedColorAttribute(value_casted) - return this - } - return this - } - public popupUnselectedColor(value: ResourceColor | undefined): this { - if (this.checkPriority("popupUnselectedColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setPopupUnselectedColorAttribute(value_casted) - return this - } - return this - } - public popupItemBackgroundColor(value: ResourceColor | undefined): this { - if (this.checkPriority("popupItemBackgroundColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setPopupItemBackgroundColorAttribute(value_casted) - return this - } - return this - } - public usingPopup(value: boolean | undefined): this { - if (this.checkPriority("usingPopup")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setUsingPopupAttribute(value_casted) - return this - } - return this - } - public selectedFont(value: Font | undefined): this { - if (this.checkPriority("selectedFont")) { - const value_casted = value as (Font | undefined) - this.getPeer()?.setSelectedFontAttribute(value_casted) - return this - } - return this - } - public popupFont(value: Font | undefined): this { - if (this.checkPriority("popupFont")) { - const value_casted = value as (Font | undefined) - this.getPeer()?.setPopupFontAttribute(value_casted) - return this - } - return this - } - public popupItemFont(value: Font | undefined): this { - if (this.checkPriority("popupItemFont")) { - const value_casted = value as (Font | undefined) - this.getPeer()?.setPopupItemFontAttribute(value_casted) - return this - } - return this - } - public itemSize(value: string | number | undefined): this { - if (this.checkPriority("itemSize")) { - const value_casted = value as (string | number | undefined) - this.getPeer()?.setItemSizeAttribute(value_casted) - return this - } - return this - } - public font(value: Font | undefined): this { - if (this.checkPriority("font")) { - const value_casted = value as (Font | undefined) - this.getPeer()?.setFontAttribute(value_casted) - return this - } - return this - } - public onSelect(value: OnAlphabetIndexerSelectCallback | undefined): this { - if (this.checkPriority("onSelect")) { - const value_casted = value as (OnAlphabetIndexerSelectCallback | undefined) - this.getPeer()?.setOnSelectAttribute(value_casted) - return this - } - return this - } - public onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback | undefined): this { - if (this.checkPriority("onRequestPopupData")) { - const value_casted = value as (OnAlphabetIndexerRequestPopupDataCallback | undefined) - this.getPeer()?.setOnRequestPopupDataAttribute(value_casted) - return this - } - return this - } - public onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback | undefined): this { - if (this.checkPriority("onPopupSelect")) { - const value_casted = value as (OnAlphabetIndexerPopupSelectCallback | undefined) - this.getPeer()?.setOnPopupSelectAttribute(value_casted) - return this - } - return this - } - public selected(value: number | Bindable | undefined): this { - if (this.checkPriority("selected")) { - const value_casted = value as (number | Bindable | undefined) - this.getPeer()?.setSelectedAttribute(value_casted) - return this - } - return this - } - public popupPosition(value: Position | undefined): this { - if (this.checkPriority("popupPosition")) { - const value_casted = value as (Position | undefined) - this.getPeer()?.setPopupPositionAttribute(value_casted) - return this - } - return this - } - public autoCollapse(value: boolean | undefined): this { - if (this.checkPriority("autoCollapse")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setAutoCollapseAttribute(value_casted) - return this - } - return this - } - public popupItemBorderRadius(value: number | undefined): this { - if (this.checkPriority("popupItemBorderRadius")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setPopupItemBorderRadiusAttribute(value_casted) - return this - } - return this - } - public itemBorderRadius(value: number | undefined): this { - if (this.checkPriority("itemBorderRadius")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setItemBorderRadiusAttribute(value_casted) - return this - } - return this - } - public popupBackgroundBlurStyle(value: BlurStyle | undefined): this { - if (this.checkPriority("popupBackgroundBlurStyle")) { - const value_casted = value as (BlurStyle | undefined) - this.getPeer()?.setPopupBackgroundBlurStyleAttribute(value_casted) - return this - } - return this - } - public popupTitleBackground(value: ResourceColor | undefined): this { - if (this.checkPriority("popupTitleBackground")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setPopupTitleBackgroundAttribute(value_casted) - return this - } - return this - } - public enableHapticFeedback(value: boolean | undefined): this { - if (this.checkPriority("enableHapticFeedback")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEnableHapticFeedbackAttribute(value_casted) - return this - } - return this - } - public alignStyle(value: IndexerAlign | undefined, offset?: Length): this { - if (this.checkPriority("alignStyle")) { - const value_casted = value as (IndexerAlign | undefined) - const offset_casted = offset as (Length | undefined) - this.getPeer()?.setAlignStyleAttribute(value_casted, offset_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() - } -} - -@memo -export function AlphabetIndexer( - @memo - style: ((attributes: AlphabetIndexerAttribute) => void) | undefined, - options: AlphabetIndexerOptions, - @memo - content_?: () => void, -): void { - const receiver = remember((): ArkAlphabetIndexerComponent => { - return new ArkAlphabetIndexerComponent() - }) - NodeAttach((): ArkAlphabetIndexerPeer => ArkAlphabetIndexerPeer.create(receiver), (_: ArkAlphabetIndexerPeer): void => { - receiver.setAlphabetIndexerOptions(options) - style?.(receiver) - content_?.() - receiver.applyAttributesFinish() - }) -} - -export class AlphabetIndexerModifier extends CommonMethodModifier implements AlphabetIndexerAttribute { +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkAlphabetIndexerPeer, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, AlphabetIndexerAttribute, IndexerAlign } from "./component/alphabetIndexer" +import { CommonMethod, Bindable, BlurStyle } from "./component/common" +import { ResourceColor, Font, Position, Length } from "./component/units" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +export class AlphabetIndexerModifier extends CommonMethodModifier implements AlphabetIndexerAttribute,AttributeModifier { _instanceId: number = -1; setInstanceId(instanceId: number): void { this._instanceId = instanceId } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: AlphabetIndexerAttribute): void { } + applyPressedAttribute(instance: AlphabetIndexerAttribute): void { } + applyFocusedAttribute(instance: AlphabetIndexerAttribute): void { } + applyDisabledAttribute(instance: AlphabetIndexerAttribute): void { } + applySelectedAttribute(instance: AlphabetIndexerAttribute): void { } _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL _color_0_0value?: ResourceColor | undefined _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL @@ -2159,45 +1191,3 @@ export class AlphabetIndexerModifier extends CommonMethodModifier implements Alp throw new Error("Not implemented") } } -export class AlphabetIndexerOptions_serializer { - public static write(buffer: SerializerBase, value: AlphabetIndexerOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForArrayValue = value.arrayValue - valueSerializer.writeInt32((valueHolderForArrayValue.length).toInt()) - for (let valueHolderForArrayValueCounterI = 0; valueHolderForArrayValueCounterI < valueHolderForArrayValue.length; valueHolderForArrayValueCounterI++) { - const valueHolderForArrayValueTmpElement : string = valueHolderForArrayValue[valueHolderForArrayValueCounterI] - valueSerializer.writeString(valueHolderForArrayValueTmpElement) - } - const valueHolderForSelected = value.selected - if (valueHolderForSelected instanceof number) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForSelectedForIdx0 = valueHolderForSelected as number - valueSerializer.writeNumber(valueHolderForSelectedForIdx0) - } else if (valueHolderForSelected instanceof Bindable) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForSelectedForIdx1 = valueHolderForSelected as Bindable - Bindable_Number_serializer.write(valueSerializer, valueHolderForSelectedForIdx1) - } - } - public static read(buffer: DeserializerBase): AlphabetIndexerOptions { - let valueDeserializer : DeserializerBase = buffer - const arrayValueTmpBufLength : int32 = valueDeserializer.readInt32() - let arrayValueTmpBuf : Array = new Array(arrayValueTmpBufLength) - for (let arrayValueTmpBufBufCounterI = 0; arrayValueTmpBufBufCounterI < arrayValueTmpBufLength; arrayValueTmpBufBufCounterI++) { - arrayValueTmpBuf[arrayValueTmpBufBufCounterI] = (valueDeserializer.readString() as string) - } - const arrayValueTmpResult : Array = arrayValueTmpBuf - const selectedTmpBufUnionSelector : int32 = valueDeserializer.readInt8() - let selectedTmpBuf : number | Bindable | undefined - if (selectedTmpBufUnionSelector == (0).toChar()) { - selectedTmpBuf = (valueDeserializer.readNumber() as number) - } else if (selectedTmpBufUnionSelector == (1).toChar()) { - selectedTmpBuf = Bindable_Number_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for selectedTmpBuf has to be chosen through deserialisation.") - } - const selectedTmpResult : number | Bindable = (selectedTmpBuf as number | Bindable) - let value : AlphabetIndexerOptions = ({arrayValue: arrayValueTmpResult, selected: selectedTmpResult} as AlphabetIndexerOptions) - return value - } -} diff --git a/arkoala-arkts/arkui/generated/AnimatorModifier.ets b/arkoala-arkts/arkui/generated/AnimatorModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..d367f903d963a0936e7b962f44258033ac9e96b7 --- /dev/null +++ b/arkoala-arkts/arkui/generated/AnimatorModifier.ets @@ -0,0 +1,662 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkAnimatorPeer, SpringMotion, FrictionMotion, ScrollMotion, AnimatorAttribute } from "./component/animator" +import { CommonMethod } from "./component/common" +import { AnimationStatus, FillMode, PlayMode } from "./component/enums" +import { curves } from "./framework/ohos.curves" +export class AnimatorModifier extends CommonMethodModifier implements AnimatorAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: AnimatorAttribute): void { } + applyPressedAttribute(instance: AnimatorAttribute): void { } + applyFocusedAttribute(instance: AnimatorAttribute): void { } + applyDisabledAttribute(instance: AnimatorAttribute): void { } + applySelectedAttribute(instance: AnimatorAttribute): void { } + _state_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _state_0_0value?: AnimationStatus | undefined + _duration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _duration_0_0value?: number | undefined + _curve_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _curve_0_0value?: curves.Curve | undefined + _delay_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _delay_0_0value?: number | undefined + _fillMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fillMode_0_0value?: FillMode | undefined + _iterations_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _iterations_0_0value?: number | undefined + _playMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _playMode_0_0value?: PlayMode | undefined + _motion_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _motion_0_0value?: SpringMotion | FrictionMotion | ScrollMotion | undefined + _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onStart_0_0value?: (() => void) | undefined + _onPause_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPause_0_0value?: (() => void) | undefined + _onRepeat_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRepeat_0_0value?: (() => void) | undefined + _onCancel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onCancel_0_0value?: (() => void) | undefined + _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFinish_0_0value?: (() => void) | undefined + _onFrame_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFrame_0_0value?: ((value: number) => void) | undefined + applyModifierPatch(peer: ArkAnimatorPeer): void { + super.applyModifierPatch(peer) + if (this._state_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._state_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStateAttribute((this._state_0_0value as AnimationStatus | undefined)); + this._state_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._state_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._state_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStateAttribute((undefined as AnimationStatus | undefined)); + } + } + } + if (this._duration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._duration_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDurationAttribute((this._duration_0_0value as number | undefined)); + this._duration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._duration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._duration_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDurationAttribute((undefined as number | undefined)); + } + } + } + if (this._curve_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._curve_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCurveAttribute((this._curve_0_0value as curves.Curve | undefined)); + this._curve_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._curve_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._curve_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCurveAttribute((undefined as curves.Curve | undefined)); + } + } + } + if (this._delay_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._delay_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDelayAttribute((this._delay_0_0value as number | undefined)); + this._delay_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._delay_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._delay_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDelayAttribute((undefined as number | undefined)); + } + } + } + if (this._fillMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fillMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFillModeAttribute((this._fillMode_0_0value as FillMode | undefined)); + this._fillMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fillMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fillMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFillModeAttribute((undefined as FillMode | undefined)); + } + } + } + if (this._iterations_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._iterations_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIterationsAttribute((this._iterations_0_0value as number | undefined)); + this._iterations_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._iterations_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._iterations_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIterationsAttribute((undefined as number | undefined)); + } + } + } + if (this._playMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._playMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPlayModeAttribute((this._playMode_0_0value as PlayMode | undefined)); + this._playMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._playMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._playMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPlayModeAttribute((undefined as PlayMode | undefined)); + } + } + } + if (this._motion_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._motion_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMotionAttribute((this._motion_0_0value as SpringMotion | FrictionMotion | ScrollMotion | undefined)); + this._motion_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._motion_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._motion_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMotionAttribute((undefined as SpringMotion | FrictionMotion | ScrollMotion | undefined)); + } + } + } + if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnStartAttribute((this._onStart_0_0value as (() => void) | undefined)); + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnStartAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onPause_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPause_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPauseAttribute((this._onPause_0_0value as (() => void) | undefined)); + this._onPause_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPause_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPause_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPauseAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onRepeat_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRepeat_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRepeatAttribute((this._onRepeat_0_0value as (() => void) | undefined)); + this._onRepeat_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRepeat_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRepeat_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRepeatAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onCancel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onCancel_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCancelAttribute((this._onCancel_0_0value as (() => void) | undefined)); + this._onCancel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onCancel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onCancel_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCancelAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFinishAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onFrame_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFrame_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFrameAttribute((this._onFrame_0_0value as ((value: number) => void) | undefined)); + this._onFrame_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFrame_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFrame_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFrameAttribute((undefined as ((value: number) => void) | undefined)); + } + } + } + } + mergeModifier(modifier: AnimatorModifier): void { + super.mergeModifier(modifier) + if (modifier._state_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._state_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.state(modifier._state_0_0value); + break; + } + default: { + this.state((undefined as AnimationStatus | undefined)); + } + } + } + if (modifier._duration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._duration_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.duration(modifier._duration_0_0value); + break; + } + default: { + this.duration((undefined as number | undefined)); + } + } + } + if (modifier._curve_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._curve_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.curve(modifier._curve_0_0value); + break; + } + default: { + this.curve((undefined as curves.Curve | undefined)); + } + } + } + if (modifier._delay_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._delay_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.delay(modifier._delay_0_0value); + break; + } + default: { + this.delay((undefined as number | undefined)); + } + } + } + if (modifier._fillMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fillMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fillMode(modifier._fillMode_0_0value); + break; + } + default: { + this.fillMode((undefined as FillMode | undefined)); + } + } + } + if (modifier._iterations_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._iterations_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.iterations(modifier._iterations_0_0value); + break; + } + default: { + this.iterations((undefined as number | undefined)); + } + } + } + if (modifier._playMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._playMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.playMode(modifier._playMode_0_0value); + break; + } + default: { + this.playMode((undefined as PlayMode | undefined)); + } + } + } + if (modifier._motion_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._motion_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.motion(modifier._motion_0_0value); + break; + } + default: { + this.motion((undefined as SpringMotion | FrictionMotion | ScrollMotion | undefined)); + } + } + } + if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onStart(modifier._onStart_0_0value); + break; + } + default: { + this.onStart((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onPause_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPause_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPause(modifier._onPause_0_0value); + break; + } + default: { + this.onPause((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onRepeat_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRepeat_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRepeat(modifier._onRepeat_0_0value); + break; + } + default: { + this.onRepeat((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onCancel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onCancel_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onCancel(modifier._onCancel_0_0value); + break; + } + default: { + this.onCancel((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFinish(modifier._onFinish_0_0value); + break; + } + default: { + this.onFinish((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onFrame_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFrame_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFrame(modifier._onFrame_0_0value); + break; + } + default: { + this.onFrame((undefined as ((value: number) => void) | undefined)); + } + } + } + } + state(value: AnimationStatus | undefined): this { + if (((this._state_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._state_0_flag = AttributeUpdaterFlag.UPDATE + this._state_0_0value = value + } else + { + this._state_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + duration(value: number | undefined): this { + if (((this._duration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._duration_0_0value) !== (value))) + { + this._duration_0_flag = AttributeUpdaterFlag.UPDATE + this._duration_0_0value = value + } else + { + this._duration_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + curve(value: curves.Curve | undefined): this { + if (((this._curve_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._curve_0_flag = AttributeUpdaterFlag.UPDATE + this._curve_0_0value = value + } else + { + this._curve_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + delay(value: number | undefined): this { + if (((this._delay_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._delay_0_0value) !== (value))) + { + this._delay_0_flag = AttributeUpdaterFlag.UPDATE + this._delay_0_0value = value + } else + { + this._delay_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fillMode(value: FillMode | undefined): this { + if (((this._fillMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fillMode_0_flag = AttributeUpdaterFlag.UPDATE + this._fillMode_0_0value = value + } else + { + this._fillMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + iterations(value: number | undefined): this { + if (((this._iterations_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._iterations_0_0value) !== (value))) + { + this._iterations_0_flag = AttributeUpdaterFlag.UPDATE + this._iterations_0_0value = value + } else + { + this._iterations_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + playMode(value: PlayMode | undefined): this { + if (((this._playMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._playMode_0_flag = AttributeUpdaterFlag.UPDATE + this._playMode_0_0value = value + } else + { + this._playMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + motion(value: SpringMotion | FrictionMotion | ScrollMotion | undefined): this { + if (((this._motion_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._motion_0_flag = AttributeUpdaterFlag.UPDATE + this._motion_0_0value = value + } else + { + this._motion_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onStart(value: (() => void) | undefined): this { + if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onStart_0_0value = value + } else + { + this._onStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPause(value: (() => void) | undefined): this { + if (((this._onPause_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPause_0_flag = AttributeUpdaterFlag.UPDATE + this._onPause_0_0value = value + } else + { + this._onPause_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onRepeat(value: (() => void) | undefined): this { + if (((this._onRepeat_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRepeat_0_flag = AttributeUpdaterFlag.UPDATE + this._onRepeat_0_0value = value + } else + { + this._onRepeat_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onCancel(value: (() => void) | undefined): this { + if (((this._onCancel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onCancel_0_flag = AttributeUpdaterFlag.UPDATE + this._onCancel_0_0value = value + } else + { + this._onCancel_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFinish(value: (() => void) | undefined): this { + if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE + this._onFinish_0_0value = value + } else + { + this._onFinish_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFrame(value: ((value: number) => void) | undefined): this { + if (((this._onFrame_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFrame_0_flag = AttributeUpdaterFlag.UPDATE + this._onFrame_0_0value = value + } else + { + this._onFrame_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/generated/AttributeUpdater.ets b/arkoala-arkts/arkui/generated/AttributeUpdater.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/AttributeUpdater.ets rename to arkoala-arkts/arkui/generated/AttributeUpdater.ets index 7b3569df615640bff251026fce93e06eba3ff3ee..3b4d36883f9a9d5c7959960122b683825a374e7b 100644 --- a/arkoala-arkts/arkui/src/generated/AttributeUpdater.ets +++ b/arkoala-arkts/arkui/generated/AttributeUpdater.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum AttributeUpdaterFlag { INITIAL = 0, UPDATE = 1, diff --git a/arkoala-arkts/arkui/generated/BadgeModifier.ets b/arkoala-arkts/arkui/generated/BadgeModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..ea75acd8c5d032415a359be847c70191b1aa591d --- /dev/null +++ b/arkoala-arkts/arkui/generated/BadgeModifier.ets @@ -0,0 +1,44 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkBadgePeer, BadgeAttribute } from "./component/badge" +import { CommonMethod } from "./component/common" +export class BadgeModifier extends CommonMethodModifier implements BadgeAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: BadgeAttribute): void { } + applyPressedAttribute(instance: BadgeAttribute): void { } + applyFocusedAttribute(instance: BadgeAttribute): void { } + applyDisabledAttribute(instance: BadgeAttribute): void { } + applySelectedAttribute(instance: BadgeAttribute): void { } + applyModifierPatch(peer: ArkBadgePeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: BadgeModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/BaseSpanModifier.ets b/arkoala-arkts/arkui/generated/BaseSpanModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..c7e0e6cdf2c60916b35cdedb703332a262a632f1 --- /dev/null +++ b/arkoala-arkts/arkui/generated/BaseSpanModifier.ets @@ -0,0 +1,133 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkBaseSpanPeer, TextBackgroundStyle, BaseSpan } from "./component/span" +import { CommonMethod } from "./component/common" +import { LengthMetrics } from "./Graphics" +export class BaseSpanModifier extends CommonMethodModifier implements BaseSpan,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: BaseSpan): void { } + applyPressedAttribute(instance: BaseSpan): void { } + applyFocusedAttribute(instance: BaseSpan): void { } + applyDisabledAttribute(instance: BaseSpan): void { } + applySelectedAttribute(instance: BaseSpan): void { } + _textBackgroundStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textBackgroundStyle_0_0value?: TextBackgroundStyle | undefined + _baselineOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _baselineOffset_0_0value?: LengthMetrics | undefined + applyModifierPatch(peer: ArkBaseSpanPeer): void { + super.applyModifierPatch(peer) + if (this._textBackgroundStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textBackgroundStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextBackgroundStyleAttribute((this._textBackgroundStyle_0_0value as TextBackgroundStyle | undefined)); + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextBackgroundStyleAttribute((undefined as TextBackgroundStyle | undefined)); + } + } + } + if (this._baselineOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._baselineOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBaselineOffsetAttribute((this._baselineOffset_0_0value as LengthMetrics | undefined)); + this._baselineOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._baselineOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._baselineOffset_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBaselineOffsetAttribute((undefined as LengthMetrics | undefined)); + } + } + } + } + mergeModifier(modifier: BaseSpanModifier): void { + super.mergeModifier(modifier) + if (modifier._textBackgroundStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textBackgroundStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textBackgroundStyle(modifier._textBackgroundStyle_0_0value); + break; + } + default: { + this.textBackgroundStyle((undefined as TextBackgroundStyle | undefined)); + } + } + } + if (modifier._baselineOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._baselineOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.baselineOffset(modifier._baselineOffset_0_0value); + break; + } + default: { + this.baselineOffset((undefined as LengthMetrics | undefined)); + } + } + } + } + textBackgroundStyle(value: TextBackgroundStyle | undefined): this { + if (((this._textBackgroundStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._textBackgroundStyle_0_0value = value + } else + { + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + baselineOffset(value: LengthMetrics | undefined): this { + if (((this._baselineOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._baselineOffset_0_flag = AttributeUpdaterFlag.UPDATE + this._baselineOffset_0_0value = value + } else + { + this._baselineOffset_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/BlankModifier.ets b/arkoala-arkts/arkui/generated/BlankModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..b92f3918afedc663a36f06d0c7524aa619a612ac --- /dev/null +++ b/arkoala-arkts/arkui/generated/BlankModifier.ets @@ -0,0 +1,91 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkBlankPeer, BlankAttribute } from "./component/blank" +import { CommonMethod } from "./component/common" +import { ResourceColor } from "./component/units" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +export class BlankModifier extends CommonMethodModifier implements BlankAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: BlankAttribute): void { } + applyPressedAttribute(instance: BlankAttribute): void { } + applyFocusedAttribute(instance: BlankAttribute): void { } + applyDisabledAttribute(instance: BlankAttribute): void { } + applySelectedAttribute(instance: BlankAttribute): void { } + _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _color_0_0value?: ResourceColor | undefined + applyModifierPatch(peer: ArkBlankPeer): void { + super.applyModifierPatch(peer) + if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorAttribute((this._color_0_0value as ResourceColor | undefined)); + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._color_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + } + mergeModifier(modifier: BlankModifier): void { + super.mergeModifier(modifier) + if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.color(modifier._color_0_0value); + break; + } + default: { + this.color((undefined as ResourceColor | undefined)); + } + } + } + } + color(value: ResourceColor | undefined): this { + if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._color_0_flag = AttributeUpdaterFlag.UPDATE + this._color_0_0value = value + } else + { + this._color_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ButtonModifier.ets b/arkoala-arkts/arkui/generated/ButtonModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..fd06d4f97427b832d2caa6795b2b8c36d6d123f5 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ButtonModifier.ets @@ -0,0 +1,619 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkButtonPeer, ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, ButtonLabelStyle, ButtonAttribute } from "./component/button" +import { CommonMethod } from "./component/common" +import { ResourceColor, Length } from "./component/units" +import { Color, FontWeight, FontStyle } from "./component/enums" +import { Resource } from "global.resource" +export class ButtonModifier extends CommonMethodModifier implements ButtonAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ButtonAttribute): void { } + applyPressedAttribute(instance: ButtonAttribute): void { } + applyFocusedAttribute(instance: ButtonAttribute): void { } + applyDisabledAttribute(instance: ButtonAttribute): void { } + applySelectedAttribute(instance: ButtonAttribute): void { } + _type_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _type_0_0value?: ButtonType | undefined + _stateEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stateEffect_0_0value?: boolean | undefined + _buttonStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _buttonStyle_0_0value?: ButtonStyleMode | undefined + _controlSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _controlSize_0_0value?: ControlSize | undefined + _role_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _role_0_0value?: ButtonRole | undefined + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: ResourceColor | undefined + _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontSize_0_0value?: Length | undefined + _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontWeight_0_0value?: number | FontWeight | string | undefined + _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontStyle_0_0value?: FontStyle | undefined + _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontFamily_0_0value?: string | Resource | undefined + _labelStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _labelStyle_0_0value?: ButtonLabelStyle | undefined + _minFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minFontScale_0_0value?: number | Resource | undefined + _maxFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxFontScale_0_0value?: number | Resource | undefined + applyModifierPatch(peer: ArkButtonPeer): void { + super.applyModifierPatch(peer) + if (this._type_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._type_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTypeAttribute((this._type_0_0value as ButtonType | undefined)); + this._type_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._type_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._type_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTypeAttribute((undefined as ButtonType | undefined)); + } + } + } + if (this._stateEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stateEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStateEffectAttribute((this._stateEffect_0_0value as boolean | undefined)); + this._stateEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stateEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stateEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStateEffectAttribute((undefined as boolean | undefined)); + } + } + } + if (this._buttonStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._buttonStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setButtonStyleAttribute((this._buttonStyle_0_0value as ButtonStyleMode | undefined)); + this._buttonStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._buttonStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._buttonStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setButtonStyleAttribute((undefined as ButtonStyleMode | undefined)); + } + } + } + if (this._controlSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._controlSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setControlSizeAttribute((this._controlSize_0_0value as ControlSize | undefined)); + this._controlSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._controlSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._controlSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setControlSizeAttribute((undefined as ControlSize | undefined)); + } + } + } + if (this._role_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._role_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRoleAttribute((this._role_0_0value as ButtonRole | undefined)); + this._role_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._role_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._role_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRoleAttribute((undefined as ButtonRole | undefined)); + } + } + } + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontSizeAttribute((undefined as Length | undefined)); + } + } + } + if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); + } + } + } + if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontStyleAttribute((undefined as FontStyle | undefined)); + } + } + } + if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontFamilyAttribute((this._fontFamily_0_0value as string | Resource | undefined)); + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontFamilyAttribute((undefined as string | Resource | undefined)); + } + } + } + if (this._labelStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._labelStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLabelStyleAttribute((this._labelStyle_0_0value as ButtonLabelStyle | undefined)); + this._labelStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._labelStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._labelStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLabelStyleAttribute((undefined as ButtonLabelStyle | undefined)); + } + } + } + if (this._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinFontScaleAttribute((this._minFontScale_0_0value as number | Resource | undefined)); + this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minFontScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinFontScaleAttribute((undefined as number | Resource | undefined)); + } + } + } + if (this._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxFontScaleAttribute((this._maxFontScale_0_0value as number | Resource | undefined)); + this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxFontScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxFontScaleAttribute((undefined as number | Resource | undefined)); + } + } + } + } + mergeModifier(modifier: ButtonModifier): void { + super.mergeModifier(modifier) + if (modifier._type_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._type_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.type(modifier._type_0_0value); + break; + } + default: { + this.type((undefined as ButtonType | undefined)); + } + } + } + if (modifier._stateEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stateEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stateEffect(modifier._stateEffect_0_0value); + break; + } + default: { + this.stateEffect((undefined as boolean | undefined)); + } + } + } + if (modifier._buttonStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._buttonStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.buttonStyle(modifier._buttonStyle_0_0value); + break; + } + default: { + this.buttonStyle((undefined as ButtonStyleMode | undefined)); + } + } + } + if (modifier._controlSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._controlSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.controlSize(modifier._controlSize_0_0value); + break; + } + default: { + this.controlSize((undefined as ControlSize | undefined)); + } + } + } + if (modifier._role_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._role_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.role(modifier._role_0_0value); + break; + } + default: { + this.role((undefined as ButtonRole | undefined)); + } + } + } + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontSize(modifier._fontSize_0_0value); + break; + } + default: { + this.fontSize((undefined as Length | undefined)); + } + } + } + if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontWeight(modifier._fontWeight_0_0value); + break; + } + default: { + this.fontWeight((undefined as number | FontWeight | string | undefined)); + } + } + } + if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontStyle(modifier._fontStyle_0_0value); + break; + } + default: { + this.fontStyle((undefined as FontStyle | undefined)); + } + } + } + if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontFamily(modifier._fontFamily_0_0value); + break; + } + default: { + this.fontFamily((undefined as string | Resource | undefined)); + } + } + } + if (modifier._labelStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._labelStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.labelStyle(modifier._labelStyle_0_0value); + break; + } + default: { + this.labelStyle((undefined as ButtonLabelStyle | undefined)); + } + } + } + if (modifier._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minFontScale(modifier._minFontScale_0_0value); + break; + } + default: { + this.minFontScale((undefined as number | Resource | undefined)); + } + } + } + if (modifier._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxFontScale(modifier._maxFontScale_0_0value); + break; + } + default: { + this.maxFontScale((undefined as number | Resource | undefined)); + } + } + } + } + type(value: ButtonType | undefined): this { + if (((this._type_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._type_0_flag = AttributeUpdaterFlag.UPDATE + this._type_0_0value = value + } else + { + this._type_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + stateEffect(value: boolean | undefined): this { + if (((this._stateEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stateEffect_0_0value) !== (value))) + { + this._stateEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._stateEffect_0_0value = value + } else + { + this._stateEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + buttonStyle(value: ButtonStyleMode | undefined): this { + if (((this._buttonStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._buttonStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._buttonStyle_0_0value = value + } else + { + this._buttonStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + controlSize(value: ControlSize | undefined): this { + if (((this._controlSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._controlSize_0_flag = AttributeUpdaterFlag.UPDATE + this._controlSize_0_0value = value + } else + { + this._controlSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + role(value: ButtonRole | undefined): this { + if (((this._role_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._role_0_flag = AttributeUpdaterFlag.UPDATE + this._role_0_0value = value + } else + { + this._role_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontColor(value: ResourceColor | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontSize(value: Length | undefined): this { + if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fontSize_0_0value = value + } else + { + this._fontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontWeight(value: number | FontWeight | string | undefined): this { + if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._fontWeight_0_0value = value + } else + { + this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontStyle(value: FontStyle | undefined): this { + if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._fontStyle_0_0value = value + } else + { + this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontFamily(value: string | Resource | undefined): this { + if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE + this._fontFamily_0_0value = value + } else + { + this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + labelStyle(value: ButtonLabelStyle | undefined): this { + if (((this._labelStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._labelStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._labelStyle_0_0value = value + } else + { + this._labelStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minFontScale(value: number | Resource | undefined): this { + if (((this._minFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._minFontScale_0_flag = AttributeUpdaterFlag.UPDATE + this._minFontScale_0_0value = value + } else + { + this._minFontScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxFontScale(value: number | Resource | undefined): this { + if (((this._maxFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._maxFontScale_0_flag = AttributeUpdaterFlag.UPDATE + this._maxFontScale_0_0value = value + } else + { + this._maxFontScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/CalendarPickerModifier.ets b/arkoala-arkts/arkui/generated/CalendarPickerModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..90e574a720c550a044ff52db0c25bec4d721f599 --- /dev/null +++ b/arkoala-arkts/arkui/generated/CalendarPickerModifier.ets @@ -0,0 +1,223 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkCalendarPickerPeer, CalendarPickerAttribute, CalendarAlign } from "./component/calendarPicker" +import { CommonMethod, PickerTextStyle } from "./component/common" +import { Offset } from "./component/units" +export class CalendarPickerModifier extends CommonMethodModifier implements CalendarPickerAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: CalendarPickerAttribute): void { } + applyPressedAttribute(instance: CalendarPickerAttribute): void { } + applyFocusedAttribute(instance: CalendarPickerAttribute): void { } + applyDisabledAttribute(instance: CalendarPickerAttribute): void { } + applySelectedAttribute(instance: CalendarPickerAttribute): void { } + _textStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textStyle_0_0value?: PickerTextStyle | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: ((value0: Date) => void) | undefined + _markToday_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _markToday_0_0value?: boolean | undefined + _edgeAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _edgeAlign_0_0value?: CalendarAlign | undefined + _edgeAlign_0_1value?: Offset | undefined + applyModifierPatch(peer: ArkCalendarPickerPeer): void { + super.applyModifierPatch(peer) + if (this._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextStyleAttribute((this._textStyle_0_0value as PickerTextStyle | undefined)); + this._textStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: Date) => void) | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as ((value0: Date) => void) | undefined)); + } + } + } + if (this._markToday_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._markToday_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMarkTodayAttribute((this._markToday_0_0value as boolean | undefined)); + this._markToday_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._markToday_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._markToday_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMarkTodayAttribute((undefined as boolean | undefined)); + } + } + } + if (this._edgeAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._edgeAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEdgeAlignAttribute((this._edgeAlign_0_0value as CalendarAlign | undefined), (this._edgeAlign_0_1value as Offset | undefined)); + this._edgeAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._edgeAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._edgeAlign_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEdgeAlignAttribute((undefined as CalendarAlign | undefined), (undefined as Offset | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: CalendarPickerModifier): void { + super.mergeModifier(modifier) + if (modifier._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textStyle(modifier._textStyle_0_0value); + break; + } + default: { + this.textStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as ((value0: Date) => void) | undefined)); + } + } + } + if (modifier._markToday_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._markToday_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.markToday(modifier._markToday_0_0value); + break; + } + default: { + this.markToday((undefined as boolean | undefined)); + } + } + } + if (modifier._edgeAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._edgeAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.edgeAlign(modifier._edgeAlign_0_0value, modifier._edgeAlign_0_1value); + break; + } + default: { + this.edgeAlign((undefined as CalendarAlign | undefined), (undefined as Offset | undefined | undefined)); + } + } + } + } + textStyle(value: PickerTextStyle | undefined): this { + if (((this._textStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._textStyle_0_0value = value + } else + { + this._textStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: ((value0: Date) => void) | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + markToday(value: boolean | undefined): this { + if (((this._markToday_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._markToday_0_0value) !== (value))) + { + this._markToday_0_flag = AttributeUpdaterFlag.UPDATE + this._markToday_0_0value = value + } else + { + this._markToday_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + edgeAlign(alignType: CalendarAlign | undefined, offset?: Offset): this { + if (((this._edgeAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._edgeAlign_0_flag = AttributeUpdaterFlag.UPDATE + this._edgeAlign_0_0value = alignType + this._edgeAlign_0_1value = offset + } else + { + this._edgeAlign_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/CanvasModifier.ets b/arkoala-arkts/arkui/generated/CanvasModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..dda18fc13052ccc57256cab3bbbb5bb7f5b49120 --- /dev/null +++ b/arkoala-arkts/arkui/generated/CanvasModifier.ets @@ -0,0 +1,133 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkCanvasPeer, CanvasAttribute } from "./component/canvas" +import { CommonMethod } from "./component/common" +import { VoidCallback } from "./component/units" +export class CanvasModifier extends CommonMethodModifier implements CanvasAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: CanvasAttribute): void { } + applyPressedAttribute(instance: CanvasAttribute): void { } + applyFocusedAttribute(instance: CanvasAttribute): void { } + applyDisabledAttribute(instance: CanvasAttribute): void { } + applySelectedAttribute(instance: CanvasAttribute): void { } + _onReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onReady_0_0value?: VoidCallback | undefined + _enableAnalyzer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableAnalyzer_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkCanvasPeer): void { + super.applyModifierPatch(peer) + if (this._onReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnReadyAttribute((this._onReady_0_0value as VoidCallback | undefined)); + this._onReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onReady_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnReadyAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableAnalyzer_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableAnalyzerAttribute((this._enableAnalyzer_0_0value as boolean | undefined)); + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableAnalyzerAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: CanvasModifier): void { + super.mergeModifier(modifier) + if (modifier._onReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onReady(modifier._onReady_0_0value); + break; + } + default: { + this.onReady((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableAnalyzer_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableAnalyzer(modifier._enableAnalyzer_0_0value); + break; + } + default: { + this.enableAnalyzer((undefined as boolean | undefined)); + } + } + } + } + onReady(value: VoidCallback | undefined): this { + if (((this._onReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onReady_0_flag = AttributeUpdaterFlag.UPDATE + this._onReady_0_0value = value + } else + { + this._onReady_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableAnalyzer(value: boolean | undefined): this { + if (((this._enableAnalyzer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnalyzer_0_0value) !== (value))) + { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.UPDATE + this._enableAnalyzer_0_0value = value + } else + { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/CheckboxGroupModifier.ets b/arkoala-arkts/arkui/generated/CheckboxGroupModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..43f18aa863dd524c5e27de0becaf64f7047ed35e --- /dev/null +++ b/arkoala-arkts/arkui/generated/CheckboxGroupModifier.ets @@ -0,0 +1,311 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkCheckboxGroupPeer, OnCheckboxGroupChangeCallback, CheckboxGroupResult, CheckboxGroupAttribute } from "./component/checkboxgroup" +import { CommonMethod, Bindable } from "./component/common" +import { ResourceColor, MarkStyle } from "./component/units" +import { Color, CheckBoxShape } from "./component/enums" +import { Resource } from "global.resource" +export class CheckboxGroupModifier extends CommonMethodModifier implements CheckboxGroupAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: CheckboxGroupAttribute): void { } + applyPressedAttribute(instance: CheckboxGroupAttribute): void { } + applyFocusedAttribute(instance: CheckboxGroupAttribute): void { } + applyDisabledAttribute(instance: CheckboxGroupAttribute): void { } + applySelectedAttribute(instance: CheckboxGroupAttribute): void { } + _selectAll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectAll_0_0value?: boolean | Bindable | undefined + _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedColor_0_0value?: ResourceColor | undefined + _unselectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _unselectedColor_0_0value?: ResourceColor | undefined + _mark_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mark_0_0value?: MarkStyle | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: OnCheckboxGroupChangeCallback | undefined + _checkboxShape_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _checkboxShape_0_0value?: CheckBoxShape | undefined + applyModifierPatch(peer: ArkCheckboxGroupPeer): void { + super.applyModifierPatch(peer) + if (this._selectAll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectAll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectAllAttribute((this._selectAll_0_0value as boolean | Bindable | undefined)); + this._selectAll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectAll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectAll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectAllAttribute((undefined as boolean | Bindable | undefined)); + } + } + } + if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | undefined)); + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._unselectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._unselectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setUnselectedColorAttribute((this._unselectedColor_0_0value as ResourceColor | undefined)); + this._unselectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._unselectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._unselectedColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setUnselectedColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._mark_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mark_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMarkAttribute((this._mark_0_0value as MarkStyle | undefined)); + this._mark_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mark_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mark_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMarkAttribute((undefined as MarkStyle | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as OnCheckboxGroupChangeCallback | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as OnCheckboxGroupChangeCallback | undefined)); + } + } + } + if (this._checkboxShape_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._checkboxShape_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCheckboxShapeAttribute((this._checkboxShape_0_0value as CheckBoxShape | undefined)); + this._checkboxShape_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._checkboxShape_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._checkboxShape_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCheckboxShapeAttribute((undefined as CheckBoxShape | undefined)); + } + } + } + } + mergeModifier(modifier: CheckboxGroupModifier): void { + super.mergeModifier(modifier) + if (modifier._selectAll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectAll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectAll(modifier._selectAll_0_0value); + break; + } + default: { + this.selectAll((undefined as boolean | Bindable | undefined)); + } + } + } + if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedColor(modifier._selectedColor_0_0value); + break; + } + default: { + this.selectedColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._unselectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._unselectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.unselectedColor(modifier._unselectedColor_0_0value); + break; + } + default: { + this.unselectedColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._mark_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mark_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mark(modifier._mark_0_0value); + break; + } + default: { + this.mark((undefined as MarkStyle | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as OnCheckboxGroupChangeCallback | undefined)); + } + } + } + if (modifier._checkboxShape_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._checkboxShape_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.checkboxShape(modifier._checkboxShape_0_0value); + break; + } + default: { + this.checkboxShape((undefined as CheckBoxShape | undefined)); + } + } + } + } + selectAll(value: boolean | Bindable | undefined): this { + if (((this._selectAll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectAll_0_flag = AttributeUpdaterFlag.UPDATE + this._selectAll_0_0value = value + } else + { + this._selectAll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedColor(value: ResourceColor | undefined): this { + if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedColor_0_0value = value + } else + { + this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + unselectedColor(value: ResourceColor | undefined): this { + if (((this._unselectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._unselectedColor_0_flag = AttributeUpdaterFlag.UPDATE + this._unselectedColor_0_0value = value + } else + { + this._unselectedColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + mark(value: MarkStyle | undefined): this { + if (((this._mark_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._mark_0_flag = AttributeUpdaterFlag.UPDATE + this._mark_0_0value = value + } else + { + this._mark_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: OnCheckboxGroupChangeCallback | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + checkboxShape(value: CheckBoxShape | undefined): this { + if (((this._checkboxShape_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._checkboxShape_0_flag = AttributeUpdaterFlag.UPDATE + this._checkboxShape_0_0value = value + } else + { + this._checkboxShape_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/CheckboxModifier.ets b/arkoala-arkts/arkui/generated/CheckboxModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..cff7541a5c7b12be94c1d9cbd338909341751cea --- /dev/null +++ b/arkoala-arkts/arkui/generated/CheckboxModifier.ets @@ -0,0 +1,311 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkCheckboxPeer, OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxAttribute } from "./component/checkbox" +import { CommonMethod, Bindable } from "./component/common" +import { ResourceColor, MarkStyle } from "./component/units" +import { Color, CheckBoxShape } from "./component/enums" +import { Resource } from "global.resource" +export class CheckboxModifier extends CommonMethodModifier implements CheckboxAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: CheckboxAttribute): void { } + applyPressedAttribute(instance: CheckboxAttribute): void { } + applyFocusedAttribute(instance: CheckboxAttribute): void { } + applyDisabledAttribute(instance: CheckboxAttribute): void { } + applySelectedAttribute(instance: CheckboxAttribute): void { } + _select_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _select_0_0value?: boolean | Bindable | undefined + _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedColor_0_0value?: ResourceColor | undefined + _shape_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _shape_0_0value?: CheckBoxShape | undefined + _unselectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _unselectedColor_0_0value?: ResourceColor | undefined + _mark_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mark_0_0value?: MarkStyle | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: OnCheckboxChangeCallback | undefined + applyModifierPatch(peer: ArkCheckboxPeer): void { + super.applyModifierPatch(peer) + if (this._select_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._select_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectAttribute((this._select_0_0value as boolean | Bindable | undefined)); + this._select_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._select_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._select_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectAttribute((undefined as boolean | Bindable | undefined)); + } + } + } + if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | undefined)); + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._shape_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._shape_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShapeAttribute((this._shape_0_0value as CheckBoxShape | undefined)); + this._shape_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._shape_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._shape_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShapeAttribute((undefined as CheckBoxShape | undefined)); + } + } + } + if (this._unselectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._unselectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setUnselectedColorAttribute((this._unselectedColor_0_0value as ResourceColor | undefined)); + this._unselectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._unselectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._unselectedColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setUnselectedColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._mark_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mark_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMarkAttribute((this._mark_0_0value as MarkStyle | undefined)); + this._mark_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mark_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mark_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMarkAttribute((undefined as MarkStyle | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as OnCheckboxChangeCallback | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as OnCheckboxChangeCallback | undefined)); + } + } + } + } + mergeModifier(modifier: CheckboxModifier): void { + super.mergeModifier(modifier) + if (modifier._select_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._select_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.select(modifier._select_0_0value); + break; + } + default: { + this.select((undefined as boolean | Bindable | undefined)); + } + } + } + if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedColor(modifier._selectedColor_0_0value); + break; + } + default: { + this.selectedColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._shape_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._shape_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.shape(modifier._shape_0_0value); + break; + } + default: { + this.shape((undefined as CheckBoxShape | undefined)); + } + } + } + if (modifier._unselectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._unselectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.unselectedColor(modifier._unselectedColor_0_0value); + break; + } + default: { + this.unselectedColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._mark_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mark_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mark(modifier._mark_0_0value); + break; + } + default: { + this.mark((undefined as MarkStyle | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as OnCheckboxChangeCallback | undefined)); + } + } + } + } + select(value: boolean | Bindable | undefined): this { + if (((this._select_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._select_0_flag = AttributeUpdaterFlag.UPDATE + this._select_0_0value = value + } else + { + this._select_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedColor(value: ResourceColor | undefined): this { + if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedColor_0_0value = value + } else + { + this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + shape(value: CheckBoxShape | undefined): this { + if (((this._shape_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._shape_0_flag = AttributeUpdaterFlag.UPDATE + this._shape_0_0value = value + } else + { + this._shape_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + unselectedColor(value: ResourceColor | undefined): this { + if (((this._unselectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._unselectedColor_0_flag = AttributeUpdaterFlag.UPDATE + this._unselectedColor_0_0value = value + } else + { + this._unselectedColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + mark(value: MarkStyle | undefined): this { + if (((this._mark_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._mark_0_flag = AttributeUpdaterFlag.UPDATE + this._mark_0_0value = value + } else + { + this._mark_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: OnCheckboxChangeCallback | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/CircleModifier.ets b/arkoala-arkts/arkui/generated/CircleModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..5fb47b1bafbacbccbd688b352e90021ed2b1123c --- /dev/null +++ b/arkoala-arkts/arkui/generated/CircleModifier.ets @@ -0,0 +1,45 @@ +/* + * 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 { CommonShapeMethodModifier } from "./CommonShapeMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkCirclePeer, CircleAttribute } from "./component/circle" +import { CommonShapeMethod, CommonMethod } from "./component/common" +export class CircleModifier extends CommonShapeMethodModifier implements CircleAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: CircleAttribute): void { } + applyPressedAttribute(instance: CircleAttribute): void { } + applyFocusedAttribute(instance: CircleAttribute): void { } + applyDisabledAttribute(instance: CircleAttribute): void { } + applySelectedAttribute(instance: CircleAttribute): void { } + applyModifierPatch(peer: ArkCirclePeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: CircleModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ColumnModifier.ets b/arkoala-arkts/arkui/generated/ColumnModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..726d73ea332187f05cb1bd1b6c91addfb38ce59a --- /dev/null +++ b/arkoala-arkts/arkui/generated/ColumnModifier.ets @@ -0,0 +1,221 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkColumnPeer, ColumnAttribute } from "./component/column" +import { CommonMethod, PointLightStyle } from "./component/common" +import { HorizontalAlign, FlexAlign } from "./component/enums" +export class ColumnModifier extends CommonMethodModifier implements ColumnAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ColumnAttribute): void { } + applyPressedAttribute(instance: ColumnAttribute): void { } + applyFocusedAttribute(instance: ColumnAttribute): void { } + applyDisabledAttribute(instance: ColumnAttribute): void { } + applySelectedAttribute(instance: ColumnAttribute): void { } + _alignItems_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alignItems_0_0value?: HorizontalAlign | undefined + _justifyContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _justifyContent_0_0value?: FlexAlign | undefined + _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pointLight_0_0value?: PointLightStyle | undefined + _reverse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _reverse_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkColumnPeer): void { + super.applyModifierPatch(peer) + if (this._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alignItems_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignItemsAttribute((this._alignItems_0_0value as HorizontalAlign | undefined)); + this._alignItems_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alignItems_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alignItems_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignItemsAttribute((undefined as HorizontalAlign | undefined)); + } + } + } + if (this._justifyContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._justifyContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setJustifyContentAttribute((this._justifyContent_0_0value as FlexAlign | undefined)); + this._justifyContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._justifyContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._justifyContent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setJustifyContentAttribute((undefined as FlexAlign | undefined)); + } + } + } + if (this._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); + } + } + } + if (this._reverse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._reverse_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setReverseAttribute((this._reverse_0_0value as boolean | undefined)); + this._reverse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._reverse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._reverse_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setReverseAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: ColumnModifier): void { + super.mergeModifier(modifier) + if (modifier._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alignItems_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alignItems(modifier._alignItems_0_0value); + break; + } + default: { + this.alignItems((undefined as HorizontalAlign | undefined)); + } + } + } + if (modifier._justifyContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._justifyContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.justifyContent(modifier._justifyContent_0_0value); + break; + } + default: { + this.justifyContent((undefined as FlexAlign | undefined)); + } + } + } + if (modifier._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pointLight(modifier._pointLight_0_0value); + break; + } + default: { + this.pointLight((undefined as PointLightStyle | undefined)); + } + } + } + if (modifier._reverse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._reverse_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.reverse(modifier._reverse_0_0value); + break; + } + default: { + this.reverse((undefined as boolean | undefined)); + } + } + } + } + alignItems(value: HorizontalAlign | undefined): this { + if (((this._alignItems_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alignItems_0_flag = AttributeUpdaterFlag.UPDATE + this._alignItems_0_0value = value + } else + { + this._alignItems_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + justifyContent(value: FlexAlign | undefined): this { + if (((this._justifyContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._justifyContent_0_flag = AttributeUpdaterFlag.UPDATE + this._justifyContent_0_0value = value + } else + { + this._justifyContent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pointLight(value: PointLightStyle | undefined): this { + if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE + this._pointLight_0_0value = value + } else + { + this._pointLight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + reverse(value: boolean | undefined): this { + if (((this._reverse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._reverse_0_0value) !== (value))) + { + this._reverse_0_flag = AttributeUpdaterFlag.UPDATE + this._reverse_0_0value = value + } else + { + this._reverse_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ColumnSplitModifier.ets b/arkoala-arkts/arkui/generated/ColumnSplitModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..f4e405655499cd6a03ad2a297aa0b07558b5be3b --- /dev/null +++ b/arkoala-arkts/arkui/generated/ColumnSplitModifier.ets @@ -0,0 +1,132 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkColumnSplitPeer, ColumnSplitDividerStyle, ColumnSplitAttribute } from "./component/columnSplit" +import { CommonMethod } from "./component/common" +export class ColumnSplitModifier extends CommonMethodModifier implements ColumnSplitAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ColumnSplitAttribute): void { } + applyPressedAttribute(instance: ColumnSplitAttribute): void { } + applyFocusedAttribute(instance: ColumnSplitAttribute): void { } + applyDisabledAttribute(instance: ColumnSplitAttribute): void { } + applySelectedAttribute(instance: ColumnSplitAttribute): void { } + _resizeable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _resizeable_0_0value?: boolean | undefined + _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _divider_0_0value?: ColumnSplitDividerStyle | undefined + applyModifierPatch(peer: ArkColumnSplitPeer): void { + super.applyModifierPatch(peer) + if (this._resizeable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._resizeable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setResizeableAttribute((this._resizeable_0_0value as boolean | undefined)); + this._resizeable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._resizeable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._resizeable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setResizeableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDividerAttribute((this._divider_0_0value as ColumnSplitDividerStyle | undefined)); + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._divider_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDividerAttribute((undefined as ColumnSplitDividerStyle | undefined)); + } + } + } + } + mergeModifier(modifier: ColumnSplitModifier): void { + super.mergeModifier(modifier) + if (modifier._resizeable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._resizeable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.resizeable(modifier._resizeable_0_0value); + break; + } + default: { + this.resizeable((undefined as boolean | undefined)); + } + } + } + if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.divider(modifier._divider_0_0value); + break; + } + default: { + this.divider((undefined as ColumnSplitDividerStyle | undefined)); + } + } + } + } + resizeable(value: boolean | undefined): this { + if (((this._resizeable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._resizeable_0_0value) !== (value))) + { + this._resizeable_0_flag = AttributeUpdaterFlag.UPDATE + this._resizeable_0_0value = value + } else + { + this._resizeable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + divider(value: ColumnSplitDividerStyle | undefined): this { + if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._divider_0_flag = AttributeUpdaterFlag.UPDATE + this._divider_0_0value = value + } else + { + this._divider_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/CommonMethodModifier.ets b/arkoala-arkts/arkui/generated/CommonMethodModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..39e3c22a0d59b97e156e0a3347e72de5fa1a6555 --- /dev/null +++ b/arkoala-arkts/arkui/generated/CommonMethodModifier.ets @@ -0,0 +1,8836 @@ +/* + * 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 { AttributeModifier, GestureModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkCommonMethodPeer, LayoutPolicy, DrawModifier, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, BorderImageOption, OutlineStyle, ClickEvent, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, CrownEvent, FocusAxisEvent, AxisEvent, FocusMovement, AnimateParam, TransitionEffect, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragEvent, DragItemInfo, PreDragStatus, LinearGradientOptions, SweepGradientOptions, RadialGradientOptions, MotionPathOptions, ShadowOptions, ShadowStyle, ProgressMask, StateStyles, PixelStretchEffectOptions, AccessibilitySamePageMode, AccessibilityRoleType, AccessibilityFocusCallback, ReuseOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, CustomProperty, SafeAreaType, SafeAreaEdge, BackgroundOptions, BackgroundImageOptions, BlurStyle, BackgroundBlurStyleOptions, SystemAdaptiveOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, OnDragEventCallback, DropOptions, PreviewConfiguration, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, GeometryTransitionOptions, TipsMessageType, TipsOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, Bindable, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, VisibleAreaEventOptions, CommonMethod } from "./component/common" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, VoidCallback, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./component/units" +import { Resource } from "global.resource" +import { HitTestMode, Color, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, FocusDrawLevel, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./component/enums" +import { LengthMetrics } from "./Graphics" +import { ResizableOptions } from "./component/image" +import { uiEffect } from "./framework/ohos.graphics.uiEffect" +import { FocusBoxStyle, FocusPriority } from "./component/focus" +import { CustomBuilder } from "./component/builder" +import { uniformTypeDescriptor } from "./framework/ohos.data.uniformTypeDescriptor" +import { CircleShape, EllipseShape, PathShape, RectShape } from "./framework/ohos.arkui.shape" +import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureRecognizer, GestureType, Gesture, GestureMask } from "./component/gesture" +import { image } from "./framework/ohos.multimedia.image" +import { ComponentContent } from "./ComponentContent" +import { StyledString } from "./component/styledString" +export class CommonMethodModifier implements CommonMethod,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: CommonMethod): void { } + applyPressedAttribute(instance: CommonMethod): void { } + applyFocusedAttribute(instance: CommonMethod): void { } + applyDisabledAttribute(instance: CommonMethod): void { } + applySelectedAttribute(instance: CommonMethod): void { } + _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 + _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._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._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 + } + 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") + } +} diff --git a/arkoala-arkts/arkui/src/generated/arkui.CommonModifier.ets b/arkoala-arkts/arkui/generated/CommonModifier.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/arkui.CommonModifier.ets rename to arkoala-arkts/arkui/generated/CommonModifier.ets index 8adccc4c38c63c70a81a0074c419b8d96a921a49..eeb63068ecbeac782c0eae791f38002d2c324fee 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.CommonModifier.ets +++ b/arkoala-arkts/arkui/generated/CommonModifier.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export interface CommonModifier { } diff --git a/arkoala-arkts/arkui/generated/CommonShapeMethodModifier.ets b/arkoala-arkts/arkui/generated/CommonShapeMethodModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..8859a49fbfa359b0b5acba0bc05af73710cd3c8f --- /dev/null +++ b/arkoala-arkts/arkui/generated/CommonShapeMethodModifier.ets @@ -0,0 +1,530 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkCommonShapeMethodPeer, CommonMethod, CommonShapeMethod } from "./component/common" +import { ResourceColor, Length } from "./component/units" +import { Color, LineCapStyle, LineJoinStyle } from "./component/enums" +import { Resource } from "global.resource" +export class CommonShapeMethodModifier extends CommonMethodModifier implements CommonShapeMethod,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: CommonShapeMethod): void { } + applyPressedAttribute(instance: CommonShapeMethod): void { } + applyFocusedAttribute(instance: CommonShapeMethod): void { } + applyDisabledAttribute(instance: CommonShapeMethod): void { } + applySelectedAttribute(instance: CommonShapeMethod): void { } + _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") + } +} diff --git a/arkoala-arkts/arkui/src/generated/arkui.ComponentContent.ets b/arkoala-arkts/arkui/generated/ComponentContent.ets similarity index 97% rename from arkoala-arkts/arkui/src/generated/arkui.ComponentContent.ets rename to arkoala-arkts/arkui/generated/ComponentContent.ets index 4fb55b6218b33893a938cd557f953404719953c4..4716d03e724990d8ef8c933c0c142497a5c1f022 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.ComponentContent.ets +++ b/arkoala-arkts/arkui/generated/ComponentContent.ets @@ -19,7 +19,8 @@ import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { CallbackTransformer } from "./../CallbackTransformer" +import { CallbackTransformer } from "./CallbackTransformer" +import { extractors } from "#handwritten" export class ComponentContentInternal { public static fromPtr(ptr: KPointer): ComponentContent { return new ComponentContent(ptr) diff --git a/arkoala-arkts/arkui/generated/ComponentRootModifier.ets b/arkoala-arkts/arkui/generated/ComponentRootModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..56112728ae9f40e5e9eabb57d46e32dfaeb242de --- /dev/null +++ b/arkoala-arkts/arkui/generated/ComponentRootModifier.ets @@ -0,0 +1,40 @@ +/* + * 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 { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkComponentRootPeer, ComponentRoot } from "./component/idlize" +export class ComponentRootModifier implements ComponentRoot,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ComponentRoot): void { } + applyPressedAttribute(instance: ComponentRoot): void { } + applyFocusedAttribute(instance: ComponentRoot): void { } + applyDisabledAttribute(instance: ComponentRoot): void { } + applySelectedAttribute(instance: ComponentRoot): void { } + applyModifierPatch(peer: ArkComponentRootPeer): void { + } + mergeModifier(modifier: ComponentRootModifier): void { + } + public attributeModifier(value: AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ContainerSpanModifier.ets b/arkoala-arkts/arkui/generated/ContainerSpanModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..9cfc5b627f00e44e2994612dfbd102c1faf124e7 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ContainerSpanModifier.ets @@ -0,0 +1,85 @@ +/* + * 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 { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkContainerSpanPeer, ContainerSpanAttribute } from "./component/containerSpan" +import { TextBackgroundStyle } from "./component/span" +export class ContainerSpanModifier implements ContainerSpanAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ContainerSpanAttribute): void { } + applyPressedAttribute(instance: ContainerSpanAttribute): void { } + applyFocusedAttribute(instance: ContainerSpanAttribute): void { } + applyDisabledAttribute(instance: ContainerSpanAttribute): void { } + applySelectedAttribute(instance: ContainerSpanAttribute): void { } + _textBackgroundStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textBackgroundStyle_0_0value?: TextBackgroundStyle | undefined + applyModifierPatch(peer: ArkContainerSpanPeer): void { + if (this._textBackgroundStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textBackgroundStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextBackgroundStyleAttribute((this._textBackgroundStyle_0_0value as TextBackgroundStyle | undefined)); + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextBackgroundStyleAttribute((undefined as TextBackgroundStyle | undefined)); + } + } + } + } + mergeModifier(modifier: ContainerSpanModifier): void { + if (modifier._textBackgroundStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textBackgroundStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textBackgroundStyle(modifier._textBackgroundStyle_0_0value); + break; + } + default: { + this.textBackgroundStyle((undefined as TextBackgroundStyle | undefined)); + } + } + } + } + textBackgroundStyle(value: TextBackgroundStyle | undefined): this { + if (((this._textBackgroundStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._textBackgroundStyle_0_0value = value + } else + { + this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/generated/arkui.Content.ets b/arkoala-arkts/arkui/generated/Content.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/arkui.Content.ets rename to arkoala-arkts/arkui/generated/Content.ets index 26c5a0ca60d33cd5a49f009716672bbcf481b1e6..9004a32d4e6ad80bf3d0b6f1344e19ad4a07585e 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.Content.ets +++ b/arkoala-arkts/arkui/generated/Content.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export interface Content { } diff --git a/arkoala-arkts/arkui/generated/CounterModifier.ets b/arkoala-arkts/arkui/generated/CounterModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..c697797a2af3d795c50ffcf4af5ec46bc1dde112 --- /dev/null +++ b/arkoala-arkts/arkui/generated/CounterModifier.ets @@ -0,0 +1,221 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkCounterPeer, CounterAttribute } from "./component/counter" +import { CommonMethod } from "./component/common" +import { VoidCallback } from "./component/units" +export class CounterModifier extends CommonMethodModifier implements CounterAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: CounterAttribute): void { } + applyPressedAttribute(instance: CounterAttribute): void { } + applyFocusedAttribute(instance: CounterAttribute): void { } + applyDisabledAttribute(instance: CounterAttribute): void { } + applySelectedAttribute(instance: CounterAttribute): void { } + _onInc_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onInc_0_0value?: VoidCallback | undefined + _onDec_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDec_0_0value?: VoidCallback | undefined + _enableDec_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableDec_0_0value?: boolean | undefined + _enableInc_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableInc_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkCounterPeer): void { + super.applyModifierPatch(peer) + if (this._onInc_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onInc_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnIncAttribute((this._onInc_0_0value as VoidCallback | undefined)); + this._onInc_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onInc_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onInc_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnIncAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onDec_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDec_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDecAttribute((this._onDec_0_0value as VoidCallback | undefined)); + this._onDec_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDec_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDec_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDecAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._enableDec_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableDec_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableDecAttribute((this._enableDec_0_0value as boolean | undefined)); + this._enableDec_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableDec_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableDec_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableDecAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableInc_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableInc_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableIncAttribute((this._enableInc_0_0value as boolean | undefined)); + this._enableInc_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableInc_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableInc_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableIncAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: CounterModifier): void { + super.mergeModifier(modifier) + if (modifier._onInc_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onInc_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onInc(modifier._onInc_0_0value); + break; + } + default: { + this.onInc((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onDec_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDec_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDec(modifier._onDec_0_0value); + break; + } + default: { + this.onDec((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._enableDec_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableDec_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableDec(modifier._enableDec_0_0value); + break; + } + default: { + this.enableDec((undefined as boolean | undefined)); + } + } + } + if (modifier._enableInc_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableInc_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableInc(modifier._enableInc_0_0value); + break; + } + default: { + this.enableInc((undefined as boolean | undefined)); + } + } + } + } + onInc(value: VoidCallback | undefined): this { + if (((this._onInc_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onInc_0_flag = AttributeUpdaterFlag.UPDATE + this._onInc_0_0value = value + } else + { + this._onInc_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDec(value: VoidCallback | undefined): this { + if (((this._onDec_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDec_0_flag = AttributeUpdaterFlag.UPDATE + this._onDec_0_0value = value + } else + { + this._onDec_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableDec(value: boolean | undefined): this { + if (((this._enableDec_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableDec_0_0value) !== (value))) + { + this._enableDec_0_flag = AttributeUpdaterFlag.UPDATE + this._enableDec_0_0value = value + } else + { + this._enableDec_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableInc(value: boolean | undefined): this { + if (((this._enableInc_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableInc_0_0value) !== (value))) + { + this._enableInc_0_flag = AttributeUpdaterFlag.UPDATE + this._enableInc_0_0value = value + } else + { + this._enableInc_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/CustomLayoutRootModifier.ets b/arkoala-arkts/arkui/generated/CustomLayoutRootModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..226bcb545567d077cfe3915bfdec4eb89cba0fe7 --- /dev/null +++ b/arkoala-arkts/arkui/generated/CustomLayoutRootModifier.ets @@ -0,0 +1,52 @@ +/* + * 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 { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkCustomLayoutRootPeer, Callback_onMeasureSize_SizeResult, Callback_onPlaceChildren_Void, CustomLayoutRoot } from "./component/idlize" +import { GeometryInfo, Measurable, Layoutable } from "./component/common" +import { ConstraintSizeOptions } from "./component/units" +export class CustomLayoutRootModifier implements CustomLayoutRoot,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: CustomLayoutRoot): void { } + applyPressedAttribute(instance: CustomLayoutRoot): void { } + applyFocusedAttribute(instance: CustomLayoutRoot): void { } + applyDisabledAttribute(instance: CustomLayoutRoot): void { } + applySelectedAttribute(instance: CustomLayoutRoot): void { } + _subscribeOnMeasureSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _subscribeOnMeasureSize_0_0value?: Callback_onMeasureSize_SizeResult + _subscribeOnPlaceChildren_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _subscribeOnPlaceChildren_0_0value?: Callback_onPlaceChildren_Void + applyModifierPatch(peer: ArkCustomLayoutRootPeer): void { + } + mergeModifier(modifier: CustomLayoutRootModifier): void { + } + subscribeOnMeasureSize(value: Callback_onMeasureSize_SizeResult): this { + throw new Error("Not implemented") + } + subscribeOnPlaceChildren(value: Callback_onPlaceChildren_Void): this { + throw new Error("Not implemented") + } + public attributeModifier(value: AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/DataPanelModifier.ets b/arkoala-arkts/arkui/generated/DataPanelModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..a42faa36ccaa6235bb52988925a8e029307495b5 --- /dev/null +++ b/arkoala-arkts/arkui/generated/DataPanelModifier.ets @@ -0,0 +1,267 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkDataPanelPeer, LinearGradient, DataPanelShadowOptions, DataPanelConfiguration, DataPanelAttribute } from "./component/dataPanel" +import { CommonMethod } from "./component/common" +import { ResourceColor, Length } from "./component/units" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +export class DataPanelModifier extends CommonMethodModifier implements DataPanelAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: DataPanelAttribute): void { } + applyPressedAttribute(instance: DataPanelAttribute): void { } + applyFocusedAttribute(instance: DataPanelAttribute): void { } + applyDisabledAttribute(instance: DataPanelAttribute): void { } + applySelectedAttribute(instance: DataPanelAttribute): void { } + _closeEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _closeEffect_0_0value?: boolean | undefined + _valueColors_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _valueColors_0_0value?: Array | undefined + _trackBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _trackBackgroundColor_0_0value?: ResourceColor | undefined + _strokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeWidth_0_0value?: Length | undefined + _trackShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _trackShadow_0_0value?: DataPanelShadowOptions | undefined + applyModifierPatch(peer: ArkDataPanelPeer): void { + super.applyModifierPatch(peer) + if (this._closeEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._closeEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCloseEffectAttribute((this._closeEffect_0_0value as boolean | undefined)); + this._closeEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._closeEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._closeEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCloseEffectAttribute((undefined as boolean | undefined)); + } + } + } + if (this._valueColors_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._valueColors_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setValueColorsAttribute((this._valueColors_0_0value as Array | undefined)); + this._valueColors_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._valueColors_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._valueColors_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setValueColorsAttribute((undefined as Array | undefined)); + } + } + } + if (this._trackBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._trackBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTrackBackgroundColorAttribute((this._trackBackgroundColor_0_0value as ResourceColor | undefined)); + this._trackBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._trackBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._trackBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTrackBackgroundColorAttribute((undefined as ResourceColor | 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._trackShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._trackShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTrackShadowAttribute((this._trackShadow_0_0value as DataPanelShadowOptions | undefined)); + this._trackShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._trackShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._trackShadow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTrackShadowAttribute((undefined as DataPanelShadowOptions | undefined)); + } + } + } + } + mergeModifier(modifier: DataPanelModifier): void { + super.mergeModifier(modifier) + if (modifier._closeEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._closeEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.closeEffect(modifier._closeEffect_0_0value); + break; + } + default: { + this.closeEffect((undefined as boolean | undefined)); + } + } + } + if (modifier._valueColors_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._valueColors_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.valueColors(modifier._valueColors_0_0value); + break; + } + default: { + this.valueColors((undefined as Array | undefined)); + } + } + } + if (modifier._trackBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._trackBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.trackBackgroundColor(modifier._trackBackgroundColor_0_0value); + break; + } + default: { + this.trackBackgroundColor((undefined as ResourceColor | 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._trackShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._trackShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.trackShadow(modifier._trackShadow_0_0value); + break; + } + default: { + this.trackShadow((undefined as DataPanelShadowOptions | undefined)); + } + } + } + } + closeEffect(value: boolean | undefined): this { + if (((this._closeEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._closeEffect_0_0value) !== (value))) + { + this._closeEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._closeEffect_0_0value = value + } else + { + this._closeEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + valueColors(value: Array | undefined): this { + if (((this._valueColors_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._valueColors_0_flag = AttributeUpdaterFlag.UPDATE + this._valueColors_0_0value = value + } else + { + this._valueColors_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + trackBackgroundColor(value: ResourceColor | undefined): this { + if (((this._trackBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._trackBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE + this._trackBackgroundColor_0_0value = value + } else + { + this._trackBackgroundColor_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 + } + trackShadow(value: DataPanelShadowOptions | undefined): this { + if (((this._trackShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._trackShadow_0_flag = AttributeUpdaterFlag.UPDATE + this._trackShadow_0_0value = value + } else + { + this._trackShadow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/DatePickerModifier.ets b/arkoala-arkts/arkui/generated/DatePickerModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..4b1f35ade7afea4b9397006789576ab975c5031c --- /dev/null +++ b/arkoala-arkts/arkui/generated/DatePickerModifier.ets @@ -0,0 +1,353 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkDatePickerPeer, DatePickerAttribute } from "./component/datePicker" +import { CommonMethod, PickerTextStyle } from "./component/common" +import { CrownSensitivity } from "./component/enums" +export class DatePickerModifier extends CommonMethodModifier implements DatePickerAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: DatePickerAttribute): void { } + applyPressedAttribute(instance: DatePickerAttribute): void { } + applyFocusedAttribute(instance: DatePickerAttribute): void { } + applyDisabledAttribute(instance: DatePickerAttribute): void { } + applySelectedAttribute(instance: DatePickerAttribute): void { } + _lunar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _lunar_0_0value?: boolean | undefined + _disappearTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _disappearTextStyle_0_0value?: PickerTextStyle | undefined + _textStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textStyle_0_0value?: PickerTextStyle | undefined + _selectedTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedTextStyle_0_0value?: PickerTextStyle | undefined + _onDateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDateChange_0_0value?: ((value0: Date) => void) | undefined + _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined + _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableHapticFeedback_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkDatePickerPeer): void { + super.applyModifierPatch(peer) + if (this._lunar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._lunar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLunarAttribute((this._lunar_0_0value as boolean | undefined)); + this._lunar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._lunar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._lunar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLunarAttribute((undefined as boolean | undefined)); + } + } + } + if (this._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._disappearTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDisappearTextStyleAttribute((this._disappearTextStyle_0_0value as PickerTextStyle | undefined)); + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDisappearTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextStyleAttribute((this._textStyle_0_0value as PickerTextStyle | undefined)); + this._textStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedTextStyleAttribute((this._selectedTextStyle_0_0value as PickerTextStyle | undefined)); + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._onDateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDateChangeAttribute((this._onDateChange_0_0value as ((value0: Date) => void) | undefined)); + this._onDateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDateChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDateChangeAttribute((undefined as ((value0: Date) => void) | 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._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: DatePickerModifier): void { + super.mergeModifier(modifier) + if (modifier._lunar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._lunar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.lunar(modifier._lunar_0_0value); + break; + } + default: { + this.lunar((undefined as boolean | undefined)); + } + } + } + if (modifier._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._disappearTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.disappearTextStyle(modifier._disappearTextStyle_0_0value); + break; + } + default: { + this.disappearTextStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textStyle(modifier._textStyle_0_0value); + break; + } + default: { + this.textStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedTextStyle(modifier._selectedTextStyle_0_0value); + break; + } + default: { + this.selectedTextStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._onDateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDateChange(modifier._onDateChange_0_0value); + break; + } + default: { + this.onDateChange((undefined as ((value0: Date) => void) | 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._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); + break; + } + default: { + this.enableHapticFeedback((undefined as boolean | undefined)); + } + } + } + } + lunar(value: boolean | undefined): this { + if (((this._lunar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._lunar_0_0value) !== (value))) + { + this._lunar_0_flag = AttributeUpdaterFlag.UPDATE + this._lunar_0_0value = value + } else + { + this._lunar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + disappearTextStyle(value: PickerTextStyle | undefined): this { + if (((this._disappearTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._disappearTextStyle_0_0value = value + } else + { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textStyle(value: PickerTextStyle | undefined): this { + if (((this._textStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._textStyle_0_0value = value + } else + { + this._textStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedTextStyle(value: PickerTextStyle | undefined): this { + if (((this._selectedTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedTextStyle_0_0value = value + } else + { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDateChange(value: ((value0: Date) => void) | undefined): this { + if (((this._onDateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDateChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onDateChange_0_0value = value + } else + { + this._onDateChange_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 + } + enableHapticFeedback(value: boolean | undefined): this { + if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE + this._enableHapticFeedback_0_0value = value + } else + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/DividerModifier.ets b/arkoala-arkts/arkui/generated/DividerModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..e6c5d430eb8a55fce2cc56c95b944770e1e35fa9 --- /dev/null +++ b/arkoala-arkts/arkui/generated/DividerModifier.ets @@ -0,0 +1,223 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkDividerPeer, DividerAttribute } from "./component/divider" +import { CommonMethod } from "./component/common" +import { ResourceColor } from "./component/units" +import { Color, LineCapStyle } from "./component/enums" +import { Resource } from "global.resource" +export class DividerModifier extends CommonMethodModifier implements DividerAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: DividerAttribute): void { } + applyPressedAttribute(instance: DividerAttribute): void { } + applyFocusedAttribute(instance: DividerAttribute): void { } + applyDisabledAttribute(instance: DividerAttribute): void { } + applySelectedAttribute(instance: DividerAttribute): void { } + _vertical_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _vertical_0_0value?: boolean | undefined + _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _color_0_0value?: ResourceColor | undefined + _strokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeWidth_0_0value?: number | string | undefined + _lineCap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _lineCap_0_0value?: LineCapStyle | undefined + applyModifierPatch(peer: ArkDividerPeer): void { + super.applyModifierPatch(peer) + if (this._vertical_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._vertical_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setVerticalAttribute((this._vertical_0_0value as boolean | undefined)); + this._vertical_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._vertical_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._vertical_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setVerticalAttribute((undefined as boolean | undefined)); + } + } + } + if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorAttribute((this._color_0_0value as ResourceColor | undefined)); + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._color_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._strokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._strokeWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStrokeWidthAttribute((this._strokeWidth_0_0value as number | string | 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 number | string | undefined)); + } + } + } + if (this._lineCap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._lineCap_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLineCapAttribute((this._lineCap_0_0value as LineCapStyle | undefined)); + this._lineCap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._lineCap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._lineCap_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLineCapAttribute((undefined as LineCapStyle | undefined)); + } + } + } + } + mergeModifier(modifier: DividerModifier): void { + super.mergeModifier(modifier) + if (modifier._vertical_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._vertical_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.vertical(modifier._vertical_0_0value); + break; + } + default: { + this.vertical((undefined as boolean | undefined)); + } + } + } + if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.color(modifier._color_0_0value); + break; + } + default: { + this.color((undefined as ResourceColor | 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 number | string | undefined)); + } + } + } + if (modifier._lineCap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._lineCap_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.lineCap(modifier._lineCap_0_0value); + break; + } + default: { + this.lineCap((undefined as LineCapStyle | undefined)); + } + } + } + } + vertical(value: boolean | undefined): this { + if (((this._vertical_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._vertical_0_0value) !== (value))) + { + this._vertical_0_flag = AttributeUpdaterFlag.UPDATE + this._vertical_0_0value = value + } else + { + this._vertical_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + color(value: ResourceColor | undefined): this { + if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._color_0_flag = AttributeUpdaterFlag.UPDATE + this._color_0_0value = value + } else + { + this._color_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + strokeWidth(value: number | string | undefined): this { + if (((this._strokeWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._strokeWidth_0_0value) !== (value))) + { + this._strokeWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._strokeWidth_0_0value = value + } else + { + this._strokeWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + lineCap(value: LineCapStyle | undefined): this { + if (((this._lineCap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._lineCap_0_flag = AttributeUpdaterFlag.UPDATE + this._lineCap_0_0value = value + } else + { + this._lineCap_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/EffectComponentModifier.ets b/arkoala-arkts/arkui/generated/EffectComponentModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..21db79fbc233abdf6ef0dae35deb8429f02e3795 --- /dev/null +++ b/arkoala-arkts/arkui/generated/EffectComponentModifier.ets @@ -0,0 +1,44 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkEffectComponentPeer, EffectComponentAttribute } from "./component/effectComponent" +import { CommonMethod } from "./component/common" +export class EffectComponentModifier extends CommonMethodModifier implements EffectComponentAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: EffectComponentAttribute): void { } + applyPressedAttribute(instance: EffectComponentAttribute): void { } + applyFocusedAttribute(instance: EffectComponentAttribute): void { } + applyDisabledAttribute(instance: EffectComponentAttribute): void { } + applySelectedAttribute(instance: EffectComponentAttribute): void { } + applyModifierPatch(peer: ArkEffectComponentPeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: EffectComponentModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/EllipseModifier.ets b/arkoala-arkts/arkui/generated/EllipseModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..53c35ecf55966d4ba791e4e870a6f38723baaa21 --- /dev/null +++ b/arkoala-arkts/arkui/generated/EllipseModifier.ets @@ -0,0 +1,45 @@ +/* + * 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 { CommonShapeMethodModifier } from "./CommonShapeMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkEllipsePeer, EllipseAttribute } from "./component/ellipse" +import { CommonShapeMethod, CommonMethod } from "./component/common" +export class EllipseModifier extends CommonShapeMethodModifier implements EllipseAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: EllipseAttribute): void { } + applyPressedAttribute(instance: EllipseAttribute): void { } + applyFocusedAttribute(instance: EllipseAttribute): void { } + applyDisabledAttribute(instance: EllipseAttribute): void { } + applySelectedAttribute(instance: EllipseAttribute): void { } + applyModifierPatch(peer: ArkEllipsePeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: EllipseModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/EmbeddedComponentModifier.ets b/arkoala-arkts/arkui/generated/EmbeddedComponentModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..89a6ad62ad11b30417c73bea7ae0e99961afb0bb --- /dev/null +++ b/arkoala-arkts/arkui/generated/EmbeddedComponentModifier.ets @@ -0,0 +1,133 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkEmbeddedComponentPeer, EmbeddedComponentAttribute } from "./component/embeddedComponent" +import { CommonMethod, TerminationInfo } from "./component/common" +import { ErrorCallback, BusinessError } from "./framework/ohos.base" +export class EmbeddedComponentModifier extends CommonMethodModifier implements EmbeddedComponentAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: EmbeddedComponentAttribute): void { } + applyPressedAttribute(instance: EmbeddedComponentAttribute): void { } + applyFocusedAttribute(instance: EmbeddedComponentAttribute): void { } + applyDisabledAttribute(instance: EmbeddedComponentAttribute): void { } + applySelectedAttribute(instance: EmbeddedComponentAttribute): void { } + _onTerminated_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTerminated_0_0value?: ((value0: TerminationInfo) => void) | undefined + _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onError_0_0value?: ErrorCallback | undefined + applyModifierPatch(peer: ArkEmbeddedComponentPeer): void { + super.applyModifierPatch(peer) + if (this._onTerminated_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTerminated_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTerminatedAttribute((this._onTerminated_0_0value as ((value0: TerminationInfo) => void) | undefined)); + this._onTerminated_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTerminated_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTerminated_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTerminatedAttribute((undefined as ((value0: TerminationInfo) => void) | undefined)); + } + } + } + if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnErrorAttribute((this._onError_0_0value as ErrorCallback | undefined)); + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onError_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnErrorAttribute((undefined as ErrorCallback | undefined)); + } + } + } + } + mergeModifier(modifier: EmbeddedComponentModifier): void { + super.mergeModifier(modifier) + if (modifier._onTerminated_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTerminated_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTerminated(modifier._onTerminated_0_0value); + break; + } + default: { + this.onTerminated((undefined as ((value0: TerminationInfo) => void) | undefined)); + } + } + } + if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onError(modifier._onError_0_0value); + break; + } + default: { + this.onError((undefined as ErrorCallback | undefined)); + } + } + } + } + onTerminated(value: ((value0: TerminationInfo) => void) | undefined): this { + if (((this._onTerminated_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTerminated_0_flag = AttributeUpdaterFlag.UPDATE + this._onTerminated_0_0value = value + } else + { + this._onTerminated_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onError(value: ErrorCallback | undefined): this { + if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onError_0_flag = AttributeUpdaterFlag.UPDATE + this._onError_0_0value = value + } else + { + this._onError_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/FlexModifier.ets b/arkoala-arkts/arkui/generated/FlexModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..6cc3eab5470e610b3b75c0c4dbb5bf1cf5aba723 --- /dev/null +++ b/arkoala-arkts/arkui/generated/FlexModifier.ets @@ -0,0 +1,88 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkFlexPeer, FlexAttribute } from "./component/flex" +import { CommonMethod, PointLightStyle } from "./component/common" +export class FlexModifier extends CommonMethodModifier implements FlexAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: FlexAttribute): void { } + applyPressedAttribute(instance: FlexAttribute): void { } + applyFocusedAttribute(instance: FlexAttribute): void { } + applyDisabledAttribute(instance: FlexAttribute): void { } + applySelectedAttribute(instance: FlexAttribute): void { } + _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pointLight_0_0value?: PointLightStyle | undefined + applyModifierPatch(peer: ArkFlexPeer): void { + super.applyModifierPatch(peer) + if (this._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); + } + } + } + } + mergeModifier(modifier: FlexModifier): void { + super.mergeModifier(modifier) + if (modifier._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pointLight(modifier._pointLight_0_0value); + break; + } + default: { + this.pointLight((undefined as PointLightStyle | undefined)); + } + } + } + } + pointLight(value: PointLightStyle | undefined): this { + if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE + this._pointLight_0_0value = value + } else + { + this._pointLight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/FlowItemModifier.ets b/arkoala-arkts/arkui/generated/FlowItemModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..e646107672b096c8194a604e42400e99b38108de --- /dev/null +++ b/arkoala-arkts/arkui/generated/FlowItemModifier.ets @@ -0,0 +1,44 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkFlowItemPeer, FlowItemAttribute } from "./component/flowItem" +import { CommonMethod } from "./component/common" +export class FlowItemModifier extends CommonMethodModifier implements FlowItemAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: FlowItemAttribute): void { } + applyPressedAttribute(instance: FlowItemAttribute): void { } + applyFocusedAttribute(instance: FlowItemAttribute): void { } + applyDisabledAttribute(instance: FlowItemAttribute): void { } + applySelectedAttribute(instance: FlowItemAttribute): void { } + applyModifierPatch(peer: ArkFlowItemPeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: FlowItemModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/FolderStackModifier.ets b/arkoala-arkts/arkui/generated/FolderStackModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..47acc45ec71da067f87d2d3889f55921223ce54d --- /dev/null +++ b/arkoala-arkts/arkui/generated/FolderStackModifier.ets @@ -0,0 +1,265 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkFolderStackPeer, OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam, FolderStackAttribute } from "./component/folderStack" +import { CommonMethod } from "./component/common" +import { Alignment } from "./component/enums" +export class FolderStackModifier extends CommonMethodModifier implements FolderStackAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: FolderStackAttribute): void { } + applyPressedAttribute(instance: FolderStackAttribute): void { } + applyFocusedAttribute(instance: FolderStackAttribute): void { } + applyDisabledAttribute(instance: FolderStackAttribute): void { } + applySelectedAttribute(instance: FolderStackAttribute): void { } + _alignContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alignContent_0_0value?: Alignment | undefined + _onFolderStateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFolderStateChange_0_0value?: OnFoldStatusChangeCallback | undefined + _onHoverStatusChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onHoverStatusChange_0_0value?: OnHoverStatusChangeCallback | undefined + _enableAnimation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableAnimation_0_0value?: boolean | undefined + _autoHalfFold_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _autoHalfFold_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkFolderStackPeer): void { + super.applyModifierPatch(peer) + if (this._alignContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alignContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignContentAttribute((this._alignContent_0_0value as Alignment | undefined)); + this._alignContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alignContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alignContent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignContentAttribute((undefined as Alignment | undefined)); + } + } + } + if (this._onFolderStateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFolderStateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFolderStateChangeAttribute((this._onFolderStateChange_0_0value as OnFoldStatusChangeCallback | undefined)); + this._onFolderStateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFolderStateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFolderStateChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFolderStateChangeAttribute((undefined as OnFoldStatusChangeCallback | undefined)); + } + } + } + if (this._onHoverStatusChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onHoverStatusChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnHoverStatusChangeAttribute((this._onHoverStatusChange_0_0value as OnHoverStatusChangeCallback | undefined)); + this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnHoverStatusChangeAttribute((undefined as OnHoverStatusChangeCallback | undefined)); + } + } + } + if (this._enableAnimation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableAnimation_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableAnimationAttribute((this._enableAnimation_0_0value as boolean | undefined)); + this._enableAnimation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableAnimation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableAnimation_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableAnimationAttribute((undefined as boolean | undefined)); + } + } + } + if (this._autoHalfFold_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._autoHalfFold_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAutoHalfFoldAttribute((this._autoHalfFold_0_0value as boolean | undefined)); + this._autoHalfFold_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._autoHalfFold_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._autoHalfFold_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAutoHalfFoldAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: FolderStackModifier): void { + super.mergeModifier(modifier) + if (modifier._alignContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alignContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alignContent(modifier._alignContent_0_0value); + break; + } + default: { + this.alignContent((undefined as Alignment | undefined)); + } + } + } + if (modifier._onFolderStateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFolderStateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFolderStateChange(modifier._onFolderStateChange_0_0value); + break; + } + default: { + this.onFolderStateChange((undefined as OnFoldStatusChangeCallback | undefined)); + } + } + } + if (modifier._onHoverStatusChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onHoverStatusChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onHoverStatusChange(modifier._onHoverStatusChange_0_0value); + break; + } + default: { + this.onHoverStatusChange((undefined as OnHoverStatusChangeCallback | undefined)); + } + } + } + if (modifier._enableAnimation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableAnimation_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableAnimation(modifier._enableAnimation_0_0value); + break; + } + default: { + this.enableAnimation((undefined as boolean | undefined)); + } + } + } + if (modifier._autoHalfFold_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._autoHalfFold_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.autoHalfFold(modifier._autoHalfFold_0_0value); + break; + } + default: { + this.autoHalfFold((undefined as boolean | undefined)); + } + } + } + } + alignContent(value: Alignment | undefined): this { + if (((this._alignContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alignContent_0_flag = AttributeUpdaterFlag.UPDATE + this._alignContent_0_0value = value + } else + { + this._alignContent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFolderStateChange(value: OnFoldStatusChangeCallback | undefined): this { + if (((this._onFolderStateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFolderStateChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onFolderStateChange_0_0value = value + } else + { + this._onFolderStateChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onHoverStatusChange(value: OnHoverStatusChangeCallback | undefined): this { + if (((this._onHoverStatusChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onHoverStatusChange_0_0value = value + } else + { + this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableAnimation(value: boolean | undefined): this { + if (((this._enableAnimation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnimation_0_0value) !== (value))) + { + this._enableAnimation_0_flag = AttributeUpdaterFlag.UPDATE + this._enableAnimation_0_0value = value + } else + { + this._enableAnimation_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + autoHalfFold(value: boolean | undefined): this { + if (((this._autoHalfFold_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoHalfFold_0_0value) !== (value))) + { + this._autoHalfFold_0_flag = AttributeUpdaterFlag.UPDATE + this._autoHalfFold_0_0value = value + } else + { + this._autoHalfFold_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/FormComponentModifier.ets b/arkoala-arkts/arkui/generated/FormComponentModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..7cb98e6ae606e5b487548c379f3fa2f4bb544e12 --- /dev/null +++ b/arkoala-arkts/arkui/generated/FormComponentModifier.ets @@ -0,0 +1,530 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkFormComponentPeer, FormSize, FormDimension, FormCallbackInfo, ErrorInformation, FormComponentAttribute } from "./component/formComponent" +import { CommonMethod } from "./component/common" +import { Visibility } from "./component/enums" +import { VoidCallback } from "./component/units" +export class FormComponentModifier extends CommonMethodModifier implements FormComponentAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: FormComponentAttribute): void { } + applyPressedAttribute(instance: FormComponentAttribute): void { } + applyFocusedAttribute(instance: FormComponentAttribute): void { } + applyDisabledAttribute(instance: FormComponentAttribute): void { } + applySelectedAttribute(instance: FormComponentAttribute): void { } + _size_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _size_0_0value?: FormSize | undefined + _moduleName_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _moduleName_0_0value?: string | undefined + _dimension_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _dimension_0_0value?: FormDimension | undefined + _allowUpdate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _allowUpdate_0_0value?: boolean | undefined + _visibility_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _visibility_0_0value?: Visibility | undefined + _onAcquired_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAcquired_0_0value?: ((value0: FormCallbackInfo) => void) | undefined + _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onError_0_0value?: ((value0: ErrorInformation) => void) | undefined + _onRouter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRouter_0_0value?: ((value0: Object) => void) | undefined + _onUninstall_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onUninstall_0_0value?: ((value0: FormCallbackInfo) => void) | undefined + _onLoad_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onLoad_0_0value?: VoidCallback | undefined + _onUpdate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onUpdate_0_0value?: ((value0: FormCallbackInfo) => void) | undefined + applyModifierPatch(peer: ArkFormComponentPeer): void { + super.applyModifierPatch(peer) + if (this._size_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._size_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSizeAttribute((this._size_0_0value as FormSize | 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 FormSize | undefined)); + } + } + } + if (this._moduleName_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._moduleName_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setModuleNameAttribute((this._moduleName_0_0value as string | undefined)); + this._moduleName_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._moduleName_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._moduleName_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setModuleNameAttribute((undefined as string | undefined)); + } + } + } + if (this._dimension_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._dimension_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDimensionAttribute((this._dimension_0_0value as FormDimension | undefined)); + this._dimension_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._dimension_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._dimension_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDimensionAttribute((undefined as FormDimension | undefined)); + } + } + } + if (this._allowUpdate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._allowUpdate_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAllowUpdateAttribute((this._allowUpdate_0_0value as boolean | undefined)); + this._allowUpdate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._allowUpdate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._allowUpdate_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAllowUpdateAttribute((undefined as boolean | 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._onAcquired_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAcquired_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAcquiredAttribute((this._onAcquired_0_0value as ((value0: FormCallbackInfo) => void) | undefined)); + this._onAcquired_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAcquired_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAcquired_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAcquiredAttribute((undefined as ((value0: FormCallbackInfo) => void) | undefined)); + } + } + } + if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnErrorAttribute((this._onError_0_0value as ((value0: ErrorInformation) => void) | undefined)); + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onError_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnErrorAttribute((undefined as ((value0: ErrorInformation) => void) | undefined)); + } + } + } + if (this._onRouter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRouter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRouterAttribute((this._onRouter_0_0value as ((value0: Object) => void) | undefined)); + this._onRouter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRouter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRouter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRouterAttribute((undefined as ((value0: Object) => void) | undefined)); + } + } + } + if (this._onUninstall_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onUninstall_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnUninstallAttribute((this._onUninstall_0_0value as ((value0: FormCallbackInfo) => void) | undefined)); + this._onUninstall_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onUninstall_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onUninstall_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnUninstallAttribute((undefined as ((value0: FormCallbackInfo) => void) | undefined)); + } + } + } + if (this._onLoad_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onLoad_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnLoadAttribute((this._onLoad_0_0value as VoidCallback | undefined)); + this._onLoad_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onLoad_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onLoad_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnLoadAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onUpdate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onUpdate_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnUpdateAttribute((this._onUpdate_0_0value as ((value0: FormCallbackInfo) => void) | undefined)); + this._onUpdate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onUpdate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onUpdate_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnUpdateAttribute((undefined as ((value0: FormCallbackInfo) => void) | undefined)); + } + } + } + } + mergeModifier(modifier: FormComponentModifier): void { + super.mergeModifier(modifier) + 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 FormSize | undefined)); + } + } + } + if (modifier._moduleName_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._moduleName_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.moduleName(modifier._moduleName_0_0value); + break; + } + default: { + this.moduleName((undefined as string | undefined)); + } + } + } + if (modifier._dimension_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._dimension_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.dimension(modifier._dimension_0_0value); + break; + } + default: { + this.dimension((undefined as FormDimension | undefined)); + } + } + } + if (modifier._allowUpdate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._allowUpdate_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.allowUpdate(modifier._allowUpdate_0_0value); + break; + } + default: { + this.allowUpdate((undefined as boolean | 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._onAcquired_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAcquired_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAcquired(modifier._onAcquired_0_0value); + break; + } + default: { + this.onAcquired((undefined as ((value0: FormCallbackInfo) => void) | undefined)); + } + } + } + if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onError(modifier._onError_0_0value); + break; + } + default: { + this.onError((undefined as ((value0: ErrorInformation) => void) | undefined)); + } + } + } + if (modifier._onRouter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRouter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRouter(modifier._onRouter_0_0value); + break; + } + default: { + this.onRouter((undefined as ((value0: Object) => void) | undefined)); + } + } + } + if (modifier._onUninstall_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onUninstall_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onUninstall(modifier._onUninstall_0_0value); + break; + } + default: { + this.onUninstall((undefined as ((value0: FormCallbackInfo) => void) | undefined)); + } + } + } + if (modifier._onLoad_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onLoad_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onLoad(modifier._onLoad_0_0value); + break; + } + default: { + this.onLoad((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onUpdate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onUpdate_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onUpdate(modifier._onUpdate_0_0value); + break; + } + default: { + this.onUpdate((undefined as ((value0: FormCallbackInfo) => void) | undefined)); + } + } + } + } + size(value: FormSize | 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 + } + moduleName(value: string | undefined): this { + if (((this._moduleName_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._moduleName_0_0value) !== (value))) + { + this._moduleName_0_flag = AttributeUpdaterFlag.UPDATE + this._moduleName_0_0value = value + } else + { + this._moduleName_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + dimension(value: FormDimension | undefined): this { + if (((this._dimension_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._dimension_0_flag = AttributeUpdaterFlag.UPDATE + this._dimension_0_0value = value + } else + { + this._dimension_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + allowUpdate(value: boolean | undefined): this { + if (((this._allowUpdate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._allowUpdate_0_0value) !== (value))) + { + this._allowUpdate_0_flag = AttributeUpdaterFlag.UPDATE + this._allowUpdate_0_0value = value + } else + { + this._allowUpdate_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 + } + onAcquired(value: ((value0: FormCallbackInfo) => void) | undefined): this { + if (((this._onAcquired_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAcquired_0_flag = AttributeUpdaterFlag.UPDATE + this._onAcquired_0_0value = value + } else + { + this._onAcquired_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onError(value: ((value0: ErrorInformation) => void) | undefined): this { + if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onError_0_flag = AttributeUpdaterFlag.UPDATE + this._onError_0_0value = value + } else + { + this._onError_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onRouter(value: ((value0: Object) => void) | undefined): this { + if (((this._onRouter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRouter_0_flag = AttributeUpdaterFlag.UPDATE + this._onRouter_0_0value = value + } else + { + this._onRouter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onUninstall(value: ((value0: FormCallbackInfo) => void) | undefined): this { + if (((this._onUninstall_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onUninstall_0_flag = AttributeUpdaterFlag.UPDATE + this._onUninstall_0_0value = value + } else + { + this._onUninstall_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onLoad(value: VoidCallback | undefined): this { + if (((this._onLoad_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onLoad_0_flag = AttributeUpdaterFlag.UPDATE + this._onLoad_0_0value = value + } else + { + this._onLoad_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onUpdate(value: ((value0: FormCallbackInfo) => void) | undefined): this { + if (((this._onUpdate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onUpdate_0_flag = AttributeUpdaterFlag.UPDATE + this._onUpdate_0_0value = value + } else + { + this._onUpdate_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/FormLinkModifier.ets b/arkoala-arkts/arkui/generated/FormLinkModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..9c6a2db90ba0ae83cfd326e0cf6078b319df2103 --- /dev/null +++ b/arkoala-arkts/arkui/generated/FormLinkModifier.ets @@ -0,0 +1,44 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkFormLinkPeer, FormLinkAttribute } from "./component/formLink" +import { CommonMethod } from "./component/common" +export class FormLinkModifier extends CommonMethodModifier implements FormLinkAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: FormLinkAttribute): void { } + applyPressedAttribute(instance: FormLinkAttribute): void { } + applyFocusedAttribute(instance: FormLinkAttribute): void { } + applyDisabledAttribute(instance: FormLinkAttribute): void { } + applySelectedAttribute(instance: FormLinkAttribute): void { } + applyModifierPatch(peer: ArkFormLinkPeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: FormLinkModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/generated/arkui.FrameNode.ets b/arkoala-arkts/arkui/generated/FrameNode.ets similarity index 98% rename from arkoala-arkts/arkui/src/generated/arkui.FrameNode.ets rename to arkoala-arkts/arkui/generated/FrameNode.ets index b3f75c126aa3e47225c6c5ffbe3435c5268effce..755bffc3d0db3e0c0b33e8b3936ca28a630638cb 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.FrameNode.ets +++ b/arkoala-arkts/arkui/generated/FrameNode.ets @@ -17,14 +17,15 @@ // 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 { Size_serializer, Size } from "./arkui.Graphics" -import { Position_serializer, Position } from "./../component/units" -import { UIContext, UIContextInternal } from "./ohos.arkui.UIContext" +import { Size_serializer, Size } from "./Graphics" +import { Position_serializer, Position } from "./component/units" +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" +import { CallbackTransformer } from "./CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" export class FrameNodeInternal { public static fromPtr(ptr: KPointer): FrameNode { return new FrameNode(false, ptr) diff --git a/arkoala-arkts/arkui/generated/GaugeModifier.ets b/arkoala-arkts/arkui/generated/GaugeModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..1c507e413cca913fc2014e85c1bfa48f30f49e13 --- /dev/null +++ b/arkoala-arkts/arkui/generated/GaugeModifier.ets @@ -0,0 +1,445 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkGaugePeer, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeAttribute } from "./component/gauge" +import { CommonMethod } from "./component/common" +import { ResourceColor, Length } from "./component/units" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +import { LinearGradient } from "./component/dataPanel" +import { CustomBuilder } from "./component/builder" +export class GaugeModifier extends CommonMethodModifier implements GaugeAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: GaugeAttribute): void { } + applyPressedAttribute(instance: GaugeAttribute): void { } + applyFocusedAttribute(instance: GaugeAttribute): void { } + applyDisabledAttribute(instance: GaugeAttribute): void { } + applySelectedAttribute(instance: GaugeAttribute): void { } + _value_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _value_0_0value?: number | undefined + _startAngle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _startAngle_0_0value?: number | undefined + _endAngle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _endAngle_0_0value?: number | undefined + _colors_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _colors_0_0value?: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | undefined + _strokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeWidth_0_0value?: Length | undefined + _description_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _description_0_0value?: CustomBuilder | undefined + _trackShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _trackShadow_0_0value?: GaugeShadowOptions | undefined + _indicator_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _indicator_0_0value?: GaugeIndicatorOptions | undefined + _privacySensitive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _privacySensitive_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkGaugePeer): void { + super.applyModifierPatch(peer) + if (this._value_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._value_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setValueAttribute((this._value_0_0value as number | undefined)); + this._value_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._value_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._value_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setValueAttribute((undefined as number | undefined)); + } + } + } + if (this._startAngle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._startAngle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStartAngleAttribute((this._startAngle_0_0value as number | undefined)); + this._startAngle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._startAngle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._startAngle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStartAngleAttribute((undefined as number | undefined)); + } + } + } + if (this._endAngle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._endAngle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEndAngleAttribute((this._endAngle_0_0value as number | undefined)); + this._endAngle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._endAngle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._endAngle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEndAngleAttribute((undefined as number | undefined)); + } + } + } + if (this._colors_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._colors_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorsAttribute((this._colors_0_0value as ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | undefined)); + this._colors_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._colors_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._colors_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorsAttribute((undefined as ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | 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._description_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._description_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDescriptionAttribute((this._description_0_0value as CustomBuilder | undefined)); + this._description_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._description_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._description_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDescriptionAttribute((undefined as CustomBuilder | undefined)); + } + } + } + if (this._trackShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._trackShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTrackShadowAttribute((this._trackShadow_0_0value as GaugeShadowOptions | undefined)); + this._trackShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._trackShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._trackShadow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTrackShadowAttribute((undefined as GaugeShadowOptions | undefined)); + } + } + } + if (this._indicator_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._indicator_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIndicatorAttribute((this._indicator_0_0value as GaugeIndicatorOptions | undefined)); + this._indicator_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._indicator_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._indicator_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIndicatorAttribute((undefined as GaugeIndicatorOptions | undefined)); + } + } + } + if (this._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._privacySensitive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPrivacySensitiveAttribute((this._privacySensitive_0_0value as boolean | undefined)); + this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._privacySensitive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPrivacySensitiveAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: GaugeModifier): void { + super.mergeModifier(modifier) + if (modifier._value_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._value_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.value(modifier._value_0_0value); + break; + } + default: { + this.value((undefined as number | undefined)); + } + } + } + if (modifier._startAngle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._startAngle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.startAngle(modifier._startAngle_0_0value); + break; + } + default: { + this.startAngle((undefined as number | undefined)); + } + } + } + if (modifier._endAngle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._endAngle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.endAngle(modifier._endAngle_0_0value); + break; + } + default: { + this.endAngle((undefined as number | undefined)); + } + } + } + if (modifier._colors_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._colors_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.colors(modifier._colors_0_0value); + break; + } + default: { + this.colors((undefined as ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | 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._description_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._description_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.description(modifier._description_0_0value); + break; + } + default: { + this.description((undefined as CustomBuilder | undefined)); + } + } + } + if (modifier._trackShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._trackShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.trackShadow(modifier._trackShadow_0_0value); + break; + } + default: { + this.trackShadow((undefined as GaugeShadowOptions | undefined)); + } + } + } + if (modifier._indicator_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._indicator_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.indicator(modifier._indicator_0_0value); + break; + } + default: { + this.indicator((undefined as GaugeIndicatorOptions | undefined)); + } + } + } + if (modifier._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._privacySensitive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.privacySensitive(modifier._privacySensitive_0_0value); + break; + } + default: { + this.privacySensitive((undefined as boolean | undefined)); + } + } + } + } + value(value: number | undefined): this { + if (((this._value_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._value_0_0value) !== (value))) + { + this._value_0_flag = AttributeUpdaterFlag.UPDATE + this._value_0_0value = value + } else + { + this._value_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + startAngle(value: number | undefined): this { + if (((this._startAngle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._startAngle_0_0value) !== (value))) + { + this._startAngle_0_flag = AttributeUpdaterFlag.UPDATE + this._startAngle_0_0value = value + } else + { + this._startAngle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + endAngle(value: number | undefined): this { + if (((this._endAngle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._endAngle_0_0value) !== (value))) + { + this._endAngle_0_flag = AttributeUpdaterFlag.UPDATE + this._endAngle_0_0value = value + } else + { + this._endAngle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + colors(value: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | undefined): this { + if (((this._colors_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._colors_0_flag = AttributeUpdaterFlag.UPDATE + this._colors_0_0value = value + } else + { + this._colors_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 + } + description(value: CustomBuilder | undefined): this { + if (((this._description_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._description_0_flag = AttributeUpdaterFlag.UPDATE + this._description_0_0value = value + } else + { + this._description_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + trackShadow(value: GaugeShadowOptions | undefined): this { + if (((this._trackShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._trackShadow_0_flag = AttributeUpdaterFlag.UPDATE + this._trackShadow_0_0value = value + } else + { + this._trackShadow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + indicator(value: GaugeIndicatorOptions | undefined): this { + if (((this._indicator_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._indicator_0_flag = AttributeUpdaterFlag.UPDATE + this._indicator_0_0value = value + } else + { + this._indicator_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + privacySensitive(value: boolean | undefined): this { + if (((this._privacySensitive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._privacySensitive_0_0value) !== (value))) + { + this._privacySensitive_0_flag = AttributeUpdaterFlag.UPDATE + this._privacySensitive_0_0value = value + } else + { + this._privacySensitive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/generated/arkui.Graphics.ets b/arkoala-arkts/arkui/generated/Graphics.ets similarity index 98% rename from arkoala-arkts/arkui/src/generated/arkui.Graphics.ets rename to arkoala-arkts/arkui/generated/Graphics.ets index 450bac98f3a872f91ce7507c0bf57c4383780a69..386673a6d4f335fa2fd2a6a2825fb4609b9b3c50 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.Graphics.ets +++ b/arkoala-arkts/arkui/generated/Graphics.ets @@ -17,17 +17,19 @@ // 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 { Resource_serializer, Resource } from "./resource" -import { ResourceColor, Edges, BorderRadiuses } from "./../component/units" -import { Color, BorderStyle } from "./../component/enums" +import { Resource_serializer } from "./framework/resource" +import { ResourceColor, Edges, BorderRadiuses } from "./component/units" +import { Color, BorderStyle } from "./component/enums" +import { Resource } from "global.resource" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { CallbackTransformer } from "./../CallbackTransformer" -import { drawing } from "./ohos.graphics.drawing" -import { common2D_Rect_serializer, common2D } from "./ohos.graphics.common2D" +import { CallbackTransformer } from "./CallbackTransformer" +import { drawing } from "./framework/ohos.graphics.drawing" +import { common2D_Rect_serializer, common2D } from "./framework/ohos.graphics.common2D" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" -import { GlobalScope } from "./GlobalScope" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { GlobalScope } from "./framework/GlobalScope" +import { extractors } from "#handwritten" export class ColorMetricsInternal { public static fromPtr(ptr: KPointer): ColorMetrics { return new ColorMetrics(ptr) diff --git a/arkoala-arkts/arkui/generated/GridColModifier.ets b/arkoala-arkts/arkui/generated/GridColModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..389dba5c2ebb01e37210069b8cb3f7e352ae7c80 --- /dev/null +++ b/arkoala-arkts/arkui/generated/GridColModifier.ets @@ -0,0 +1,176 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkGridColPeer, GridColColumnOption, GridColAttribute } from "./component/gridCol" +import { CommonMethod } from "./component/common" +export class GridColModifier extends CommonMethodModifier implements GridColAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: GridColAttribute): void { } + applyPressedAttribute(instance: GridColAttribute): void { } + applyFocusedAttribute(instance: GridColAttribute): void { } + applyDisabledAttribute(instance: GridColAttribute): void { } + applySelectedAttribute(instance: GridColAttribute): void { } + _span_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _span_0_0value?: number | GridColColumnOption | undefined + _gridColOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _gridColOffset_0_0value?: number | GridColColumnOption | undefined + _order_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _order_0_0value?: number | GridColColumnOption | undefined + applyModifierPatch(peer: ArkGridColPeer): void { + super.applyModifierPatch(peer) + if (this._span_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._span_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSpanAttribute((this._span_0_0value as number | GridColColumnOption | undefined)); + this._span_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._span_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._span_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSpanAttribute((undefined as number | GridColColumnOption | undefined)); + } + } + } + if (this._gridColOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._gridColOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGridColOffsetAttribute((this._gridColOffset_0_0value as number | GridColColumnOption | undefined)); + this._gridColOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._gridColOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._gridColOffset_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setGridColOffsetAttribute((undefined as number | GridColColumnOption | undefined)); + } + } + } + if (this._order_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._order_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOrderAttribute((this._order_0_0value as number | GridColColumnOption | undefined)); + this._order_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._order_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._order_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOrderAttribute((undefined as number | GridColColumnOption | undefined)); + } + } + } + } + mergeModifier(modifier: GridColModifier): void { + super.mergeModifier(modifier) + if (modifier._span_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._span_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.span(modifier._span_0_0value); + break; + } + default: { + this.span((undefined as number | GridColColumnOption | undefined)); + } + } + } + if (modifier._gridColOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._gridColOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.gridColOffset(modifier._gridColOffset_0_0value); + break; + } + default: { + this.gridColOffset((undefined as number | GridColColumnOption | undefined)); + } + } + } + if (modifier._order_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._order_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.order(modifier._order_0_0value); + break; + } + default: { + this.order((undefined as number | GridColColumnOption | undefined)); + } + } + } + } + span(value: number | GridColColumnOption | undefined): this { + if (((this._span_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._span_0_flag = AttributeUpdaterFlag.UPDATE + this._span_0_0value = value + } else + { + this._span_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + gridColOffset(value: number | GridColColumnOption | undefined): this { + if (((this._gridColOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._gridColOffset_0_flag = AttributeUpdaterFlag.UPDATE + this._gridColOffset_0_0value = value + } else + { + this._gridColOffset_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + order(value: number | GridColColumnOption | undefined): this { + if (((this._order_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._order_0_flag = AttributeUpdaterFlag.UPDATE + this._order_0_0value = value + } else + { + this._order_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/GridItemModifier.ets b/arkoala-arkts/arkui/generated/GridItemModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..a52f9fec2a8e7fa90b9cc8ab33775ed2e07e38a1 --- /dev/null +++ b/arkoala-arkts/arkui/generated/GridItemModifier.ets @@ -0,0 +1,352 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkGridItemPeer, GridItemAttribute } from "./component/gridItem" +import { CommonMethod, Bindable } from "./component/common" +export class GridItemModifier extends CommonMethodModifier implements GridItemAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: GridItemAttribute): void { } + applyPressedAttribute(instance: GridItemAttribute): void { } + applyFocusedAttribute(instance: GridItemAttribute): void { } + applyDisabledAttribute(instance: GridItemAttribute): void { } + applySelectedAttribute(instance: GridItemAttribute): void { } + _rowStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _rowStart_0_0value?: number | undefined + _rowEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _rowEnd_0_0value?: number | undefined + _columnStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _columnStart_0_0value?: number | undefined + _columnEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _columnEnd_0_0value?: number | undefined + _selectable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectable_0_0value?: boolean | undefined + _selected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selected_0_0value?: boolean | Bindable | undefined + _onSelect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSelect_0_0value?: ((isSelected: boolean) => void) | undefined + applyModifierPatch(peer: ArkGridItemPeer): void { + super.applyModifierPatch(peer) + if (this._rowStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._rowStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRowStartAttribute((this._rowStart_0_0value as number | undefined)); + this._rowStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._rowStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._rowStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRowStartAttribute((undefined as number | undefined)); + } + } + } + if (this._rowEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._rowEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRowEndAttribute((this._rowEnd_0_0value as number | undefined)); + this._rowEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._rowEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._rowEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRowEndAttribute((undefined as number | undefined)); + } + } + } + if (this._columnStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._columnStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColumnStartAttribute((this._columnStart_0_0value as number | undefined)); + this._columnStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._columnStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._columnStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColumnStartAttribute((undefined as number | undefined)); + } + } + } + if (this._columnEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._columnEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColumnEndAttribute((this._columnEnd_0_0value as number | undefined)); + this._columnEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._columnEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._columnEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColumnEndAttribute((undefined as number | undefined)); + } + } + } + if (this._selectable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectableAttribute((this._selectable_0_0value as boolean | undefined)); + this._selectable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._selected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedAttribute((this._selected_0_0value as boolean | Bindable | undefined)); + this._selected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedAttribute((undefined as boolean | Bindable | undefined)); + } + } + } + if (this._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSelect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSelectAttribute((this._onSelect_0_0value as ((isSelected: boolean) => void) | undefined)); + this._onSelect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSelect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSelect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSelectAttribute((undefined as ((isSelected: boolean) => void) | undefined)); + } + } + } + } + mergeModifier(modifier: GridItemModifier): void { + super.mergeModifier(modifier) + if (modifier._rowStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._rowStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.rowStart(modifier._rowStart_0_0value); + break; + } + default: { + this.rowStart((undefined as number | undefined)); + } + } + } + if (modifier._rowEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._rowEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.rowEnd(modifier._rowEnd_0_0value); + break; + } + default: { + this.rowEnd((undefined as number | undefined)); + } + } + } + if (modifier._columnStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._columnStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.columnStart(modifier._columnStart_0_0value); + break; + } + default: { + this.columnStart((undefined as number | undefined)); + } + } + } + if (modifier._columnEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._columnEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.columnEnd(modifier._columnEnd_0_0value); + break; + } + default: { + this.columnEnd((undefined as number | undefined)); + } + } + } + if (modifier._selectable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectable(modifier._selectable_0_0value); + break; + } + default: { + this.selectable((undefined as boolean | undefined)); + } + } + } + if (modifier._selected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selected(modifier._selected_0_0value); + break; + } + default: { + this.selected((undefined as boolean | Bindable | undefined)); + } + } + } + if (modifier._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSelect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSelect(modifier._onSelect_0_0value); + break; + } + default: { + this.onSelect((undefined as ((isSelected: boolean) => void) | undefined)); + } + } + } + } + rowStart(value: number | undefined): this { + if (((this._rowStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._rowStart_0_0value) !== (value))) + { + this._rowStart_0_flag = AttributeUpdaterFlag.UPDATE + this._rowStart_0_0value = value + } else + { + this._rowStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + rowEnd(value: number | undefined): this { + if (((this._rowEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._rowEnd_0_0value) !== (value))) + { + this._rowEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._rowEnd_0_0value = value + } else + { + this._rowEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + columnStart(value: number | undefined): this { + if (((this._columnStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._columnStart_0_0value) !== (value))) + { + this._columnStart_0_flag = AttributeUpdaterFlag.UPDATE + this._columnStart_0_0value = value + } else + { + this._columnStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + columnEnd(value: number | undefined): this { + if (((this._columnEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._columnEnd_0_0value) !== (value))) + { + this._columnEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._columnEnd_0_0value = value + } else + { + this._columnEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectable(value: boolean | undefined): this { + if (((this._selectable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectable_0_0value) !== (value))) + { + this._selectable_0_flag = AttributeUpdaterFlag.UPDATE + this._selectable_0_0value = value + } else + { + this._selectable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selected(value: boolean | Bindable | undefined): this { + if (((this._selected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selected_0_flag = AttributeUpdaterFlag.UPDATE + this._selected_0_0value = value + } else + { + this._selected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSelect(value: ((isSelected: boolean) => void) | undefined): this { + if (((this._onSelect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSelect_0_flag = AttributeUpdaterFlag.UPDATE + this._onSelect_0_0value = value + } else + { + this._onSelect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/component/grid.ets b/arkoala-arkts/arkui/generated/GridModifier.ets similarity index 50% rename from arkoala-arkts/arkui/src/component/grid.ets rename to arkoala-arkts/arkui/generated/GridModifier.ets index 51391eff77993a27bcf4fc7194e8e2f6a0099e15..297150ee8f1f3ac798c37adbca0c5e1090890ac3 100644 --- a/arkoala-arkts/arkui/src/component/grid.ets +++ b/arkoala-arkts/arkui/generated/GridModifier.ets @@ -16,816 +16,28 @@ // 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 { Scroller_serializer, OnScrollFrameBeginCallback, Scroller } from "./scroll" -import { Resource_serializer, Resource } from "./../generated/resource" -import { int32, int64, float32, unsafeCast } from "@koalaui/common" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkScrollableCommonMethodPeer, ScrollableCommonMethod, OnItemDragStartCallback, ItemDragInfo, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, ScrollableCommonMethodModifier, CommonMethodModifier } from "./common" -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 { 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" -export class ArkGridPeer extends ArkScrollableCommonMethodPeer { - protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { - super(peerPtr, id, name, flags) - } - public static create(component?: ComponentBase, flags: int32 = 0): ArkGridPeer { - const peerId = PeerNode.nextId() - const _peerPtr = ArkUIGeneratedNativeModule._Grid_construct(peerId, flags) - const _peer = new ArkGridPeer(_peerPtr, peerId, 'Grid', flags) - component?.setPeer(_peer) - return _peer - } - setGridOptionsAttribute(scroller?: Scroller, layoutOptions?: GridLayoutOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (scroller !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const scrollerTmpValue = scroller! - Scroller_serializer.write(thisSerializer, scrollerTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (layoutOptions !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const layoutOptionsTmpValue = layoutOptions! - GridLayoutOptions_serializer.write(thisSerializer, layoutOptionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._GridInterface_setGridOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setColumnsTemplateAttribute(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._GridAttribute_setColumnsTemplate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setRowsTemplateAttribute(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._GridAttribute_setRowsTemplate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setColumnsGapAttribute(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._GridAttribute_setColumnsGap(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setRowsGapAttribute(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._GridAttribute_setRowsGap(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnScrollBarUpdateAttribute(value: ((index: number,offset: number) => ComputedBarAttribute) | 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._GridAttribute_setOnScrollBarUpdate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnScrollIndexAttribute(value: ((first: number,last: number) => 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._GridAttribute_setOnScrollIndex(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCachedCount0Attribute(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._GridAttribute_setCachedCount0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEditModeAttribute(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._GridAttribute_setEditMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMultiSelectableAttribute(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._GridAttribute_setMultiSelectable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaxCountAttribute(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._GridAttribute_setMaxCount(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMinCountAttribute(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._GridAttribute_setMinCount(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCellLengthAttribute(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._GridAttribute_setCellLength(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLayoutDirectionAttribute(value: GridDirection | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as GridDirection) - thisSerializer.writeInt32(TypeChecker.GridDirection_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._GridAttribute_setLayoutDirection(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSupportAnimationAttribute(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._GridAttribute_setSupportAnimation(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnItemDragStartAttribute(value: OnItemDragStartCallback | 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._GridAttribute_setOnItemDragStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnItemDragEnterAttribute(value: ((event: ItemDragInfo) => 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._GridAttribute_setOnItemDragEnter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnItemDragMoveAttribute(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => 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._GridAttribute_setOnItemDragMove(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnItemDragLeaveAttribute(value: ((event: ItemDragInfo,itemIndex: number) => 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._GridAttribute_setOnItemDragLeave(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnItemDropAttribute(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => 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._GridAttribute_setOnItemDrop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAlignItemsAttribute(value: GridItemAlignment | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as GridItemAlignment) - thisSerializer.writeInt32(TypeChecker.GridItemAlignment_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._GridAttribute_setAlignItems(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnScrollFrameBeginAttribute(value: OnScrollFrameBeginCallback | 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._GridAttribute_setOnScrollFrameBegin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnWillScrollAttribute(value: OnWillScrollCallback | 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._GridAttribute_setOnWillScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDidScrollAttribute(value: OnScrollCallback | 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._GridAttribute_setOnDidScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCachedCount1Attribute(count: number | undefined, show: boolean | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (count !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const countTmpValue = count! - thisSerializer.writeNumber(countTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (show !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const showTmpValue = show! - thisSerializer.writeBoolean(showTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._GridAttribute_setCachedCount1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface GridLayoutOptions { - regularSize: [ number, number ]; - irregularIndexes?: Array; - onGetIrregularSizeByIndex?: ((index: number) => [ number, number ]); - onGetRectByIndex?: ((index: number) => [ number, number, number, number ]); -} -export enum GridDirection { - ROW = 0, - Row = 0, - COLUMN = 1, - Column = 1, - ROW_REVERSE = 2, - RowReverse = 2, - COLUMN_REVERSE = 3, - ColumnReverse = 3 -} -export enum GridItemAlignment { - DEFAULT = 0, - STRETCH = 1 -} -export interface ComputedBarAttribute { - totalOffset: number; - totalLength: number; -} -export interface GridAttribute extends ScrollableCommonMethod { - columnsTemplate(value: string | undefined): this { - throw new Error("Unimplemented method columnsTemplate") - } - rowsTemplate(value: string | undefined): this { - throw new Error("Unimplemented method rowsTemplate") - } - columnsGap(value: Length | undefined): this { - throw new Error("Unimplemented method columnsGap") - } - rowsGap(value: Length | undefined): this { - throw new Error("Unimplemented method rowsGap") - } - onScrollBarUpdate(value: ((index: number,offset: number) => ComputedBarAttribute) | undefined): this { - throw new Error("Unimplemented method onScrollBarUpdate") - } - onScrollIndex(value: ((first: number,last: number) => void) | undefined): this { - throw new Error("Unimplemented method onScrollIndex") - } - cachedCount(value: number | undefined): this { - throw new Error("Unimplemented method cachedCount") - } - editMode(value: boolean | undefined): this { - throw new Error("Unimplemented method editMode") - } - multiSelectable(value: boolean | undefined): this { - throw new Error("Unimplemented method multiSelectable") - } - maxCount(value: number | undefined): this { - throw new Error("Unimplemented method maxCount") - } - minCount(value: number | undefined): this { - throw new Error("Unimplemented method minCount") - } - cellLength(value: number | undefined): this { - throw new Error("Unimplemented method cellLength") - } - layoutDirection(value: GridDirection | undefined): this { - throw new Error("Unimplemented method layoutDirection") - } - supportAnimation(value: boolean | undefined): this { - throw new Error("Unimplemented method supportAnimation") - } - onItemDragStart(value: OnItemDragStartCallback | undefined): this { - throw new Error("Unimplemented method onItemDragStart") - } - onItemDragEnter(value: ((event: ItemDragInfo) => void) | undefined): this { - throw new Error("Unimplemented method onItemDragEnter") - } - onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined): this { - throw new Error("Unimplemented method onItemDragMove") - } - onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void) | undefined): this { - throw new Error("Unimplemented method onItemDragLeave") - } - onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined): this { - throw new Error("Unimplemented method onItemDrop") - } - alignItems(value: GridItemAlignment | undefined): this { - throw new Error("Unimplemented method alignItems") - } - onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { - throw new Error("Unimplemented method onScrollFrameBegin") - } - onWillScroll(value: OnWillScrollCallback | undefined): this { - throw new Error("Unimplemented method onWillScroll") - } - onDidScroll(value: OnScrollCallback | undefined): this { - throw new Error("Unimplemented method onDidScroll") - } - cachedCount(count: number | undefined, show: boolean | undefined): this { - throw new Error("Unimplemented method cachedCount") - } - attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Unimplemented method attributeModifier") - } -} -export class ArkGridStyle extends ArkScrollableCommonMethodStyle implements GridAttribute { - columnsTemplate_value?: string | undefined - rowsTemplate_value?: string | undefined - columnsGap_value?: Length | undefined - rowsGap_value?: Length | undefined - onScrollBarUpdate_value?: ((index: number,offset: number) => ComputedBarAttribute) | undefined - onScrollIndex_value?: ((first: number,last: number) => void) | undefined - cachedCount_value?: number | undefined - editMode_value?: boolean | undefined - multiSelectable_value?: boolean | undefined - maxCount_value?: number | undefined - minCount_value?: number | undefined - cellLength_value?: number | undefined - layoutDirection_value?: GridDirection | undefined - supportAnimation_value?: boolean | undefined - onItemDragStart_value?: OnItemDragStartCallback | undefined - onItemDragEnter_value?: ((event: ItemDragInfo) => void) | undefined - onItemDragMove_value?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined - onItemDragLeave_value?: ((event: ItemDragInfo,itemIndex: number) => void) | undefined - onItemDrop_value?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined - alignItems_value?: GridItemAlignment | undefined - onScrollFrameBegin_value?: OnScrollFrameBeginCallback | undefined - onWillScroll_value?: OnWillScrollCallback | undefined - onDidScroll_value?: OnScrollCallback | undefined - attributeModifier_value?: AttributeModifier | AttributeModifier | undefined - public columnsTemplate(value: string | undefined): this { - return this - } - public rowsTemplate(value: string | undefined): this { - return this - } - public columnsGap(value: Length | undefined): this { - return this - } - public rowsGap(value: Length | undefined): this { - return this - } - public onScrollBarUpdate(value: ((index: number,offset: number) => ComputedBarAttribute) | undefined): this { - return this - } - public onScrollIndex(value: ((first: number,last: number) => void) | undefined): this { - return this - } - public cachedCount(value: number | undefined): this { - return this - } - public editMode(value: boolean | undefined): this { - return this - } - public multiSelectable(value: boolean | undefined): this { - return this - } - public maxCount(value: number | undefined): this { - return this - } - public minCount(value: number | undefined): this { - return this - } - public cellLength(value: number | undefined): this { - return this - } - public layoutDirection(value: GridDirection | undefined): this { - return this - } - public supportAnimation(value: boolean | undefined): this { - return this - } - public onItemDragStart(value: OnItemDragStartCallback | undefined): this { - return this - } - public onItemDragEnter(value: ((event: ItemDragInfo) => void) | undefined): this { - return this - } - public onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined): this { - return this - } - public onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void) | undefined): this { - return this - } - public onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined): this { - return this - } - public alignItems(value: GridItemAlignment | undefined): this { - return this - } - public onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { - return this - } - public onWillScroll(value: OnWillScrollCallback | undefined): this { - return this - } - public onDidScroll(value: OnScrollCallback | undefined): this { - return this - } - public cachedCount(count: number | undefined, show: boolean | undefined): this { - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} - -export class ArkGridComponent extends ArkScrollableCommonMethodComponent implements GridAttribute { - getPeer(): ArkGridPeer { - return (this.peer as ArkGridPeer) - } - public setGridOptions(scroller?: Scroller, layoutOptions?: GridLayoutOptions): this { - if (this.checkPriority("setGridOptions")) { - const scroller_casted = scroller as (Scroller | undefined) - const layoutOptions_casted = layoutOptions as (GridLayoutOptions | undefined) - this.getPeer()?.setGridOptionsAttribute(scroller_casted, layoutOptions_casted) - return this - } - return this - } - public columnsTemplate(value: string | undefined): this { - if (this.checkPriority("columnsTemplate")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setColumnsTemplateAttribute(value_casted) - return this - } - return this - } - public rowsTemplate(value: string | undefined): this { - if (this.checkPriority("rowsTemplate")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setRowsTemplateAttribute(value_casted) - return this - } - return this - } - public columnsGap(value: Length | undefined): this { - if (this.checkPriority("columnsGap")) { - const value_casted = value as (Length | undefined) - this.getPeer()?.setColumnsGapAttribute(value_casted) - return this - } - return this - } - public rowsGap(value: Length | undefined): this { - if (this.checkPriority("rowsGap")) { - const value_casted = value as (Length | undefined) - this.getPeer()?.setRowsGapAttribute(value_casted) - return this - } - return this - } - public onScrollBarUpdate(value: ((index: number,offset: number) => ComputedBarAttribute) | undefined): this { - if (this.checkPriority("onScrollBarUpdate")) { - const value_casted = value as (((index: number,offset: number) => ComputedBarAttribute) | undefined) - this.getPeer()?.setOnScrollBarUpdateAttribute(value_casted) - return this - } - return this - } - public onScrollIndex(value: ((first: number,last: number) => void) | undefined): this { - if (this.checkPriority("onScrollIndex")) { - const value_casted = value as (((first: number,last: number) => void) | undefined) - this.getPeer()?.setOnScrollIndexAttribute(value_casted) - return this - } - return this - } - public cachedCount(value: number | undefined): this { - if (this.checkPriority("cachedCount")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setCachedCount0Attribute(value_casted) - return this - } - return this - } - public editMode(value: boolean | undefined): this { - if (this.checkPriority("editMode")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEditModeAttribute(value_casted) - return this - } - return this - } - public multiSelectable(value: boolean | undefined): this { - if (this.checkPriority("multiSelectable")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setMultiSelectableAttribute(value_casted) - return this - } - return this - } - public maxCount(value: number | undefined): this { - if (this.checkPriority("maxCount")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setMaxCountAttribute(value_casted) - return this - } - return this - } - public minCount(value: number | undefined): this { - if (this.checkPriority("minCount")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setMinCountAttribute(value_casted) - return this - } - return this - } - public cellLength(value: number | undefined): this { - if (this.checkPriority("cellLength")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setCellLengthAttribute(value_casted) - return this - } - return this - } - public layoutDirection(value: GridDirection | undefined): this { - if (this.checkPriority("layoutDirection")) { - const value_casted = value as (GridDirection | undefined) - this.getPeer()?.setLayoutDirectionAttribute(value_casted) - return this - } - return this - } - public supportAnimation(value: boolean | undefined): this { - if (this.checkPriority("supportAnimation")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setSupportAnimationAttribute(value_casted) - return this - } - return this - } - public onItemDragStart(value: OnItemDragStartCallback | undefined): this { - if (this.checkPriority("onItemDragStart")) { - const value_casted = value as (OnItemDragStartCallback | undefined) - this.getPeer()?.setOnItemDragStartAttribute(value_casted) - return this - } - return this - } - public onItemDragEnter(value: ((event: ItemDragInfo) => void) | undefined): this { - if (this.checkPriority("onItemDragEnter")) { - const value_casted = value as (((event: ItemDragInfo) => void) | undefined) - this.getPeer()?.setOnItemDragEnterAttribute(value_casted) - return this - } - return this - } - public onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined): this { - if (this.checkPriority("onItemDragMove")) { - const value_casted = value as (((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined) - this.getPeer()?.setOnItemDragMoveAttribute(value_casted) - return this - } - return this - } - public onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void) | undefined): this { - if (this.checkPriority("onItemDragLeave")) { - const value_casted = value as (((event: ItemDragInfo,itemIndex: number) => void) | undefined) - this.getPeer()?.setOnItemDragLeaveAttribute(value_casted) - return this - } - return this - } - public onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined): this { - if (this.checkPriority("onItemDrop")) { - const value_casted = value as (((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined) - this.getPeer()?.setOnItemDropAttribute(value_casted) - return this - } - return this - } - public alignItems(value: GridItemAlignment | undefined): this { - if (this.checkPriority("alignItems")) { - const value_casted = value as (GridItemAlignment | undefined) - this.getPeer()?.setAlignItemsAttribute(value_casted) - return this - } - return this - } - public onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { - if (this.checkPriority("onScrollFrameBegin")) { - const value_casted = value as (OnScrollFrameBeginCallback | undefined) - this.getPeer()?.setOnScrollFrameBeginAttribute(value_casted) - return this - } - return this - } - public onWillScroll(value: OnWillScrollCallback | undefined): this { - if (this.checkPriority("onWillScroll")) { - const value_casted = value as (OnWillScrollCallback | undefined) - this.getPeer()?.setOnWillScrollAttribute(value_casted) - return this - } - return this - } - public onDidScroll(value: OnScrollCallback | undefined): this { - if (this.checkPriority("onDidScroll")) { - const value_casted = value as (OnScrollCallback | undefined) - this.getPeer()?.setOnDidScrollAttribute(value_casted) - return this - } - return this - } - public cachedCount(count: number | undefined, show: boolean | undefined): this { - if (this.checkPriority("cachedCount")) { - const count_casted = count as (number | undefined) - const show_casted = show as (boolean | undefined) - this.getPeer()?.setCachedCount1Attribute(count_casted, show_casted) - return this - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - return this - } - public applyAttributesFinish(): void { - // we call this function outside of class, so need to make it public - super.applyAttributesFinish() - } -} - -@memo -export function Grid( - @memo - style: ((attributes: GridAttribute) => void) | undefined, - scroller?: Scroller, layoutOptions?: GridLayoutOptions, - @memo - content_?: () => void, -): void { - const receiver = remember((): ArkGridComponent => { - return new ArkGridComponent() - }) - NodeAttach((): ArkGridPeer => ArkGridPeer.create(receiver), (_: ArkGridPeer): void => { - receiver.setGridOptions(scroller,layoutOptions) - style?.(receiver) - content_?.() - receiver.applyAttributesFinish() - }) -} - -export class GridModifier extends ScrollableCommonMethodModifier implements GridAttribute { +import { ScrollableCommonMethodModifier } from "./ScrollableCommonMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkGridPeer, ComputedBarAttribute, GridDirection, GridItemAlignment, GridAttribute } from "./component/grid" +import { ScrollableCommonMethod, OnItemDragStartCallback, ItemDragInfo, OnWillScrollCallback, OnScrollCallback, CommonMethod } from "./component/common" +import { Length } from "./component/units" +import { Resource } from "global.resource" +import { OnScrollFrameBeginCallback } from "./component/scroll" +import { ScrollState } from "./component/list" +import { ScrollSource } from "./component/enums" +export class GridModifier extends ScrollableCommonMethodModifier implements GridAttribute,AttributeModifier { _instanceId: number = -1; setInstanceId(instanceId: number): void { this._instanceId = instanceId } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: GridAttribute): void { } + applyPressedAttribute(instance: GridAttribute): void { } + applyFocusedAttribute(instance: GridAttribute): void { } + applyDisabledAttribute(instance: GridAttribute): void { } + applySelectedAttribute(instance: GridAttribute): void { } _columnsTemplate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL _columnsTemplate_0_0value?: string | undefined _rowsTemplate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL @@ -1894,122 +1106,3 @@ export class GridModifier extends ScrollableCommonMethodModifier implements Grid throw new Error("Not implemented") } } -export class ComputedBarAttribute_serializer { - public static write(buffer: SerializerBase, value: ComputedBarAttribute): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForTotalOffset = value.totalOffset - valueSerializer.writeNumber(valueHolderForTotalOffset) - const valueHolderForTotalLength = value.totalLength - valueSerializer.writeNumber(valueHolderForTotalLength) - } - public static read(buffer: DeserializerBase): ComputedBarAttribute { - let valueDeserializer : DeserializerBase = buffer - const totalOffsetTmpResult : number = (valueDeserializer.readNumber() as number) - const totalLengthTmpResult : number = (valueDeserializer.readNumber() as number) - let value : ComputedBarAttribute = ({totalOffset: totalOffsetTmpResult, totalLength: totalLengthTmpResult} as ComputedBarAttribute) - return value - } -} -export class GridLayoutOptions_serializer { - public static write(buffer: SerializerBase, value: GridLayoutOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForRegularSize = value.regularSize - const valueHolderForRegularSize_0 = valueHolderForRegularSize[0] - valueSerializer.writeNumber(valueHolderForRegularSize_0) - const valueHolderForRegularSize_1 = valueHolderForRegularSize[1] - valueSerializer.writeNumber(valueHolderForRegularSize_1) - const valueHolderForIrregularIndexes = value.irregularIndexes - if (valueHolderForIrregularIndexes !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForIrregularIndexesTmpValue = valueHolderForIrregularIndexes! - valueSerializer.writeInt32((valueHolderForIrregularIndexesTmpValue.length).toInt()) - for (let valueHolderForIrregularIndexesTmpValueCounterI = 0; valueHolderForIrregularIndexesTmpValueCounterI < valueHolderForIrregularIndexesTmpValue.length; valueHolderForIrregularIndexesTmpValueCounterI++) { - const valueHolderForIrregularIndexesTmpValueTmpElement : number = valueHolderForIrregularIndexesTmpValue[valueHolderForIrregularIndexesTmpValueCounterI] - valueSerializer.writeNumber(valueHolderForIrregularIndexesTmpValueTmpElement) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnGetIrregularSizeByIndex = value.onGetIrregularSizeByIndex - if (valueHolderForOnGetIrregularSizeByIndex !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnGetIrregularSizeByIndexTmpValue = valueHolderForOnGetIrregularSizeByIndex! - valueSerializer.holdAndWriteCallback(valueHolderForOnGetIrregularSizeByIndexTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForOnGetRectByIndex = value.onGetRectByIndex - if (valueHolderForOnGetRectByIndex !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForOnGetRectByIndexTmpValue = valueHolderForOnGetRectByIndex! - valueSerializer.holdAndWriteCallback(valueHolderForOnGetRectByIndexTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): GridLayoutOptions { - let valueDeserializer : DeserializerBase = buffer - const regularSizeTmpBufValue0 : number = (valueDeserializer.readNumber() as number) - const regularSizeTmpBufValue1 : number = (valueDeserializer.readNumber() as number) - const regularSizeTmpResult : [ number, number ] = ([regularSizeTmpBufValue0, regularSizeTmpBufValue1] as [ number, number ]) - const irregularIndexesTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let irregularIndexesTmpBuf : Array | undefined - if ((irregularIndexesTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const irregularIndexesTmpBuf_Length : int32 = valueDeserializer.readInt32() - let irregularIndexesTmpBuf_ : Array = new Array(irregularIndexesTmpBuf_Length) - for (let irregularIndexesTmpBuf_BufCounterI = 0; irregularIndexesTmpBuf_BufCounterI < irregularIndexesTmpBuf_Length; irregularIndexesTmpBuf_BufCounterI++) { - irregularIndexesTmpBuf_[irregularIndexesTmpBuf_BufCounterI] = (valueDeserializer.readNumber() as number) - } - irregularIndexesTmpBuf = irregularIndexesTmpBuf_ - } - const irregularIndexesTmpResult : Array | undefined = irregularIndexesTmpBuf - const onGetIrregularSizeByIndexTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onGetIrregularSizeByIndexTmpBuf : ((index: number) => [ number, number ]) | undefined - if ((onGetIrregularSizeByIndexTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onGetIrregularSizeByIndexTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onGetIrregularSizeByIndexTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onGetIrregularSizeByIndexTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onGetIrregularSizeByIndexTmpBuf = (index: number):[ number, number ] => { - const onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.writeInt32(onGetIrregularSizeByIndexTmpBuf_BufResource.resourceId); - onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.writePointer(onGetIrregularSizeByIndexTmpBuf_BufCall); - onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.writePointer(onGetIrregularSizeByIndexTmpBuf_BufCallSync); - onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.writeNumber(index); - let onGetIrregularSizeByIndexTmpBuf_BufContinuationValue : [ number, number ] | undefined; - const onGetIrregularSizeByIndexTmpBuf_BufContinuationCallback : ((value: [ number, number ]) => void) = (value: [ number, number ]):void => { - onGetIrregularSizeByIndexTmpBuf_BufContinuationValue = value; - } - onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.holdAndWriteCallback(onGetIrregularSizeByIndexTmpBuf_BufContinuationCallback); - InteropNativeModule._CallCallback(1602877440, onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.asBuffer(), onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.length()); - onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.release(); - return (onGetIrregularSizeByIndexTmpBuf_BufContinuationValue as [ number, number ]); - } - } - const onGetIrregularSizeByIndexTmpResult : ((index: number) => [ number, number ]) | undefined = onGetIrregularSizeByIndexTmpBuf - const onGetRectByIndexTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let onGetRectByIndexTmpBuf : ((index: number) => [ number, number, number, number ]) | undefined - if ((onGetRectByIndexTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const onGetRectByIndexTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() - const onGetRectByIndexTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() - const onGetRectByIndexTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() - onGetRectByIndexTmpBuf = (index: number):[ number, number, number, number ] => { - const onGetRectByIndexTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); - onGetRectByIndexTmpBuf_BufArgsSerializer.writeInt32(onGetRectByIndexTmpBuf_BufResource.resourceId); - onGetRectByIndexTmpBuf_BufArgsSerializer.writePointer(onGetRectByIndexTmpBuf_BufCall); - onGetRectByIndexTmpBuf_BufArgsSerializer.writePointer(onGetRectByIndexTmpBuf_BufCallSync); - onGetRectByIndexTmpBuf_BufArgsSerializer.writeNumber(index); - let onGetRectByIndexTmpBuf_BufContinuationValue : [ number, number, number, number ] | undefined; - const onGetRectByIndexTmpBuf_BufContinuationCallback : ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]):void => { - onGetRectByIndexTmpBuf_BufContinuationValue = value; - } - onGetRectByIndexTmpBuf_BufArgsSerializer.holdAndWriteCallback(onGetRectByIndexTmpBuf_BufContinuationCallback); - InteropNativeModule._CallCallback(1618565120, onGetRectByIndexTmpBuf_BufArgsSerializer.asBuffer(), onGetRectByIndexTmpBuf_BufArgsSerializer.length()); - onGetRectByIndexTmpBuf_BufArgsSerializer.release(); - return (onGetRectByIndexTmpBuf_BufContinuationValue as [ number, number, number, number ]); - } - } - const onGetRectByIndexTmpResult : ((index: number) => [ number, number, number, number ]) | undefined = onGetRectByIndexTmpBuf - let value : GridLayoutOptions = ({regularSize: regularSizeTmpResult, irregularIndexes: irregularIndexesTmpResult, onGetIrregularSizeByIndex: onGetIrregularSizeByIndexTmpResult, onGetRectByIndex: onGetRectByIndexTmpResult} as GridLayoutOptions) - return value - } -} diff --git a/arkoala-arkts/arkui/generated/GridRowModifier.ets b/arkoala-arkts/arkui/generated/GridRowModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..63cf27586ff2d3ca180c8daf94b360284d334b52 --- /dev/null +++ b/arkoala-arkts/arkui/generated/GridRowModifier.ets @@ -0,0 +1,133 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkGridRowPeer, GridRowAttribute } from "./component/gridRow" +import { CommonMethod } from "./component/common" +import { ItemAlign } from "./component/enums" +export class GridRowModifier extends CommonMethodModifier implements GridRowAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: GridRowAttribute): void { } + applyPressedAttribute(instance: GridRowAttribute): void { } + applyFocusedAttribute(instance: GridRowAttribute): void { } + applyDisabledAttribute(instance: GridRowAttribute): void { } + applySelectedAttribute(instance: GridRowAttribute): void { } + _onBreakpointChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onBreakpointChange_0_0value?: ((breakpoints: string) => void) | undefined + _alignItems_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alignItems_0_0value?: ItemAlign | undefined + applyModifierPatch(peer: ArkGridRowPeer): void { + super.applyModifierPatch(peer) + if (this._onBreakpointChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onBreakpointChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnBreakpointChangeAttribute((this._onBreakpointChange_0_0value as ((breakpoints: string) => void) | undefined)); + this._onBreakpointChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onBreakpointChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onBreakpointChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnBreakpointChangeAttribute((undefined as ((breakpoints: string) => void) | undefined)); + } + } + } + if (this._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alignItems_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignItemsAttribute((this._alignItems_0_0value as ItemAlign | undefined)); + this._alignItems_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alignItems_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alignItems_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignItemsAttribute((undefined as ItemAlign | undefined)); + } + } + } + } + mergeModifier(modifier: GridRowModifier): void { + super.mergeModifier(modifier) + if (modifier._onBreakpointChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onBreakpointChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onBreakpointChange(modifier._onBreakpointChange_0_0value); + break; + } + default: { + this.onBreakpointChange((undefined as ((breakpoints: string) => void) | undefined)); + } + } + } + if (modifier._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alignItems_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alignItems(modifier._alignItems_0_0value); + break; + } + default: { + this.alignItems((undefined as ItemAlign | undefined)); + } + } + } + } + onBreakpointChange(value: ((breakpoints: string) => void) | undefined): this { + if (((this._onBreakpointChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onBreakpointChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onBreakpointChange_0_0value = value + } else + { + this._onBreakpointChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + alignItems(value: ItemAlign | undefined): this { + if (((this._alignItems_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alignItems_0_flag = AttributeUpdaterFlag.UPDATE + this._alignItems_0_0value = value + } else + { + this._alignItems_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/HyperlinkModifier.ets b/arkoala-arkts/arkui/generated/HyperlinkModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..e88cbd12291905f5572995caf3f6b7f3fbcdd977 --- /dev/null +++ b/arkoala-arkts/arkui/generated/HyperlinkModifier.ets @@ -0,0 +1,90 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkHyperlinkPeer, HyperlinkAttribute } from "./component/hyperlink" +import { CommonMethod } from "./component/common" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +export class HyperlinkModifier extends CommonMethodModifier implements HyperlinkAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: HyperlinkAttribute): void { } + applyPressedAttribute(instance: HyperlinkAttribute): void { } + applyFocusedAttribute(instance: HyperlinkAttribute): void { } + applyDisabledAttribute(instance: HyperlinkAttribute): void { } + applySelectedAttribute(instance: HyperlinkAttribute): void { } + _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _color_0_0value?: Color | number | string | Resource | undefined + applyModifierPatch(peer: ArkHyperlinkPeer): void { + super.applyModifierPatch(peer) + if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorAttribute((this._color_0_0value as Color | number | string | Resource | undefined)); + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._color_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorAttribute((undefined as Color | number | string | Resource | undefined)); + } + } + } + } + mergeModifier(modifier: HyperlinkModifier): void { + super.mergeModifier(modifier) + if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.color(modifier._color_0_0value); + break; + } + default: { + this.color((undefined as Color | number | string | Resource | undefined)); + } + } + } + } + color(value: Color | number | string | Resource | undefined): this { + if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._color_0_flag = AttributeUpdaterFlag.UPDATE + this._color_0_0value = value + } else + { + this._color_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ImageAnimatorModifier.ets b/arkoala-arkts/arkui/generated/ImageAnimatorModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..3f6c795db672229acaada6e0b40f5f6cbd2ae5ea --- /dev/null +++ b/arkoala-arkts/arkui/generated/ImageAnimatorModifier.ets @@ -0,0 +1,617 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkImageAnimatorPeer, ImageFrameInfo, ImageAnimatorAttribute } from "./component/imageAnimator" +import { CommonMethod } from "./component/common" +import { AnimationStatus, FillMode } from "./component/enums" +export class ImageAnimatorModifier extends CommonMethodModifier implements ImageAnimatorAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ImageAnimatorAttribute): void { } + applyPressedAttribute(instance: ImageAnimatorAttribute): void { } + applyFocusedAttribute(instance: ImageAnimatorAttribute): void { } + applyDisabledAttribute(instance: ImageAnimatorAttribute): void { } + applySelectedAttribute(instance: ImageAnimatorAttribute): void { } + _images_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _images_0_0value?: Array | undefined + _state_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _state_0_0value?: AnimationStatus | undefined + _duration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _duration_0_0value?: number | undefined + _reverse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _reverse_0_0value?: boolean | undefined + _fixedSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fixedSize_0_0value?: boolean | undefined + _fillMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fillMode_0_0value?: FillMode | undefined + _iterations_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _iterations_0_0value?: number | undefined + _monitorInvisibleArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _monitorInvisibleArea_0_0value?: boolean | undefined + _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onStart_0_0value?: (() => void) | undefined + _onPause_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPause_0_0value?: (() => void) | undefined + _onRepeat_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRepeat_0_0value?: (() => void) | undefined + _onCancel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onCancel_0_0value?: (() => void) | undefined + _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFinish_0_0value?: (() => void) | undefined + applyModifierPatch(peer: ArkImageAnimatorPeer): void { + super.applyModifierPatch(peer) + if (this._images_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._images_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setImagesAttribute((this._images_0_0value as Array | undefined)); + this._images_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._images_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._images_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setImagesAttribute((undefined as Array | undefined)); + } + } + } + if (this._state_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._state_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStateAttribute((this._state_0_0value as AnimationStatus | undefined)); + this._state_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._state_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._state_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStateAttribute((undefined as AnimationStatus | undefined)); + } + } + } + if (this._duration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._duration_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDurationAttribute((this._duration_0_0value as number | undefined)); + this._duration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._duration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._duration_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDurationAttribute((undefined as number | undefined)); + } + } + } + if (this._reverse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._reverse_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setReverseAttribute((this._reverse_0_0value as boolean | undefined)); + this._reverse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._reverse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._reverse_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setReverseAttribute((undefined as boolean | undefined)); + } + } + } + if (this._fixedSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fixedSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFixedSizeAttribute((this._fixedSize_0_0value as boolean | undefined)); + this._fixedSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fixedSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fixedSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFixedSizeAttribute((undefined as boolean | undefined)); + } + } + } + if (this._fillMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fillMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFillModeAttribute((this._fillMode_0_0value as FillMode | undefined)); + this._fillMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fillMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fillMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFillModeAttribute((undefined as FillMode | undefined)); + } + } + } + if (this._iterations_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._iterations_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIterationsAttribute((this._iterations_0_0value as number | undefined)); + this._iterations_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._iterations_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._iterations_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIterationsAttribute((undefined as number | undefined)); + } + } + } + if (this._monitorInvisibleArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._monitorInvisibleArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMonitorInvisibleAreaAttribute((this._monitorInvisibleArea_0_0value as boolean | undefined)); + this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMonitorInvisibleAreaAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnStartAttribute((this._onStart_0_0value as (() => void) | undefined)); + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnStartAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onPause_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPause_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPauseAttribute((this._onPause_0_0value as (() => void) | undefined)); + this._onPause_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPause_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPause_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPauseAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onRepeat_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRepeat_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRepeatAttribute((this._onRepeat_0_0value as (() => void) | undefined)); + this._onRepeat_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRepeat_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRepeat_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRepeatAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onCancel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onCancel_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCancelAttribute((this._onCancel_0_0value as (() => void) | undefined)); + this._onCancel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onCancel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onCancel_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCancelAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFinishAttribute((undefined as (() => void) | undefined)); + } + } + } + } + mergeModifier(modifier: ImageAnimatorModifier): void { + super.mergeModifier(modifier) + if (modifier._images_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._images_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.images(modifier._images_0_0value); + break; + } + default: { + this.images((undefined as Array | undefined)); + } + } + } + if (modifier._state_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._state_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.state(modifier._state_0_0value); + break; + } + default: { + this.state((undefined as AnimationStatus | undefined)); + } + } + } + if (modifier._duration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._duration_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.duration(modifier._duration_0_0value); + break; + } + default: { + this.duration((undefined as number | undefined)); + } + } + } + if (modifier._reverse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._reverse_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.reverse(modifier._reverse_0_0value); + break; + } + default: { + this.reverse((undefined as boolean | undefined)); + } + } + } + if (modifier._fixedSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fixedSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fixedSize(modifier._fixedSize_0_0value); + break; + } + default: { + this.fixedSize((undefined as boolean | undefined)); + } + } + } + if (modifier._fillMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fillMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fillMode(modifier._fillMode_0_0value); + break; + } + default: { + this.fillMode((undefined as FillMode | undefined)); + } + } + } + if (modifier._iterations_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._iterations_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.iterations(modifier._iterations_0_0value); + break; + } + default: { + this.iterations((undefined as number | undefined)); + } + } + } + if (modifier._monitorInvisibleArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._monitorInvisibleArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.monitorInvisibleArea(modifier._monitorInvisibleArea_0_0value); + break; + } + default: { + this.monitorInvisibleArea((undefined as boolean | undefined)); + } + } + } + if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onStart(modifier._onStart_0_0value); + break; + } + default: { + this.onStart((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onPause_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPause_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPause(modifier._onPause_0_0value); + break; + } + default: { + this.onPause((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onRepeat_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRepeat_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRepeat(modifier._onRepeat_0_0value); + break; + } + default: { + this.onRepeat((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onCancel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onCancel_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onCancel(modifier._onCancel_0_0value); + break; + } + default: { + this.onCancel((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFinish(modifier._onFinish_0_0value); + break; + } + default: { + this.onFinish((undefined as (() => void) | undefined)); + } + } + } + } + images(value: Array | undefined): this { + if (((this._images_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._images_0_flag = AttributeUpdaterFlag.UPDATE + this._images_0_0value = value + } else + { + this._images_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + state(value: AnimationStatus | undefined): this { + if (((this._state_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._state_0_flag = AttributeUpdaterFlag.UPDATE + this._state_0_0value = value + } else + { + this._state_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + duration(value: number | undefined): this { + if (((this._duration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._duration_0_0value) !== (value))) + { + this._duration_0_flag = AttributeUpdaterFlag.UPDATE + this._duration_0_0value = value + } else + { + this._duration_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + reverse(value: boolean | undefined): this { + if (((this._reverse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._reverse_0_0value) !== (value))) + { + this._reverse_0_flag = AttributeUpdaterFlag.UPDATE + this._reverse_0_0value = value + } else + { + this._reverse_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fixedSize(value: boolean | undefined): this { + if (((this._fixedSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fixedSize_0_0value) !== (value))) + { + this._fixedSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fixedSize_0_0value = value + } else + { + this._fixedSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fillMode(value: FillMode | undefined): this { + if (((this._fillMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fillMode_0_flag = AttributeUpdaterFlag.UPDATE + this._fillMode_0_0value = value + } else + { + this._fillMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + iterations(value: number | undefined): this { + if (((this._iterations_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._iterations_0_0value) !== (value))) + { + this._iterations_0_flag = AttributeUpdaterFlag.UPDATE + this._iterations_0_0value = value + } else + { + this._iterations_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + monitorInvisibleArea(value: boolean | undefined): this { + if (((this._monitorInvisibleArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._monitorInvisibleArea_0_0value) !== (value))) + { + this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.UPDATE + this._monitorInvisibleArea_0_0value = value + } else + { + this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onStart(value: (() => void) | undefined): this { + if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onStart_0_0value = value + } else + { + this._onStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPause(value: (() => void) | undefined): this { + if (((this._onPause_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPause_0_flag = AttributeUpdaterFlag.UPDATE + this._onPause_0_0value = value + } else + { + this._onPause_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onRepeat(value: (() => void) | undefined): this { + if (((this._onRepeat_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRepeat_0_flag = AttributeUpdaterFlag.UPDATE + this._onRepeat_0_0value = value + } else + { + this._onRepeat_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onCancel(value: (() => void) | undefined): this { + if (((this._onCancel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onCancel_0_flag = AttributeUpdaterFlag.UPDATE + this._onCancel_0_0value = value + } else + { + this._onCancel_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFinish(value: (() => void) | undefined): this { + if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE + this._onFinish_0_0value = value + } else + { + this._onFinish_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ImageModifier.ets b/arkoala-arkts/arkui/generated/ImageModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..11f9481a7a4a945d613604649e6fad4fd631a5d2 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ImageModifier.ets @@ -0,0 +1,1240 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkImagePeer, ColorContent, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, ImageOnCompleteCallback, ImageCompleteEvent, ImageErrorCallback, ImageError, ResizableOptions, ImageRotateOrientation, ImageAttribute } from "./component/image" +import { CommonMethod, PointLightStyle } from "./component/common" +import { Resource } from "global.resource" +import { image } from "./framework/ohos.multimedia.image" +import { ResourceColor, ColorFilter } from "./component/units" +import { Color, ImageFit, ImageRepeat, CopyOptions } from "./component/enums" +import { ColorMetrics } from "./Graphics" +import { matrix4 } from "./framework/ohos.matrix4" +import { drawing } from "./framework/ohos.graphics.drawing" +import { ImageAnalyzerConfig } from "./component/imageCommon" +export class ImageModifier extends CommonMethodModifier implements ImageAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ImageAttribute): void { } + applyPressedAttribute(instance: ImageAttribute): void { } + applyFocusedAttribute(instance: ImageAttribute): void { } + applyDisabledAttribute(instance: ImageAttribute): void { } + applySelectedAttribute(instance: ImageAttribute): void { } + _alt_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alt_0_0value?: string | Resource | image.PixelMap | undefined + _matchTextDirection_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _matchTextDirection_0_0value?: boolean | undefined + _fitOriginalSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fitOriginalSize_0_0value?: boolean | undefined + _fillColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fillColor_0_0value?: ResourceColor | ColorContent | ColorMetrics | undefined + _objectFit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _objectFit_0_0value?: ImageFit | undefined + _imageMatrix_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _imageMatrix_0_0value?: matrix4.Matrix4Transit | undefined + _objectRepeat_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _objectRepeat_0_0value?: ImageRepeat | undefined + _autoResize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _autoResize_0_0value?: boolean | undefined + _renderMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _renderMode_0_0value?: ImageRenderMode | undefined + _dynamicRangeMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _dynamicRangeMode_0_0value?: DynamicRangeMode | undefined + _interpolation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _interpolation_0_0value?: ImageInterpolation | undefined + _sourceSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sourceSize_0_0value?: ImageSourceSize | undefined + _syncLoad_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _syncLoad_0_0value?: boolean | undefined + _colorFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _colorFilter_0_0value?: ColorFilter | drawing.ColorFilter | undefined + _copyOption_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _copyOption_0_0value?: CopyOptions | undefined + _draggable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _draggable_0_0value?: boolean | undefined + _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pointLight_0_0value?: PointLightStyle | undefined + _edgeAntialiasing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _edgeAntialiasing_0_0value?: number | undefined + _onComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onComplete_0_0value?: ImageOnCompleteCallback | undefined + _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onError_0_0value?: ImageErrorCallback | undefined + _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFinish_0_0value?: (() => void) | undefined + _enableAnalyzer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableAnalyzer_0_0value?: boolean | undefined + _analyzerConfig_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _analyzerConfig_0_0value?: ImageAnalyzerConfig | undefined + _resizable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _resizable_0_0value?: ResizableOptions | undefined + _privacySensitive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _privacySensitive_0_0value?: boolean | undefined + _enhancedImageQuality_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enhancedImageQuality_0_0value?: image.ResolutionQuality | undefined + _orientation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _orientation_0_0value?: ImageRotateOrientation | undefined + applyModifierPatch(peer: ArkImagePeer): void { + super.applyModifierPatch(peer) + if (this._alt_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alt_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAltAttribute((this._alt_0_0value as string | Resource | image.PixelMap | undefined)); + this._alt_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alt_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alt_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAltAttribute((undefined as string | Resource | image.PixelMap | undefined)); + } + } + } + if (this._matchTextDirection_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._matchTextDirection_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMatchTextDirectionAttribute((this._matchTextDirection_0_0value as boolean | undefined)); + this._matchTextDirection_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._matchTextDirection_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._matchTextDirection_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMatchTextDirectionAttribute((undefined as boolean | undefined)); + } + } + } + if (this._fitOriginalSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fitOriginalSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFitOriginalSizeAttribute((this._fitOriginalSize_0_0value as boolean | undefined)); + this._fitOriginalSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fitOriginalSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fitOriginalSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFitOriginalSizeAttribute((undefined as boolean | undefined)); + } + } + } + if (this._fillColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fillColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFillColorAttribute((this._fillColor_0_0value as ResourceColor | ColorContent | ColorMetrics | undefined)); + this._fillColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fillColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fillColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFillColorAttribute((undefined as ResourceColor | ColorContent | ColorMetrics | undefined)); + } + } + } + if (this._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._objectFit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setObjectFitAttribute((this._objectFit_0_0value as ImageFit | undefined)); + this._objectFit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._objectFit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._objectFit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setObjectFitAttribute((undefined as ImageFit | undefined)); + } + } + } + if (this._imageMatrix_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._imageMatrix_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setImageMatrixAttribute((this._imageMatrix_0_0value as matrix4.Matrix4Transit | undefined)); + this._imageMatrix_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._imageMatrix_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._imageMatrix_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setImageMatrixAttribute((undefined as matrix4.Matrix4Transit | undefined)); + } + } + } + if (this._objectRepeat_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._objectRepeat_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setObjectRepeatAttribute((this._objectRepeat_0_0value as ImageRepeat | undefined)); + this._objectRepeat_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._objectRepeat_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._objectRepeat_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setObjectRepeatAttribute((undefined as ImageRepeat | undefined)); + } + } + } + if (this._autoResize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._autoResize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAutoResizeAttribute((this._autoResize_0_0value as boolean | undefined)); + this._autoResize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._autoResize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._autoResize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAutoResizeAttribute((undefined as boolean | undefined)); + } + } + } + if (this._renderMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._renderMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRenderModeAttribute((this._renderMode_0_0value as ImageRenderMode | undefined)); + this._renderMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._renderMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._renderMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRenderModeAttribute((undefined as ImageRenderMode | undefined)); + } + } + } + if (this._dynamicRangeMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._dynamicRangeMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDynamicRangeModeAttribute((this._dynamicRangeMode_0_0value as DynamicRangeMode | undefined)); + this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDynamicRangeModeAttribute((undefined as DynamicRangeMode | undefined)); + } + } + } + if (this._interpolation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._interpolation_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setInterpolationAttribute((this._interpolation_0_0value as ImageInterpolation | undefined)); + this._interpolation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._interpolation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._interpolation_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setInterpolationAttribute((undefined as ImageInterpolation | undefined)); + } + } + } + if (this._sourceSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sourceSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSourceSizeAttribute((this._sourceSize_0_0value as ImageSourceSize | undefined)); + this._sourceSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sourceSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sourceSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSourceSizeAttribute((undefined as ImageSourceSize | undefined)); + } + } + } + if (this._syncLoad_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._syncLoad_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSyncLoadAttribute((this._syncLoad_0_0value as boolean | undefined)); + this._syncLoad_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._syncLoad_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._syncLoad_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSyncLoadAttribute((undefined as boolean | undefined)); + } + } + } + if (this._colorFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._colorFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorFilterAttribute((this._colorFilter_0_0value as ColorFilter | drawing.ColorFilter | undefined)); + this._colorFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._colorFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._colorFilter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorFilterAttribute((undefined as ColorFilter | drawing.ColorFilter | undefined)); + } + } + } + if (this._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._copyOption_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCopyOptionAttribute((this._copyOption_0_0value as CopyOptions | undefined)); + this._copyOption_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._copyOption_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._copyOption_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCopyOptionAttribute((undefined as CopyOptions | 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._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); + } + } + } + if (this._edgeAntialiasing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._edgeAntialiasing_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEdgeAntialiasingAttribute((this._edgeAntialiasing_0_0value as number | undefined)); + this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEdgeAntialiasingAttribute((undefined as number | undefined)); + } + } + } + if (this._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCompleteAttribute((this._onComplete_0_0value as ImageOnCompleteCallback | undefined)); + this._onComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onComplete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCompleteAttribute((undefined as ImageOnCompleteCallback | undefined)); + } + } + } + if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnErrorAttribute((this._onError_0_0value as ImageErrorCallback | undefined)); + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onError_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnErrorAttribute((undefined as ImageErrorCallback | undefined)); + } + } + } + if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFinishAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableAnalyzer_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableAnalyzerAttribute((this._enableAnalyzer_0_0value as boolean | undefined)); + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableAnalyzerAttribute((undefined as boolean | undefined)); + } + } + } + if (this._analyzerConfig_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._analyzerConfig_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAnalyzerConfigAttribute((this._analyzerConfig_0_0value as ImageAnalyzerConfig | undefined)); + this._analyzerConfig_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._analyzerConfig_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._analyzerConfig_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAnalyzerConfigAttribute((undefined as ImageAnalyzerConfig | undefined)); + } + } + } + if (this._resizable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._resizable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setResizableAttribute((this._resizable_0_0value as ResizableOptions | undefined)); + this._resizable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._resizable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._resizable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setResizableAttribute((undefined as ResizableOptions | undefined)); + } + } + } + if (this._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._privacySensitive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPrivacySensitiveAttribute((this._privacySensitive_0_0value as boolean | undefined)); + this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._privacySensitive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPrivacySensitiveAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enhancedImageQuality_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enhancedImageQuality_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnhancedImageQualityAttribute((this._enhancedImageQuality_0_0value as image.ResolutionQuality | undefined)); + this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnhancedImageQualityAttribute((undefined as image.ResolutionQuality | undefined)); + } + } + } + if (this._orientation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._orientation_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOrientationAttribute((this._orientation_0_0value as ImageRotateOrientation | undefined)); + this._orientation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._orientation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._orientation_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOrientationAttribute((undefined as ImageRotateOrientation | undefined)); + } + } + } + } + mergeModifier(modifier: ImageModifier): void { + super.mergeModifier(modifier) + if (modifier._alt_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alt_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alt(modifier._alt_0_0value); + break; + } + default: { + this.alt((undefined as string | Resource | image.PixelMap | undefined)); + } + } + } + if (modifier._matchTextDirection_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._matchTextDirection_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.matchTextDirection(modifier._matchTextDirection_0_0value); + break; + } + default: { + this.matchTextDirection((undefined as boolean | undefined)); + } + } + } + if (modifier._fitOriginalSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fitOriginalSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fitOriginalSize(modifier._fitOriginalSize_0_0value); + break; + } + default: { + this.fitOriginalSize((undefined as boolean | undefined)); + } + } + } + if (modifier._fillColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fillColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fillColor(modifier._fillColor_0_0value); + break; + } + default: { + this.fillColor((undefined as ResourceColor | ColorContent | ColorMetrics | undefined)); + } + } + } + if (modifier._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._objectFit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.objectFit(modifier._objectFit_0_0value); + break; + } + default: { + this.objectFit((undefined as ImageFit | undefined)); + } + } + } + if (modifier._imageMatrix_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._imageMatrix_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.imageMatrix(modifier._imageMatrix_0_0value); + break; + } + default: { + this.imageMatrix((undefined as matrix4.Matrix4Transit | undefined)); + } + } + } + if (modifier._objectRepeat_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._objectRepeat_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.objectRepeat(modifier._objectRepeat_0_0value); + break; + } + default: { + this.objectRepeat((undefined as ImageRepeat | undefined)); + } + } + } + if (modifier._autoResize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._autoResize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.autoResize(modifier._autoResize_0_0value); + break; + } + default: { + this.autoResize((undefined as boolean | undefined)); + } + } + } + if (modifier._renderMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._renderMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.renderMode(modifier._renderMode_0_0value); + break; + } + default: { + this.renderMode((undefined as ImageRenderMode | undefined)); + } + } + } + if (modifier._dynamicRangeMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._dynamicRangeMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.dynamicRangeMode(modifier._dynamicRangeMode_0_0value); + break; + } + default: { + this.dynamicRangeMode((undefined as DynamicRangeMode | undefined)); + } + } + } + if (modifier._interpolation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._interpolation_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.interpolation(modifier._interpolation_0_0value); + break; + } + default: { + this.interpolation((undefined as ImageInterpolation | undefined)); + } + } + } + if (modifier._sourceSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sourceSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sourceSize(modifier._sourceSize_0_0value); + break; + } + default: { + this.sourceSize((undefined as ImageSourceSize | undefined)); + } + } + } + if (modifier._syncLoad_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._syncLoad_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.syncLoad(modifier._syncLoad_0_0value); + break; + } + default: { + this.syncLoad((undefined as boolean | undefined)); + } + } + } + if (modifier._colorFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._colorFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.colorFilter(modifier._colorFilter_0_0value); + break; + } + default: { + this.colorFilter((undefined as ColorFilter | drawing.ColorFilter | undefined)); + } + } + } + if (modifier._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._copyOption_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.copyOption(modifier._copyOption_0_0value); + break; + } + default: { + this.copyOption((undefined as CopyOptions | 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._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pointLight(modifier._pointLight_0_0value); + break; + } + default: { + this.pointLight((undefined as PointLightStyle | undefined)); + } + } + } + if (modifier._edgeAntialiasing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._edgeAntialiasing_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.edgeAntialiasing(modifier._edgeAntialiasing_0_0value); + break; + } + default: { + this.edgeAntialiasing((undefined as number | undefined)); + } + } + } + if (modifier._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onComplete(modifier._onComplete_0_0value); + break; + } + default: { + this.onComplete((undefined as ImageOnCompleteCallback | undefined)); + } + } + } + if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onError(modifier._onError_0_0value); + break; + } + default: { + this.onError((undefined as ImageErrorCallback | undefined)); + } + } + } + if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFinish(modifier._onFinish_0_0value); + break; + } + default: { + this.onFinish((undefined as (() => void) | undefined)); + } + } + } + if (modifier._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableAnalyzer_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableAnalyzer(modifier._enableAnalyzer_0_0value); + break; + } + default: { + this.enableAnalyzer((undefined as boolean | undefined)); + } + } + } + if (modifier._analyzerConfig_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._analyzerConfig_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.analyzerConfig(modifier._analyzerConfig_0_0value); + break; + } + default: { + this.analyzerConfig((undefined as ImageAnalyzerConfig | undefined)); + } + } + } + if (modifier._resizable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._resizable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.resizable(modifier._resizable_0_0value); + break; + } + default: { + this.resizable((undefined as ResizableOptions | undefined)); + } + } + } + if (modifier._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._privacySensitive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.privacySensitive(modifier._privacySensitive_0_0value); + break; + } + default: { + this.privacySensitive((undefined as boolean | undefined)); + } + } + } + if (modifier._enhancedImageQuality_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enhancedImageQuality_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enhancedImageQuality(modifier._enhancedImageQuality_0_0value); + break; + } + default: { + this.enhancedImageQuality((undefined as image.ResolutionQuality | undefined)); + } + } + } + if (modifier._orientation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._orientation_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.orientation(modifier._orientation_0_0value); + break; + } + default: { + this.orientation((undefined as ImageRotateOrientation | undefined)); + } + } + } + } + alt(value: string | Resource | image.PixelMap | undefined): this { + if (((this._alt_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alt_0_flag = AttributeUpdaterFlag.UPDATE + this._alt_0_0value = value + } else + { + this._alt_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + matchTextDirection(value: boolean | undefined): this { + if (((this._matchTextDirection_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._matchTextDirection_0_0value) !== (value))) + { + this._matchTextDirection_0_flag = AttributeUpdaterFlag.UPDATE + this._matchTextDirection_0_0value = value + } else + { + this._matchTextDirection_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fitOriginalSize(value: boolean | undefined): this { + if (((this._fitOriginalSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fitOriginalSize_0_0value) !== (value))) + { + this._fitOriginalSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fitOriginalSize_0_0value = value + } else + { + this._fitOriginalSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fillColor(value: ResourceColor | ColorContent | ColorMetrics | undefined): this { + if (((this._fillColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fillColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fillColor_0_0value = value + } else + { + this._fillColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + objectFit(value: ImageFit | undefined): this { + if (((this._objectFit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._objectFit_0_flag = AttributeUpdaterFlag.UPDATE + this._objectFit_0_0value = value + } else + { + this._objectFit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + imageMatrix(value: matrix4.Matrix4Transit | undefined): this { + if (((this._imageMatrix_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._imageMatrix_0_flag = AttributeUpdaterFlag.UPDATE + this._imageMatrix_0_0value = value + } else + { + this._imageMatrix_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + objectRepeat(value: ImageRepeat | undefined): this { + if (((this._objectRepeat_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._objectRepeat_0_flag = AttributeUpdaterFlag.UPDATE + this._objectRepeat_0_0value = value + } else + { + this._objectRepeat_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + autoResize(value: boolean | undefined): this { + if (((this._autoResize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoResize_0_0value) !== (value))) + { + this._autoResize_0_flag = AttributeUpdaterFlag.UPDATE + this._autoResize_0_0value = value + } else + { + this._autoResize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + renderMode(value: ImageRenderMode | undefined): this { + if (((this._renderMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._renderMode_0_flag = AttributeUpdaterFlag.UPDATE + this._renderMode_0_0value = value + } else + { + this._renderMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + dynamicRangeMode(value: DynamicRangeMode | undefined): this { + if (((this._dynamicRangeMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.UPDATE + this._dynamicRangeMode_0_0value = value + } else + { + this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + interpolation(value: ImageInterpolation | undefined): this { + if (((this._interpolation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._interpolation_0_flag = AttributeUpdaterFlag.UPDATE + this._interpolation_0_0value = value + } else + { + this._interpolation_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sourceSize(value: ImageSourceSize | undefined): this { + if (((this._sourceSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._sourceSize_0_flag = AttributeUpdaterFlag.UPDATE + this._sourceSize_0_0value = value + } else + { + this._sourceSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + syncLoad(value: boolean | undefined): this { + if (((this._syncLoad_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._syncLoad_0_0value) !== (value))) + { + this._syncLoad_0_flag = AttributeUpdaterFlag.UPDATE + this._syncLoad_0_0value = value + } else + { + this._syncLoad_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + colorFilter(value: ColorFilter | drawing.ColorFilter | undefined): this { + if (((this._colorFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._colorFilter_0_flag = AttributeUpdaterFlag.UPDATE + this._colorFilter_0_0value = value + } else + { + this._colorFilter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + copyOption(value: CopyOptions | undefined): this { + if (((this._copyOption_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._copyOption_0_flag = AttributeUpdaterFlag.UPDATE + this._copyOption_0_0value = value + } else + { + this._copyOption_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 + } + pointLight(value: PointLightStyle | undefined): this { + if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE + this._pointLight_0_0value = value + } else + { + this._pointLight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + edgeAntialiasing(value: number | undefined): this { + if (((this._edgeAntialiasing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._edgeAntialiasing_0_0value) !== (value))) + { + this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.UPDATE + this._edgeAntialiasing_0_0value = value + } else + { + this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onComplete(value: ImageOnCompleteCallback | undefined): this { + if (((this._onComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onComplete_0_flag = AttributeUpdaterFlag.UPDATE + this._onComplete_0_0value = value + } else + { + this._onComplete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onError(value: ImageErrorCallback | undefined): this { + if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onError_0_flag = AttributeUpdaterFlag.UPDATE + this._onError_0_0value = value + } else + { + this._onError_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFinish(value: (() => void) | undefined): this { + if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE + this._onFinish_0_0value = value + } else + { + this._onFinish_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableAnalyzer(value: boolean | undefined): this { + if (((this._enableAnalyzer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnalyzer_0_0value) !== (value))) + { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.UPDATE + this._enableAnalyzer_0_0value = value + } else + { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + analyzerConfig(value: ImageAnalyzerConfig | undefined): this { + if (((this._analyzerConfig_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._analyzerConfig_0_flag = AttributeUpdaterFlag.UPDATE + this._analyzerConfig_0_0value = value + } else + { + this._analyzerConfig_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + resizable(value: ResizableOptions | undefined): this { + if (((this._resizable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._resizable_0_flag = AttributeUpdaterFlag.UPDATE + this._resizable_0_0value = value + } else + { + this._resizable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + privacySensitive(value: boolean | undefined): this { + if (((this._privacySensitive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._privacySensitive_0_0value) !== (value))) + { + this._privacySensitive_0_flag = AttributeUpdaterFlag.UPDATE + this._privacySensitive_0_0value = value + } else + { + this._privacySensitive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enhancedImageQuality(value: image.ResolutionQuality | undefined): this { + if (((this._enhancedImageQuality_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.UPDATE + this._enhancedImageQuality_0_0value = value + } else + { + this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + orientation(value: ImageRotateOrientation | undefined): this { + if (((this._orientation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._orientation_0_flag = AttributeUpdaterFlag.UPDATE + this._orientation_0_0value = value + } else + { + this._orientation_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ImageSpanModifier.ets b/arkoala-arkts/arkui/generated/ImageSpanModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..33f0278b765b235c37cb2a223834893643f9a018 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ImageSpanModifier.ets @@ -0,0 +1,315 @@ +/* + * 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 { BaseSpanModifier } from "./BaseSpanModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkImageSpanPeer, ImageCompleteCallback, ImageLoadResult, ImageSpanAttribute } from "./component/imageSpan" +import { BaseSpan } from "./component/span" +import { ImageSpanAlignment, ImageFit } from "./component/enums" +import { ColorFilter } from "./component/units" +import { drawing } from "./framework/ohos.graphics.drawing" +import { ImageErrorCallback, ImageError } from "./component/image" +import { image } from "./framework/ohos.multimedia.image" +import { CommonMethod } from "./component/common" +export class ImageSpanModifier extends BaseSpanModifier implements ImageSpanAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ImageSpanAttribute): void { } + applyPressedAttribute(instance: ImageSpanAttribute): void { } + applyFocusedAttribute(instance: ImageSpanAttribute): void { } + applyDisabledAttribute(instance: ImageSpanAttribute): void { } + applySelectedAttribute(instance: ImageSpanAttribute): void { } + _verticalAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _verticalAlign_0_0value?: ImageSpanAlignment | undefined + _colorFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _colorFilter_0_0value?: ColorFilter | drawing.ColorFilter | undefined + _objectFit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _objectFit_0_0value?: ImageFit | undefined + _onComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onComplete_0_0value?: ImageCompleteCallback | undefined + _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onError_0_0value?: ImageErrorCallback | undefined + _alt_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alt_0_0value?: image.PixelMap | undefined + applyModifierPatch(peer: ArkImageSpanPeer): void { + super.applyModifierPatch(peer) + if (this._verticalAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._verticalAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setVerticalAlignAttribute((this._verticalAlign_0_0value as ImageSpanAlignment | undefined)); + this._verticalAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._verticalAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._verticalAlign_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setVerticalAlignAttribute((undefined as ImageSpanAlignment | undefined)); + } + } + } + if (this._colorFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._colorFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorFilterAttribute((this._colorFilter_0_0value as ColorFilter | drawing.ColorFilter | undefined)); + this._colorFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._colorFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._colorFilter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorFilterAttribute((undefined as ColorFilter | drawing.ColorFilter | undefined)); + } + } + } + if (this._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._objectFit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setObjectFitAttribute((this._objectFit_0_0value as ImageFit | undefined)); + this._objectFit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._objectFit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._objectFit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setObjectFitAttribute((undefined as ImageFit | undefined)); + } + } + } + if (this._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCompleteAttribute((this._onComplete_0_0value as ImageCompleteCallback | undefined)); + this._onComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onComplete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCompleteAttribute((undefined as ImageCompleteCallback | undefined)); + } + } + } + if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnErrorAttribute((this._onError_0_0value as ImageErrorCallback | undefined)); + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onError_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnErrorAttribute((undefined as ImageErrorCallback | undefined)); + } + } + } + if (this._alt_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alt_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAltAttribute((this._alt_0_0value as image.PixelMap | undefined)); + this._alt_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alt_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alt_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAltAttribute((undefined as image.PixelMap | undefined)); + } + } + } + } + mergeModifier(modifier: ImageSpanModifier): void { + super.mergeModifier(modifier) + if (modifier._verticalAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._verticalAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.verticalAlign(modifier._verticalAlign_0_0value); + break; + } + default: { + this.verticalAlign((undefined as ImageSpanAlignment | undefined)); + } + } + } + if (modifier._colorFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._colorFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.colorFilter(modifier._colorFilter_0_0value); + break; + } + default: { + this.colorFilter((undefined as ColorFilter | drawing.ColorFilter | undefined)); + } + } + } + if (modifier._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._objectFit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.objectFit(modifier._objectFit_0_0value); + break; + } + default: { + this.objectFit((undefined as ImageFit | undefined)); + } + } + } + if (modifier._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onComplete(modifier._onComplete_0_0value); + break; + } + default: { + this.onComplete((undefined as ImageCompleteCallback | undefined)); + } + } + } + if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onError(modifier._onError_0_0value); + break; + } + default: { + this.onError((undefined as ImageErrorCallback | undefined)); + } + } + } + if (modifier._alt_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alt_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alt(modifier._alt_0_0value); + break; + } + default: { + this.alt((undefined as image.PixelMap | undefined)); + } + } + } + } + verticalAlign(value: ImageSpanAlignment | undefined): this { + if (((this._verticalAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._verticalAlign_0_flag = AttributeUpdaterFlag.UPDATE + this._verticalAlign_0_0value = value + } else + { + this._verticalAlign_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + colorFilter(value: ColorFilter | drawing.ColorFilter | undefined): this { + if (((this._colorFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._colorFilter_0_flag = AttributeUpdaterFlag.UPDATE + this._colorFilter_0_0value = value + } else + { + this._colorFilter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + objectFit(value: ImageFit | undefined): this { + if (((this._objectFit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._objectFit_0_flag = AttributeUpdaterFlag.UPDATE + this._objectFit_0_0value = value + } else + { + this._objectFit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onComplete(value: ImageCompleteCallback | undefined): this { + if (((this._onComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onComplete_0_flag = AttributeUpdaterFlag.UPDATE + this._onComplete_0_0value = value + } else + { + this._onComplete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onError(value: ImageErrorCallback | undefined): this { + if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onError_0_flag = AttributeUpdaterFlag.UPDATE + this._onError_0_0value = value + } else + { + this._onError_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + alt(value: image.PixelMap | undefined): this { + if (((this._alt_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alt_0_flag = AttributeUpdaterFlag.UPDATE + this._alt_0_0value = value + } else + { + this._alt_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/IndicatorComponentModifier.ets b/arkoala-arkts/arkui/generated/IndicatorComponentModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..7fa183464ee05a643eecd5c5e0b38b4e573f689b --- /dev/null +++ b/arkoala-arkts/arkui/generated/IndicatorComponentModifier.ets @@ -0,0 +1,309 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkIndicatorComponentPeer, IndicatorComponentAttribute } from "./component/indicatorcomponent" +import { CommonMethod } from "./component/common" +import { DotIndicator, DigitIndicator } from "./component/swiper" +export class IndicatorComponentModifier extends CommonMethodModifier implements IndicatorComponentAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: IndicatorComponentAttribute): void { } + applyPressedAttribute(instance: IndicatorComponentAttribute): void { } + applyFocusedAttribute(instance: IndicatorComponentAttribute): void { } + applyDisabledAttribute(instance: IndicatorComponentAttribute): void { } + applySelectedAttribute(instance: IndicatorComponentAttribute): void { } + _initialIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _initialIndex_0_0value?: number | undefined + _count_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _count_0_0value?: number | undefined + _style_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _style_0_0value?: DotIndicator | DigitIndicator | undefined + _loop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _loop_0_0value?: boolean | undefined + _vertical_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _vertical_0_0value?: boolean | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: ((value0: number) => void) | undefined + applyModifierPatch(peer: ArkIndicatorComponentPeer): void { + super.applyModifierPatch(peer) + if (this._initialIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._initialIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setInitialIndexAttribute((this._initialIndex_0_0value as number | undefined)); + this._initialIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._initialIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._initialIndex_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setInitialIndexAttribute((undefined as number | undefined)); + } + } + } + if (this._count_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._count_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCountAttribute((this._count_0_0value as number | undefined)); + this._count_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._count_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._count_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCountAttribute((undefined as number | undefined)); + } + } + } + if (this._style_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._style_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStyleAttribute((this._style_0_0value as DotIndicator | DigitIndicator | undefined)); + this._style_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._style_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._style_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStyleAttribute((undefined as DotIndicator | DigitIndicator | undefined)); + } + } + } + if (this._loop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._loop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLoopAttribute((this._loop_0_0value as boolean | undefined)); + this._loop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._loop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._loop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLoopAttribute((undefined as boolean | undefined)); + } + } + } + if (this._vertical_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._vertical_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setVerticalAttribute((this._vertical_0_0value as boolean | undefined)); + this._vertical_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._vertical_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._vertical_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setVerticalAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: number) => void) | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + } + mergeModifier(modifier: IndicatorComponentModifier): void { + super.mergeModifier(modifier) + if (modifier._initialIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._initialIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.initialIndex(modifier._initialIndex_0_0value); + break; + } + default: { + this.initialIndex((undefined as number | undefined)); + } + } + } + if (modifier._count_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._count_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.count(modifier._count_0_0value); + break; + } + default: { + this.count((undefined as number | undefined)); + } + } + } + if (modifier._style_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._style_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.style(modifier._style_0_0value); + break; + } + default: { + this.style((undefined as DotIndicator | DigitIndicator | undefined)); + } + } + } + if (modifier._loop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._loop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.loop(modifier._loop_0_0value); + break; + } + default: { + this.loop((undefined as boolean | undefined)); + } + } + } + if (modifier._vertical_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._vertical_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.vertical(modifier._vertical_0_0value); + break; + } + default: { + this.vertical((undefined as boolean | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as ((value0: number) => void) | undefined)); + } + } + } + } + initialIndex(value: number | undefined): this { + if (((this._initialIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._initialIndex_0_0value) !== (value))) + { + this._initialIndex_0_flag = AttributeUpdaterFlag.UPDATE + this._initialIndex_0_0value = value + } else + { + this._initialIndex_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + count(value: number | undefined): this { + if (((this._count_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._count_0_0value) !== (value))) + { + this._count_0_flag = AttributeUpdaterFlag.UPDATE + this._count_0_0value = value + } else + { + this._count_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + style(value: DotIndicator | DigitIndicator | undefined): this { + if (((this._style_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._style_0_flag = AttributeUpdaterFlag.UPDATE + this._style_0_0value = value + } else + { + this._style_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + loop(value: boolean | undefined): this { + if (((this._loop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._loop_0_0value) !== (value))) + { + this._loop_0_flag = AttributeUpdaterFlag.UPDATE + this._loop_0_0value = value + } else + { + this._loop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + vertical(value: boolean | undefined): this { + if (((this._vertical_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._vertical_0_0value) !== (value))) + { + this._vertical_0_flag = AttributeUpdaterFlag.UPDATE + this._vertical_0_0value = value + } else + { + this._vertical_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: ((value0: number) => void) | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/LineModifier.ets b/arkoala-arkts/arkui/generated/LineModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..45497188636431c66afd254965019fe0331b4ab9 --- /dev/null +++ b/arkoala-arkts/arkui/generated/LineModifier.ets @@ -0,0 +1,135 @@ +/* + * 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 { CommonShapeMethodModifier } from "./CommonShapeMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkLinePeer, ShapePoint, LineAttribute } from "./component/line" +import { CommonShapeMethod, CommonMethod } from "./component/common" +import { Length } from "./component/units" +import { Resource } from "global.resource" +export class LineModifier extends CommonShapeMethodModifier implements LineAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: LineAttribute): void { } + applyPressedAttribute(instance: LineAttribute): void { } + applyFocusedAttribute(instance: LineAttribute): void { } + applyDisabledAttribute(instance: LineAttribute): void { } + applySelectedAttribute(instance: LineAttribute): void { } + _startPoint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _startPoint_0_0value?: ShapePoint | undefined + _endPoint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _endPoint_0_0value?: ShapePoint | undefined + applyModifierPatch(peer: ArkLinePeer): void { + super.applyModifierPatch(peer) + if (this._startPoint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._startPoint_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStartPointAttribute((this._startPoint_0_0value as ShapePoint | undefined)); + this._startPoint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._startPoint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._startPoint_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStartPointAttribute((undefined as ShapePoint | undefined)); + } + } + } + if (this._endPoint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._endPoint_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEndPointAttribute((this._endPoint_0_0value as ShapePoint | undefined)); + this._endPoint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._endPoint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._endPoint_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEndPointAttribute((undefined as ShapePoint | undefined)); + } + } + } + } + mergeModifier(modifier: LineModifier): void { + super.mergeModifier(modifier) + if (modifier._startPoint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._startPoint_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.startPoint(modifier._startPoint_0_0value); + break; + } + default: { + this.startPoint((undefined as ShapePoint | undefined)); + } + } + } + if (modifier._endPoint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._endPoint_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.endPoint(modifier._endPoint_0_0value); + break; + } + default: { + this.endPoint((undefined as ShapePoint | undefined)); + } + } + } + } + startPoint(value: ShapePoint | undefined): this { + if (((this._startPoint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._startPoint_0_flag = AttributeUpdaterFlag.UPDATE + this._startPoint_0_0value = value + } else + { + this._startPoint_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + endPoint(value: ShapePoint | undefined): this { + if (((this._endPoint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._endPoint_0_flag = AttributeUpdaterFlag.UPDATE + this._endPoint_0_0value = value + } else + { + this._endPoint_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/LinearIndicatorModifier.ets b/arkoala-arkts/arkui/generated/LinearIndicatorModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..c55eb27e2e49017a7a6dbb2f3b702be0d8cf4373 --- /dev/null +++ b/arkoala-arkts/arkui/generated/LinearIndicatorModifier.ets @@ -0,0 +1,176 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkLinearIndicatorPeer, LinearIndicatorStyle, OnLinearIndicatorChangeCallback, LinearIndicatorAttribute } from "./component/linearindicator" +import { CommonMethod } from "./component/common" +export class LinearIndicatorModifier extends CommonMethodModifier implements LinearIndicatorAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: LinearIndicatorAttribute): void { } + applyPressedAttribute(instance: LinearIndicatorAttribute): void { } + applyFocusedAttribute(instance: LinearIndicatorAttribute): void { } + applyDisabledAttribute(instance: LinearIndicatorAttribute): void { } + applySelectedAttribute(instance: LinearIndicatorAttribute): void { } + _indicatorStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _indicatorStyle_0_0value?: LinearIndicatorStyle | undefined + _indicatorLoop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _indicatorLoop_0_0value?: boolean | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: OnLinearIndicatorChangeCallback | undefined + applyModifierPatch(peer: ArkLinearIndicatorPeer): void { + super.applyModifierPatch(peer) + if (this._indicatorStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._indicatorStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIndicatorStyleAttribute((this._indicatorStyle_0_0value as LinearIndicatorStyle | undefined)); + this._indicatorStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._indicatorStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._indicatorStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIndicatorStyleAttribute((undefined as LinearIndicatorStyle | undefined)); + } + } + } + if (this._indicatorLoop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._indicatorLoop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIndicatorLoopAttribute((this._indicatorLoop_0_0value as boolean | undefined)); + this._indicatorLoop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._indicatorLoop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._indicatorLoop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIndicatorLoopAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as OnLinearIndicatorChangeCallback | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as OnLinearIndicatorChangeCallback | undefined)); + } + } + } + } + mergeModifier(modifier: LinearIndicatorModifier): void { + super.mergeModifier(modifier) + if (modifier._indicatorStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._indicatorStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.indicatorStyle(modifier._indicatorStyle_0_0value); + break; + } + default: { + this.indicatorStyle((undefined as LinearIndicatorStyle | undefined)); + } + } + } + if (modifier._indicatorLoop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._indicatorLoop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.indicatorLoop(modifier._indicatorLoop_0_0value); + break; + } + default: { + this.indicatorLoop((undefined as boolean | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as OnLinearIndicatorChangeCallback | undefined)); + } + } + } + } + indicatorStyle(value: LinearIndicatorStyle | undefined): this { + if (((this._indicatorStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._indicatorStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._indicatorStyle_0_0value = value + } else + { + this._indicatorStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + indicatorLoop(value: boolean | undefined): this { + if (((this._indicatorLoop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._indicatorLoop_0_0value) !== (value))) + { + this._indicatorLoop_0_flag = AttributeUpdaterFlag.UPDATE + this._indicatorLoop_0_0value = value + } else + { + this._indicatorLoop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: OnLinearIndicatorChangeCallback | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ListItemGroupModifier.ets b/arkoala-arkts/arkui/generated/ListItemGroupModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..bd79c13c93ac6d2919cba950f31bf09ec641d640 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ListItemGroupModifier.ets @@ -0,0 +1,133 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkListItemGroupPeer, ListItemGroupAttribute } from "./component/listItemGroup" +import { CommonMethod, ChildrenMainSize } from "./component/common" +import { ListDividerOptions } from "./component/list" +export class ListItemGroupModifier extends CommonMethodModifier implements ListItemGroupAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ListItemGroupAttribute): void { } + applyPressedAttribute(instance: ListItemGroupAttribute): void { } + applyFocusedAttribute(instance: ListItemGroupAttribute): void { } + applyDisabledAttribute(instance: ListItemGroupAttribute): void { } + applySelectedAttribute(instance: ListItemGroupAttribute): void { } + _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _divider_0_0value?: ListDividerOptions | undefined + _childrenMainSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _childrenMainSize_0_0value?: ChildrenMainSize | undefined + applyModifierPatch(peer: ArkListItemGroupPeer): void { + super.applyModifierPatch(peer) + if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDividerAttribute((this._divider_0_0value as ListDividerOptions | undefined)); + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._divider_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDividerAttribute((undefined as ListDividerOptions | undefined)); + } + } + } + if (this._childrenMainSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._childrenMainSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setChildrenMainSizeAttribute((this._childrenMainSize_0_0value as ChildrenMainSize | undefined)); + this._childrenMainSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._childrenMainSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._childrenMainSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setChildrenMainSizeAttribute((undefined as ChildrenMainSize | undefined)); + } + } + } + } + mergeModifier(modifier: ListItemGroupModifier): void { + super.mergeModifier(modifier) + if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.divider(modifier._divider_0_0value); + break; + } + default: { + this.divider((undefined as ListDividerOptions | undefined)); + } + } + } + if (modifier._childrenMainSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._childrenMainSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.childrenMainSize(modifier._childrenMainSize_0_0value); + break; + } + default: { + this.childrenMainSize((undefined as ChildrenMainSize | undefined)); + } + } + } + } + divider(value: ListDividerOptions | undefined): this { + if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._divider_0_flag = AttributeUpdaterFlag.UPDATE + this._divider_0_0value = value + } else + { + this._divider_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + childrenMainSize(value: ChildrenMainSize | undefined): this { + if (((this._childrenMainSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._childrenMainSize_0_flag = AttributeUpdaterFlag.UPDATE + this._childrenMainSize_0_0value = value + } else + { + this._childrenMainSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ListItemModifier.ets b/arkoala-arkts/arkui/generated/ListItemModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..fb5fcffdeff772c5a190c114a0aca758d910171b --- /dev/null +++ b/arkoala-arkts/arkui/generated/ListItemModifier.ets @@ -0,0 +1,220 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkListItemPeer, SwipeActionOptions, ListItemAttribute } from "./component/listItem" +import { CommonMethod, Bindable } from "./component/common" +export class ListItemModifier extends CommonMethodModifier implements ListItemAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ListItemAttribute): void { } + applyPressedAttribute(instance: ListItemAttribute): void { } + applyFocusedAttribute(instance: ListItemAttribute): void { } + applyDisabledAttribute(instance: ListItemAttribute): void { } + applySelectedAttribute(instance: ListItemAttribute): void { } + _selectable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectable_0_0value?: boolean | undefined + _selected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selected_0_0value?: boolean | Bindable | undefined + _swipeAction_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _swipeAction_0_0value?: SwipeActionOptions | undefined + _onSelect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSelect_0_0value?: ((isSelected: boolean) => void) | undefined + applyModifierPatch(peer: ArkListItemPeer): void { + super.applyModifierPatch(peer) + if (this._selectable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectableAttribute((this._selectable_0_0value as boolean | undefined)); + this._selectable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._selected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedAttribute((this._selected_0_0value as boolean | Bindable | undefined)); + this._selected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedAttribute((undefined as boolean | Bindable | undefined)); + } + } + } + if (this._swipeAction_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._swipeAction_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSwipeActionAttribute((this._swipeAction_0_0value as SwipeActionOptions | undefined)); + this._swipeAction_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._swipeAction_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._swipeAction_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSwipeActionAttribute((undefined as SwipeActionOptions | undefined)); + } + } + } + if (this._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSelect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSelectAttribute((this._onSelect_0_0value as ((isSelected: boolean) => void) | undefined)); + this._onSelect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSelect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSelect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSelectAttribute((undefined as ((isSelected: boolean) => void) | undefined)); + } + } + } + } + mergeModifier(modifier: ListItemModifier): void { + super.mergeModifier(modifier) + if (modifier._selectable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectable(modifier._selectable_0_0value); + break; + } + default: { + this.selectable((undefined as boolean | undefined)); + } + } + } + if (modifier._selected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selected(modifier._selected_0_0value); + break; + } + default: { + this.selected((undefined as boolean | Bindable | undefined)); + } + } + } + if (modifier._swipeAction_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._swipeAction_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.swipeAction(modifier._swipeAction_0_0value); + break; + } + default: { + this.swipeAction((undefined as SwipeActionOptions | undefined)); + } + } + } + if (modifier._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSelect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSelect(modifier._onSelect_0_0value); + break; + } + default: { + this.onSelect((undefined as ((isSelected: boolean) => void) | undefined)); + } + } + } + } + selectable(value: boolean | undefined): this { + if (((this._selectable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectable_0_0value) !== (value))) + { + this._selectable_0_flag = AttributeUpdaterFlag.UPDATE + this._selectable_0_0value = value + } else + { + this._selectable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selected(value: boolean | Bindable | undefined): this { + if (((this._selected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selected_0_flag = AttributeUpdaterFlag.UPDATE + this._selected_0_0value = value + } else + { + this._selected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + swipeAction(value: SwipeActionOptions | undefined): this { + if (((this._swipeAction_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._swipeAction_0_flag = AttributeUpdaterFlag.UPDATE + this._swipeAction_0_0value = value + } else + { + this._swipeAction_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSelect(value: ((isSelected: boolean) => void) | undefined): this { + if (((this._onSelect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSelect_0_flag = AttributeUpdaterFlag.UPDATE + this._onSelect_0_0value = value + } else + { + this._onSelect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ListModifier.ets b/arkoala-arkts/arkui/generated/ListModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..b285a7a33b5e4e5eb53a931efa1cfecbfd7dd933 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ListModifier.ets @@ -0,0 +1,1241 @@ +/* + * 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 { ScrollableCommonMethodModifier } from "./ScrollableCommonMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkListPeer, ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ScrollState, ListAttribute } from "./component/list" +import { ScrollableCommonMethod, ChildrenMainSize, OnItemDragStartCallback, ItemDragInfo, OnWillScrollCallback, OnScrollCallback, CommonMethod } from "./component/common" +import { Axis, ScrollSource } from "./component/enums" +import { OnScrollFrameBeginCallback } from "./component/scroll" +import { LengthConstrain, Dimension } from "./component/units" +import { Resource } from "global.resource" +export class ListModifier extends ScrollableCommonMethodModifier implements ListAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ListAttribute): void { } + applyPressedAttribute(instance: ListAttribute): void { } + applyFocusedAttribute(instance: ListAttribute): void { } + applyDisabledAttribute(instance: ListAttribute): void { } + applySelectedAttribute(instance: ListAttribute): void { } + _alignListItem_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alignListItem_0_0value?: ListItemAlign | undefined + _listDirection_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _listDirection_0_0value?: Axis | undefined + _contentStartOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _contentStartOffset_0_0value?: number | undefined + _contentEndOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _contentEndOffset_0_0value?: number | undefined + _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _divider_0_0value?: ListDividerOptions | undefined + _multiSelectable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _multiSelectable_0_0value?: boolean | undefined + _cachedCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cachedCount_0_0value?: number | undefined + _chainAnimation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _chainAnimation_0_0value?: boolean | undefined + _chainAnimationOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _chainAnimationOptions_0_0value?: ChainAnimationOptions | undefined + _sticky_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sticky_0_0value?: StickyStyle | undefined + _scrollSnapAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _scrollSnapAlign_0_0value?: ScrollSnapAlign | undefined + _childrenMainSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _childrenMainSize_0_0value?: ChildrenMainSize | undefined + _maintainVisibleContentPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maintainVisibleContentPosition_0_0value?: boolean | undefined + _stackFromEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stackFromEnd_0_0value?: boolean | undefined + _onScrollIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollIndex_0_0value?: ((start: number,end: number,center: number) => void) | undefined + _onScrollVisibleContentChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollVisibleContentChange_0_0value?: OnScrollVisibleContentChangeCallback | undefined + _onItemMove_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onItemMove_0_0value?: ((from: number,to: number) => boolean) | undefined + _onItemDragStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onItemDragStart_0_0value?: OnItemDragStartCallback | undefined + _onItemDragEnter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onItemDragEnter_0_0value?: ((event: ItemDragInfo) => void) | undefined + _onItemDragMove_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onItemDragMove_0_0value?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined + _onItemDragLeave_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onItemDragLeave_0_0value?: ((event: ItemDragInfo,itemIndex: number) => void) | undefined + _onItemDrop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onItemDrop_0_0value?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined + _onScrollFrameBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollFrameBegin_0_0value?: OnScrollFrameBeginCallback | undefined + _onWillScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillScroll_0_0value?: OnWillScrollCallback | undefined + _onDidScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDidScroll_0_0value?: OnScrollCallback | undefined + _lanes_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _lanes_0_0value?: number | LengthConstrain | undefined + _lanes_0_1value?: Dimension | undefined + _cachedCount_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cachedCount_1_0value?: number | undefined + _cachedCount_1_1value?: boolean | undefined + applyModifierPatch(peer: ArkListPeer): void { + super.applyModifierPatch(peer) + if (this._alignListItem_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alignListItem_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignListItemAttribute((this._alignListItem_0_0value as ListItemAlign | undefined)); + this._alignListItem_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alignListItem_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alignListItem_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignListItemAttribute((undefined as ListItemAlign | undefined)); + } + } + } + if (this._listDirection_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._listDirection_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setListDirectionAttribute((this._listDirection_0_0value as Axis | undefined)); + this._listDirection_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._listDirection_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._listDirection_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setListDirectionAttribute((undefined as Axis | undefined)); + } + } + } + if (this._contentStartOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._contentStartOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setContentStartOffsetAttribute((this._contentStartOffset_0_0value as number | undefined)); + this._contentStartOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._contentStartOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._contentStartOffset_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setContentStartOffsetAttribute((undefined as number | undefined)); + } + } + } + if (this._contentEndOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._contentEndOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setContentEndOffsetAttribute((this._contentEndOffset_0_0value as number | undefined)); + this._contentEndOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._contentEndOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._contentEndOffset_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setContentEndOffsetAttribute((undefined as number | undefined)); + } + } + } + if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDividerAttribute((this._divider_0_0value as ListDividerOptions | undefined)); + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._divider_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDividerAttribute((undefined as ListDividerOptions | undefined)); + } + } + } + if (this._multiSelectable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._multiSelectable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMultiSelectableAttribute((this._multiSelectable_0_0value as boolean | undefined)); + this._multiSelectable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._multiSelectable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._multiSelectable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMultiSelectableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cachedCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCachedCount0Attribute((this._cachedCount_0_0value as number | undefined)); + this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cachedCount_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCachedCount0Attribute((undefined as number | undefined)); + } + } + } + if (this._chainAnimation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._chainAnimation_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setChainAnimationAttribute((this._chainAnimation_0_0value as boolean | undefined)); + this._chainAnimation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._chainAnimation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._chainAnimation_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setChainAnimationAttribute((undefined as boolean | undefined)); + } + } + } + if (this._chainAnimationOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._chainAnimationOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setChainAnimationOptionsAttribute((this._chainAnimationOptions_0_0value as ChainAnimationOptions | undefined)); + this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setChainAnimationOptionsAttribute((undefined as ChainAnimationOptions | undefined)); + } + } + } + if (this._sticky_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sticky_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStickyAttribute((this._sticky_0_0value as StickyStyle | undefined)); + this._sticky_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sticky_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sticky_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStickyAttribute((undefined as StickyStyle | undefined)); + } + } + } + if (this._scrollSnapAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._scrollSnapAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setScrollSnapAlignAttribute((this._scrollSnapAlign_0_0value as ScrollSnapAlign | undefined)); + this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setScrollSnapAlignAttribute((undefined as ScrollSnapAlign | undefined)); + } + } + } + if (this._childrenMainSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._childrenMainSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setChildrenMainSizeAttribute((this._childrenMainSize_0_0value as ChildrenMainSize | undefined)); + this._childrenMainSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._childrenMainSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._childrenMainSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setChildrenMainSizeAttribute((undefined as ChildrenMainSize | undefined)); + } + } + } + if (this._maintainVisibleContentPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maintainVisibleContentPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaintainVisibleContentPositionAttribute((this._maintainVisibleContentPosition_0_0value as boolean | undefined)); + this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaintainVisibleContentPositionAttribute((undefined as boolean | undefined)); + } + } + } + if (this._stackFromEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stackFromEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStackFromEndAttribute((this._stackFromEnd_0_0value as boolean | undefined)); + this._stackFromEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stackFromEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stackFromEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStackFromEndAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onScrollIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollIndexAttribute((this._onScrollIndex_0_0value as ((start: number,end: number,center: number) => void) | undefined)); + this._onScrollIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScrollIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScrollIndex_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollIndexAttribute((undefined as ((start: number,end: number,center: number) => void) | undefined)); + } + } + } + if (this._onScrollVisibleContentChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollVisibleContentChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollVisibleContentChangeAttribute((this._onScrollVisibleContentChange_0_0value as OnScrollVisibleContentChangeCallback | undefined)); + this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollVisibleContentChangeAttribute((undefined as OnScrollVisibleContentChangeCallback | undefined)); + } + } + } + if (this._onItemMove_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onItemMove_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnItemMoveAttribute((this._onItemMove_0_0value as ((from: number,to: number) => boolean) | undefined)); + this._onItemMove_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onItemMove_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onItemMove_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnItemMoveAttribute((undefined as ((from: number,to: number) => boolean) | undefined)); + } + } + } + if (this._onItemDragStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onItemDragStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnItemDragStartAttribute((this._onItemDragStart_0_0value as OnItemDragStartCallback | undefined)); + this._onItemDragStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onItemDragStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onItemDragStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnItemDragStartAttribute((undefined as OnItemDragStartCallback | undefined)); + } + } + } + if (this._onItemDragEnter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onItemDragEnter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnItemDragEnterAttribute((this._onItemDragEnter_0_0value as ((event: ItemDragInfo) => void) | undefined)); + this._onItemDragEnter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onItemDragEnter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onItemDragEnter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnItemDragEnterAttribute((undefined as ((event: ItemDragInfo) => void) | undefined)); + } + } + } + if (this._onItemDragMove_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onItemDragMove_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnItemDragMoveAttribute((this._onItemDragMove_0_0value as ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined)); + this._onItemDragMove_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onItemDragMove_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onItemDragMove_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnItemDragMoveAttribute((undefined as ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined)); + } + } + } + if (this._onItemDragLeave_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onItemDragLeave_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnItemDragLeaveAttribute((this._onItemDragLeave_0_0value as ((event: ItemDragInfo,itemIndex: number) => void) | undefined)); + this._onItemDragLeave_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onItemDragLeave_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onItemDragLeave_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnItemDragLeaveAttribute((undefined as ((event: ItemDragInfo,itemIndex: number) => void) | undefined)); + } + } + } + if (this._onItemDrop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onItemDrop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnItemDropAttribute((this._onItemDrop_0_0value as ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined)); + this._onItemDrop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onItemDrop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onItemDrop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnItemDropAttribute((undefined as ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined)); + } + } + } + if (this._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollFrameBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollFrameBeginAttribute((this._onScrollFrameBegin_0_0value as OnScrollFrameBeginCallback | undefined)); + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollFrameBeginAttribute((undefined as OnScrollFrameBeginCallback | undefined)); + } + } + } + if (this._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillScrollAttribute((this._onWillScroll_0_0value as OnWillScrollCallback | undefined)); + this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillScrollAttribute((undefined as OnWillScrollCallback | undefined)); + } + } + } + if (this._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDidScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDidScrollAttribute((this._onDidScroll_0_0value as OnScrollCallback | undefined)); + this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDidScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDidScrollAttribute((undefined as OnScrollCallback | undefined)); + } + } + } + if (this._lanes_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._lanes_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLanesAttribute((this._lanes_0_0value as number | LengthConstrain | undefined), (this._lanes_0_1value as Dimension | undefined)); + this._lanes_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._lanes_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._lanes_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLanesAttribute((undefined as number | LengthConstrain | undefined), (undefined as Dimension | undefined | undefined)); + } + } + } + if (this._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cachedCount_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCachedCount1Attribute((this._cachedCount_1_0value as number | undefined), (this._cachedCount_1_1value as boolean | undefined)); + this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cachedCount_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setCachedCount1Attribute((undefined as number | undefined), (undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: ListModifier): void { + super.mergeModifier(modifier) + if (modifier._alignListItem_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alignListItem_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alignListItem(modifier._alignListItem_0_0value); + break; + } + default: { + this.alignListItem((undefined as ListItemAlign | undefined)); + } + } + } + if (modifier._listDirection_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._listDirection_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.listDirection(modifier._listDirection_0_0value); + break; + } + default: { + this.listDirection((undefined as Axis | undefined)); + } + } + } + if (modifier._contentStartOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._contentStartOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.contentStartOffset(modifier._contentStartOffset_0_0value); + break; + } + default: { + this.contentStartOffset((undefined as number | undefined)); + } + } + } + if (modifier._contentEndOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._contentEndOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.contentEndOffset(modifier._contentEndOffset_0_0value); + break; + } + default: { + this.contentEndOffset((undefined as number | undefined)); + } + } + } + if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.divider(modifier._divider_0_0value); + break; + } + default: { + this.divider((undefined as ListDividerOptions | undefined)); + } + } + } + if (modifier._multiSelectable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._multiSelectable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.multiSelectable(modifier._multiSelectable_0_0value); + break; + } + default: { + this.multiSelectable((undefined as boolean | undefined)); + } + } + } + if (modifier._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cachedCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cachedCount(modifier._cachedCount_0_0value); + break; + } + default: { + this.cachedCount((undefined as number | undefined)); + } + } + } + if (modifier._chainAnimation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._chainAnimation_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.chainAnimation(modifier._chainAnimation_0_0value); + break; + } + default: { + this.chainAnimation((undefined as boolean | undefined)); + } + } + } + if (modifier._chainAnimationOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._chainAnimationOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.chainAnimationOptions(modifier._chainAnimationOptions_0_0value); + break; + } + default: { + this.chainAnimationOptions((undefined as ChainAnimationOptions | undefined)); + } + } + } + if (modifier._sticky_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sticky_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sticky(modifier._sticky_0_0value); + break; + } + default: { + this.sticky((undefined as StickyStyle | undefined)); + } + } + } + if (modifier._scrollSnapAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._scrollSnapAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.scrollSnapAlign(modifier._scrollSnapAlign_0_0value); + break; + } + default: { + this.scrollSnapAlign((undefined as ScrollSnapAlign | undefined)); + } + } + } + if (modifier._childrenMainSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._childrenMainSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.childrenMainSize(modifier._childrenMainSize_0_0value); + break; + } + default: { + this.childrenMainSize((undefined as ChildrenMainSize | undefined)); + } + } + } + if (modifier._maintainVisibleContentPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maintainVisibleContentPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maintainVisibleContentPosition(modifier._maintainVisibleContentPosition_0_0value); + break; + } + default: { + this.maintainVisibleContentPosition((undefined as boolean | undefined)); + } + } + } + if (modifier._stackFromEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stackFromEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stackFromEnd(modifier._stackFromEnd_0_0value); + break; + } + default: { + this.stackFromEnd((undefined as boolean | undefined)); + } + } + } + if (modifier._onScrollIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScrollIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScrollIndex(modifier._onScrollIndex_0_0value); + break; + } + default: { + this.onScrollIndex((undefined as ((start: number,end: number,center: number) => void) | undefined)); + } + } + } + if (modifier._onScrollVisibleContentChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScrollVisibleContentChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScrollVisibleContentChange(modifier._onScrollVisibleContentChange_0_0value); + break; + } + default: { + this.onScrollVisibleContentChange((undefined as OnScrollVisibleContentChangeCallback | undefined)); + } + } + } + if (modifier._onItemMove_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onItemMove_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onItemMove(modifier._onItemMove_0_0value); + break; + } + default: { + this.onItemMove((undefined as ((from: number,to: number) => boolean) | undefined)); + } + } + } + if (modifier._onItemDragStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onItemDragStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onItemDragStart(modifier._onItemDragStart_0_0value); + break; + } + default: { + this.onItemDragStart((undefined as OnItemDragStartCallback | undefined)); + } + } + } + if (modifier._onItemDragEnter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onItemDragEnter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onItemDragEnter(modifier._onItemDragEnter_0_0value); + break; + } + default: { + this.onItemDragEnter((undefined as ((event: ItemDragInfo) => void) | undefined)); + } + } + } + if (modifier._onItemDragMove_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onItemDragMove_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onItemDragMove(modifier._onItemDragMove_0_0value); + break; + } + default: { + this.onItemDragMove((undefined as ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined)); + } + } + } + if (modifier._onItemDragLeave_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onItemDragLeave_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onItemDragLeave(modifier._onItemDragLeave_0_0value); + break; + } + default: { + this.onItemDragLeave((undefined as ((event: ItemDragInfo,itemIndex: number) => void) | undefined)); + } + } + } + if (modifier._onItemDrop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onItemDrop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onItemDrop(modifier._onItemDrop_0_0value); + break; + } + default: { + this.onItemDrop((undefined as ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined)); + } + } + } + if (modifier._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScrollFrameBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScrollFrameBegin(modifier._onScrollFrameBegin_0_0value); + break; + } + default: { + this.onScrollFrameBegin((undefined as OnScrollFrameBeginCallback | undefined)); + } + } + } + if (modifier._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillScroll(modifier._onWillScroll_0_0value); + break; + } + default: { + this.onWillScroll((undefined as OnWillScrollCallback | undefined)); + } + } + } + if (modifier._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDidScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDidScroll(modifier._onDidScroll_0_0value); + break; + } + default: { + this.onDidScroll((undefined as OnScrollCallback | undefined)); + } + } + } + if (modifier._lanes_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._lanes_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.lanes(modifier._lanes_0_0value, modifier._lanes_0_1value); + break; + } + default: { + this.lanes((undefined as number | LengthConstrain | undefined), (undefined as Dimension | undefined | undefined)); + } + } + } + if (modifier._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cachedCount_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cachedCount(modifier._cachedCount_1_0value, modifier._cachedCount_1_1value); + break; + } + default: { + this.cachedCount((undefined as number | undefined), (undefined as boolean | undefined)); + } + } + } + } + alignListItem(value: ListItemAlign | undefined): this { + if (((this._alignListItem_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alignListItem_0_flag = AttributeUpdaterFlag.UPDATE + this._alignListItem_0_0value = value + } else + { + this._alignListItem_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + listDirection(value: Axis | undefined): this { + if (((this._listDirection_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._listDirection_0_flag = AttributeUpdaterFlag.UPDATE + this._listDirection_0_0value = value + } else + { + this._listDirection_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + contentStartOffset(value: number | undefined): this { + if (((this._contentStartOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._contentStartOffset_0_0value) !== (value))) + { + this._contentStartOffset_0_flag = AttributeUpdaterFlag.UPDATE + this._contentStartOffset_0_0value = value + } else + { + this._contentStartOffset_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + contentEndOffset(value: number | undefined): this { + if (((this._contentEndOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._contentEndOffset_0_0value) !== (value))) + { + this._contentEndOffset_0_flag = AttributeUpdaterFlag.UPDATE + this._contentEndOffset_0_0value = value + } else + { + this._contentEndOffset_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + divider(value: ListDividerOptions | undefined): this { + if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._divider_0_flag = AttributeUpdaterFlag.UPDATE + this._divider_0_0value = value + } else + { + this._divider_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + multiSelectable(value: boolean | undefined): this { + if (((this._multiSelectable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._multiSelectable_0_0value) !== (value))) + { + this._multiSelectable_0_flag = AttributeUpdaterFlag.UPDATE + this._multiSelectable_0_0value = value + } else + { + this._multiSelectable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cachedCount(value: number | undefined): this { + if (((this._cachedCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_0_0value) !== (value))) + { + this._cachedCount_0_flag = AttributeUpdaterFlag.UPDATE + this._cachedCount_0_0value = value + } else + { + this._cachedCount_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + chainAnimation(value: boolean | undefined): this { + if (((this._chainAnimation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._chainAnimation_0_0value) !== (value))) + { + this._chainAnimation_0_flag = AttributeUpdaterFlag.UPDATE + this._chainAnimation_0_0value = value + } else + { + this._chainAnimation_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + chainAnimationOptions(value: ChainAnimationOptions | undefined): this { + if (((this._chainAnimationOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._chainAnimationOptions_0_0value = value + } else + { + this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sticky(value: StickyStyle | undefined): this { + if (((this._sticky_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._sticky_0_flag = AttributeUpdaterFlag.UPDATE + this._sticky_0_0value = value + } else + { + this._sticky_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + scrollSnapAlign(value: ScrollSnapAlign | undefined): this { + if (((this._scrollSnapAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.UPDATE + this._scrollSnapAlign_0_0value = value + } else + { + this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + childrenMainSize(value: ChildrenMainSize | undefined): this { + if (((this._childrenMainSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._childrenMainSize_0_flag = AttributeUpdaterFlag.UPDATE + this._childrenMainSize_0_0value = value + } else + { + this._childrenMainSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maintainVisibleContentPosition(value: boolean | undefined): this { + if (((this._maintainVisibleContentPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maintainVisibleContentPosition_0_0value) !== (value))) + { + this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.UPDATE + this._maintainVisibleContentPosition_0_0value = value + } else + { + this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + stackFromEnd(value: boolean | undefined): this { + if (((this._stackFromEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stackFromEnd_0_0value) !== (value))) + { + this._stackFromEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._stackFromEnd_0_0value = value + } else + { + this._stackFromEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollIndex(value: ((start: number,end: number,center: number) => void) | undefined): this { + if (((this._onScrollIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScrollIndex_0_flag = AttributeUpdaterFlag.UPDATE + this._onScrollIndex_0_0value = value + } else + { + this._onScrollIndex_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollVisibleContentChange(value: OnScrollVisibleContentChangeCallback | undefined): this { + if (((this._onScrollVisibleContentChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onScrollVisibleContentChange_0_0value = value + } else + { + this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onItemMove(value: ((from: number,to: number) => boolean) | undefined): this { + if (((this._onItemMove_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onItemMove_0_flag = AttributeUpdaterFlag.UPDATE + this._onItemMove_0_0value = value + } else + { + this._onItemMove_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onItemDragStart(value: OnItemDragStartCallback | undefined): this { + if (((this._onItemDragStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onItemDragStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onItemDragStart_0_0value = value + } else + { + this._onItemDragStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onItemDragEnter(value: ((event: ItemDragInfo) => void) | undefined): this { + if (((this._onItemDragEnter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onItemDragEnter_0_flag = AttributeUpdaterFlag.UPDATE + this._onItemDragEnter_0_0value = value + } else + { + this._onItemDragEnter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined): this { + if (((this._onItemDragMove_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onItemDragMove_0_flag = AttributeUpdaterFlag.UPDATE + this._onItemDragMove_0_0value = value + } else + { + this._onItemDragMove_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void) | undefined): this { + if (((this._onItemDragLeave_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onItemDragLeave_0_flag = AttributeUpdaterFlag.UPDATE + this._onItemDragLeave_0_0value = value + } else + { + this._onItemDragLeave_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined): this { + if (((this._onItemDrop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onItemDrop_0_flag = AttributeUpdaterFlag.UPDATE + this._onItemDrop_0_0value = value + } else + { + this._onItemDrop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { + if (((this._onScrollFrameBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.UPDATE + this._onScrollFrameBegin_0_0value = value + } else + { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillScroll(value: OnWillScrollCallback | undefined): this { + if (((this._onWillScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillScroll_0_0value = value + } else + { + this._onWillScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDidScroll(value: OnScrollCallback | undefined): this { + if (((this._onDidScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDidScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onDidScroll_0_0value = value + } else + { + this._onDidScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + lanes(value: number | LengthConstrain | undefined, gutter?: Dimension): this { + if (((this._lanes_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._lanes_0_flag = AttributeUpdaterFlag.UPDATE + this._lanes_0_0value = value + this._lanes_0_1value = gutter + } else + { + this._lanes_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cachedCount(count: number | undefined, show: boolean | undefined): this { + if (((this._cachedCount_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_1_0value) !== (count)) || ((this._cachedCount_1_1value) !== (show))) + { + this._cachedCount_1_flag = AttributeUpdaterFlag.UPDATE + this._cachedCount_1_0value = count + this._cachedCount_1_1value = show + } else + { + this._cachedCount_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/LoadingProgressModifier.ets b/arkoala-arkts/arkui/generated/LoadingProgressModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..53879f95912d1e9a9cfe4326cfb2b549645d9209 --- /dev/null +++ b/arkoala-arkts/arkui/generated/LoadingProgressModifier.ets @@ -0,0 +1,135 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkLoadingProgressPeer, LoadingProgressConfiguration, LoadingProgressAttribute } from "./component/loadingProgress" +import { CommonMethod } from "./component/common" +import { ResourceColor } from "./component/units" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +export class LoadingProgressModifier extends CommonMethodModifier implements LoadingProgressAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: LoadingProgressAttribute): void { } + applyPressedAttribute(instance: LoadingProgressAttribute): void { } + applyFocusedAttribute(instance: LoadingProgressAttribute): void { } + applyDisabledAttribute(instance: LoadingProgressAttribute): void { } + applySelectedAttribute(instance: LoadingProgressAttribute): void { } + _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _color_0_0value?: ResourceColor | undefined + _enableLoading_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableLoading_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkLoadingProgressPeer): void { + super.applyModifierPatch(peer) + if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorAttribute((this._color_0_0value as ResourceColor | undefined)); + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._color_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._enableLoading_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableLoading_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableLoadingAttribute((this._enableLoading_0_0value as boolean | undefined)); + this._enableLoading_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableLoading_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableLoading_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableLoadingAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: LoadingProgressModifier): void { + super.mergeModifier(modifier) + if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.color(modifier._color_0_0value); + break; + } + default: { + this.color((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._enableLoading_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableLoading_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableLoading(modifier._enableLoading_0_0value); + break; + } + default: { + this.enableLoading((undefined as boolean | undefined)); + } + } + } + } + color(value: ResourceColor | undefined): this { + if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._color_0_flag = AttributeUpdaterFlag.UPDATE + this._color_0_0value = value + } else + { + this._color_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableLoading(value: boolean | undefined): this { + if (((this._enableLoading_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableLoading_0_0value) !== (value))) + { + this._enableLoading_0_flag = AttributeUpdaterFlag.UPDATE + this._enableLoading_0_0value = value + } else + { + this._enableLoading_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/MarqueeModifier.ets b/arkoala-arkts/arkui/generated/MarqueeModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..1717d3440626f7cd0806c5e7100466659a4d5f0c --- /dev/null +++ b/arkoala-arkts/arkui/generated/MarqueeModifier.ets @@ -0,0 +1,443 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkMarqueePeer, MarqueeAttribute } from "./component/marquee" +import { CommonMethod } from "./component/common" +import { ResourceColor, Length } from "./component/units" +import { Color, FontWeight, MarqueeUpdateStrategy } from "./component/enums" +import { Resource } from "global.resource" +export class MarqueeModifier extends CommonMethodModifier implements MarqueeAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: MarqueeAttribute): void { } + applyPressedAttribute(instance: MarqueeAttribute): void { } + applyFocusedAttribute(instance: MarqueeAttribute): void { } + applyDisabledAttribute(instance: MarqueeAttribute): void { } + applySelectedAttribute(instance: MarqueeAttribute): void { } + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: ResourceColor | undefined + _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontSize_0_0value?: Length | undefined + _allowScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _allowScale_0_0value?: boolean | undefined + _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontWeight_0_0value?: number | FontWeight | string | undefined + _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontFamily_0_0value?: string | Resource | undefined + _marqueeUpdateStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _marqueeUpdateStrategy_0_0value?: MarqueeUpdateStrategy | undefined + _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onStart_0_0value?: (() => void) | undefined + _onBounce_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onBounce_0_0value?: (() => void) | undefined + _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFinish_0_0value?: (() => void) | undefined + applyModifierPatch(peer: ArkMarqueePeer): void { + super.applyModifierPatch(peer) + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontSizeAttribute((undefined as Length | undefined)); + } + } + } + if (this._allowScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._allowScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAllowScaleAttribute((this._allowScale_0_0value as boolean | undefined)); + this._allowScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._allowScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._allowScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAllowScaleAttribute((undefined as boolean | undefined)); + } + } + } + if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); + } + } + } + if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontFamilyAttribute((this._fontFamily_0_0value as string | Resource | undefined)); + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontFamilyAttribute((undefined as string | Resource | undefined)); + } + } + } + if (this._marqueeUpdateStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._marqueeUpdateStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMarqueeUpdateStrategyAttribute((this._marqueeUpdateStrategy_0_0value as MarqueeUpdateStrategy | undefined)); + this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMarqueeUpdateStrategyAttribute((undefined as MarqueeUpdateStrategy | undefined)); + } + } + } + if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnStartAttribute((this._onStart_0_0value as (() => void) | undefined)); + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnStartAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onBounce_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onBounce_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnBounceAttribute((this._onBounce_0_0value as (() => void) | undefined)); + this._onBounce_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onBounce_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onBounce_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnBounceAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFinishAttribute((undefined as (() => void) | undefined)); + } + } + } + } + mergeModifier(modifier: MarqueeModifier): void { + super.mergeModifier(modifier) + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontSize(modifier._fontSize_0_0value); + break; + } + default: { + this.fontSize((undefined as Length | undefined)); + } + } + } + if (modifier._allowScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._allowScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.allowScale(modifier._allowScale_0_0value); + break; + } + default: { + this.allowScale((undefined as boolean | undefined)); + } + } + } + if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontWeight(modifier._fontWeight_0_0value); + break; + } + default: { + this.fontWeight((undefined as number | FontWeight | string | undefined)); + } + } + } + if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontFamily(modifier._fontFamily_0_0value); + break; + } + default: { + this.fontFamily((undefined as string | Resource | undefined)); + } + } + } + if (modifier._marqueeUpdateStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._marqueeUpdateStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.marqueeUpdateStrategy(modifier._marqueeUpdateStrategy_0_0value); + break; + } + default: { + this.marqueeUpdateStrategy((undefined as MarqueeUpdateStrategy | undefined)); + } + } + } + if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onStart(modifier._onStart_0_0value); + break; + } + default: { + this.onStart((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onBounce_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onBounce_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onBounce(modifier._onBounce_0_0value); + break; + } + default: { + this.onBounce((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFinish(modifier._onFinish_0_0value); + break; + } + default: { + this.onFinish((undefined as (() => void) | undefined)); + } + } + } + } + fontColor(value: ResourceColor | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontSize(value: Length | undefined): this { + if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fontSize_0_0value = value + } else + { + this._fontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + allowScale(value: boolean | undefined): this { + if (((this._allowScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._allowScale_0_0value) !== (value))) + { + this._allowScale_0_flag = AttributeUpdaterFlag.UPDATE + this._allowScale_0_0value = value + } else + { + this._allowScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontWeight(value: number | FontWeight | string | undefined): this { + if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._fontWeight_0_0value = value + } else + { + this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontFamily(value: string | Resource | undefined): this { + if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE + this._fontFamily_0_0value = value + } else + { + this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + marqueeUpdateStrategy(value: MarqueeUpdateStrategy | undefined): this { + if (((this._marqueeUpdateStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.UPDATE + this._marqueeUpdateStrategy_0_0value = value + } else + { + this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onStart(value: (() => void) | undefined): this { + if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onStart_0_0value = value + } else + { + this._onStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onBounce(value: (() => void) | undefined): this { + if (((this._onBounce_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onBounce_0_flag = AttributeUpdaterFlag.UPDATE + this._onBounce_0_0value = value + } else + { + this._onBounce_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFinish(value: (() => void) | undefined): this { + if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE + this._onFinish_0_0value = value + } else + { + this._onFinish_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/MediaCachedImageModifier.ets b/arkoala-arkts/arkui/generated/MediaCachedImageModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..5180132f23f8b6a6c2067cd51dd1fee6b5d034d2 --- /dev/null +++ b/arkoala-arkts/arkui/generated/MediaCachedImageModifier.ets @@ -0,0 +1,46 @@ +/* + * 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 { ImageModifier } from "./ImageModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkMediaCachedImagePeer, MediaCachedImageAttribute } from "./component/mediaCachedImage" +import { ImageAttribute } from "./component/image" +import { CommonMethod } from "./component/common" +export class MediaCachedImageModifier extends ImageModifier implements MediaCachedImageAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: MediaCachedImageAttribute): void { } + applyPressedAttribute(instance: MediaCachedImageAttribute): void { } + applyFocusedAttribute(instance: MediaCachedImageAttribute): void { } + applyDisabledAttribute(instance: MediaCachedImageAttribute): void { } + applySelectedAttribute(instance: MediaCachedImageAttribute): void { } + applyModifierPatch(peer: ArkMediaCachedImagePeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: MediaCachedImageModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/MenuItemGroupModifier.ets b/arkoala-arkts/arkui/generated/MenuItemGroupModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..2a2e0c6ff6cbcb7674cca31bb59ef11d81009ee1 --- /dev/null +++ b/arkoala-arkts/arkui/generated/MenuItemGroupModifier.ets @@ -0,0 +1,44 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkMenuItemGroupPeer, MenuItemGroupAttribute } from "./component/menuItemGroup" +import { CommonMethod } from "./component/common" +export class MenuItemGroupModifier extends CommonMethodModifier implements MenuItemGroupAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: MenuItemGroupAttribute): void { } + applyPressedAttribute(instance: MenuItemGroupAttribute): void { } + applyFocusedAttribute(instance: MenuItemGroupAttribute): void { } + applyDisabledAttribute(instance: MenuItemGroupAttribute): void { } + applySelectedAttribute(instance: MenuItemGroupAttribute): void { } + applyModifierPatch(peer: ArkMenuItemGroupPeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: MenuItemGroupModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/MenuItemModifier.ets b/arkoala-arkts/arkui/generated/MenuItemModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..d4aaf32a239226a04920516b9c582fda2abcfb8a --- /dev/null +++ b/arkoala-arkts/arkui/generated/MenuItemModifier.ets @@ -0,0 +1,356 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkMenuItemPeer, MenuItemAttribute } from "./component/menuItem" +import { CommonMethod, Bindable } from "./component/common" +import { ResourceStr, Font, ResourceColor } from "./component/units" +import { Resource } from "global.resource" +import { SymbolGlyphModifier } from "./SymbolGlyphModifier" +import { Color } from "./component/enums" +export class MenuItemModifier extends CommonMethodModifier implements MenuItemAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: MenuItemAttribute): void { } + applyPressedAttribute(instance: MenuItemAttribute): void { } + applyFocusedAttribute(instance: MenuItemAttribute): void { } + applyDisabledAttribute(instance: MenuItemAttribute): void { } + applySelectedAttribute(instance: MenuItemAttribute): void { } + _selected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selected_0_0value?: boolean | Bindable | undefined + _selectIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectIcon_0_0value?: boolean | ResourceStr | SymbolGlyphModifier | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: ((selected: boolean) => void) | undefined + _contentFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _contentFont_0_0value?: Font | undefined + _contentFontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _contentFontColor_0_0value?: ResourceColor | undefined + _labelFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _labelFont_0_0value?: Font | undefined + _labelFontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _labelFontColor_0_0value?: ResourceColor | undefined + applyModifierPatch(peer: ArkMenuItemPeer): void { + super.applyModifierPatch(peer) + if (this._selected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedAttribute((this._selected_0_0value as boolean | Bindable | undefined)); + this._selected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedAttribute((undefined as boolean | Bindable | undefined)); + } + } + } + if (this._selectIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectIconAttribute((this._selectIcon_0_0value as boolean | ResourceStr | SymbolGlyphModifier | undefined)); + this._selectIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectIcon_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectIconAttribute((undefined as boolean | ResourceStr | SymbolGlyphModifier | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as ((selected: boolean) => void) | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as ((selected: boolean) => void) | undefined)); + } + } + } + if (this._contentFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._contentFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setContentFontAttribute((this._contentFont_0_0value as Font | undefined)); + this._contentFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._contentFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._contentFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setContentFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._contentFontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._contentFontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setContentFontColorAttribute((this._contentFontColor_0_0value as ResourceColor | undefined)); + this._contentFontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._contentFontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._contentFontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setContentFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._labelFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._labelFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLabelFontAttribute((this._labelFont_0_0value as Font | undefined)); + this._labelFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._labelFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._labelFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLabelFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._labelFontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._labelFontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLabelFontColorAttribute((this._labelFontColor_0_0value as ResourceColor | undefined)); + this._labelFontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._labelFontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._labelFontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLabelFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + } + mergeModifier(modifier: MenuItemModifier): void { + super.mergeModifier(modifier) + if (modifier._selected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selected(modifier._selected_0_0value); + break; + } + default: { + this.selected((undefined as boolean | Bindable | undefined)); + } + } + } + if (modifier._selectIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectIcon(modifier._selectIcon_0_0value); + break; + } + default: { + this.selectIcon((undefined as boolean | ResourceStr | SymbolGlyphModifier | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as ((selected: boolean) => void) | undefined)); + } + } + } + if (modifier._contentFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._contentFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.contentFont(modifier._contentFont_0_0value); + break; + } + default: { + this.contentFont((undefined as Font | undefined)); + } + } + } + if (modifier._contentFontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._contentFontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.contentFontColor(modifier._contentFontColor_0_0value); + break; + } + default: { + this.contentFontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._labelFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._labelFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.labelFont(modifier._labelFont_0_0value); + break; + } + default: { + this.labelFont((undefined as Font | undefined)); + } + } + } + if (modifier._labelFontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._labelFontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.labelFontColor(modifier._labelFontColor_0_0value); + break; + } + default: { + this.labelFontColor((undefined as ResourceColor | undefined)); + } + } + } + } + selected(value: boolean | Bindable | undefined): this { + if (((this._selected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selected_0_flag = AttributeUpdaterFlag.UPDATE + this._selected_0_0value = value + } else + { + this._selected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectIcon(value: boolean | ResourceStr | SymbolGlyphModifier | undefined): this { + if (((this._selectIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectIcon_0_flag = AttributeUpdaterFlag.UPDATE + this._selectIcon_0_0value = value + } else + { + this._selectIcon_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: ((selected: boolean) => void) | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + contentFont(value: Font | undefined): this { + if (((this._contentFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._contentFont_0_flag = AttributeUpdaterFlag.UPDATE + this._contentFont_0_0value = value + } else + { + this._contentFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + contentFontColor(value: ResourceColor | undefined): this { + if (((this._contentFontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._contentFontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._contentFontColor_0_0value = value + } else + { + this._contentFontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + labelFont(value: Font | undefined): this { + if (((this._labelFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._labelFont_0_flag = AttributeUpdaterFlag.UPDATE + this._labelFont_0_0value = value + } else + { + this._labelFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + labelFontColor(value: ResourceColor | undefined): this { + if (((this._labelFontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._labelFontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._labelFontColor_0_0value = value + } else + { + this._labelFontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/MenuModifier.ets b/arkoala-arkts/arkui/generated/MenuModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..d9185b6f1eec0629802c77c220b1b3243ccfb66f --- /dev/null +++ b/arkoala-arkts/arkui/generated/MenuModifier.ets @@ -0,0 +1,311 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkMenuPeer, SubMenuExpandingMode, MenuAttribute } from "./component/menu" +import { CommonMethod } from "./component/common" +import { Font, ResourceColor, Dimension, BorderRadiuses, DividerStyleOptions } from "./component/units" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +export class MenuModifier extends CommonMethodModifier implements MenuAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: MenuAttribute): void { } + applyPressedAttribute(instance: MenuAttribute): void { } + applyFocusedAttribute(instance: MenuAttribute): void { } + applyDisabledAttribute(instance: MenuAttribute): void { } + applySelectedAttribute(instance: MenuAttribute): void { } + _font_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _font_0_0value?: Font | undefined + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: ResourceColor | undefined + _radius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _radius_0_0value?: Dimension | BorderRadiuses | undefined + _menuItemDivider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menuItemDivider_0_0value?: DividerStyleOptions | undefined + _menuItemGroupDivider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menuItemGroupDivider_0_0value?: DividerStyleOptions | undefined + _subMenuExpandingMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _subMenuExpandingMode_0_0value?: SubMenuExpandingMode | undefined + applyModifierPatch(peer: ArkMenuPeer): void { + super.applyModifierPatch(peer) + if (this._font_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._font_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontAttribute((this._font_0_0value as Font | undefined)); + this._font_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._font_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._font_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._radius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._radius_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRadiusAttribute((this._radius_0_0value as Dimension | BorderRadiuses | undefined)); + this._radius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._radius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._radius_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRadiusAttribute((undefined as Dimension | BorderRadiuses | undefined)); + } + } + } + if (this._menuItemDivider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menuItemDivider_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenuItemDividerAttribute((this._menuItemDivider_0_0value as DividerStyleOptions | undefined)); + this._menuItemDivider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menuItemDivider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menuItemDivider_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenuItemDividerAttribute((undefined as DividerStyleOptions | undefined)); + } + } + } + if (this._menuItemGroupDivider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menuItemGroupDivider_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenuItemGroupDividerAttribute((this._menuItemGroupDivider_0_0value as DividerStyleOptions | undefined)); + this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenuItemGroupDividerAttribute((undefined as DividerStyleOptions | undefined)); + } + } + } + if (this._subMenuExpandingMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._subMenuExpandingMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSubMenuExpandingModeAttribute((this._subMenuExpandingMode_0_0value as SubMenuExpandingMode | undefined)); + this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSubMenuExpandingModeAttribute((undefined as SubMenuExpandingMode | undefined)); + } + } + } + } + mergeModifier(modifier: MenuModifier): void { + super.mergeModifier(modifier) + if (modifier._font_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._font_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.font(modifier._font_0_0value); + break; + } + default: { + this.font((undefined as Font | undefined)); + } + } + } + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._radius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._radius_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.radius(modifier._radius_0_0value); + break; + } + default: { + this.radius((undefined as Dimension | BorderRadiuses | undefined)); + } + } + } + if (modifier._menuItemDivider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menuItemDivider_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menuItemDivider(modifier._menuItemDivider_0_0value); + break; + } + default: { + this.menuItemDivider((undefined as DividerStyleOptions | undefined)); + } + } + } + if (modifier._menuItemGroupDivider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menuItemGroupDivider_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menuItemGroupDivider(modifier._menuItemGroupDivider_0_0value); + break; + } + default: { + this.menuItemGroupDivider((undefined as DividerStyleOptions | undefined)); + } + } + } + if (modifier._subMenuExpandingMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._subMenuExpandingMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.subMenuExpandingMode(modifier._subMenuExpandingMode_0_0value); + break; + } + default: { + this.subMenuExpandingMode((undefined as SubMenuExpandingMode | undefined)); + } + } + } + } + font(value: Font | undefined): this { + if (((this._font_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._font_0_flag = AttributeUpdaterFlag.UPDATE + this._font_0_0value = value + } else + { + this._font_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontColor(value: ResourceColor | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + radius(value: Dimension | BorderRadiuses | undefined): this { + if (((this._radius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._radius_0_flag = AttributeUpdaterFlag.UPDATE + this._radius_0_0value = value + } else + { + this._radius_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menuItemDivider(value: DividerStyleOptions | undefined): this { + if (((this._menuItemDivider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._menuItemDivider_0_flag = AttributeUpdaterFlag.UPDATE + this._menuItemDivider_0_0value = value + } else + { + this._menuItemDivider_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menuItemGroupDivider(value: DividerStyleOptions | undefined): this { + if (((this._menuItemGroupDivider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.UPDATE + this._menuItemGroupDivider_0_0value = value + } else + { + this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + subMenuExpandingMode(value: SubMenuExpandingMode | undefined): this { + if (((this._subMenuExpandingMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.UPDATE + this._subMenuExpandingMode_0_0value = value + } else + { + this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/NavDestinationModifier.ets b/arkoala-arkts/arkui/generated/NavDestinationModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..fff6a8cdf5d1371930ed5475608dda3be174b5ce --- /dev/null +++ b/arkoala-arkts/arkui/generated/NavDestinationModifier.ets @@ -0,0 +1,1520 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkNavDestinationPeer, NavDestinationMode, NavDestinationContext, NavigationSystemTransitionType, NestedScrollInfo, NavDestinationActiveReason, NavDestinationTransitionDelegate, Orientation, NavDestinationAttribute, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./component/navDestination" +import { CommonMethod, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./component/common" +import { ResourceStr } from "./component/units" +import { Resource } from "global.resource" +import { image } from "./framework/ohos.multimedia.image" +import { SymbolGlyphModifier } from "./SymbolGlyphModifier" +import { NavigationMenuItem, NavigationOperation, NavigationTitleOptions, NavigationMenuOptions, ToolbarItem, NavigationToolbarOptions } from "./component/navigation" +import { CustomBuilder } from "./component/builder" +import { window } from "./framework/ohos.window" +import { Scroller } from "./component/scroll" +export class NavDestinationModifier extends CommonMethodModifier implements NavDestinationAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: NavDestinationAttribute): void { } + applyPressedAttribute(instance: NavDestinationAttribute): void { } + applyFocusedAttribute(instance: NavDestinationAttribute): void { } + applyDisabledAttribute(instance: NavDestinationAttribute): void { } + applySelectedAttribute(instance: NavDestinationAttribute): void { } + _hideTitleBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideTitleBar_0_0value?: boolean | undefined + _hideBackButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideBackButton_0_0value?: boolean | undefined + _onShown_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onShown_0_0value?: (() => void) | undefined + _onHidden_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onHidden_0_0value?: (() => void) | undefined + _onBackPressed_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onBackPressed_0_0value?: (() => boolean) | undefined + _onResult_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onResult_0_0value?: ((value0: Object | undefined) => void) | undefined + _mode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mode_0_0value?: NavDestinationMode | undefined + _backButtonIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backButtonIcon_0_0value?: ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined + _menus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menus_0_0value?: Array | CustomBuilder | undefined + _onReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onReady_0_0value?: ((value0: NavDestinationContext) => void) | undefined + _onWillAppear_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillAppear_0_0value?: (() => void) | undefined + _onWillDisappear_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillDisappear_0_0value?: (() => void) | undefined + _onWillShow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillShow_0_0value?: (() => void) | undefined + _onWillHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillHide_0_0value?: (() => void) | undefined + _systemBarStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _systemBarStyle_0_0value?: window.SystemBarStyle | undefined + _recoverable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _recoverable_0_0value?: boolean | undefined + _systemTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _systemTransition_0_0value?: NavigationSystemTransitionType | undefined + _bindToScrollable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindToScrollable_0_0value?: Array | undefined + _bindToNestedScrollable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindToNestedScrollable_0_0value?: Array | undefined + _onActive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onActive_0_0value?: ((value0: NavDestinationActiveReason) => void) | undefined + _onInactive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onInactive_0_0value?: ((value0: NavDestinationActiveReason) => void) | undefined + _customTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _customTransition_0_0value?: NavDestinationTransitionDelegate | undefined + _onNewParam_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onNewParam_0_0value?: ((value0: Object | undefined) => void) | undefined + _preferredOrientation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _preferredOrientation_0_0value?: Orientation | undefined + _enableNavigationIndicator_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableNavigationIndicator_0_0value?: boolean | undefined + _title_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _title_0_0value?: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined + _title_0_1value?: NavigationTitleOptions | undefined + _hideTitleBar_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideTitleBar_1_0value?: boolean | undefined + _hideTitleBar_1_1value?: boolean | undefined + _backButtonIcon_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backButtonIcon_1_0value?: ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined + _backButtonIcon_1_1value?: ResourceStr | undefined + _menus_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menus_1_0value?: Array | CustomBuilder | undefined + _menus_1_1value?: NavigationMenuOptions | undefined + _toolbarConfiguration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _toolbarConfiguration_0_0value?: Array | CustomBuilder | undefined + _toolbarConfiguration_0_1value?: NavigationToolbarOptions | undefined + _hideToolBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideToolBar_0_0value?: boolean | undefined + _hideToolBar_0_1value?: boolean | undefined + _ignoreLayoutSafeArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _ignoreLayoutSafeArea_0_0value?: Array | undefined + _ignoreLayoutSafeArea_0_1value?: Array | undefined + _enableStatusBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableStatusBar_0_0value?: boolean | undefined + _enableStatusBar_0_1value?: boolean | undefined + applyModifierPatch(peer: ArkNavDestinationPeer): void { + super.applyModifierPatch(peer) + if (this._hideTitleBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideTitleBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideTitleBar0Attribute((this._hideTitleBar_0_0value as boolean | undefined)); + this._hideTitleBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideTitleBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideTitleBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideTitleBar0Attribute((undefined as boolean | undefined)); + } + } + } + if (this._hideBackButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideBackButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideBackButtonAttribute((this._hideBackButton_0_0value as boolean | undefined)); + this._hideBackButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideBackButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideBackButton_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideBackButtonAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onShown_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onShown_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnShownAttribute((this._onShown_0_0value as (() => void) | undefined)); + this._onShown_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onShown_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onShown_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnShownAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onHidden_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onHidden_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnHiddenAttribute((this._onHidden_0_0value as (() => void) | undefined)); + this._onHidden_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onHidden_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onHidden_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnHiddenAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onBackPressed_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onBackPressed_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnBackPressedAttribute((this._onBackPressed_0_0value as (() => boolean) | undefined)); + this._onBackPressed_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onBackPressed_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onBackPressed_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnBackPressedAttribute((undefined as (() => boolean) | undefined)); + } + } + } + if (this._onResult_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onResult_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnResultAttribute((this._onResult_0_0value as ((value0: Object | undefined) => void) | undefined)); + this._onResult_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onResult_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onResult_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnResultAttribute((undefined as ((value0: Object | undefined) => void) | undefined)); + } + } + } + if (this._mode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setModeAttribute((this._mode_0_0value as NavDestinationMode | undefined)); + this._mode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setModeAttribute((undefined as NavDestinationMode | undefined)); + } + } + } + if (this._backButtonIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backButtonIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackButtonIcon0Attribute((this._backButtonIcon_0_0value as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined)); + this._backButtonIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backButtonIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backButtonIcon_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackButtonIcon0Attribute((undefined as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined)); + } + } + } + if (this._menus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenus0Attribute((this._menus_0_0value as Array | CustomBuilder | undefined)); + this._menus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenus0Attribute((undefined as Array | CustomBuilder | undefined)); + } + } + } + if (this._onReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnReadyAttribute((this._onReady_0_0value as ((value0: NavDestinationContext) => void) | undefined)); + this._onReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onReady_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnReadyAttribute((undefined as ((value0: NavDestinationContext) => void) | undefined)); + } + } + } + if (this._onWillAppear_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillAppear_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillAppearAttribute((this._onWillAppear_0_0value as (() => void) | undefined)); + this._onWillAppear_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillAppear_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillAppear_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillAppearAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onWillDisappear_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillDisappear_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillDisappearAttribute((this._onWillDisappear_0_0value as (() => void) | undefined)); + this._onWillDisappear_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillDisappear_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillDisappear_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillDisappearAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onWillShow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillShow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillShowAttribute((this._onWillShow_0_0value as (() => void) | undefined)); + this._onWillShow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillShow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillShow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillShowAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onWillHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillHideAttribute((this._onWillHide_0_0value as (() => void) | undefined)); + this._onWillHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillHide_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillHideAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._systemBarStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._systemBarStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSystemBarStyleAttribute((this._systemBarStyle_0_0value as window.SystemBarStyle | undefined)); + this._systemBarStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._systemBarStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._systemBarStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSystemBarStyleAttribute((undefined as window.SystemBarStyle | undefined)); + } + } + } + if (this._recoverable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._recoverable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRecoverableAttribute((this._recoverable_0_0value as boolean | undefined)); + this._recoverable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._recoverable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._recoverable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRecoverableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._systemTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._systemTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSystemTransitionAttribute((this._systemTransition_0_0value as NavigationSystemTransitionType | undefined)); + this._systemTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._systemTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._systemTransition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSystemTransitionAttribute((undefined as NavigationSystemTransitionType | undefined)); + } + } + } + if (this._bindToScrollable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindToScrollable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindToScrollableAttribute((this._bindToScrollable_0_0value as Array | undefined)); + this._bindToScrollable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindToScrollable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindToScrollable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindToScrollableAttribute((undefined as Array | undefined)); + } + } + } + if (this._bindToNestedScrollable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindToNestedScrollable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindToNestedScrollableAttribute((this._bindToNestedScrollable_0_0value as Array | undefined)); + this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindToNestedScrollableAttribute((undefined as Array | undefined)); + } + } + } + if (this._onActive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onActive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnActiveAttribute((this._onActive_0_0value as ((value0: NavDestinationActiveReason) => void) | undefined)); + this._onActive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onActive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onActive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnActiveAttribute((undefined as ((value0: NavDestinationActiveReason) => void) | undefined)); + } + } + } + if (this._onInactive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onInactive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnInactiveAttribute((this._onInactive_0_0value as ((value0: NavDestinationActiveReason) => void) | undefined)); + this._onInactive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onInactive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onInactive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnInactiveAttribute((undefined as ((value0: NavDestinationActiveReason) => void) | undefined)); + } + } + } + if (this._customTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._customTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCustomTransitionAttribute((this._customTransition_0_0value as NavDestinationTransitionDelegate | undefined)); + this._customTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._customTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._customTransition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCustomTransitionAttribute((undefined as NavDestinationTransitionDelegate | undefined)); + } + } + } + if (this._onNewParam_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onNewParam_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnNewParamAttribute((this._onNewParam_0_0value as ((value0: Object | undefined) => void) | undefined)); + this._onNewParam_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onNewParam_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onNewParam_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnNewParamAttribute((undefined as ((value0: Object | undefined) => void) | undefined)); + } + } + } + if (this._preferredOrientation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._preferredOrientation_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPreferredOrientationAttribute((this._preferredOrientation_0_0value as Orientation | undefined)); + this._preferredOrientation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._preferredOrientation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._preferredOrientation_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPreferredOrientationAttribute((undefined as Orientation | undefined)); + } + } + } + if (this._enableNavigationIndicator_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableNavigationIndicator_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableNavigationIndicatorAttribute((this._enableNavigationIndicator_0_0value as boolean | undefined)); + this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableNavigationIndicatorAttribute((undefined as boolean | undefined)); + } + } + } + if (this._title_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._title_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTitleAttribute((this._title_0_0value as string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined), (this._title_0_1value as NavigationTitleOptions | undefined)); + this._title_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._title_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._title_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTitleAttribute((undefined as string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined), (undefined as NavigationTitleOptions | undefined | undefined)); + } + } + } + if (this._hideTitleBar_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideTitleBar_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideTitleBar1Attribute((this._hideTitleBar_1_0value as boolean | undefined), (this._hideTitleBar_1_1value as boolean | undefined)); + this._hideTitleBar_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideTitleBar_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideTitleBar_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideTitleBar1Attribute((undefined as boolean | undefined), (undefined as boolean | undefined)); + } + } + } + if (this._backButtonIcon_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backButtonIcon_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackButtonIcon1Attribute((this._backButtonIcon_1_0value as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined), (this._backButtonIcon_1_1value as ResourceStr | undefined)); + this._backButtonIcon_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backButtonIcon_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backButtonIcon_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackButtonIcon1Attribute((undefined as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined), (undefined as ResourceStr | undefined | undefined)); + } + } + } + if (this._menus_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menus_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenus1Attribute((this._menus_1_0value as Array | CustomBuilder | undefined), (this._menus_1_1value as NavigationMenuOptions | undefined)); + this._menus_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menus_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menus_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenus1Attribute((undefined as Array | CustomBuilder | undefined), (undefined as NavigationMenuOptions | undefined | undefined)); + } + } + } + if (this._toolbarConfiguration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._toolbarConfiguration_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setToolbarConfigurationAttribute((this._toolbarConfiguration_0_0value as Array | CustomBuilder | undefined), (this._toolbarConfiguration_0_1value as NavigationToolbarOptions | undefined)); + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setToolbarConfigurationAttribute((undefined as Array | CustomBuilder | undefined), (undefined as NavigationToolbarOptions | undefined | undefined)); + } + } + } + if (this._hideToolBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideToolBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideToolBarAttribute((this._hideToolBar_0_0value as boolean | undefined), (this._hideToolBar_0_1value as boolean | undefined)); + this._hideToolBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideToolBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideToolBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideToolBarAttribute((undefined as boolean | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (this._ignoreLayoutSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._ignoreLayoutSafeArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIgnoreLayoutSafeAreaAttribute((this._ignoreLayoutSafeArea_0_0value as Array | undefined), (this._ignoreLayoutSafeArea_0_1value as Array | undefined)); + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIgnoreLayoutSafeAreaAttribute((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); + } + } + } + if (this._enableStatusBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableStatusBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableStatusBarAttribute((this._enableStatusBar_0_0value as boolean | undefined), (this._enableStatusBar_0_1value as boolean | undefined)); + this._enableStatusBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableStatusBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableStatusBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableStatusBarAttribute((undefined as boolean | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: NavDestinationModifier): void { + super.mergeModifier(modifier) + if (modifier._hideTitleBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideTitleBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideTitleBar(modifier._hideTitleBar_0_0value); + break; + } + default: { + this.hideTitleBar((undefined as boolean | undefined)); + } + } + } + if (modifier._hideBackButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideBackButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideBackButton(modifier._hideBackButton_0_0value); + break; + } + default: { + this.hideBackButton((undefined as boolean | undefined)); + } + } + } + if (modifier._onShown_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onShown_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onShown(modifier._onShown_0_0value); + break; + } + default: { + this.onShown((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onHidden_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onHidden_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onHidden(modifier._onHidden_0_0value); + break; + } + default: { + this.onHidden((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onBackPressed_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onBackPressed_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onBackPressed(modifier._onBackPressed_0_0value); + break; + } + default: { + this.onBackPressed((undefined as (() => boolean) | undefined)); + } + } + } + if (modifier._onResult_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onResult_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onResult(modifier._onResult_0_0value); + break; + } + default: { + this.onResult((undefined as ((value0: Object | undefined) => void) | undefined)); + } + } + } + if (modifier._mode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mode(modifier._mode_0_0value); + break; + } + default: { + this.mode((undefined as NavDestinationMode | undefined)); + } + } + } + if (modifier._backButtonIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backButtonIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backButtonIcon(modifier._backButtonIcon_0_0value); + break; + } + default: { + this.backButtonIcon((undefined as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined)); + } + } + } + if (modifier._menus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menus(modifier._menus_0_0value); + break; + } + default: { + this.menus((undefined as Array | CustomBuilder | undefined)); + } + } + } + if (modifier._onReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onReady(modifier._onReady_0_0value); + break; + } + default: { + this.onReady((undefined as ((value0: NavDestinationContext) => void) | undefined)); + } + } + } + if (modifier._onWillAppear_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillAppear_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillAppear(modifier._onWillAppear_0_0value); + break; + } + default: { + this.onWillAppear((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onWillDisappear_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillDisappear_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillDisappear(modifier._onWillDisappear_0_0value); + break; + } + default: { + this.onWillDisappear((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onWillShow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillShow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillShow(modifier._onWillShow_0_0value); + break; + } + default: { + this.onWillShow((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onWillHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillHide(modifier._onWillHide_0_0value); + break; + } + default: { + this.onWillHide((undefined as (() => void) | undefined)); + } + } + } + if (modifier._systemBarStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._systemBarStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.systemBarStyle(modifier._systemBarStyle_0_0value); + break; + } + default: { + this.systemBarStyle((undefined as window.SystemBarStyle | undefined)); + } + } + } + if (modifier._recoverable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._recoverable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.recoverable(modifier._recoverable_0_0value); + break; + } + default: { + this.recoverable((undefined as boolean | undefined)); + } + } + } + if (modifier._systemTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._systemTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.systemTransition(modifier._systemTransition_0_0value); + break; + } + default: { + this.systemTransition((undefined as NavigationSystemTransitionType | undefined)); + } + } + } + if (modifier._bindToScrollable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindToScrollable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindToScrollable(modifier._bindToScrollable_0_0value); + break; + } + default: { + this.bindToScrollable((undefined as Array | undefined)); + } + } + } + if (modifier._bindToNestedScrollable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindToNestedScrollable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindToNestedScrollable(modifier._bindToNestedScrollable_0_0value); + break; + } + default: { + this.bindToNestedScrollable((undefined as Array | undefined)); + } + } + } + if (modifier._onActive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onActive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onActive(modifier._onActive_0_0value); + break; + } + default: { + this.onActive((undefined as ((value0: NavDestinationActiveReason) => void) | undefined)); + } + } + } + if (modifier._onInactive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onInactive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onInactive(modifier._onInactive_0_0value); + break; + } + default: { + this.onInactive((undefined as ((value0: NavDestinationActiveReason) => void) | undefined)); + } + } + } + if (modifier._customTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._customTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.customTransition(modifier._customTransition_0_0value); + break; + } + default: { + this.customTransition((undefined as NavDestinationTransitionDelegate | undefined)); + } + } + } + if (modifier._onNewParam_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onNewParam_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onNewParam(modifier._onNewParam_0_0value); + break; + } + default: { + this.onNewParam((undefined as ((value0: Object | undefined) => void) | undefined)); + } + } + } + if (modifier._preferredOrientation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._preferredOrientation_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.preferredOrientation(modifier._preferredOrientation_0_0value); + break; + } + default: { + this.preferredOrientation((undefined as Orientation | undefined)); + } + } + } + if (modifier._enableNavigationIndicator_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableNavigationIndicator_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableNavigationIndicator(modifier._enableNavigationIndicator_0_0value); + break; + } + default: { + this.enableNavigationIndicator((undefined as boolean | undefined)); + } + } + } + if (modifier._title_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._title_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.title(modifier._title_0_0value, modifier._title_0_1value); + break; + } + default: { + this.title((undefined as string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined), (undefined as NavigationTitleOptions | undefined | undefined)); + } + } + } + if (modifier._hideTitleBar_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideTitleBar_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideTitleBar(modifier._hideTitleBar_1_0value, modifier._hideTitleBar_1_1value); + break; + } + default: { + this.hideTitleBar((undefined as boolean | undefined), (undefined as boolean | undefined)); + } + } + } + if (modifier._backButtonIcon_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backButtonIcon_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backButtonIcon(modifier._backButtonIcon_1_0value, modifier._backButtonIcon_1_1value); + break; + } + default: { + this.backButtonIcon((undefined as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined), (undefined as ResourceStr | undefined | undefined)); + } + } + } + if (modifier._menus_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menus_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menus(modifier._menus_1_0value, modifier._menus_1_1value); + break; + } + default: { + this.menus((undefined as Array | CustomBuilder | undefined), (undefined as NavigationMenuOptions | undefined | undefined)); + } + } + } + if (modifier._toolbarConfiguration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._toolbarConfiguration_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.toolbarConfiguration(modifier._toolbarConfiguration_0_0value, modifier._toolbarConfiguration_0_1value); + break; + } + default: { + this.toolbarConfiguration((undefined as Array | CustomBuilder | undefined), (undefined as NavigationToolbarOptions | undefined | undefined)); + } + } + } + if (modifier._hideToolBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideToolBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideToolBar(modifier._hideToolBar_0_0value, modifier._hideToolBar_0_1value); + break; + } + default: { + this.hideToolBar((undefined as boolean | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (modifier._ignoreLayoutSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._ignoreLayoutSafeArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.ignoreLayoutSafeArea(modifier._ignoreLayoutSafeArea_0_0value, modifier._ignoreLayoutSafeArea_0_1value); + break; + } + default: { + this.ignoreLayoutSafeArea((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); + } + } + } + if (modifier._enableStatusBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableStatusBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableStatusBar(modifier._enableStatusBar_0_0value, modifier._enableStatusBar_0_1value); + break; + } + default: { + this.enableStatusBar((undefined as boolean | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + } + hideTitleBar(value: boolean | undefined): this { + if (((this._hideTitleBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideTitleBar_0_0value) !== (value))) + { + this._hideTitleBar_0_flag = AttributeUpdaterFlag.UPDATE + this._hideTitleBar_0_0value = value + } else + { + this._hideTitleBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hideBackButton(value: boolean | undefined): this { + if (((this._hideBackButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideBackButton_0_0value) !== (value))) + { + this._hideBackButton_0_flag = AttributeUpdaterFlag.UPDATE + this._hideBackButton_0_0value = value + } else + { + this._hideBackButton_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onShown(value: (() => void) | undefined): this { + if (((this._onShown_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onShown_0_flag = AttributeUpdaterFlag.UPDATE + this._onShown_0_0value = value + } else + { + this._onShown_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onHidden(value: (() => void) | undefined): this { + if (((this._onHidden_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onHidden_0_flag = AttributeUpdaterFlag.UPDATE + this._onHidden_0_0value = value + } else + { + this._onHidden_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onBackPressed(value: (() => boolean) | undefined): this { + if (((this._onBackPressed_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onBackPressed_0_flag = AttributeUpdaterFlag.UPDATE + this._onBackPressed_0_0value = value + } else + { + this._onBackPressed_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onResult(value: ((value0: Object | undefined) => void) | undefined): this { + if (((this._onResult_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onResult_0_flag = AttributeUpdaterFlag.UPDATE + this._onResult_0_0value = value + } else + { + this._onResult_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + mode(value: NavDestinationMode | undefined): this { + if (((this._mode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._mode_0_flag = AttributeUpdaterFlag.UPDATE + this._mode_0_0value = value + } else + { + this._mode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backButtonIcon(value: ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined): this { + if (((this._backButtonIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._backButtonIcon_0_flag = AttributeUpdaterFlag.UPDATE + this._backButtonIcon_0_0value = value + } else + { + this._backButtonIcon_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menus(value: Array | CustomBuilder | undefined): this { + if (((this._menus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._menus_0_flag = AttributeUpdaterFlag.UPDATE + this._menus_0_0value = value + } else + { + this._menus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onReady(value: ((value0: NavDestinationContext) => void) | undefined): this { + if (((this._onReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onReady_0_flag = AttributeUpdaterFlag.UPDATE + this._onReady_0_0value = value + } else + { + this._onReady_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillAppear(value: (() => void) | undefined): this { + if (((this._onWillAppear_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillAppear_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillAppear_0_0value = value + } else + { + this._onWillAppear_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillDisappear(value: (() => void) | undefined): this { + if (((this._onWillDisappear_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillDisappear_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillDisappear_0_0value = value + } else + { + this._onWillDisappear_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillShow(value: (() => void) | undefined): this { + if (((this._onWillShow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillShow_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillShow_0_0value = value + } else + { + this._onWillShow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillHide(value: (() => void) | undefined): this { + if (((this._onWillHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillHide_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillHide_0_0value = value + } else + { + this._onWillHide_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + systemBarStyle(value: window.SystemBarStyle | undefined): this { + if (((this._systemBarStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._systemBarStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._systemBarStyle_0_0value = value + } else + { + this._systemBarStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + recoverable(value: boolean | undefined): this { + if (((this._recoverable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._recoverable_0_0value) !== (value))) + { + this._recoverable_0_flag = AttributeUpdaterFlag.UPDATE + this._recoverable_0_0value = value + } else + { + this._recoverable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + systemTransition(value: NavigationSystemTransitionType | undefined): this { + if (((this._systemTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._systemTransition_0_flag = AttributeUpdaterFlag.UPDATE + this._systemTransition_0_0value = value + } else + { + this._systemTransition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindToScrollable(value: Array | undefined): this { + if (((this._bindToScrollable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._bindToScrollable_0_flag = AttributeUpdaterFlag.UPDATE + this._bindToScrollable_0_0value = value + } else + { + this._bindToScrollable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindToNestedScrollable(value: Array | undefined): this { + if (((this._bindToNestedScrollable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.UPDATE + this._bindToNestedScrollable_0_0value = value + } else + { + this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onActive(value: ((value0: NavDestinationActiveReason) => void) | undefined): this { + if (((this._onActive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onActive_0_flag = AttributeUpdaterFlag.UPDATE + this._onActive_0_0value = value + } else + { + this._onActive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onInactive(value: ((value0: NavDestinationActiveReason) => void) | undefined): this { + if (((this._onInactive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onInactive_0_flag = AttributeUpdaterFlag.UPDATE + this._onInactive_0_0value = value + } else + { + this._onInactive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + customTransition(value: NavDestinationTransitionDelegate | undefined): this { + if (((this._customTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._customTransition_0_flag = AttributeUpdaterFlag.UPDATE + this._customTransition_0_0value = value + } else + { + this._customTransition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onNewParam(value: ((value0: Object | undefined) => void) | undefined): this { + if (((this._onNewParam_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onNewParam_0_flag = AttributeUpdaterFlag.UPDATE + this._onNewParam_0_0value = value + } else + { + this._onNewParam_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + preferredOrientation(value: Orientation | undefined): this { + if (((this._preferredOrientation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._preferredOrientation_0_flag = AttributeUpdaterFlag.UPDATE + this._preferredOrientation_0_0value = value + } else + { + this._preferredOrientation_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableNavigationIndicator(value: boolean | undefined): this { + if (((this._enableNavigationIndicator_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableNavigationIndicator_0_0value) !== (value))) + { + this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.UPDATE + this._enableNavigationIndicator_0_0value = value + } else + { + this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined, options?: NavigationTitleOptions): this { + if (((this._title_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._title_0_flag = AttributeUpdaterFlag.UPDATE + this._title_0_0value = value + this._title_0_1value = options + } else + { + this._title_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hideTitleBar(hide: boolean | undefined, animated: boolean | undefined): this { + if (((this._hideTitleBar_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideTitleBar_1_0value) !== (hide)) || ((this._hideTitleBar_1_1value) !== (animated))) + { + this._hideTitleBar_1_flag = AttributeUpdaterFlag.UPDATE + this._hideTitleBar_1_0value = hide + this._hideTitleBar_1_1value = animated + } else + { + this._hideTitleBar_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backButtonIcon(icon: ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined, accessibilityText?: ResourceStr): this { + if (((this._backButtonIcon_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._backButtonIcon_1_flag = AttributeUpdaterFlag.UPDATE + this._backButtonIcon_1_0value = icon + this._backButtonIcon_1_1value = accessibilityText + } else + { + this._backButtonIcon_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menus(items: Array | CustomBuilder | undefined, options?: NavigationMenuOptions): this { + if (((this._menus_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._menus_1_flag = AttributeUpdaterFlag.UPDATE + this._menus_1_0value = items + this._menus_1_1value = options + } else + { + this._menus_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + toolbarConfiguration(toolbarParam: Array | CustomBuilder | undefined, options?: NavigationToolbarOptions): this { + if (((this._toolbarConfiguration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.UPDATE + this._toolbarConfiguration_0_0value = toolbarParam + this._toolbarConfiguration_0_1value = options + } else + { + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hideToolBar(hide: boolean | undefined, animated?: boolean): this { + if (((this._hideToolBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideToolBar_0_0value) !== (hide)) || ((this._hideToolBar_0_1value) !== (animated))) + { + this._hideToolBar_0_flag = AttributeUpdaterFlag.UPDATE + this._hideToolBar_0_0value = hide + this._hideToolBar_0_1value = animated + } else + { + this._hideToolBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + ignoreLayoutSafeArea(types?: Array, edges?: Array): this { + if (((this._ignoreLayoutSafeArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.UPDATE + this._ignoreLayoutSafeArea_0_0value = types + this._ignoreLayoutSafeArea_0_1value = edges + } else + { + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableStatusBar(enabled: boolean | undefined, animated?: boolean): this { + if (((this._enableStatusBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableStatusBar_0_0value) !== (enabled)) || ((this._enableStatusBar_0_1value) !== (animated))) + { + this._enableStatusBar_0_flag = AttributeUpdaterFlag.UPDATE + this._enableStatusBar_0_0value = enabled + this._enableStatusBar_0_1value = animated + } else + { + this._enableStatusBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/NavigationModifier.ets b/arkoala-arkts/arkui/generated/NavigationModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..a080cbd010c774bc7956103f1dee16d3fee8b525 --- /dev/null +++ b/arkoala-arkts/arkui/generated/NavigationModifier.ets @@ -0,0 +1,1340 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkNavigationPeer, NavBarPosition, NavigationMode, NavigationTitleMode, NavigationMenuItem, NavContentInfo, NavigationOperation, NavigationAnimatedTransition, NavigationAttribute, NavigationCommonTitle, NavigationCustomTitle, NavigationTitleOptions, NavigationMenuOptions, ToolbarItem, NavigationToolbarOptions } from "./component/navigation" +import { CommonMethod, Bindable, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./component/common" +import { Length, Dimension, ResourceStr } from "./component/units" +import { Resource } from "global.resource" +import { image } from "./framework/ohos.multimedia.image" +import { SymbolGlyphModifier } from "./SymbolGlyphModifier" +import { CustomBuilder, PageMapBuilder } from "./component/builder" +import { window } from "./framework/ohos.window" +export class NavigationModifier extends CommonMethodModifier implements NavigationAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: NavigationAttribute): void { } + applyPressedAttribute(instance: NavigationAttribute): void { } + applyFocusedAttribute(instance: NavigationAttribute): void { } + applyDisabledAttribute(instance: NavigationAttribute): void { } + applySelectedAttribute(instance: NavigationAttribute): void { } + _navBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _navBarWidth_0_0value?: Length | Bindable | undefined + _navBarPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _navBarPosition_0_0value?: NavBarPosition | undefined + _navBarWidthRange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _navBarWidthRange_0_0value?: [ Dimension, Dimension ] | undefined + _minContentWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minContentWidth_0_0value?: Dimension | undefined + _mode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mode_0_0value?: NavigationMode | undefined + _backButtonIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backButtonIcon_0_0value?: string | image.PixelMap | Resource | SymbolGlyphModifier | undefined + _hideNavBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideNavBar_0_0value?: boolean | undefined + _hideTitleBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideTitleBar_0_0value?: boolean | undefined + _hideBackButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideBackButton_0_0value?: boolean | undefined + _titleMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _titleMode_0_0value?: NavigationTitleMode | undefined + _menus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menus_0_0value?: Array | CustomBuilder | undefined + _hideToolBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideToolBar_0_0value?: boolean | undefined + _enableToolBarAdaptation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableToolBarAdaptation_0_0value?: boolean | undefined + _onTitleModeChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTitleModeChange_0_0value?: ((titleMode: NavigationTitleMode) => void) | undefined + _onNavBarStateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onNavBarStateChange_0_0value?: ((isVisible: boolean) => void) | undefined + _onNavigationModeChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onNavigationModeChange_0_0value?: ((mode: NavigationMode) => void) | undefined + _navDestination_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _navDestination_0_0value?: PageMapBuilder | undefined + _customNavContentTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _customNavContentTransition_0_0value?: ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined + _systemBarStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _systemBarStyle_0_0value?: window.SystemBarStyle | undefined + _recoverable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _recoverable_0_0value?: boolean | undefined + _enableDragBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableDragBar_0_0value?: boolean | undefined + _enableModeChangeAnimation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableModeChangeAnimation_0_0value?: boolean | undefined + _backButtonIcon_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backButtonIcon_1_0value?: string | image.PixelMap | Resource | SymbolGlyphModifier | undefined + _backButtonIcon_1_1value?: ResourceStr | undefined + _title_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _title_0_0value?: ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined + _title_0_1value?: NavigationTitleOptions | undefined + _hideTitleBar_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideTitleBar_1_0value?: boolean | undefined + _hideTitleBar_1_1value?: boolean | undefined + _menus_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menus_1_0value?: Array | CustomBuilder | undefined + _menus_1_1value?: NavigationMenuOptions | undefined + _toolbarConfiguration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _toolbarConfiguration_0_0value?: Array | CustomBuilder | undefined + _toolbarConfiguration_0_1value?: NavigationToolbarOptions | undefined + _hideToolBar_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hideToolBar_1_0value?: boolean | undefined + _hideToolBar_1_1value?: boolean | undefined + _ignoreLayoutSafeArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _ignoreLayoutSafeArea_0_0value?: Array | undefined + _ignoreLayoutSafeArea_0_1value?: Array | undefined + applyModifierPatch(peer: ArkNavigationPeer): void { + super.applyModifierPatch(peer) + if (this._navBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._navBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNavBarWidthAttribute((this._navBarWidth_0_0value as Length | Bindable | undefined)); + this._navBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._navBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._navBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setNavBarWidthAttribute((undefined as Length | Bindable | undefined)); + } + } + } + if (this._navBarPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._navBarPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNavBarPositionAttribute((this._navBarPosition_0_0value as NavBarPosition | undefined)); + this._navBarPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._navBarPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._navBarPosition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setNavBarPositionAttribute((undefined as NavBarPosition | undefined)); + } + } + } + if (this._navBarWidthRange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._navBarWidthRange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNavBarWidthRangeAttribute((this._navBarWidthRange_0_0value as [ Dimension, Dimension ] | undefined)); + this._navBarWidthRange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._navBarWidthRange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._navBarWidthRange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setNavBarWidthRangeAttribute((undefined as [ Dimension, Dimension ] | undefined)); + } + } + } + if (this._minContentWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minContentWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinContentWidthAttribute((this._minContentWidth_0_0value as Dimension | undefined)); + this._minContentWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minContentWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minContentWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinContentWidthAttribute((undefined as Dimension | undefined)); + } + } + } + if (this._mode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setModeAttribute((this._mode_0_0value as NavigationMode | undefined)); + this._mode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setModeAttribute((undefined as NavigationMode | undefined)); + } + } + } + if (this._backButtonIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backButtonIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackButtonIcon0Attribute((this._backButtonIcon_0_0value as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined)); + this._backButtonIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backButtonIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backButtonIcon_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackButtonIcon0Attribute((undefined as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined)); + } + } + } + if (this._hideNavBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideNavBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideNavBarAttribute((this._hideNavBar_0_0value as boolean | undefined)); + this._hideNavBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideNavBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideNavBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideNavBarAttribute((undefined as boolean | undefined)); + } + } + } + if (this._hideTitleBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideTitleBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideTitleBar0Attribute((this._hideTitleBar_0_0value as boolean | undefined)); + this._hideTitleBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideTitleBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideTitleBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideTitleBar0Attribute((undefined as boolean | undefined)); + } + } + } + if (this._hideBackButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideBackButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideBackButtonAttribute((this._hideBackButton_0_0value as boolean | undefined)); + this._hideBackButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideBackButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideBackButton_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideBackButtonAttribute((undefined as boolean | undefined)); + } + } + } + if (this._titleMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._titleMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTitleModeAttribute((this._titleMode_0_0value as NavigationTitleMode | undefined)); + this._titleMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._titleMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._titleMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTitleModeAttribute((undefined as NavigationTitleMode | undefined)); + } + } + } + if (this._menus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenus0Attribute((this._menus_0_0value as Array | CustomBuilder | undefined)); + this._menus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenus0Attribute((undefined as Array | CustomBuilder | undefined)); + } + } + } + if (this._hideToolBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideToolBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideToolBar0Attribute((this._hideToolBar_0_0value as boolean | undefined)); + this._hideToolBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideToolBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideToolBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideToolBar0Attribute((undefined as boolean | undefined)); + } + } + } + if (this._enableToolBarAdaptation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableToolBarAdaptation_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableToolBarAdaptationAttribute((this._enableToolBarAdaptation_0_0value as boolean | undefined)); + this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableToolBarAdaptationAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onTitleModeChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTitleModeChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTitleModeChangeAttribute((this._onTitleModeChange_0_0value as ((titleMode: NavigationTitleMode) => void) | undefined)); + this._onTitleModeChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTitleModeChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTitleModeChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTitleModeChangeAttribute((undefined as ((titleMode: NavigationTitleMode) => void) | undefined)); + } + } + } + if (this._onNavBarStateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onNavBarStateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnNavBarStateChangeAttribute((this._onNavBarStateChange_0_0value as ((isVisible: boolean) => void) | undefined)); + this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnNavBarStateChangeAttribute((undefined as ((isVisible: boolean) => void) | undefined)); + } + } + } + if (this._onNavigationModeChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onNavigationModeChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnNavigationModeChangeAttribute((this._onNavigationModeChange_0_0value as ((mode: NavigationMode) => void) | undefined)); + this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnNavigationModeChangeAttribute((undefined as ((mode: NavigationMode) => void) | undefined)); + } + } + } + if (this._navDestination_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._navDestination_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNavDestinationAttribute((this._navDestination_0_0value as PageMapBuilder | undefined)); + this._navDestination_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._navDestination_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._navDestination_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setNavDestinationAttribute((undefined as PageMapBuilder | undefined)); + } + } + } + if (this._customNavContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._customNavContentTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCustomNavContentTransitionAttribute((this._customNavContentTransition_0_0value as ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined)); + this._customNavContentTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._customNavContentTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._customNavContentTransition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCustomNavContentTransitionAttribute((undefined as ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined)); + } + } + } + if (this._systemBarStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._systemBarStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSystemBarStyleAttribute((this._systemBarStyle_0_0value as window.SystemBarStyle | undefined)); + this._systemBarStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._systemBarStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._systemBarStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSystemBarStyleAttribute((undefined as window.SystemBarStyle | undefined)); + } + } + } + if (this._recoverable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._recoverable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRecoverableAttribute((this._recoverable_0_0value as boolean | undefined)); + this._recoverable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._recoverable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._recoverable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRecoverableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableDragBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableDragBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableDragBarAttribute((this._enableDragBar_0_0value as boolean | undefined)); + this._enableDragBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableDragBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableDragBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableDragBarAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableModeChangeAnimation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableModeChangeAnimation_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableModeChangeAnimationAttribute((this._enableModeChangeAnimation_0_0value as boolean | undefined)); + this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableModeChangeAnimationAttribute((undefined as boolean | undefined)); + } + } + } + if (this._backButtonIcon_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._backButtonIcon_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBackButtonIcon1Attribute((this._backButtonIcon_1_0value as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined), (this._backButtonIcon_1_1value as ResourceStr | undefined)); + this._backButtonIcon_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._backButtonIcon_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._backButtonIcon_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setBackButtonIcon1Attribute((undefined as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined), (undefined as ResourceStr | undefined | undefined)); + } + } + } + if (this._title_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._title_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTitleAttribute((this._title_0_0value as ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined), (this._title_0_1value as NavigationTitleOptions | undefined)); + this._title_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._title_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._title_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTitleAttribute((undefined as ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined), (undefined as NavigationTitleOptions | undefined | undefined)); + } + } + } + if (this._hideTitleBar_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideTitleBar_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideTitleBar1Attribute((this._hideTitleBar_1_0value as boolean | undefined), (this._hideTitleBar_1_1value as boolean | undefined)); + this._hideTitleBar_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideTitleBar_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideTitleBar_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideTitleBar1Attribute((undefined as boolean | undefined), (undefined as boolean | undefined)); + } + } + } + if (this._menus_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menus_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenus1Attribute((this._menus_1_0value as Array | CustomBuilder | undefined), (this._menus_1_1value as NavigationMenuOptions | undefined)); + this._menus_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menus_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menus_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenus1Attribute((undefined as Array | CustomBuilder | undefined), (undefined as NavigationMenuOptions | undefined | undefined)); + } + } + } + if (this._toolbarConfiguration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._toolbarConfiguration_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setToolbarConfigurationAttribute((this._toolbarConfiguration_0_0value as Array | CustomBuilder | undefined), (this._toolbarConfiguration_0_1value as NavigationToolbarOptions | undefined)); + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setToolbarConfigurationAttribute((undefined as Array | CustomBuilder | undefined), (undefined as NavigationToolbarOptions | undefined | undefined)); + } + } + } + if (this._hideToolBar_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hideToolBar_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHideToolBar1Attribute((this._hideToolBar_1_0value as boolean | undefined), (this._hideToolBar_1_1value as boolean | undefined)); + this._hideToolBar_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hideToolBar_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hideToolBar_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setHideToolBar1Attribute((undefined as boolean | undefined), (undefined as boolean | undefined)); + } + } + } + if (this._ignoreLayoutSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._ignoreLayoutSafeArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIgnoreLayoutSafeAreaAttribute((this._ignoreLayoutSafeArea_0_0value as Array | undefined), (this._ignoreLayoutSafeArea_0_1value as Array | undefined)); + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIgnoreLayoutSafeAreaAttribute((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: NavigationModifier): void { + super.mergeModifier(modifier) + if (modifier._navBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._navBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.navBarWidth(modifier._navBarWidth_0_0value); + break; + } + default: { + this.navBarWidth((undefined as Length | Bindable | undefined)); + } + } + } + if (modifier._navBarPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._navBarPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.navBarPosition(modifier._navBarPosition_0_0value); + break; + } + default: { + this.navBarPosition((undefined as NavBarPosition | undefined)); + } + } + } + if (modifier._navBarWidthRange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._navBarWidthRange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.navBarWidthRange(modifier._navBarWidthRange_0_0value); + break; + } + default: { + this.navBarWidthRange((undefined as [ Dimension, Dimension ] | undefined)); + } + } + } + if (modifier._minContentWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minContentWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minContentWidth(modifier._minContentWidth_0_0value); + break; + } + default: { + this.minContentWidth((undefined as Dimension | undefined)); + } + } + } + if (modifier._mode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mode(modifier._mode_0_0value); + break; + } + default: { + this.mode((undefined as NavigationMode | undefined)); + } + } + } + if (modifier._backButtonIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backButtonIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backButtonIcon(modifier._backButtonIcon_0_0value); + break; + } + default: { + this.backButtonIcon((undefined as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined)); + } + } + } + if (modifier._hideNavBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideNavBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideNavBar(modifier._hideNavBar_0_0value); + break; + } + default: { + this.hideNavBar((undefined as boolean | undefined)); + } + } + } + if (modifier._hideTitleBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideTitleBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideTitleBar(modifier._hideTitleBar_0_0value); + break; + } + default: { + this.hideTitleBar((undefined as boolean | undefined)); + } + } + } + if (modifier._hideBackButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideBackButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideBackButton(modifier._hideBackButton_0_0value); + break; + } + default: { + this.hideBackButton((undefined as boolean | undefined)); + } + } + } + if (modifier._titleMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._titleMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.titleMode(modifier._titleMode_0_0value); + break; + } + default: { + this.titleMode((undefined as NavigationTitleMode | undefined)); + } + } + } + if (modifier._menus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menus(modifier._menus_0_0value); + break; + } + default: { + this.menus((undefined as Array | CustomBuilder | undefined)); + } + } + } + if (modifier._hideToolBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideToolBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideToolBar(modifier._hideToolBar_0_0value); + break; + } + default: { + this.hideToolBar((undefined as boolean | undefined)); + } + } + } + if (modifier._enableToolBarAdaptation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableToolBarAdaptation_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableToolBarAdaptation(modifier._enableToolBarAdaptation_0_0value); + break; + } + default: { + this.enableToolBarAdaptation((undefined as boolean | undefined)); + } + } + } + if (modifier._onTitleModeChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTitleModeChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTitleModeChange(modifier._onTitleModeChange_0_0value); + break; + } + default: { + this.onTitleModeChange((undefined as ((titleMode: NavigationTitleMode) => void) | undefined)); + } + } + } + if (modifier._onNavBarStateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onNavBarStateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onNavBarStateChange(modifier._onNavBarStateChange_0_0value); + break; + } + default: { + this.onNavBarStateChange((undefined as ((isVisible: boolean) => void) | undefined)); + } + } + } + if (modifier._onNavigationModeChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onNavigationModeChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onNavigationModeChange(modifier._onNavigationModeChange_0_0value); + break; + } + default: { + this.onNavigationModeChange((undefined as ((mode: NavigationMode) => void) | undefined)); + } + } + } + if (modifier._navDestination_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._navDestination_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.navDestination(modifier._navDestination_0_0value); + break; + } + default: { + this.navDestination((undefined as PageMapBuilder | undefined)); + } + } + } + if (modifier._customNavContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._customNavContentTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.customNavContentTransition(modifier._customNavContentTransition_0_0value); + break; + } + default: { + this.customNavContentTransition((undefined as ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined)); + } + } + } + if (modifier._systemBarStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._systemBarStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.systemBarStyle(modifier._systemBarStyle_0_0value); + break; + } + default: { + this.systemBarStyle((undefined as window.SystemBarStyle | undefined)); + } + } + } + if (modifier._recoverable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._recoverable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.recoverable(modifier._recoverable_0_0value); + break; + } + default: { + this.recoverable((undefined as boolean | undefined)); + } + } + } + if (modifier._enableDragBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableDragBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableDragBar(modifier._enableDragBar_0_0value); + break; + } + default: { + this.enableDragBar((undefined as boolean | undefined)); + } + } + } + if (modifier._enableModeChangeAnimation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableModeChangeAnimation_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableModeChangeAnimation(modifier._enableModeChangeAnimation_0_0value); + break; + } + default: { + this.enableModeChangeAnimation((undefined as boolean | undefined)); + } + } + } + if (modifier._backButtonIcon_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._backButtonIcon_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backButtonIcon(modifier._backButtonIcon_1_0value, modifier._backButtonIcon_1_1value); + break; + } + default: { + this.backButtonIcon((undefined as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined), (undefined as ResourceStr | undefined | undefined)); + } + } + } + if (modifier._title_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._title_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.title(modifier._title_0_0value, modifier._title_0_1value); + break; + } + default: { + this.title((undefined as ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined), (undefined as NavigationTitleOptions | undefined | undefined)); + } + } + } + if (modifier._hideTitleBar_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideTitleBar_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideTitleBar(modifier._hideTitleBar_1_0value, modifier._hideTitleBar_1_1value); + break; + } + default: { + this.hideTitleBar((undefined as boolean | undefined), (undefined as boolean | undefined)); + } + } + } + if (modifier._menus_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menus_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menus(modifier._menus_1_0value, modifier._menus_1_1value); + break; + } + default: { + this.menus((undefined as Array | CustomBuilder | undefined), (undefined as NavigationMenuOptions | undefined | undefined)); + } + } + } + if (modifier._toolbarConfiguration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._toolbarConfiguration_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.toolbarConfiguration(modifier._toolbarConfiguration_0_0value, modifier._toolbarConfiguration_0_1value); + break; + } + default: { + this.toolbarConfiguration((undefined as Array | CustomBuilder | undefined), (undefined as NavigationToolbarOptions | undefined | undefined)); + } + } + } + if (modifier._hideToolBar_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hideToolBar_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hideToolBar(modifier._hideToolBar_1_0value, modifier._hideToolBar_1_1value); + break; + } + default: { + this.hideToolBar((undefined as boolean | undefined), (undefined as boolean | undefined)); + } + } + } + if (modifier._ignoreLayoutSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._ignoreLayoutSafeArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.ignoreLayoutSafeArea(modifier._ignoreLayoutSafeArea_0_0value, modifier._ignoreLayoutSafeArea_0_1value); + break; + } + default: { + this.ignoreLayoutSafeArea((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); + } + } + } + } + navBarWidth(value: Length | Bindable | undefined): this { + if (((this._navBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._navBarWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._navBarWidth_0_0value = value + } else + { + this._navBarWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + navBarPosition(value: NavBarPosition | undefined): this { + if (((this._navBarPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._navBarPosition_0_flag = AttributeUpdaterFlag.UPDATE + this._navBarPosition_0_0value = value + } else + { + this._navBarPosition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + navBarWidthRange(value: [ Dimension, Dimension ] | undefined): this { + if (((this._navBarWidthRange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._navBarWidthRange_0_flag = AttributeUpdaterFlag.UPDATE + this._navBarWidthRange_0_0value = value + } else + { + this._navBarWidthRange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minContentWidth(value: Dimension | undefined): this { + if (((this._minContentWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._minContentWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._minContentWidth_0_0value = value + } else + { + this._minContentWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + mode(value: NavigationMode | undefined): this { + if (((this._mode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._mode_0_flag = AttributeUpdaterFlag.UPDATE + this._mode_0_0value = value + } else + { + this._mode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backButtonIcon(value: string | image.PixelMap | Resource | SymbolGlyphModifier | undefined): this { + if (((this._backButtonIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._backButtonIcon_0_flag = AttributeUpdaterFlag.UPDATE + this._backButtonIcon_0_0value = value + } else + { + this._backButtonIcon_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hideNavBar(value: boolean | undefined): this { + if (((this._hideNavBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideNavBar_0_0value) !== (value))) + { + this._hideNavBar_0_flag = AttributeUpdaterFlag.UPDATE + this._hideNavBar_0_0value = value + } else + { + this._hideNavBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hideTitleBar(value: boolean | undefined): this { + if (((this._hideTitleBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideTitleBar_0_0value) !== (value))) + { + this._hideTitleBar_0_flag = AttributeUpdaterFlag.UPDATE + this._hideTitleBar_0_0value = value + } else + { + this._hideTitleBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hideBackButton(value: boolean | undefined): this { + if (((this._hideBackButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideBackButton_0_0value) !== (value))) + { + this._hideBackButton_0_flag = AttributeUpdaterFlag.UPDATE + this._hideBackButton_0_0value = value + } else + { + this._hideBackButton_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + titleMode(value: NavigationTitleMode | undefined): this { + if (((this._titleMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._titleMode_0_flag = AttributeUpdaterFlag.UPDATE + this._titleMode_0_0value = value + } else + { + this._titleMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menus(value: Array | CustomBuilder | undefined): this { + if (((this._menus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._menus_0_flag = AttributeUpdaterFlag.UPDATE + this._menus_0_0value = value + } else + { + this._menus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hideToolBar(value: boolean | undefined): this { + if (((this._hideToolBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideToolBar_0_0value) !== (value))) + { + this._hideToolBar_0_flag = AttributeUpdaterFlag.UPDATE + this._hideToolBar_0_0value = value + } else + { + this._hideToolBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableToolBarAdaptation(value: boolean | undefined): this { + if (((this._enableToolBarAdaptation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableToolBarAdaptation_0_0value) !== (value))) + { + this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.UPDATE + this._enableToolBarAdaptation_0_0value = value + } else + { + this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTitleModeChange(value: ((titleMode: NavigationTitleMode) => void) | undefined): this { + if (((this._onTitleModeChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTitleModeChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onTitleModeChange_0_0value = value + } else + { + this._onTitleModeChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onNavBarStateChange(value: ((isVisible: boolean) => void) | undefined): this { + if (((this._onNavBarStateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onNavBarStateChange_0_0value = value + } else + { + this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onNavigationModeChange(value: ((mode: NavigationMode) => void) | undefined): this { + if (((this._onNavigationModeChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onNavigationModeChange_0_0value = value + } else + { + this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + navDestination(value: PageMapBuilder | undefined): this { + if (((this._navDestination_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._navDestination_0_flag = AttributeUpdaterFlag.UPDATE + this._navDestination_0_0value = value + } else + { + this._navDestination_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + customNavContentTransition(value: ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined): this { + if (((this._customNavContentTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._customNavContentTransition_0_flag = AttributeUpdaterFlag.UPDATE + this._customNavContentTransition_0_0value = value + } else + { + this._customNavContentTransition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + systemBarStyle(value: window.SystemBarStyle | undefined): this { + if (((this._systemBarStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._systemBarStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._systemBarStyle_0_0value = value + } else + { + this._systemBarStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + recoverable(value: boolean | undefined): this { + if (((this._recoverable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._recoverable_0_0value) !== (value))) + { + this._recoverable_0_flag = AttributeUpdaterFlag.UPDATE + this._recoverable_0_0value = value + } else + { + this._recoverable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableDragBar(value: boolean | undefined): this { + if (((this._enableDragBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableDragBar_0_0value) !== (value))) + { + this._enableDragBar_0_flag = AttributeUpdaterFlag.UPDATE + this._enableDragBar_0_0value = value + } else + { + this._enableDragBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableModeChangeAnimation(value: boolean | undefined): this { + if (((this._enableModeChangeAnimation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableModeChangeAnimation_0_0value) !== (value))) + { + this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.UPDATE + this._enableModeChangeAnimation_0_0value = value + } else + { + this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + backButtonIcon(icon: string | image.PixelMap | Resource | SymbolGlyphModifier | undefined, accessibilityText?: ResourceStr): this { + if (((this._backButtonIcon_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._backButtonIcon_1_flag = AttributeUpdaterFlag.UPDATE + this._backButtonIcon_1_0value = icon + this._backButtonIcon_1_1value = accessibilityText + } else + { + this._backButtonIcon_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + title(value: ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined, options?: NavigationTitleOptions): this { + if (((this._title_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._title_0_flag = AttributeUpdaterFlag.UPDATE + this._title_0_0value = value + this._title_0_1value = options + } else + { + this._title_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hideTitleBar(hide: boolean | undefined, animated: boolean | undefined): this { + if (((this._hideTitleBar_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideTitleBar_1_0value) !== (hide)) || ((this._hideTitleBar_1_1value) !== (animated))) + { + this._hideTitleBar_1_flag = AttributeUpdaterFlag.UPDATE + this._hideTitleBar_1_0value = hide + this._hideTitleBar_1_1value = animated + } else + { + this._hideTitleBar_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menus(items: Array | CustomBuilder | undefined, options?: NavigationMenuOptions): this { + if (((this._menus_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._menus_1_flag = AttributeUpdaterFlag.UPDATE + this._menus_1_0value = items + this._menus_1_1value = options + } else + { + this._menus_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + toolbarConfiguration(value: Array | CustomBuilder | undefined, options?: NavigationToolbarOptions): this { + if (((this._toolbarConfiguration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.UPDATE + this._toolbarConfiguration_0_0value = value + this._toolbarConfiguration_0_1value = options + } else + { + this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hideToolBar(hide: boolean | undefined, animated: boolean | undefined): this { + if (((this._hideToolBar_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideToolBar_1_0value) !== (hide)) || ((this._hideToolBar_1_1value) !== (animated))) + { + this._hideToolBar_1_flag = AttributeUpdaterFlag.UPDATE + this._hideToolBar_1_0value = hide + this._hideToolBar_1_1value = animated + } else + { + this._hideToolBar_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + ignoreLayoutSafeArea(types?: Array, edges?: Array): this { + if (((this._ignoreLayoutSafeArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.UPDATE + this._ignoreLayoutSafeArea_0_0value = types + this._ignoreLayoutSafeArea_0_1value = edges + } else + { + this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/NodeContainerModifier.ets b/arkoala-arkts/arkui/generated/NodeContainerModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..281ea8524e46d4a3c77ef8b589d7f06dc810ab3d --- /dev/null +++ b/arkoala-arkts/arkui/generated/NodeContainerModifier.ets @@ -0,0 +1,44 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkNodeContainerPeer, NodeContainerAttribute } from "./component/nodeContainer" +import { CommonMethod } from "./component/common" +export class NodeContainerModifier extends CommonMethodModifier implements NodeContainerAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: NodeContainerAttribute): void { } + applyPressedAttribute(instance: NodeContainerAttribute): void { } + applyFocusedAttribute(instance: NodeContainerAttribute): void { } + applyDisabledAttribute(instance: NodeContainerAttribute): void { } + applySelectedAttribute(instance: NodeContainerAttribute): void { } + applyModifierPatch(peer: ArkNodeContainerPeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: NodeContainerModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/generated/arkui.nodecontent.ets b/arkoala-arkts/arkui/generated/NodeContent.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/arkui.nodecontent.ets rename to arkoala-arkts/arkui/generated/NodeContent.ets index 2695fb36cf78ecca3073154f2a17c01177115da0..18a6ff06350357f0d8766445645d218ef1d27706 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.nodecontent.ets +++ b/arkoala-arkts/arkui/generated/NodeContent.ets @@ -16,12 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Content } from "./arkui.Content" -import { FrameNode, FrameNodeInternal } from "./arkui.FrameNode" +import { Content } from "./Content" +import { FrameNode, FrameNodeInternal } from "./FrameNode" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { CallbackTransformer } from "./../CallbackTransformer" +import { CallbackTransformer } from "./CallbackTransformer" +import { extractors } from "#handwritten" export class NodeContentInternal { public static fromPtr(ptr: KPointer): NodeContent { return new NodeContent(ptr) diff --git a/arkoala-arkts/arkui/src/generated/arkui.NodeController.ets b/arkoala-arkts/arkui/generated/NodeController.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/arkui.NodeController.ets rename to arkoala-arkts/arkui/generated/NodeController.ets index 1ce76a2663cd26862d251b222b0a5824e38e08d2..9a3105d42dcd61e15b09ca3cfb5fae7ff9c18e16 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.NodeController.ets +++ b/arkoala-arkts/arkui/generated/NodeController.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export interface NodeController { } diff --git a/arkoala-arkts/arkui/generated/PathModifier.ets b/arkoala-arkts/arkui/generated/PathModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..b9db9ddc557d30091484b6a25158ec1daf91ccc4 --- /dev/null +++ b/arkoala-arkts/arkui/generated/PathModifier.ets @@ -0,0 +1,45 @@ +/* + * 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 { CommonShapeMethodModifier } from "./CommonShapeMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkPathPeer, PathAttribute } from "./component/path" +import { CommonShapeMethod, CommonMethod } from "./component/common" +export class PathModifier extends CommonShapeMethodModifier implements PathAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: PathAttribute): void { } + applyPressedAttribute(instance: PathAttribute): void { } + applyFocusedAttribute(instance: PathAttribute): void { } + applyDisabledAttribute(instance: PathAttribute): void { } + applySelectedAttribute(instance: PathAttribute): void { } + applyModifierPatch(peer: ArkPathPeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: PathModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/PatternLockModifier.ets b/arkoala-arkts/arkui/generated/PatternLockModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b6ad265cedd711a9f1db7ecd1da0bcd677cab09 --- /dev/null +++ b/arkoala-arkts/arkui/generated/PatternLockModifier.ets @@ -0,0 +1,619 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkPatternLockPeer, CircleStyleOptions, PatternLockAttribute } from "./component/patternLock" +import { CommonMethod } from "./component/common" +import { Length, ResourceColor } from "./component/units" +import { Resource } from "global.resource" +import { Color } from "./component/enums" +export class PatternLockModifier extends CommonMethodModifier implements PatternLockAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: PatternLockAttribute): void { } + applyPressedAttribute(instance: PatternLockAttribute): void { } + applyFocusedAttribute(instance: PatternLockAttribute): void { } + applyDisabledAttribute(instance: PatternLockAttribute): void { } + applySelectedAttribute(instance: PatternLockAttribute): void { } + _sideLength_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sideLength_0_0value?: Length | undefined + _circleRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _circleRadius_0_0value?: Length | undefined + _backgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundColor_0_0value?: ResourceColor | undefined + _regularColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _regularColor_0_0value?: ResourceColor | undefined + _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedColor_0_0value?: ResourceColor | undefined + _activeColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _activeColor_0_0value?: ResourceColor | undefined + _pathColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pathColor_0_0value?: ResourceColor | undefined + _pathStrokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pathStrokeWidth_0_0value?: number | string | undefined + _onPatternComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPatternComplete_0_0value?: ((input: Array) => void) | undefined + _autoReset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _autoReset_0_0value?: boolean | undefined + _onDotConnect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDotConnect_0_0value?: ((value0: number) => void) | undefined + _activateCircleStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _activateCircleStyle_0_0value?: CircleStyleOptions | undefined + _skipUnselectedPoint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _skipUnselectedPoint_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkPatternLockPeer): void { + super.applyModifierPatch(peer) + if (this._sideLength_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sideLength_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSideLengthAttribute((this._sideLength_0_0value as Length | undefined)); + this._sideLength_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sideLength_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sideLength_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSideLengthAttribute((undefined as Length | undefined)); + } + } + } + if (this._circleRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._circleRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCircleRadiusAttribute((this._circleRadius_0_0value as Length | undefined)); + this._circleRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._circleRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._circleRadius_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCircleRadiusAttribute((undefined as Length | 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._regularColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._regularColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRegularColorAttribute((this._regularColor_0_0value as ResourceColor | undefined)); + this._regularColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._regularColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._regularColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRegularColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | undefined)); + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._activeColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._activeColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setActiveColorAttribute((this._activeColor_0_0value as ResourceColor | undefined)); + this._activeColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._activeColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._activeColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setActiveColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._pathColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pathColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPathColorAttribute((this._pathColor_0_0value as ResourceColor | undefined)); + this._pathColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pathColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pathColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPathColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._pathStrokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pathStrokeWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPathStrokeWidthAttribute((this._pathStrokeWidth_0_0value as number | string | undefined)); + this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPathStrokeWidthAttribute((undefined as number | string | undefined)); + } + } + } + if (this._onPatternComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPatternComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPatternCompleteAttribute((this._onPatternComplete_0_0value as ((input: Array) => void) | undefined)); + this._onPatternComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPatternComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPatternComplete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPatternCompleteAttribute((undefined as ((input: Array) => void) | undefined)); + } + } + } + if (this._autoReset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._autoReset_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAutoResetAttribute((this._autoReset_0_0value as boolean | undefined)); + this._autoReset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._autoReset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._autoReset_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAutoResetAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onDotConnect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDotConnect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDotConnectAttribute((this._onDotConnect_0_0value as ((value0: number) => void) | undefined)); + this._onDotConnect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDotConnect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDotConnect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDotConnectAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (this._activateCircleStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._activateCircleStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setActivateCircleStyleAttribute((this._activateCircleStyle_0_0value as CircleStyleOptions | undefined)); + this._activateCircleStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._activateCircleStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._activateCircleStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setActivateCircleStyleAttribute((undefined as CircleStyleOptions | undefined)); + } + } + } + if (this._skipUnselectedPoint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._skipUnselectedPoint_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSkipUnselectedPointAttribute((this._skipUnselectedPoint_0_0value as boolean | undefined)); + this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSkipUnselectedPointAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: PatternLockModifier): void { + super.mergeModifier(modifier) + if (modifier._sideLength_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sideLength_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sideLength(modifier._sideLength_0_0value); + break; + } + default: { + this.sideLength((undefined as Length | undefined)); + } + } + } + if (modifier._circleRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._circleRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.circleRadius(modifier._circleRadius_0_0value); + break; + } + default: { + this.circleRadius((undefined as Length | 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._regularColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._regularColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.regularColor(modifier._regularColor_0_0value); + break; + } + default: { + this.regularColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedColor(modifier._selectedColor_0_0value); + break; + } + default: { + this.selectedColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._activeColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._activeColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.activeColor(modifier._activeColor_0_0value); + break; + } + default: { + this.activeColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._pathColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pathColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pathColor(modifier._pathColor_0_0value); + break; + } + default: { + this.pathColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._pathStrokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pathStrokeWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pathStrokeWidth(modifier._pathStrokeWidth_0_0value); + break; + } + default: { + this.pathStrokeWidth((undefined as number | string | undefined)); + } + } + } + if (modifier._onPatternComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPatternComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPatternComplete(modifier._onPatternComplete_0_0value); + break; + } + default: { + this.onPatternComplete((undefined as ((input: Array) => void) | undefined)); + } + } + } + if (modifier._autoReset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._autoReset_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.autoReset(modifier._autoReset_0_0value); + break; + } + default: { + this.autoReset((undefined as boolean | undefined)); + } + } + } + if (modifier._onDotConnect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDotConnect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDotConnect(modifier._onDotConnect_0_0value); + break; + } + default: { + this.onDotConnect((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (modifier._activateCircleStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._activateCircleStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.activateCircleStyle(modifier._activateCircleStyle_0_0value); + break; + } + default: { + this.activateCircleStyle((undefined as CircleStyleOptions | undefined)); + } + } + } + if (modifier._skipUnselectedPoint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._skipUnselectedPoint_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.skipUnselectedPoint(modifier._skipUnselectedPoint_0_0value); + break; + } + default: { + this.skipUnselectedPoint((undefined as boolean | undefined)); + } + } + } + } + sideLength(value: Length | undefined): this { + if (((this._sideLength_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._sideLength_0_flag = AttributeUpdaterFlag.UPDATE + this._sideLength_0_0value = value + } else + { + this._sideLength_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + circleRadius(value: Length | undefined): this { + if (((this._circleRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._circleRadius_0_flag = AttributeUpdaterFlag.UPDATE + this._circleRadius_0_0value = value + } else + { + this._circleRadius_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 + } + regularColor(value: ResourceColor | undefined): this { + if (((this._regularColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._regularColor_0_flag = AttributeUpdaterFlag.UPDATE + this._regularColor_0_0value = value + } else + { + this._regularColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedColor(value: ResourceColor | undefined): this { + if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedColor_0_0value = value + } else + { + this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + activeColor(value: ResourceColor | undefined): this { + if (((this._activeColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._activeColor_0_flag = AttributeUpdaterFlag.UPDATE + this._activeColor_0_0value = value + } else + { + this._activeColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pathColor(value: ResourceColor | undefined): this { + if (((this._pathColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pathColor_0_flag = AttributeUpdaterFlag.UPDATE + this._pathColor_0_0value = value + } else + { + this._pathColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pathStrokeWidth(value: number | string | undefined): this { + if (((this._pathStrokeWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._pathStrokeWidth_0_0value) !== (value))) + { + this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._pathStrokeWidth_0_0value = value + } else + { + this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPatternComplete(value: ((input: Array) => void) | undefined): this { + if (((this._onPatternComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPatternComplete_0_flag = AttributeUpdaterFlag.UPDATE + this._onPatternComplete_0_0value = value + } else + { + this._onPatternComplete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + autoReset(value: boolean | undefined): this { + if (((this._autoReset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoReset_0_0value) !== (value))) + { + this._autoReset_0_flag = AttributeUpdaterFlag.UPDATE + this._autoReset_0_0value = value + } else + { + this._autoReset_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDotConnect(value: ((value0: number) => void) | undefined): this { + if (((this._onDotConnect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDotConnect_0_flag = AttributeUpdaterFlag.UPDATE + this._onDotConnect_0_0value = value + } else + { + this._onDotConnect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + activateCircleStyle(value: CircleStyleOptions | undefined): this { + if (((this._activateCircleStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._activateCircleStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._activateCircleStyle_0_0value = value + } else + { + this._activateCircleStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + skipUnselectedPoint(value: boolean | undefined): this { + if (((this._skipUnselectedPoint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._skipUnselectedPoint_0_0value) !== (value))) + { + this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.UPDATE + this._skipUnselectedPoint_0_0value = value + } else + { + this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/PluginComponentModifier.ets b/arkoala-arkts/arkui/generated/PluginComponentModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..0cfc1e17d4e760e8a6e8eb507528a598bd9d5e9b --- /dev/null +++ b/arkoala-arkts/arkui/generated/PluginComponentModifier.ets @@ -0,0 +1,133 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkPluginComponentPeer, PluginErrorCallback, PluginErrorData, PluginComponentAttribute } from "./component/pluginComponent" +import { CommonMethod } from "./component/common" +import { VoidCallback } from "./component/units" +export class PluginComponentModifier extends CommonMethodModifier implements PluginComponentAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: PluginComponentAttribute): void { } + applyPressedAttribute(instance: PluginComponentAttribute): void { } + applyFocusedAttribute(instance: PluginComponentAttribute): void { } + applyDisabledAttribute(instance: PluginComponentAttribute): void { } + applySelectedAttribute(instance: PluginComponentAttribute): void { } + _onComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onComplete_0_0value?: VoidCallback | undefined + _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onError_0_0value?: PluginErrorCallback | undefined + applyModifierPatch(peer: ArkPluginComponentPeer): void { + super.applyModifierPatch(peer) + if (this._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCompleteAttribute((this._onComplete_0_0value as VoidCallback | undefined)); + this._onComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onComplete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCompleteAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnErrorAttribute((this._onError_0_0value as PluginErrorCallback | undefined)); + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onError_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnErrorAttribute((undefined as PluginErrorCallback | undefined)); + } + } + } + } + mergeModifier(modifier: PluginComponentModifier): void { + super.mergeModifier(modifier) + if (modifier._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onComplete(modifier._onComplete_0_0value); + break; + } + default: { + this.onComplete((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onError(modifier._onError_0_0value); + break; + } + default: { + this.onError((undefined as PluginErrorCallback | undefined)); + } + } + } + } + onComplete(value: VoidCallback | undefined): this { + if (((this._onComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onComplete_0_flag = AttributeUpdaterFlag.UPDATE + this._onComplete_0_0value = value + } else + { + this._onComplete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onError(value: PluginErrorCallback | undefined): this { + if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onError_0_flag = AttributeUpdaterFlag.UPDATE + this._onError_0_0value = value + } else + { + this._onError_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/PolygonModifier.ets b/arkoala-arkts/arkui/generated/PolygonModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..31a352a401cac4131a1b02e01d455dc9b4283bb1 --- /dev/null +++ b/arkoala-arkts/arkui/generated/PolygonModifier.ets @@ -0,0 +1,92 @@ +/* + * 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 { CommonShapeMethodModifier } from "./CommonShapeMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkPolygonPeer, PolygonAttribute } from "./component/polygon" +import { CommonShapeMethod, CommonMethod } from "./component/common" +import { ShapePoint } from "./component/line" +import { Length } from "./component/units" +import { Resource } from "global.resource" +export class PolygonModifier extends CommonShapeMethodModifier implements PolygonAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: PolygonAttribute): void { } + applyPressedAttribute(instance: PolygonAttribute): void { } + applyFocusedAttribute(instance: PolygonAttribute): void { } + applyDisabledAttribute(instance: PolygonAttribute): void { } + applySelectedAttribute(instance: PolygonAttribute): void { } + _points_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _points_0_0value?: Array | undefined + applyModifierPatch(peer: ArkPolygonPeer): void { + super.applyModifierPatch(peer) + if (this._points_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._points_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPointsAttribute((this._points_0_0value as Array | undefined)); + this._points_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._points_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._points_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPointsAttribute((undefined as Array | undefined)); + } + } + } + } + mergeModifier(modifier: PolygonModifier): void { + super.mergeModifier(modifier) + if (modifier._points_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._points_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.points(modifier._points_0_0value); + break; + } + default: { + this.points((undefined as Array | undefined)); + } + } + } + } + points(value: Array | undefined): this { + if (((this._points_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._points_0_flag = AttributeUpdaterFlag.UPDATE + this._points_0_0value = value + } else + { + this._points_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/PolylineModifier.ets b/arkoala-arkts/arkui/generated/PolylineModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..d2781fd4a6c5902772e299e0e6b5c83748ad1f69 --- /dev/null +++ b/arkoala-arkts/arkui/generated/PolylineModifier.ets @@ -0,0 +1,92 @@ +/* + * 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 { CommonShapeMethodModifier } from "./CommonShapeMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkPolylinePeer, PolylineAttribute } from "./component/polyline" +import { CommonShapeMethod, CommonMethod } from "./component/common" +import { ShapePoint } from "./component/line" +import { Length } from "./component/units" +import { Resource } from "global.resource" +export class PolylineModifier extends CommonShapeMethodModifier implements PolylineAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: PolylineAttribute): void { } + applyPressedAttribute(instance: PolylineAttribute): void { } + applyFocusedAttribute(instance: PolylineAttribute): void { } + applyDisabledAttribute(instance: PolylineAttribute): void { } + applySelectedAttribute(instance: PolylineAttribute): void { } + _points_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _points_0_0value?: Array | undefined + applyModifierPatch(peer: ArkPolylinePeer): void { + super.applyModifierPatch(peer) + if (this._points_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._points_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPointsAttribute((this._points_0_0value as Array | undefined)); + this._points_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._points_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._points_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPointsAttribute((undefined as Array | undefined)); + } + } + } + } + mergeModifier(modifier: PolylineModifier): void { + super.mergeModifier(modifier) + if (modifier._points_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._points_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.points(modifier._points_0_0value); + break; + } + default: { + this.points((undefined as Array | undefined)); + } + } + } + } + points(value: Array | undefined): this { + if (((this._points_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._points_0_flag = AttributeUpdaterFlag.UPDATE + this._points_0_0value = value + } else + { + this._points_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ProgressModifier.ets b/arkoala-arkts/arkui/generated/ProgressModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..5228091fd316f410f59367e5bb754a3bf78b200d --- /dev/null +++ b/arkoala-arkts/arkui/generated/ProgressModifier.ets @@ -0,0 +1,224 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkProgressPeer, LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressAttribute } from "./component/progress" +import { CommonMethod } from "./component/common" +import { ResourceColor } from "./component/units" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +import { LinearGradient } from "./component/dataPanel" +export class ProgressModifier extends CommonMethodModifier implements ProgressAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ProgressAttribute): void { } + applyPressedAttribute(instance: ProgressAttribute): void { } + applyFocusedAttribute(instance: ProgressAttribute): void { } + applyDisabledAttribute(instance: ProgressAttribute): void { } + applySelectedAttribute(instance: ProgressAttribute): void { } + _value_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _value_0_0value?: number | undefined + _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _color_0_0value?: ResourceColor | LinearGradient | undefined + _style_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _style_0_0value?: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined + _privacySensitive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _privacySensitive_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkProgressPeer): void { + super.applyModifierPatch(peer) + if (this._value_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._value_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setValueAttribute((this._value_0_0value as number | undefined)); + this._value_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._value_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._value_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setValueAttribute((undefined as number | undefined)); + } + } + } + if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorAttribute((this._color_0_0value as ResourceColor | LinearGradient | undefined)); + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._color_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorAttribute((undefined as ResourceColor | LinearGradient | undefined)); + } + } + } + if (this._style_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._style_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStyleAttribute((this._style_0_0value as LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined)); + this._style_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._style_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._style_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStyleAttribute((undefined as LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined)); + } + } + } + if (this._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._privacySensitive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPrivacySensitiveAttribute((this._privacySensitive_0_0value as boolean | undefined)); + this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._privacySensitive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPrivacySensitiveAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: ProgressModifier): void { + super.mergeModifier(modifier) + if (modifier._value_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._value_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.value(modifier._value_0_0value); + break; + } + default: { + this.value((undefined as number | undefined)); + } + } + } + if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.color(modifier._color_0_0value); + break; + } + default: { + this.color((undefined as ResourceColor | LinearGradient | undefined)); + } + } + } + if (modifier._style_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._style_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.style(modifier._style_0_0value); + break; + } + default: { + this.style((undefined as LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined)); + } + } + } + if (modifier._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._privacySensitive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.privacySensitive(modifier._privacySensitive_0_0value); + break; + } + default: { + this.privacySensitive((undefined as boolean | undefined)); + } + } + } + } + value(value: number | undefined): this { + if (((this._value_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._value_0_0value) !== (value))) + { + this._value_0_flag = AttributeUpdaterFlag.UPDATE + this._value_0_0value = value + } else + { + this._value_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + color(value: ResourceColor | LinearGradient | undefined): this { + if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._color_0_flag = AttributeUpdaterFlag.UPDATE + this._color_0_0value = value + } else + { + this._color_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + style(value: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined): this { + if (((this._style_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._style_0_flag = AttributeUpdaterFlag.UPDATE + this._style_0_0value = value + } else + { + this._style_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + privacySensitive(value: boolean | undefined): this { + if (((this._privacySensitive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._privacySensitive_0_0value) !== (value))) + { + this._privacySensitive_0_flag = AttributeUpdaterFlag.UPDATE + this._privacySensitive_0_0value = value + } else + { + this._privacySensitive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/QRCodeModifier.ets b/arkoala-arkts/arkui/generated/QRCodeModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..4b62f6006ad53b2ca561af5801a6411162885488 --- /dev/null +++ b/arkoala-arkts/arkui/generated/QRCodeModifier.ets @@ -0,0 +1,179 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkQRCodePeer, QRCodeAttribute } from "./component/qrcode" +import { CommonMethod } from "./component/common" +import { ResourceColor } from "./component/units" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +export class QRCodeModifier extends CommonMethodModifier implements QRCodeAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: QRCodeAttribute): void { } + applyPressedAttribute(instance: QRCodeAttribute): void { } + applyFocusedAttribute(instance: QRCodeAttribute): void { } + applyDisabledAttribute(instance: QRCodeAttribute): void { } + applySelectedAttribute(instance: QRCodeAttribute): void { } + _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _color_0_0value?: ResourceColor | undefined + _backgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _backgroundColor_0_0value?: ResourceColor | undefined + _contentOpacity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _contentOpacity_0_0value?: number | Resource | undefined + applyModifierPatch(peer: ArkQRCodePeer): void { + super.applyModifierPatch(peer) + if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColorAttribute((this._color_0_0value as ResourceColor | undefined)); + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._color_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._color_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColorAttribute((undefined as ResourceColor | 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._contentOpacity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._contentOpacity_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setContentOpacityAttribute((this._contentOpacity_0_0value as number | Resource | undefined)); + this._contentOpacity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._contentOpacity_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._contentOpacity_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setContentOpacityAttribute((undefined as number | Resource | undefined)); + } + } + } + } + mergeModifier(modifier: QRCodeModifier): void { + super.mergeModifier(modifier) + if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._color_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.color(modifier._color_0_0value); + break; + } + default: { + this.color((undefined as ResourceColor | 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._contentOpacity_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._contentOpacity_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.contentOpacity(modifier._contentOpacity_0_0value); + break; + } + default: { + this.contentOpacity((undefined as number | Resource | undefined)); + } + } + } + } + color(value: ResourceColor | undefined): this { + if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._color_0_flag = AttributeUpdaterFlag.UPDATE + this._color_0_0value = value + } else + { + this._color_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 + } + contentOpacity(value: number | Resource | undefined): this { + if (((this._contentOpacity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._contentOpacity_0_flag = AttributeUpdaterFlag.UPDATE + this._contentOpacity_0_0value = value + } else + { + this._contentOpacity_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RadioModifier.ets b/arkoala-arkts/arkui/generated/RadioModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..bd1fe3de7364dc0cf297c1a8f07db418113f64c2 --- /dev/null +++ b/arkoala-arkts/arkui/generated/RadioModifier.ets @@ -0,0 +1,176 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRadioPeer, OnRadioChangeCallback, RadioStyle, RadioConfiguration, RadioAttribute } from "./component/radio" +import { CommonMethod, Bindable } from "./component/common" +export class RadioModifier extends CommonMethodModifier implements RadioAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RadioAttribute): void { } + applyPressedAttribute(instance: RadioAttribute): void { } + applyFocusedAttribute(instance: RadioAttribute): void { } + applyDisabledAttribute(instance: RadioAttribute): void { } + applySelectedAttribute(instance: RadioAttribute): void { } + _checked_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _checked_0_0value?: boolean | Bindable | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: OnRadioChangeCallback | undefined + _radioStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _radioStyle_0_0value?: RadioStyle | undefined + applyModifierPatch(peer: ArkRadioPeer): void { + super.applyModifierPatch(peer) + if (this._checked_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._checked_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCheckedAttribute((this._checked_0_0value as boolean | Bindable | undefined)); + this._checked_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._checked_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._checked_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCheckedAttribute((undefined as boolean | Bindable | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as OnRadioChangeCallback | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as OnRadioChangeCallback | undefined)); + } + } + } + if (this._radioStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._radioStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRadioStyleAttribute((this._radioStyle_0_0value as RadioStyle | undefined)); + this._radioStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._radioStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._radioStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRadioStyleAttribute((undefined as RadioStyle | undefined)); + } + } + } + } + mergeModifier(modifier: RadioModifier): void { + super.mergeModifier(modifier) + if (modifier._checked_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._checked_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.checked(modifier._checked_0_0value); + break; + } + default: { + this.checked((undefined as boolean | Bindable | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as OnRadioChangeCallback | undefined)); + } + } + } + if (modifier._radioStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._radioStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.radioStyle(modifier._radioStyle_0_0value); + break; + } + default: { + this.radioStyle((undefined as RadioStyle | undefined)); + } + } + } + } + checked(value: boolean | Bindable | undefined): this { + if (((this._checked_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._checked_0_flag = AttributeUpdaterFlag.UPDATE + this._checked_0_0value = value + } else + { + this._checked_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: OnRadioChangeCallback | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + radioStyle(value: RadioStyle | undefined): this { + if (((this._radioStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._radioStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._radioStyle_0_0value = value + } else + { + this._radioStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RatingModifier.ets b/arkoala-arkts/arkui/generated/RatingModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba29984dc2af8a4f03d8df165d277de4a972af67 --- /dev/null +++ b/arkoala-arkts/arkui/generated/RatingModifier.ets @@ -0,0 +1,220 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRatingPeer, StarStyleOptions, OnRatingChangeCallback, RatingConfiguration, RatingAttribute } from "./component/rating" +import { CommonMethod } from "./component/common" +export class RatingModifier extends CommonMethodModifier implements RatingAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RatingAttribute): void { } + applyPressedAttribute(instance: RatingAttribute): void { } + applyFocusedAttribute(instance: RatingAttribute): void { } + applyDisabledAttribute(instance: RatingAttribute): void { } + applySelectedAttribute(instance: RatingAttribute): void { } + _stars_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stars_0_0value?: number | undefined + _stepSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stepSize_0_0value?: number | undefined + _starStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _starStyle_0_0value?: StarStyleOptions | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: OnRatingChangeCallback | undefined + applyModifierPatch(peer: ArkRatingPeer): void { + super.applyModifierPatch(peer) + if (this._stars_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stars_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStarsAttribute((this._stars_0_0value as number | undefined)); + this._stars_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stars_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stars_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStarsAttribute((undefined as number | undefined)); + } + } + } + if (this._stepSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stepSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStepSizeAttribute((this._stepSize_0_0value as number | undefined)); + this._stepSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stepSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stepSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStepSizeAttribute((undefined as number | undefined)); + } + } + } + if (this._starStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._starStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStarStyleAttribute((this._starStyle_0_0value as StarStyleOptions | undefined)); + this._starStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._starStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._starStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStarStyleAttribute((undefined as StarStyleOptions | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as OnRatingChangeCallback | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as OnRatingChangeCallback | undefined)); + } + } + } + } + mergeModifier(modifier: RatingModifier): void { + super.mergeModifier(modifier) + if (modifier._stars_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stars_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stars(modifier._stars_0_0value); + break; + } + default: { + this.stars((undefined as number | undefined)); + } + } + } + if (modifier._stepSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stepSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stepSize(modifier._stepSize_0_0value); + break; + } + default: { + this.stepSize((undefined as number | undefined)); + } + } + } + if (modifier._starStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._starStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.starStyle(modifier._starStyle_0_0value); + break; + } + default: { + this.starStyle((undefined as StarStyleOptions | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as OnRatingChangeCallback | undefined)); + } + } + } + } + stars(value: number | undefined): this { + if (((this._stars_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stars_0_0value) !== (value))) + { + this._stars_0_flag = AttributeUpdaterFlag.UPDATE + this._stars_0_0value = value + } else + { + this._stars_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + stepSize(value: number | undefined): this { + if (((this._stepSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stepSize_0_0value) !== (value))) + { + this._stepSize_0_flag = AttributeUpdaterFlag.UPDATE + this._stepSize_0_0value = value + } else + { + this._stepSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + starStyle(value: StarStyleOptions | undefined): this { + if (((this._starStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._starStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._starStyle_0_0value = value + } else + { + this._starStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: OnRatingChangeCallback | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RectModifier.ets b/arkoala-arkts/arkui/generated/RectModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..ce5dc15b5016d364a35015257b786ab2a252599c --- /dev/null +++ b/arkoala-arkts/arkui/generated/RectModifier.ets @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { CommonShapeMethodModifier } from "./CommonShapeMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRectPeer, RectAttribute } from "./component/rect" +import { CommonShapeMethod, CommonMethod } from "./component/common" +export class RectModifier extends CommonShapeMethodModifier implements RectAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RectAttribute): void { } + applyPressedAttribute(instance: RectAttribute): void { } + applyFocusedAttribute(instance: RectAttribute): void { } + applyDisabledAttribute(instance: RectAttribute): void { } + applySelectedAttribute(instance: RectAttribute): void { } + _radius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _radius_0_0value?: number | string | Array | undefined + applyModifierPatch(peer: ArkRectPeer): void { + super.applyModifierPatch(peer) + if (this._radius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._radius_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRadiusAttribute((this._radius_0_0value as number | string | Array | undefined)); + this._radius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._radius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._radius_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRadiusAttribute((undefined as number | string | Array | undefined)); + } + } + } + } + mergeModifier(modifier: RectModifier): void { + super.mergeModifier(modifier) + if (modifier._radius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._radius_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.radius(modifier._radius_0_0value); + break; + } + default: { + this.radius((undefined as number | string | Array | undefined)); + } + } + } + } + radius(value: number | string | Array | undefined): this { + if (((this._radius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._radius_0_0value) !== (value))) + { + this._radius_0_flag = AttributeUpdaterFlag.UPDATE + this._radius_0_0value = value + } else + { + this._radius_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RefreshModifier.ets b/arkoala-arkts/arkui/generated/RefreshModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..5098f7d399dbb4e035a0622938cf3c7a406b3c60 --- /dev/null +++ b/arkoala-arkts/arkui/generated/RefreshModifier.ets @@ -0,0 +1,308 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRefreshPeer, RefreshStatus, RefreshAttribute } from "./component/refresh" +import { CommonMethod } from "./component/common" +export class RefreshModifier extends CommonMethodModifier implements RefreshAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RefreshAttribute): void { } + applyPressedAttribute(instance: RefreshAttribute): void { } + applyFocusedAttribute(instance: RefreshAttribute): void { } + applyDisabledAttribute(instance: RefreshAttribute): void { } + applySelectedAttribute(instance: RefreshAttribute): void { } + _onStateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onStateChange_0_0value?: ((state: RefreshStatus) => void) | undefined + _onRefreshing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRefreshing_0_0value?: (() => void) | undefined + _refreshOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _refreshOffset_0_0value?: number | undefined + _pullToRefresh_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pullToRefresh_0_0value?: boolean | undefined + _onOffsetChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onOffsetChange_0_0value?: ((value0: number) => void) | undefined + _pullDownRatio_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pullDownRatio_0_0value?: number | undefined + applyModifierPatch(peer: ArkRefreshPeer): void { + super.applyModifierPatch(peer) + if (this._onStateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onStateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnStateChangeAttribute((this._onStateChange_0_0value as ((state: RefreshStatus) => void) | undefined)); + this._onStateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onStateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onStateChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnStateChangeAttribute((undefined as ((state: RefreshStatus) => void) | undefined)); + } + } + } + if (this._onRefreshing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRefreshing_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRefreshingAttribute((this._onRefreshing_0_0value as (() => void) | undefined)); + this._onRefreshing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRefreshing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRefreshing_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRefreshingAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._refreshOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._refreshOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRefreshOffsetAttribute((this._refreshOffset_0_0value as number | undefined)); + this._refreshOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._refreshOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._refreshOffset_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRefreshOffsetAttribute((undefined as number | undefined)); + } + } + } + if (this._pullToRefresh_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pullToRefresh_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPullToRefreshAttribute((this._pullToRefresh_0_0value as boolean | undefined)); + this._pullToRefresh_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pullToRefresh_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pullToRefresh_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPullToRefreshAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onOffsetChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onOffsetChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnOffsetChangeAttribute((this._onOffsetChange_0_0value as ((value0: number) => void) | undefined)); + this._onOffsetChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onOffsetChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onOffsetChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnOffsetChangeAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (this._pullDownRatio_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pullDownRatio_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPullDownRatioAttribute((this._pullDownRatio_0_0value as number | undefined)); + this._pullDownRatio_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pullDownRatio_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pullDownRatio_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPullDownRatioAttribute((undefined as number | undefined)); + } + } + } + } + mergeModifier(modifier: RefreshModifier): void { + super.mergeModifier(modifier) + if (modifier._onStateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onStateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onStateChange(modifier._onStateChange_0_0value); + break; + } + default: { + this.onStateChange((undefined as ((state: RefreshStatus) => void) | undefined)); + } + } + } + if (modifier._onRefreshing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRefreshing_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRefreshing(modifier._onRefreshing_0_0value); + break; + } + default: { + this.onRefreshing((undefined as (() => void) | undefined)); + } + } + } + if (modifier._refreshOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._refreshOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.refreshOffset(modifier._refreshOffset_0_0value); + break; + } + default: { + this.refreshOffset((undefined as number | undefined)); + } + } + } + if (modifier._pullToRefresh_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pullToRefresh_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pullToRefresh(modifier._pullToRefresh_0_0value); + break; + } + default: { + this.pullToRefresh((undefined as boolean | undefined)); + } + } + } + if (modifier._onOffsetChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onOffsetChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onOffsetChange(modifier._onOffsetChange_0_0value); + break; + } + default: { + this.onOffsetChange((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (modifier._pullDownRatio_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pullDownRatio_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pullDownRatio(modifier._pullDownRatio_0_0value); + break; + } + default: { + this.pullDownRatio((undefined as number | undefined)); + } + } + } + } + onStateChange(value: ((state: RefreshStatus) => void) | undefined): this { + if (((this._onStateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onStateChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onStateChange_0_0value = value + } else + { + this._onStateChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onRefreshing(value: (() => void) | undefined): this { + if (((this._onRefreshing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRefreshing_0_flag = AttributeUpdaterFlag.UPDATE + this._onRefreshing_0_0value = value + } else + { + this._onRefreshing_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + refreshOffset(value: number | undefined): this { + if (((this._refreshOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._refreshOffset_0_0value) !== (value))) + { + this._refreshOffset_0_flag = AttributeUpdaterFlag.UPDATE + this._refreshOffset_0_0value = value + } else + { + this._refreshOffset_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pullToRefresh(value: boolean | undefined): this { + if (((this._pullToRefresh_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._pullToRefresh_0_0value) !== (value))) + { + this._pullToRefresh_0_flag = AttributeUpdaterFlag.UPDATE + this._pullToRefresh_0_0value = value + } else + { + this._pullToRefresh_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onOffsetChange(value: ((value0: number) => void) | undefined): this { + if (((this._onOffsetChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onOffsetChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onOffsetChange_0_0value = value + } else + { + this._onOffsetChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pullDownRatio(value: number | undefined): this { + if (((this._pullDownRatio_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._pullDownRatio_0_0value) !== (value))) + { + this._pullDownRatio_0_flag = AttributeUpdaterFlag.UPDATE + this._pullDownRatio_0_0value = value + } else + { + this._pullDownRatio_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RelativeContainerModifier.ets b/arkoala-arkts/arkui/generated/RelativeContainerModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..1b4ed7df809ac9563ccd7afcfa91be8a2f0f4dbd --- /dev/null +++ b/arkoala-arkts/arkui/generated/RelativeContainerModifier.ets @@ -0,0 +1,132 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRelativeContainerPeer, GuideLineStyle, BarrierStyle, RelativeContainerAttribute } from "./component/relativeContainer" +import { CommonMethod } from "./component/common" +export class RelativeContainerModifier extends CommonMethodModifier implements RelativeContainerAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RelativeContainerAttribute): void { } + applyPressedAttribute(instance: RelativeContainerAttribute): void { } + applyFocusedAttribute(instance: RelativeContainerAttribute): void { } + applyDisabledAttribute(instance: RelativeContainerAttribute): void { } + applySelectedAttribute(instance: RelativeContainerAttribute): void { } + _guideLine_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _guideLine_0_0value?: Array | undefined + _barrier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barrier_0_0value?: Array | undefined + applyModifierPatch(peer: ArkRelativeContainerPeer): void { + super.applyModifierPatch(peer) + if (this._guideLine_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._guideLine_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGuideLineAttribute((this._guideLine_0_0value as Array | undefined)); + this._guideLine_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._guideLine_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._guideLine_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setGuideLineAttribute((undefined as Array | undefined)); + } + } + } + if (this._barrier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barrier_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarrierAttribute((this._barrier_0_0value as Array | undefined)); + this._barrier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barrier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barrier_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarrierAttribute((undefined as Array | undefined)); + } + } + } + } + mergeModifier(modifier: RelativeContainerModifier): void { + super.mergeModifier(modifier) + if (modifier._guideLine_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._guideLine_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.guideLine(modifier._guideLine_0_0value); + break; + } + default: { + this.guideLine((undefined as Array | undefined)); + } + } + } + if (modifier._barrier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barrier_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barrier(modifier._barrier_0_0value); + break; + } + default: { + this.barrier((undefined as Array | undefined)); + } + } + } + } + guideLine(value: Array | undefined): this { + if (((this._guideLine_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._guideLine_0_flag = AttributeUpdaterFlag.UPDATE + this._guideLine_0_0value = value + } else + { + this._guideLine_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barrier(value: Array | undefined): this { + if (((this._barrier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barrier_0_flag = AttributeUpdaterFlag.UPDATE + this._barrier_0_0value = value + } else + { + this._barrier_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RemoteWindowModifier.ets b/arkoala-arkts/arkui/generated/RemoteWindowModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..ca080046e52153fe03606fa680f2874db7370b8a --- /dev/null +++ b/arkoala-arkts/arkui/generated/RemoteWindowModifier.ets @@ -0,0 +1,44 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRemoteWindowPeer, RemoteWindowAttribute } from "./component/remoteWindow" +import { CommonMethod } from "./component/common" +export class RemoteWindowModifier extends CommonMethodModifier implements RemoteWindowAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RemoteWindowAttribute): void { } + applyPressedAttribute(instance: RemoteWindowAttribute): void { } + applyFocusedAttribute(instance: RemoteWindowAttribute): void { } + applyDisabledAttribute(instance: RemoteWindowAttribute): void { } + applySelectedAttribute(instance: RemoteWindowAttribute): void { } + applyModifierPatch(peer: ArkRemoteWindowPeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: RemoteWindowModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/generated/arkui.RenderNode.ets b/arkoala-arkts/arkui/generated/RenderNode.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/arkui.RenderNode.ets rename to arkoala-arkts/arkui/generated/RenderNode.ets index d7d412e4fd9a91cec538ed7b1ccaea3d4360bcd0..e1394fafe1ffddf7486036c6440927f30d582a1d 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.RenderNode.ets +++ b/arkoala-arkts/arkui/generated/RenderNode.ets @@ -17,13 +17,14 @@ // 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 { Size_serializer, Vector2_serializer, Frame_serializer, Vector3_serializer, Size, Vector2, Frame, Vector3, ShapeMask, ShapeMaskInternal, ShapeClip, ShapeClipInternal, LengthMetricsUnit, DrawContext, DrawContextInternal } from "./arkui.Graphics" -import { EdgeStyles_serializer, Edges_serializer, EdgeStyles, Edges } from "./../component/units" +import { Size_serializer, Vector2_serializer, Frame_serializer, Vector3_serializer, Size, Vector2, Frame, Vector3, ShapeMask, ShapeMaskInternal, ShapeClip, ShapeClipInternal, LengthMetricsUnit, DrawContext, DrawContextInternal } from "./Graphics" +import { EdgeStyles_serializer, Edges_serializer, EdgeStyles, Edges } from "./component/units" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { CallbackTransformer } from "./../CallbackTransformer" +import { CallbackTransformer } from "./CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" export interface RenderNode { backgroundColor: number clipToFrame: boolean diff --git a/arkoala-arkts/arkui/generated/RichEditorModifier.ets b/arkoala-arkts/arkui/generated/RichEditorModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..efa357215a26f101f93ab383db1166e81f7a6f8c --- /dev/null +++ b/arkoala-arkts/arkui/generated/RichEditorModifier.ets @@ -0,0 +1,1512 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRichEditorPeer, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, PasteEvent, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorAttribute, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, KeyboardOptions, PlaceholderStyle } from "./component/richEditor" +import { CommonMethod } from "./component/common" +import { VoidCallback, ResourceColor, ResourceStr } from "./component/units" +import { TextRange, TextDataDetectorConfig, OnDidChangeCallback, EditMenuOptions, KeyboardAppearance } from "./component/textCommon" +import { CopyOptions, Color, BarState, ResponseType } from "./component/enums" +import { Resource } from "global.resource" +import { EnterKeyType, SubmitEvent } from "./component/textInput" +import { CustomBuilder } from "./component/builder" +export class RichEditorModifier extends CommonMethodModifier implements RichEditorAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RichEditorAttribute): void { } + applyPressedAttribute(instance: RichEditorAttribute): void { } + applyFocusedAttribute(instance: RichEditorAttribute): void { } + applyDisabledAttribute(instance: RichEditorAttribute): void { } + applySelectedAttribute(instance: RichEditorAttribute): void { } + _onReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onReady_0_0value?: VoidCallback | undefined + _onSelect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSelect_0_0value?: ((value0: RichEditorSelection) => void) | undefined + _onSelectionChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSelectionChange_0_0value?: ((value0: RichEditorRange) => void) | undefined + _aboutToIMEInput_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _aboutToIMEInput_0_0value?: ((value0: RichEditorInsertValue) => boolean) | undefined + _onIMEInputComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onIMEInputComplete_0_0value?: ((value0: RichEditorTextSpanResult) => void) | undefined + _onDidIMEInput_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDidIMEInput_0_0value?: ((value0: TextRange) => void) | undefined + _aboutToDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _aboutToDelete_0_0value?: ((value0: RichEditorDeleteValue) => boolean) | undefined + _onDeleteComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDeleteComplete_0_0value?: VoidCallback | undefined + _copyOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _copyOptions_0_0value?: CopyOptions | undefined + _onPaste_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPaste_0_0value?: PasteEventCallback | undefined + _enableDataDetector_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableDataDetector_0_0value?: boolean | undefined + _enablePreviewText_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enablePreviewText_0_0value?: boolean | undefined + _dataDetectorConfig_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _dataDetectorConfig_0_0value?: TextDataDetectorConfig | undefined + _caretColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _caretColor_0_0value?: ResourceColor | undefined + _selectedBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedBackgroundColor_0_0value?: ResourceColor | undefined + _onEditingChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onEditingChange_0_0value?: ((value0: boolean) => void) | undefined + _enterKeyType_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enterKeyType_0_0value?: EnterKeyType | undefined + _onSubmit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSubmit_0_0value?: SubmitCallback | undefined + _onWillChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillChange_0_0value?: ((value0: RichEditorChangeValue) => boolean) | undefined + _onDidChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDidChange_0_0value?: OnDidChangeCallback | undefined + _onCut_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onCut_0_0value?: ((value0: CutEvent) => void) | undefined + _onCopy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onCopy_0_0value?: ((value0: CopyEvent) => void) | undefined + _editMenuOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _editMenuOptions_0_0value?: EditMenuOptions | undefined + _enableKeyboardOnFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableKeyboardOnFocus_0_0value?: boolean | undefined + _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableHapticFeedback_0_0value?: boolean | undefined + _barState_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barState_0_0value?: BarState | undefined + _maxLength_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxLength_0_0value?: number | undefined + _maxLines_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxLines_0_0value?: number | undefined + _keyboardAppearance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _keyboardAppearance_0_0value?: KeyboardAppearance | undefined + _stopBackPress_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stopBackPress_0_0value?: boolean | undefined + _bindSelectionMenu_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindSelectionMenu_0_0value?: RichEditorSpanType | undefined + _bindSelectionMenu_0_1value?: CustomBuilder | undefined + _bindSelectionMenu_0_2value?: ResponseType | RichEditorResponseType | undefined + _bindSelectionMenu_0_3value?: SelectionMenuOptions | undefined + _customKeyboard_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _customKeyboard_0_0value?: CustomBuilder | undefined + _customKeyboard_0_1value?: KeyboardOptions | undefined + _placeholder_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _placeholder_0_0value?: ResourceStr | undefined + _placeholder_0_1value?: PlaceholderStyle | undefined + applyModifierPatch(peer: ArkRichEditorPeer): void { + super.applyModifierPatch(peer) + if (this._onReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnReadyAttribute((this._onReady_0_0value as VoidCallback | undefined)); + this._onReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onReady_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnReadyAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSelect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSelectAttribute((this._onSelect_0_0value as ((value0: RichEditorSelection) => void) | undefined)); + this._onSelect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSelect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSelect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSelectAttribute((undefined as ((value0: RichEditorSelection) => void) | undefined)); + } + } + } + if (this._onSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSelectionChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSelectionChangeAttribute((this._onSelectionChange_0_0value as ((value0: RichEditorRange) => void) | undefined)); + this._onSelectionChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSelectionChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSelectionChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSelectionChangeAttribute((undefined as ((value0: RichEditorRange) => void) | undefined)); + } + } + } + if (this._aboutToIMEInput_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._aboutToIMEInput_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAboutToIMEInputAttribute((this._aboutToIMEInput_0_0value as ((value0: RichEditorInsertValue) => boolean) | undefined)); + this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAboutToIMEInputAttribute((undefined as ((value0: RichEditorInsertValue) => boolean) | undefined)); + } + } + } + if (this._onIMEInputComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onIMEInputComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnIMEInputCompleteAttribute((this._onIMEInputComplete_0_0value as ((value0: RichEditorTextSpanResult) => void) | undefined)); + this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnIMEInputCompleteAttribute((undefined as ((value0: RichEditorTextSpanResult) => void) | undefined)); + } + } + } + if (this._onDidIMEInput_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDidIMEInput_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDidIMEInputAttribute((this._onDidIMEInput_0_0value as ((value0: TextRange) => void) | undefined)); + this._onDidIMEInput_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDidIMEInput_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDidIMEInput_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDidIMEInputAttribute((undefined as ((value0: TextRange) => void) | undefined)); + } + } + } + if (this._aboutToDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._aboutToDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAboutToDeleteAttribute((this._aboutToDelete_0_0value as ((value0: RichEditorDeleteValue) => boolean) | undefined)); + this._aboutToDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._aboutToDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._aboutToDelete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAboutToDeleteAttribute((undefined as ((value0: RichEditorDeleteValue) => boolean) | undefined)); + } + } + } + if (this._onDeleteComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDeleteComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDeleteCompleteAttribute((this._onDeleteComplete_0_0value as VoidCallback | undefined)); + this._onDeleteComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDeleteComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDeleteComplete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDeleteCompleteAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._copyOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._copyOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCopyOptionsAttribute((this._copyOptions_0_0value as CopyOptions | undefined)); + this._copyOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._copyOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._copyOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCopyOptionsAttribute((undefined as CopyOptions | undefined)); + } + } + } + if (this._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPaste_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPasteAttribute((this._onPaste_0_0value as PasteEventCallback | undefined)); + this._onPaste_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPaste_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPaste_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPasteAttribute((undefined as PasteEventCallback | undefined)); + } + } + } + if (this._enableDataDetector_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableDataDetector_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableDataDetectorAttribute((this._enableDataDetector_0_0value as boolean | undefined)); + this._enableDataDetector_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableDataDetector_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableDataDetector_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableDataDetectorAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enablePreviewText_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnablePreviewTextAttribute((this._enablePreviewText_0_0value as boolean | undefined)); + this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnablePreviewTextAttribute((undefined as boolean | undefined)); + } + } + } + if (this._dataDetectorConfig_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._dataDetectorConfig_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDataDetectorConfigAttribute((this._dataDetectorConfig_0_0value as TextDataDetectorConfig | undefined)); + this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDataDetectorConfigAttribute((undefined as TextDataDetectorConfig | undefined)); + } + } + } + if (this._caretColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._caretColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCaretColorAttribute((this._caretColor_0_0value as ResourceColor | undefined)); + this._caretColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._caretColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._caretColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCaretColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedBackgroundColorAttribute((this._selectedBackgroundColor_0_0value as ResourceColor | undefined)); + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedBackgroundColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._onEditingChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onEditingChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnEditingChangeAttribute((this._onEditingChange_0_0value as ((value0: boolean) => void) | undefined)); + this._onEditingChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onEditingChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onEditingChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnEditingChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (this._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enterKeyType_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnterKeyTypeAttribute((this._enterKeyType_0_0value as EnterKeyType | undefined)); + this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enterKeyType_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnterKeyTypeAttribute((undefined as EnterKeyType | undefined)); + } + } + } + if (this._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSubmit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSubmitAttribute((this._onSubmit_0_0value as SubmitCallback | undefined)); + this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSubmit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSubmitAttribute((undefined as SubmitCallback | undefined)); + } + } + } + if (this._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillChangeAttribute((this._onWillChange_0_0value as ((value0: RichEditorChangeValue) => boolean) | undefined)); + this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillChangeAttribute((undefined as ((value0: RichEditorChangeValue) => boolean) | undefined)); + } + } + } + if (this._onDidChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDidChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDidChangeAttribute((this._onDidChange_0_0value as OnDidChangeCallback | undefined)); + this._onDidChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDidChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDidChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDidChangeAttribute((undefined as OnDidChangeCallback | undefined)); + } + } + } + if (this._onCut_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onCut_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCutAttribute((this._onCut_0_0value as ((value0: CutEvent) => void) | undefined)); + this._onCut_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onCut_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onCut_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCutAttribute((undefined as ((value0: CutEvent) => void) | undefined)); + } + } + } + if (this._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onCopy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCopyAttribute((this._onCopy_0_0value as ((value0: CopyEvent) => void) | undefined)); + this._onCopy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onCopy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onCopy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCopyAttribute((undefined as ((value0: CopyEvent) => void) | undefined)); + } + } + } + if (this._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._editMenuOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEditMenuOptionsAttribute((this._editMenuOptions_0_0value as EditMenuOptions | undefined)); + this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEditMenuOptionsAttribute((undefined as EditMenuOptions | undefined)); + } + } + } + if (this._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableKeyboardOnFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableKeyboardOnFocusAttribute((this._enableKeyboardOnFocus_0_0value as boolean | undefined)); + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableKeyboardOnFocusAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); + } + } + } + if (this._barState_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barState_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarStateAttribute((this._barState_0_0value as BarState | undefined)); + this._barState_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barState_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barState_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarStateAttribute((undefined as BarState | undefined)); + } + } + } + if (this._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxLength_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxLengthAttribute((this._maxLength_0_0value as number | undefined)); + this._maxLength_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxLength_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxLength_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxLengthAttribute((undefined as number | undefined)); + } + } + } + if (this._maxLines_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxLines_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxLinesAttribute((this._maxLines_0_0value as number | undefined)); + this._maxLines_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxLines_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxLines_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxLinesAttribute((undefined as number | undefined)); + } + } + } + if (this._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._keyboardAppearance_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setKeyboardAppearanceAttribute((this._keyboardAppearance_0_0value as KeyboardAppearance | undefined)); + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setKeyboardAppearanceAttribute((undefined as KeyboardAppearance | undefined)); + } + } + } + if (this._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stopBackPress_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStopBackPressAttribute((this._stopBackPress_0_0value as boolean | undefined)); + this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stopBackPress_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStopBackPressAttribute((undefined as boolean | undefined)); + } + } + } + if (this._bindSelectionMenu_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindSelectionMenu_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindSelectionMenuAttribute((this._bindSelectionMenu_0_0value as RichEditorSpanType | undefined), (this._bindSelectionMenu_0_1value as CustomBuilder | undefined), (this._bindSelectionMenu_0_2value as ResponseType | RichEditorResponseType | undefined), (this._bindSelectionMenu_0_3value as SelectionMenuOptions | undefined)); + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindSelectionMenuAttribute((undefined as RichEditorSpanType | undefined), (undefined as CustomBuilder | undefined), (undefined as ResponseType | RichEditorResponseType | undefined), (undefined as SelectionMenuOptions | undefined | undefined)); + } + } + } + if (this._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._customKeyboard_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCustomKeyboardAttribute((this._customKeyboard_0_0value as CustomBuilder | undefined), (this._customKeyboard_0_1value as KeyboardOptions | undefined)); + this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._customKeyboard_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCustomKeyboardAttribute((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); + } + } + } + if (this._placeholder_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._placeholder_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPlaceholderAttribute((this._placeholder_0_0value as ResourceStr | undefined), (this._placeholder_0_1value as PlaceholderStyle | undefined)); + this._placeholder_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._placeholder_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._placeholder_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPlaceholderAttribute((undefined as ResourceStr | undefined), (undefined as PlaceholderStyle | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: RichEditorModifier): void { + super.mergeModifier(modifier) + if (modifier._onReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onReady(modifier._onReady_0_0value); + break; + } + default: { + this.onReady((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSelect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSelect(modifier._onSelect_0_0value); + break; + } + default: { + this.onSelect((undefined as ((value0: RichEditorSelection) => void) | undefined)); + } + } + } + if (modifier._onSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSelectionChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSelectionChange(modifier._onSelectionChange_0_0value); + break; + } + default: { + this.onSelectionChange((undefined as ((value0: RichEditorRange) => void) | undefined)); + } + } + } + if (modifier._aboutToIMEInput_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._aboutToIMEInput_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.aboutToIMEInput(modifier._aboutToIMEInput_0_0value); + break; + } + default: { + this.aboutToIMEInput((undefined as ((value0: RichEditorInsertValue) => boolean) | undefined)); + } + } + } + if (modifier._onIMEInputComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onIMEInputComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onIMEInputComplete(modifier._onIMEInputComplete_0_0value); + break; + } + default: { + this.onIMEInputComplete((undefined as ((value0: RichEditorTextSpanResult) => void) | undefined)); + } + } + } + if (modifier._onDidIMEInput_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDidIMEInput_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDidIMEInput(modifier._onDidIMEInput_0_0value); + break; + } + default: { + this.onDidIMEInput((undefined as ((value0: TextRange) => void) | undefined)); + } + } + } + if (modifier._aboutToDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._aboutToDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.aboutToDelete(modifier._aboutToDelete_0_0value); + break; + } + default: { + this.aboutToDelete((undefined as ((value0: RichEditorDeleteValue) => boolean) | undefined)); + } + } + } + if (modifier._onDeleteComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDeleteComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDeleteComplete(modifier._onDeleteComplete_0_0value); + break; + } + default: { + this.onDeleteComplete((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._copyOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._copyOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.copyOptions(modifier._copyOptions_0_0value); + break; + } + default: { + this.copyOptions((undefined as CopyOptions | undefined)); + } + } + } + if (modifier._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPaste_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPaste(modifier._onPaste_0_0value); + break; + } + default: { + this.onPaste((undefined as PasteEventCallback | undefined)); + } + } + } + if (modifier._enableDataDetector_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableDataDetector_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableDataDetector(modifier._enableDataDetector_0_0value); + break; + } + default: { + this.enableDataDetector((undefined as boolean | undefined)); + } + } + } + if (modifier._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enablePreviewText_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enablePreviewText(modifier._enablePreviewText_0_0value); + break; + } + default: { + this.enablePreviewText((undefined as boolean | undefined)); + } + } + } + if (modifier._dataDetectorConfig_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._dataDetectorConfig_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.dataDetectorConfig(modifier._dataDetectorConfig_0_0value); + break; + } + default: { + this.dataDetectorConfig((undefined as TextDataDetectorConfig | undefined)); + } + } + } + if (modifier._caretColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._caretColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.caretColor(modifier._caretColor_0_0value); + break; + } + default: { + this.caretColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedBackgroundColor(modifier._selectedBackgroundColor_0_0value); + break; + } + default: { + this.selectedBackgroundColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._onEditingChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onEditingChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onEditingChange(modifier._onEditingChange_0_0value); + break; + } + default: { + this.onEditingChange((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (modifier._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enterKeyType_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enterKeyType(modifier._enterKeyType_0_0value); + break; + } + default: { + this.enterKeyType((undefined as EnterKeyType | undefined)); + } + } + } + if (modifier._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSubmit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSubmit(modifier._onSubmit_0_0value); + break; + } + default: { + this.onSubmit((undefined as SubmitCallback | undefined)); + } + } + } + if (modifier._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillChange(modifier._onWillChange_0_0value); + break; + } + default: { + this.onWillChange((undefined as ((value0: RichEditorChangeValue) => boolean) | undefined)); + } + } + } + if (modifier._onDidChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDidChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDidChange(modifier._onDidChange_0_0value); + break; + } + default: { + this.onDidChange((undefined as OnDidChangeCallback | undefined)); + } + } + } + if (modifier._onCut_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onCut_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onCut(modifier._onCut_0_0value); + break; + } + default: { + this.onCut((undefined as ((value0: CutEvent) => void) | undefined)); + } + } + } + if (modifier._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onCopy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onCopy(modifier._onCopy_0_0value); + break; + } + default: { + this.onCopy((undefined as ((value0: CopyEvent) => void) | undefined)); + } + } + } + if (modifier._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._editMenuOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.editMenuOptions(modifier._editMenuOptions_0_0value); + break; + } + default: { + this.editMenuOptions((undefined as EditMenuOptions | undefined)); + } + } + } + if (modifier._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableKeyboardOnFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableKeyboardOnFocus(modifier._enableKeyboardOnFocus_0_0value); + break; + } + default: { + this.enableKeyboardOnFocus((undefined as boolean | undefined)); + } + } + } + if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); + break; + } + default: { + this.enableHapticFeedback((undefined as boolean | undefined)); + } + } + } + if (modifier._barState_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barState_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barState(modifier._barState_0_0value); + break; + } + default: { + this.barState((undefined as BarState | undefined)); + } + } + } + if (modifier._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxLength_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxLength(modifier._maxLength_0_0value); + break; + } + default: { + this.maxLength((undefined as number | undefined)); + } + } + } + if (modifier._maxLines_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxLines_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxLines(modifier._maxLines_0_0value); + break; + } + default: { + this.maxLines((undefined as number | undefined)); + } + } + } + if (modifier._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._keyboardAppearance_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.keyboardAppearance(modifier._keyboardAppearance_0_0value); + break; + } + default: { + this.keyboardAppearance((undefined as KeyboardAppearance | undefined)); + } + } + } + if (modifier._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stopBackPress_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stopBackPress(modifier._stopBackPress_0_0value); + break; + } + default: { + this.stopBackPress((undefined as boolean | undefined)); + } + } + } + if (modifier._bindSelectionMenu_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindSelectionMenu_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindSelectionMenu(modifier._bindSelectionMenu_0_0value, modifier._bindSelectionMenu_0_1value, modifier._bindSelectionMenu_0_2value, modifier._bindSelectionMenu_0_3value); + break; + } + default: { + this.bindSelectionMenu((undefined as RichEditorSpanType | undefined), (undefined as CustomBuilder | undefined), (undefined as ResponseType | RichEditorResponseType | undefined), (undefined as SelectionMenuOptions | undefined | undefined)); + } + } + } + if (modifier._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._customKeyboard_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.customKeyboard(modifier._customKeyboard_0_0value, modifier._customKeyboard_0_1value); + break; + } + default: { + this.customKeyboard((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); + } + } + } + if (modifier._placeholder_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._placeholder_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.placeholder(modifier._placeholder_0_0value, modifier._placeholder_0_1value); + break; + } + default: { + this.placeholder((undefined as ResourceStr | undefined), (undefined as PlaceholderStyle | undefined | undefined)); + } + } + } + } + onReady(value: VoidCallback | undefined): this { + if (((this._onReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onReady_0_flag = AttributeUpdaterFlag.UPDATE + this._onReady_0_0value = value + } else + { + this._onReady_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSelect(value: ((value0: RichEditorSelection) => void) | undefined): this { + if (((this._onSelect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSelect_0_flag = AttributeUpdaterFlag.UPDATE + this._onSelect_0_0value = value + } else + { + this._onSelect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSelectionChange(value: ((value0: RichEditorRange) => void) | undefined): this { + if (((this._onSelectionChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSelectionChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onSelectionChange_0_0value = value + } else + { + this._onSelectionChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + aboutToIMEInput(value: ((value0: RichEditorInsertValue) => boolean) | undefined): this { + if (((this._aboutToIMEInput_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.UPDATE + this._aboutToIMEInput_0_0value = value + } else + { + this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onIMEInputComplete(value: ((value0: RichEditorTextSpanResult) => void) | undefined): this { + if (((this._onIMEInputComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.UPDATE + this._onIMEInputComplete_0_0value = value + } else + { + this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDidIMEInput(value: ((value0: TextRange) => void) | undefined): this { + if (((this._onDidIMEInput_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDidIMEInput_0_flag = AttributeUpdaterFlag.UPDATE + this._onDidIMEInput_0_0value = value + } else + { + this._onDidIMEInput_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + aboutToDelete(value: ((value0: RichEditorDeleteValue) => boolean) | undefined): this { + if (((this._aboutToDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._aboutToDelete_0_flag = AttributeUpdaterFlag.UPDATE + this._aboutToDelete_0_0value = value + } else + { + this._aboutToDelete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDeleteComplete(value: VoidCallback | undefined): this { + if (((this._onDeleteComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDeleteComplete_0_flag = AttributeUpdaterFlag.UPDATE + this._onDeleteComplete_0_0value = value + } else + { + this._onDeleteComplete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + copyOptions(value: CopyOptions | undefined): this { + if (((this._copyOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._copyOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._copyOptions_0_0value = value + } else + { + this._copyOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPaste(value: PasteEventCallback | undefined): this { + if (((this._onPaste_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPaste_0_flag = AttributeUpdaterFlag.UPDATE + this._onPaste_0_0value = value + } else + { + this._onPaste_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableDataDetector(value: boolean | undefined): this { + if (((this._enableDataDetector_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableDataDetector_0_0value) !== (value))) + { + this._enableDataDetector_0_flag = AttributeUpdaterFlag.UPDATE + this._enableDataDetector_0_0value = value + } else + { + this._enableDataDetector_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enablePreviewText(value: boolean | undefined): this { + if (((this._enablePreviewText_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enablePreviewText_0_0value) !== (value))) + { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.UPDATE + this._enablePreviewText_0_0value = value + } else + { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + dataDetectorConfig(value: TextDataDetectorConfig | undefined): this { + if (((this._dataDetectorConfig_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.UPDATE + this._dataDetectorConfig_0_0value = value + } else + { + this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + caretColor(value: ResourceColor | undefined): this { + if (((this._caretColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._caretColor_0_flag = AttributeUpdaterFlag.UPDATE + this._caretColor_0_0value = value + } else + { + this._caretColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedBackgroundColor(value: ResourceColor | undefined): this { + if (((this._selectedBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedBackgroundColor_0_0value = value + } else + { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onEditingChange(value: ((value0: boolean) => void) | undefined): this { + if (((this._onEditingChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onEditingChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onEditingChange_0_0value = value + } else + { + this._onEditingChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enterKeyType(value: EnterKeyType | undefined): this { + if (((this._enterKeyType_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._enterKeyType_0_flag = AttributeUpdaterFlag.UPDATE + this._enterKeyType_0_0value = value + } else + { + this._enterKeyType_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSubmit(value: SubmitCallback | undefined): this { + if (((this._onSubmit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSubmit_0_flag = AttributeUpdaterFlag.UPDATE + this._onSubmit_0_0value = value + } else + { + this._onSubmit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillChange(value: ((value0: RichEditorChangeValue) => boolean) | undefined): this { + if (((this._onWillChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillChange_0_0value = value + } else + { + this._onWillChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDidChange(value: OnDidChangeCallback | undefined): this { + if (((this._onDidChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDidChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onDidChange_0_0value = value + } else + { + this._onDidChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onCut(value: ((value0: CutEvent) => void) | undefined): this { + if (((this._onCut_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onCut_0_flag = AttributeUpdaterFlag.UPDATE + this._onCut_0_0value = value + } else + { + this._onCut_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onCopy(value: ((value0: CopyEvent) => void) | undefined): this { + if (((this._onCopy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onCopy_0_flag = AttributeUpdaterFlag.UPDATE + this._onCopy_0_0value = value + } else + { + this._onCopy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + editMenuOptions(value: EditMenuOptions | undefined): this { + if (((this._editMenuOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._editMenuOptions_0_0value = value + } else + { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableKeyboardOnFocus(value: boolean | undefined): this { + if (((this._enableKeyboardOnFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableKeyboardOnFocus_0_0value) !== (value))) + { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.UPDATE + this._enableKeyboardOnFocus_0_0value = value + } else + { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableHapticFeedback(value: boolean | undefined): this { + if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE + this._enableHapticFeedback_0_0value = value + } else + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barState(value: BarState | undefined): this { + if (((this._barState_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barState_0_flag = AttributeUpdaterFlag.UPDATE + this._barState_0_0value = value + } else + { + this._barState_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxLength(value: number | undefined): this { + if (((this._maxLength_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLength_0_0value) !== (value))) + { + this._maxLength_0_flag = AttributeUpdaterFlag.UPDATE + this._maxLength_0_0value = value + } else + { + this._maxLength_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxLines(value: number | undefined): this { + if (((this._maxLines_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLines_0_0value) !== (value))) + { + this._maxLines_0_flag = AttributeUpdaterFlag.UPDATE + this._maxLines_0_0value = value + } else + { + this._maxLines_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + keyboardAppearance(value: KeyboardAppearance | undefined): this { + if (((this._keyboardAppearance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.UPDATE + this._keyboardAppearance_0_0value = value + } else + { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + stopBackPress(value: boolean | undefined): this { + if (((this._stopBackPress_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stopBackPress_0_0value) !== (value))) + { + this._stopBackPress_0_flag = AttributeUpdaterFlag.UPDATE + this._stopBackPress_0_0value = value + } else + { + this._stopBackPress_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindSelectionMenu(spanType: RichEditorSpanType | undefined, content: CustomBuilder | undefined, responseType: ResponseType | RichEditorResponseType | undefined, options?: SelectionMenuOptions): this { + if (((this._bindSelectionMenu_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true) || (true)) + { + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.UPDATE + this._bindSelectionMenu_0_0value = spanType + this._bindSelectionMenu_0_1value = content + this._bindSelectionMenu_0_2value = responseType + this._bindSelectionMenu_0_3value = options + } else + { + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { + if (((this._customKeyboard_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._customKeyboard_0_flag = AttributeUpdaterFlag.UPDATE + this._customKeyboard_0_0value = value + this._customKeyboard_0_1value = options + } else + { + this._customKeyboard_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + placeholder(value: ResourceStr | undefined, style?: PlaceholderStyle): this { + if (((this._placeholder_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._placeholder_0_flag = AttributeUpdaterFlag.UPDATE + this._placeholder_0_0value = value + this._placeholder_0_1value = style + } else + { + this._placeholder_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RichTextModifier.ets b/arkoala-arkts/arkui/generated/RichTextModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..84c14e4e394882968599869239c8365037a890f7 --- /dev/null +++ b/arkoala-arkts/arkui/generated/RichTextModifier.ets @@ -0,0 +1,132 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRichTextPeer, RichTextAttribute } from "./component/richText" +import { CommonMethod } from "./component/common" +export class RichTextModifier extends CommonMethodModifier implements RichTextAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RichTextAttribute): void { } + applyPressedAttribute(instance: RichTextAttribute): void { } + applyFocusedAttribute(instance: RichTextAttribute): void { } + applyDisabledAttribute(instance: RichTextAttribute): void { } + applySelectedAttribute(instance: RichTextAttribute): void { } + _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onStart_0_0value?: (() => void) | undefined + _onComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onComplete_0_0value?: (() => void) | undefined + applyModifierPatch(peer: ArkRichTextPeer): void { + super.applyModifierPatch(peer) + if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnStartAttribute((this._onStart_0_0value as (() => void) | undefined)); + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnStartAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCompleteAttribute((this._onComplete_0_0value as (() => void) | undefined)); + this._onComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onComplete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onComplete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCompleteAttribute((undefined as (() => void) | undefined)); + } + } + } + } + mergeModifier(modifier: RichTextModifier): void { + super.mergeModifier(modifier) + if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onStart(modifier._onStart_0_0value); + break; + } + default: { + this.onStart((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onComplete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onComplete(modifier._onComplete_0_0value); + break; + } + default: { + this.onComplete((undefined as (() => void) | undefined)); + } + } + } + } + onStart(value: (() => void) | undefined): this { + if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onStart_0_0value = value + } else + { + this._onStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onComplete(value: (() => void) | undefined): this { + if (((this._onComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onComplete_0_flag = AttributeUpdaterFlag.UPDATE + this._onComplete_0_0value = value + } else + { + this._onComplete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RootModifier.ets b/arkoala-arkts/arkui/generated/RootModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..0f5d75943830ed07186f0b06b5de0dc47ec274f9 --- /dev/null +++ b/arkoala-arkts/arkui/generated/RootModifier.ets @@ -0,0 +1,40 @@ +/* + * 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 { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRootPeer, Root } from "./component/idlize" +export class RootModifier implements Root,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: Root): void { } + applyPressedAttribute(instance: Root): void { } + applyFocusedAttribute(instance: Root): void { } + applyDisabledAttribute(instance: Root): void { } + applySelectedAttribute(instance: Root): void { } + applyModifierPatch(peer: ArkRootPeer): void { + } + mergeModifier(modifier: RootModifier): void { + } + public attributeModifier(value: AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RootSceneModifier.ets b/arkoala-arkts/arkui/generated/RootSceneModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..fad74631a3bc684bd1d1e9dec44178ba39570211 --- /dev/null +++ b/arkoala-arkts/arkui/generated/RootSceneModifier.ets @@ -0,0 +1,44 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRootScenePeer, RootSceneAttribute } from "./component/rootScene" +import { CommonMethod } from "./component/common" +export class RootSceneModifier extends CommonMethodModifier implements RootSceneAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RootSceneAttribute): void { } + applyPressedAttribute(instance: RootSceneAttribute): void { } + applyFocusedAttribute(instance: RootSceneAttribute): void { } + applyDisabledAttribute(instance: RootSceneAttribute): void { } + applySelectedAttribute(instance: RootSceneAttribute): void { } + applyModifierPatch(peer: ArkRootScenePeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: RootSceneModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RowModifier.ets b/arkoala-arkts/arkui/generated/RowModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..8b2a9ae12e6f7e1c2e6c19b628f3a9ae24d61b42 --- /dev/null +++ b/arkoala-arkts/arkui/generated/RowModifier.ets @@ -0,0 +1,221 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRowPeer, RowAttribute } from "./component/row" +import { CommonMethod, PointLightStyle } from "./component/common" +import { VerticalAlign, FlexAlign } from "./component/enums" +export class RowModifier extends CommonMethodModifier implements RowAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RowAttribute): void { } + applyPressedAttribute(instance: RowAttribute): void { } + applyFocusedAttribute(instance: RowAttribute): void { } + applyDisabledAttribute(instance: RowAttribute): void { } + applySelectedAttribute(instance: RowAttribute): void { } + _alignItems_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alignItems_0_0value?: VerticalAlign | undefined + _justifyContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _justifyContent_0_0value?: FlexAlign | undefined + _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pointLight_0_0value?: PointLightStyle | undefined + _reverse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _reverse_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkRowPeer): void { + super.applyModifierPatch(peer) + if (this._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alignItems_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignItemsAttribute((this._alignItems_0_0value as VerticalAlign | undefined)); + this._alignItems_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alignItems_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alignItems_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignItemsAttribute((undefined as VerticalAlign | undefined)); + } + } + } + if (this._justifyContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._justifyContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setJustifyContentAttribute((this._justifyContent_0_0value as FlexAlign | undefined)); + this._justifyContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._justifyContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._justifyContent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setJustifyContentAttribute((undefined as FlexAlign | undefined)); + } + } + } + if (this._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); + } + } + } + if (this._reverse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._reverse_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setReverseAttribute((this._reverse_0_0value as boolean | undefined)); + this._reverse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._reverse_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._reverse_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setReverseAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: RowModifier): void { + super.mergeModifier(modifier) + if (modifier._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alignItems_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alignItems(modifier._alignItems_0_0value); + break; + } + default: { + this.alignItems((undefined as VerticalAlign | undefined)); + } + } + } + if (modifier._justifyContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._justifyContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.justifyContent(modifier._justifyContent_0_0value); + break; + } + default: { + this.justifyContent((undefined as FlexAlign | undefined)); + } + } + } + if (modifier._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pointLight(modifier._pointLight_0_0value); + break; + } + default: { + this.pointLight((undefined as PointLightStyle | undefined)); + } + } + } + if (modifier._reverse_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._reverse_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.reverse(modifier._reverse_0_0value); + break; + } + default: { + this.reverse((undefined as boolean | undefined)); + } + } + } + } + alignItems(value: VerticalAlign | undefined): this { + if (((this._alignItems_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alignItems_0_flag = AttributeUpdaterFlag.UPDATE + this._alignItems_0_0value = value + } else + { + this._alignItems_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + justifyContent(value: FlexAlign | undefined): this { + if (((this._justifyContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._justifyContent_0_flag = AttributeUpdaterFlag.UPDATE + this._justifyContent_0_0value = value + } else + { + this._justifyContent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pointLight(value: PointLightStyle | undefined): this { + if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE + this._pointLight_0_0value = value + } else + { + this._pointLight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + reverse(value: boolean | undefined): this { + if (((this._reverse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._reverse_0_0value) !== (value))) + { + this._reverse_0_flag = AttributeUpdaterFlag.UPDATE + this._reverse_0_0value = value + } else + { + this._reverse_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/RowSplitModifier.ets b/arkoala-arkts/arkui/generated/RowSplitModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..9a68fa96fbbc0fcad895e2d3e967e7feaff76f83 --- /dev/null +++ b/arkoala-arkts/arkui/generated/RowSplitModifier.ets @@ -0,0 +1,88 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkRowSplitPeer, RowSplitAttribute } from "./component/rowSplit" +import { CommonMethod } from "./component/common" +export class RowSplitModifier extends CommonMethodModifier implements RowSplitAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: RowSplitAttribute): void { } + applyPressedAttribute(instance: RowSplitAttribute): void { } + applyFocusedAttribute(instance: RowSplitAttribute): void { } + applyDisabledAttribute(instance: RowSplitAttribute): void { } + applySelectedAttribute(instance: RowSplitAttribute): void { } + _resizeable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _resizeable_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkRowSplitPeer): void { + super.applyModifierPatch(peer) + if (this._resizeable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._resizeable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setResizeableAttribute((this._resizeable_0_0value as boolean | undefined)); + this._resizeable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._resizeable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._resizeable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setResizeableAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: RowSplitModifier): void { + super.mergeModifier(modifier) + if (modifier._resizeable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._resizeable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.resizeable(modifier._resizeable_0_0value); + break; + } + default: { + this.resizeable((undefined as boolean | undefined)); + } + } + } + } + resizeable(value: boolean | undefined): this { + if (((this._resizeable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._resizeable_0_0value) !== (value))) + { + this._resizeable_0_flag = AttributeUpdaterFlag.UPDATE + this._resizeable_0_0value = value + } else + { + this._resizeable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ScreenModifier.ets b/arkoala-arkts/arkui/generated/ScreenModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..af45abd78b9812d5e2a544c678fe9ddca3163a14 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ScreenModifier.ets @@ -0,0 +1,44 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkScreenPeer, ScreenAttribute } from "./component/screen" +import { CommonMethod } from "./component/common" +export class ScreenModifier extends CommonMethodModifier implements ScreenAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ScreenAttribute): void { } + applyPressedAttribute(instance: ScreenAttribute): void { } + applyFocusedAttribute(instance: ScreenAttribute): void { } + applyDisabledAttribute(instance: ScreenAttribute): void { } + applySelectedAttribute(instance: ScreenAttribute): void { } + applyModifierPatch(peer: ArkScreenPeer): void { + super.applyModifierPatch(peer) + } + mergeModifier(modifier: ScreenModifier): void { + super.mergeModifier(modifier) + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ScrollBarModifier.ets b/arkoala-arkts/arkui/generated/ScrollBarModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..0dc8ba62ca55ab3e0609f0de21d4d900aedf86ef --- /dev/null +++ b/arkoala-arkts/arkui/generated/ScrollBarModifier.ets @@ -0,0 +1,88 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkScrollBarPeer, ScrollBarAttribute } from "./component/scrollBar" +import { CommonMethod } from "./component/common" +export class ScrollBarModifier extends CommonMethodModifier implements ScrollBarAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ScrollBarAttribute): void { } + applyPressedAttribute(instance: ScrollBarAttribute): void { } + applyFocusedAttribute(instance: ScrollBarAttribute): void { } + applyDisabledAttribute(instance: ScrollBarAttribute): void { } + applySelectedAttribute(instance: ScrollBarAttribute): void { } + _enableNestedScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableNestedScroll_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkScrollBarPeer): void { + super.applyModifierPatch(peer) + if (this._enableNestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableNestedScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableNestedScrollAttribute((this._enableNestedScroll_0_0value as boolean | undefined)); + this._enableNestedScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableNestedScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableNestedScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableNestedScrollAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: ScrollBarModifier): void { + super.mergeModifier(modifier) + if (modifier._enableNestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableNestedScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableNestedScroll(modifier._enableNestedScroll_0_0value); + break; + } + default: { + this.enableNestedScroll((undefined as boolean | undefined)); + } + } + } + } + enableNestedScroll(value: boolean | undefined): this { + if (((this._enableNestedScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableNestedScroll_0_0value) !== (value))) + { + this._enableNestedScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._enableNestedScroll_0_0value = value + } else + { + this._enableNestedScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ScrollModifier.ets b/arkoala-arkts/arkui/generated/ScrollModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..224f8fd9e8016a4e3b73335bb70709bb213a6687 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ScrollModifier.ets @@ -0,0 +1,799 @@ +/* + * 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 { ScrollableCommonMethodModifier } from "./ScrollableCommonMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkScrollPeer, ScrollDirection, ScrollOnWillScrollCallback, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions, ScrollAttribute } from "./component/scroll" +import { ScrollableCommonMethod, NestedScrollOptions, CommonMethod, EdgeEffectOptions } from "./component/common" +import { ScrollState } from "./component/list" +import { ScrollSource, Edge, BarState, Color, EdgeEffect } from "./component/enums" +import { VoidCallback } from "./component/units" +import { Resource } from "global.resource" +export class ScrollModifier extends ScrollableCommonMethodModifier implements ScrollAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ScrollAttribute): void { } + applyPressedAttribute(instance: ScrollAttribute): void { } + applyFocusedAttribute(instance: ScrollAttribute): void { } + applyDisabledAttribute(instance: ScrollAttribute): void { } + applySelectedAttribute(instance: ScrollAttribute): void { } + _scrollable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _scrollable_0_0value?: ScrollDirection | undefined + _onWillScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillScroll_0_0value?: ScrollOnWillScrollCallback | undefined + _onDidScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDidScroll_0_0value?: ScrollOnScrollCallback | undefined + _onScrollEdge_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollEdge_0_0value?: OnScrollEdgeCallback | undefined + _onScrollStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollStart_0_0value?: VoidCallback | undefined + _onScrollStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollStop_0_0value?: VoidCallback | undefined + _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 + _onScrollFrameBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollFrameBegin_0_0value?: OnScrollFrameBeginCallback | 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 + _scrollSnap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _scrollSnap_0_0value?: ScrollSnapOptions | undefined + _enablePaging_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enablePaging_0_0value?: boolean | undefined + _initialOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _initialOffset_0_0value?: OffsetOptions | undefined + _edgeEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _edgeEffect_0_0value?: EdgeEffect | undefined + _edgeEffect_0_1value?: EdgeEffectOptions | undefined + applyModifierPatch(peer: ArkScrollPeer): void { + super.applyModifierPatch(peer) + if (this._scrollable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._scrollable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setScrollableAttribute((this._scrollable_0_0value as ScrollDirection | undefined)); + this._scrollable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._scrollable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._scrollable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setScrollableAttribute((undefined as ScrollDirection | undefined)); + } + } + } + if (this._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillScrollAttribute((this._onWillScroll_0_0value as ScrollOnWillScrollCallback | undefined)); + this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillScrollAttribute((undefined as ScrollOnWillScrollCallback | undefined)); + } + } + } + if (this._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDidScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDidScrollAttribute((this._onDidScroll_0_0value as ScrollOnScrollCallback | undefined)); + this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDidScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDidScrollAttribute((undefined as ScrollOnScrollCallback | undefined)); + } + } + } + if (this._onScrollEdge_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollEdge_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollEdgeAttribute((this._onScrollEdge_0_0value as OnScrollEdgeCallback | undefined)); + this._onScrollEdge_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScrollEdge_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScrollEdge_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollEdgeAttribute((undefined as OnScrollEdgeCallback | undefined)); + } + } + } + if (this._onScrollStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollStartAttribute((this._onScrollStart_0_0value as VoidCallback | 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 VoidCallback | undefined)); + } + } + } + if (this._onScrollStop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollStop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollStopAttribute((this._onScrollStop_0_0value as VoidCallback | 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 VoidCallback | undefined)); + } + } + } + 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._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollFrameBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollFrameBeginAttribute((this._onScrollFrameBegin_0_0value as OnScrollFrameBeginCallback | undefined)); + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollFrameBeginAttribute((undefined as OnScrollFrameBeginCallback | 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._scrollSnap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._scrollSnap_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setScrollSnapAttribute((this._scrollSnap_0_0value as ScrollSnapOptions | undefined)); + this._scrollSnap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._scrollSnap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._scrollSnap_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setScrollSnapAttribute((undefined as ScrollSnapOptions | undefined)); + } + } + } + if (this._enablePaging_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enablePaging_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnablePagingAttribute((this._enablePaging_0_0value as boolean | undefined)); + this._enablePaging_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enablePaging_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enablePaging_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnablePagingAttribute((undefined as boolean | undefined)); + } + } + } + if (this._initialOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._initialOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setInitialOffsetAttribute((this._initialOffset_0_0value as OffsetOptions | undefined)); + this._initialOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._initialOffset_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._initialOffset_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setInitialOffsetAttribute((undefined as OffsetOptions | 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)); + } + } + } + } + mergeModifier(modifier: ScrollModifier): void { + super.mergeModifier(modifier) + if (modifier._scrollable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._scrollable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.scrollable(modifier._scrollable_0_0value); + break; + } + default: { + this.scrollable((undefined as ScrollDirection | undefined)); + } + } + } + if (modifier._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillScroll(modifier._onWillScroll_0_0value); + break; + } + default: { + this.onWillScroll((undefined as ScrollOnWillScrollCallback | undefined)); + } + } + } + if (modifier._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDidScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDidScroll(modifier._onDidScroll_0_0value); + break; + } + default: { + this.onDidScroll((undefined as ScrollOnScrollCallback | undefined)); + } + } + } + if (modifier._onScrollEdge_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScrollEdge_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScrollEdge(modifier._onScrollEdge_0_0value); + break; + } + default: { + this.onScrollEdge((undefined as OnScrollEdgeCallback | 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 VoidCallback | 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 VoidCallback | undefined)); + } + } + } + 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._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScrollFrameBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScrollFrameBegin(modifier._onScrollFrameBegin_0_0value); + break; + } + default: { + this.onScrollFrameBegin((undefined as OnScrollFrameBeginCallback | 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._scrollSnap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._scrollSnap_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.scrollSnap(modifier._scrollSnap_0_0value); + break; + } + default: { + this.scrollSnap((undefined as ScrollSnapOptions | undefined)); + } + } + } + if (modifier._enablePaging_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enablePaging_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enablePaging(modifier._enablePaging_0_0value); + break; + } + default: { + this.enablePaging((undefined as boolean | undefined)); + } + } + } + if (modifier._initialOffset_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._initialOffset_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.initialOffset(modifier._initialOffset_0_0value); + break; + } + default: { + this.initialOffset((undefined as OffsetOptions | 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)); + } + } + } + } + scrollable(value: ScrollDirection | undefined): this { + if (((this._scrollable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._scrollable_0_flag = AttributeUpdaterFlag.UPDATE + this._scrollable_0_0value = value + } else + { + this._scrollable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillScroll(value: ScrollOnWillScrollCallback | undefined): this { + if (((this._onWillScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillScroll_0_0value = value + } else + { + this._onWillScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDidScroll(value: ScrollOnScrollCallback | undefined): this { + if (((this._onDidScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDidScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onDidScroll_0_0value = value + } else + { + this._onDidScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollEdge(value: OnScrollEdgeCallback | undefined): this { + if (((this._onScrollEdge_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScrollEdge_0_flag = AttributeUpdaterFlag.UPDATE + this._onScrollEdge_0_0value = value + } else + { + this._onScrollEdge_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollStart(value: VoidCallback | 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: VoidCallback | 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 + } + 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 + } + onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { + if (((this._onScrollFrameBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.UPDATE + this._onScrollFrameBegin_0_0value = value + } else + { + this._onScrollFrameBegin_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 + } + scrollSnap(value: ScrollSnapOptions | undefined): this { + if (((this._scrollSnap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._scrollSnap_0_flag = AttributeUpdaterFlag.UPDATE + this._scrollSnap_0_0value = value + } else + { + this._scrollSnap_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enablePaging(value: boolean | undefined): this { + if (((this._enablePaging_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enablePaging_0_0value) !== (value))) + { + this._enablePaging_0_flag = AttributeUpdaterFlag.UPDATE + this._enablePaging_0_0value = value + } else + { + this._enablePaging_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + initialOffset(value: OffsetOptions | undefined): this { + if (((this._initialOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._initialOffset_0_flag = AttributeUpdaterFlag.UPDATE + this._initialOffset_0_0value = value + } else + { + this._initialOffset_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 + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ScrollableCommonMethodModifier.ets b/arkoala-arkts/arkui/generated/ScrollableCommonMethodModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..08bfe263f1917c395a4d48afd5dab7a4a0442716 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ScrollableCommonMethodModifier.ets @@ -0,0 +1,754 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkScrollableCommonMethodPeer, CommonMethod, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ScrollableCommonMethod } from "./component/common" +import { BarState, Color, CrownSensitivity, EdgeEffect } from "./component/enums" +import { Resource } from "global.resource" +import { RectShape } from "./framework/ohos.arkui.shape" +export class ScrollableCommonMethodModifier extends CommonMethodModifier implements ScrollableCommonMethod,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ScrollableCommonMethod): void { } + applyPressedAttribute(instance: ScrollableCommonMethod): void { } + applyFocusedAttribute(instance: ScrollableCommonMethod): void { } + applyDisabledAttribute(instance: ScrollableCommonMethod): void { } + applySelectedAttribute(instance: ScrollableCommonMethod): void { } + _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") + } +} diff --git a/arkoala-arkts/arkui/generated/SearchModifier.ets b/arkoala-arkts/arkui/generated/SearchModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..5d817c95c540f2b0db123a355a1f6ac57ac33f44 --- /dev/null +++ b/arkoala-arkts/arkui/generated/SearchModifier.ets @@ -0,0 +1,2126 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkSearchPeer, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchAttribute, SearchButtonOptions } from "./component/search" +import { CommonMethod, TextDecorationOptions } from "./component/common" +import { ResourceColor, Dimension, Font, ResourceStr } from "./component/units" +import { Color, CopyOptions, TextAlign } from "./component/enums" +import { Resource } from "global.resource" +import { SymbolGlyphModifier } from "./SymbolGlyphModifier" +import { CaretStyle, EditableTextOnChangeCallback, PreviewText, TextChangeOptions, InsertValue, DeleteValue, EditMenuOptions, AutoCapitalizationMode, EditableTextChangeValue, KeyboardAppearance } from "./component/textCommon" +import { EnterKeyType, SubmitEvent, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./component/textInput" +import { PasteEvent, KeyboardOptions } from "./component/richEditor" +import { CustomBuilder } from "./component/builder" +export class SearchModifier extends CommonMethodModifier implements SearchAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: SearchAttribute): void { } + applyPressedAttribute(instance: SearchAttribute): void { } + applyFocusedAttribute(instance: SearchAttribute): void { } + applyDisabledAttribute(instance: SearchAttribute): void { } + applySelectedAttribute(instance: SearchAttribute): void { } + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: ResourceColor | undefined + _searchIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _searchIcon_0_0value?: IconOptions | SymbolGlyphModifier | undefined + _cancelButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cancelButton_0_0value?: CancelButtonOptions | CancelButtonSymbolOptions | undefined + _textIndent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textIndent_0_0value?: Dimension | undefined + _onEditChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onEditChange_0_0value?: ((value0: boolean) => void) | undefined + _selectedBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedBackgroundColor_0_0value?: ResourceColor | undefined + _caretStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _caretStyle_0_0value?: CaretStyle | undefined + _placeholderColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _placeholderColor_0_0value?: ResourceColor | undefined + _placeholderFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _placeholderFont_0_0value?: Font | undefined + _textFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textFont_0_0value?: Font | undefined + _enterKeyType_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enterKeyType_0_0value?: EnterKeyType | undefined + _onSubmit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSubmit_0_0value?: ((value0: string) => void) | SearchSubmitCallback | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: EditableTextOnChangeCallback | undefined + _onTextSelectionChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTextSelectionChange_0_0value?: OnTextSelectionChangeCallback | undefined + _onContentScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onContentScroll_0_0value?: OnContentScrollCallback | undefined + _onCopy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onCopy_0_0value?: ((value0: string) => void) | undefined + _onCut_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onCut_0_0value?: ((value0: string) => void) | undefined + _onPaste_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPaste_0_0value?: OnPasteCallback | undefined + _copyOption_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _copyOption_0_0value?: CopyOptions | undefined + _maxLength_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxLength_0_0value?: number | undefined + _textAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textAlign_0_0value?: TextAlign | undefined + _enableKeyboardOnFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableKeyboardOnFocus_0_0value?: boolean | undefined + _selectionMenuHidden_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectionMenuHidden_0_0value?: boolean | undefined + _minFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minFontSize_0_0value?: number | string | Resource | undefined + _maxFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxFontSize_0_0value?: number | string | Resource | undefined + _minFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minFontScale_0_0value?: number | Resource | undefined + _maxFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxFontScale_0_0value?: number | Resource | undefined + _decoration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _decoration_0_0value?: TextDecorationOptions | undefined + _letterSpacing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _letterSpacing_0_0value?: number | string | Resource | undefined + _lineHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _lineHeight_0_0value?: number | string | Resource | undefined + _type_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _type_0_0value?: SearchType | undefined + _fontFeature_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontFeature_0_0value?: string | undefined + _onWillInsert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillInsert_0_0value?: ((value0: InsertValue) => boolean) | undefined + _onDidInsert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDidInsert_0_0value?: ((value0: InsertValue) => void) | undefined + _onWillDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillDelete_0_0value?: ((value0: DeleteValue) => boolean) | undefined + _onDidDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDidDelete_0_0value?: ((value0: DeleteValue) => void) | undefined + _editMenuOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _editMenuOptions_0_0value?: EditMenuOptions | undefined + _enablePreviewText_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enablePreviewText_0_0value?: boolean | undefined + _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableHapticFeedback_0_0value?: boolean | undefined + _autoCapitalizationMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _autoCapitalizationMode_0_0value?: AutoCapitalizationMode | undefined + _halfLeading_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _halfLeading_0_0value?: boolean | undefined + _stopBackPress_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stopBackPress_0_0value?: boolean | undefined + _onWillChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillChange_0_0value?: ((value0: EditableTextChangeValue) => boolean) | undefined + _keyboardAppearance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _keyboardAppearance_0_0value?: KeyboardAppearance | undefined + _searchButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _searchButton_0_0value?: ResourceStr | undefined + _searchButton_0_1value?: SearchButtonOptions | undefined + _inputFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _inputFilter_0_0value?: ResourceStr | undefined + _inputFilter_0_1value?: ((value0: string) => void) | undefined + _customKeyboard_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _customKeyboard_0_0value?: CustomBuilder | undefined + _customKeyboard_0_1value?: KeyboardOptions | undefined + applyModifierPatch(peer: ArkSearchPeer): void { + super.applyModifierPatch(peer) + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._searchIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._searchIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSearchIconAttribute((this._searchIcon_0_0value as IconOptions | SymbolGlyphModifier | undefined)); + this._searchIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._searchIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._searchIcon_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSearchIconAttribute((undefined as IconOptions | SymbolGlyphModifier | undefined)); + } + } + } + if (this._cancelButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cancelButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCancelButtonAttribute((this._cancelButton_0_0value as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); + this._cancelButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cancelButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cancelButton_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCancelButtonAttribute((undefined as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); + } + } + } + if (this._textIndent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textIndent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextIndentAttribute((this._textIndent_0_0value as Dimension | undefined)); + this._textIndent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textIndent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textIndent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextIndentAttribute((undefined as Dimension | undefined)); + } + } + } + if (this._onEditChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onEditChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnEditChangeAttribute((this._onEditChange_0_0value as ((value0: boolean) => void) | undefined)); + this._onEditChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onEditChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onEditChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnEditChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (this._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedBackgroundColorAttribute((this._selectedBackgroundColor_0_0value as ResourceColor | undefined)); + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedBackgroundColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._caretStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._caretStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCaretStyleAttribute((this._caretStyle_0_0value as CaretStyle | undefined)); + this._caretStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._caretStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._caretStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCaretStyleAttribute((undefined as CaretStyle | undefined)); + } + } + } + if (this._placeholderColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._placeholderColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPlaceholderColorAttribute((this._placeholderColor_0_0value as ResourceColor | undefined)); + this._placeholderColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._placeholderColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._placeholderColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPlaceholderColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._placeholderFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._placeholderFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPlaceholderFontAttribute((this._placeholderFont_0_0value as Font | undefined)); + this._placeholderFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._placeholderFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._placeholderFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPlaceholderFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._textFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextFontAttribute((this._textFont_0_0value as Font | undefined)); + this._textFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enterKeyType_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnterKeyTypeAttribute((this._enterKeyType_0_0value as EnterKeyType | undefined)); + this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enterKeyType_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnterKeyTypeAttribute((undefined as EnterKeyType | undefined)); + } + } + } + if (this._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSubmit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSubmitAttribute((this._onSubmit_0_0value as ((value0: string) => void) | SearchSubmitCallback | undefined)); + this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSubmit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSubmitAttribute((undefined as ((value0: string) => void) | SearchSubmitCallback | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as EditableTextOnChangeCallback | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as EditableTextOnChangeCallback | undefined)); + } + } + } + if (this._onTextSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTextSelectionChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTextSelectionChangeAttribute((this._onTextSelectionChange_0_0value as OnTextSelectionChangeCallback | undefined)); + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTextSelectionChangeAttribute((undefined as OnTextSelectionChangeCallback | undefined)); + } + } + } + if (this._onContentScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onContentScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnContentScrollAttribute((this._onContentScroll_0_0value as OnContentScrollCallback | undefined)); + this._onContentScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onContentScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onContentScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnContentScrollAttribute((undefined as OnContentScrollCallback | undefined)); + } + } + } + if (this._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onCopy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCopyAttribute((this._onCopy_0_0value as ((value0: string) => void) | undefined)); + this._onCopy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onCopy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onCopy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCopyAttribute((undefined as ((value0: string) => void) | undefined)); + } + } + } + if (this._onCut_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onCut_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCutAttribute((this._onCut_0_0value as ((value0: string) => void) | undefined)); + this._onCut_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onCut_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onCut_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCutAttribute((undefined as ((value0: string) => void) | undefined)); + } + } + } + if (this._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPaste_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPasteAttribute((this._onPaste_0_0value as OnPasteCallback | undefined)); + this._onPaste_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPaste_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPaste_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPasteAttribute((undefined as OnPasteCallback | undefined)); + } + } + } + if (this._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._copyOption_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCopyOptionAttribute((this._copyOption_0_0value as CopyOptions | undefined)); + this._copyOption_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._copyOption_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._copyOption_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCopyOptionAttribute((undefined as CopyOptions | undefined)); + } + } + } + if (this._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxLength_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxLengthAttribute((this._maxLength_0_0value as number | undefined)); + this._maxLength_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxLength_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxLength_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxLengthAttribute((undefined as number | undefined)); + } + } + } + if (this._textAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextAlignAttribute((this._textAlign_0_0value as TextAlign | undefined)); + this._textAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textAlign_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextAlignAttribute((undefined as TextAlign | undefined)); + } + } + } + if (this._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableKeyboardOnFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableKeyboardOnFocusAttribute((this._enableKeyboardOnFocus_0_0value as boolean | undefined)); + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableKeyboardOnFocusAttribute((undefined as boolean | undefined)); + } + } + } + if (this._selectionMenuHidden_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectionMenuHidden_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectionMenuHiddenAttribute((this._selectionMenuHidden_0_0value as boolean | undefined)); + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectionMenuHiddenAttribute((undefined as boolean | undefined)); + } + } + } + if (this._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinFontSizeAttribute((this._minFontSize_0_0value as number | string | Resource | undefined)); + this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minFontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinFontSizeAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._maxFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxFontSizeAttribute((this._maxFontSize_0_0value as number | string | Resource | undefined)); + this._maxFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxFontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxFontSizeAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinFontScaleAttribute((this._minFontScale_0_0value as number | Resource | undefined)); + this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minFontScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinFontScaleAttribute((undefined as number | Resource | undefined)); + } + } + } + if (this._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxFontScaleAttribute((this._maxFontScale_0_0value as number | Resource | undefined)); + this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxFontScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxFontScaleAttribute((undefined as number | Resource | undefined)); + } + } + } + if (this._decoration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._decoration_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDecorationAttribute((this._decoration_0_0value as TextDecorationOptions | undefined)); + this._decoration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._decoration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._decoration_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDecorationAttribute((undefined as TextDecorationOptions | undefined)); + } + } + } + if (this._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._letterSpacing_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLetterSpacingAttribute((this._letterSpacing_0_0value as number | string | Resource | undefined)); + this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._letterSpacing_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLetterSpacingAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._lineHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLineHeightAttribute((this._lineHeight_0_0value as number | string | Resource | undefined)); + this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._lineHeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLineHeightAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._type_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._type_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTypeAttribute((this._type_0_0value as SearchType | undefined)); + this._type_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._type_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._type_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTypeAttribute((undefined as SearchType | undefined)); + } + } + } + if (this._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontFeature_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontFeatureAttribute((this._fontFeature_0_0value as string | undefined)); + this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontFeature_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontFeatureAttribute((undefined as string | undefined)); + } + } + } + if (this._onWillInsert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillInsert_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillInsertAttribute((this._onWillInsert_0_0value as ((value0: InsertValue) => boolean) | undefined)); + this._onWillInsert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillInsert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillInsert_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillInsertAttribute((undefined as ((value0: InsertValue) => boolean) | undefined)); + } + } + } + if (this._onDidInsert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDidInsert_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDidInsertAttribute((this._onDidInsert_0_0value as ((value0: InsertValue) => void) | undefined)); + this._onDidInsert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDidInsert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDidInsert_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDidInsertAttribute((undefined as ((value0: InsertValue) => void) | undefined)); + } + } + } + if (this._onWillDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillDeleteAttribute((this._onWillDelete_0_0value as ((value0: DeleteValue) => boolean) | undefined)); + this._onWillDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillDelete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillDeleteAttribute((undefined as ((value0: DeleteValue) => boolean) | undefined)); + } + } + } + if (this._onDidDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDidDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDidDeleteAttribute((this._onDidDelete_0_0value as ((value0: DeleteValue) => void) | undefined)); + this._onDidDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDidDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDidDelete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDidDeleteAttribute((undefined as ((value0: DeleteValue) => void) | undefined)); + } + } + } + if (this._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._editMenuOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEditMenuOptionsAttribute((this._editMenuOptions_0_0value as EditMenuOptions | undefined)); + this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEditMenuOptionsAttribute((undefined as EditMenuOptions | undefined)); + } + } + } + if (this._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enablePreviewText_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnablePreviewTextAttribute((this._enablePreviewText_0_0value as boolean | undefined)); + this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnablePreviewTextAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); + } + } + } + if (this._autoCapitalizationMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._autoCapitalizationMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAutoCapitalizationModeAttribute((this._autoCapitalizationMode_0_0value as AutoCapitalizationMode | undefined)); + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAutoCapitalizationModeAttribute((undefined as AutoCapitalizationMode | undefined)); + } + } + } + if (this._halfLeading_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._halfLeading_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHalfLeadingAttribute((this._halfLeading_0_0value as boolean | undefined)); + this._halfLeading_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._halfLeading_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._halfLeading_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHalfLeadingAttribute((undefined as boolean | undefined)); + } + } + } + if (this._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stopBackPress_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStopBackPressAttribute((this._stopBackPress_0_0value as boolean | undefined)); + this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stopBackPress_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStopBackPressAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillChangeAttribute((this._onWillChange_0_0value as ((value0: EditableTextChangeValue) => boolean) | undefined)); + this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillChangeAttribute((undefined as ((value0: EditableTextChangeValue) => boolean) | undefined)); + } + } + } + if (this._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._keyboardAppearance_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setKeyboardAppearanceAttribute((this._keyboardAppearance_0_0value as KeyboardAppearance | undefined)); + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setKeyboardAppearanceAttribute((undefined as KeyboardAppearance | undefined)); + } + } + } + if (this._searchButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._searchButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSearchButtonAttribute((this._searchButton_0_0value as ResourceStr | undefined), (this._searchButton_0_1value as SearchButtonOptions | undefined)); + this._searchButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._searchButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._searchButton_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSearchButtonAttribute((undefined as ResourceStr | undefined), (undefined as SearchButtonOptions | undefined | undefined)); + } + } + } + if (this._inputFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._inputFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setInputFilterAttribute((this._inputFilter_0_0value as ResourceStr | undefined), (this._inputFilter_0_1value as ((value0: string) => void) | undefined)); + this._inputFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._inputFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._inputFilter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setInputFilterAttribute((undefined as ResourceStr | undefined), (undefined as ((value0: string) => void) | undefined | undefined)); + } + } + } + if (this._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._customKeyboard_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCustomKeyboardAttribute((this._customKeyboard_0_0value as CustomBuilder | undefined), (this._customKeyboard_0_1value as KeyboardOptions | undefined)); + this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._customKeyboard_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCustomKeyboardAttribute((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: SearchModifier): void { + super.mergeModifier(modifier) + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._searchIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._searchIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.searchIcon(modifier._searchIcon_0_0value); + break; + } + default: { + this.searchIcon((undefined as IconOptions | SymbolGlyphModifier | undefined)); + } + } + } + if (modifier._cancelButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cancelButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cancelButton(modifier._cancelButton_0_0value); + break; + } + default: { + this.cancelButton((undefined as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); + } + } + } + if (modifier._textIndent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textIndent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textIndent(modifier._textIndent_0_0value); + break; + } + default: { + this.textIndent((undefined as Dimension | undefined)); + } + } + } + if (modifier._onEditChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onEditChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onEditChange(modifier._onEditChange_0_0value); + break; + } + default: { + this.onEditChange((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (modifier._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedBackgroundColor(modifier._selectedBackgroundColor_0_0value); + break; + } + default: { + this.selectedBackgroundColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._caretStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._caretStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.caretStyle(modifier._caretStyle_0_0value); + break; + } + default: { + this.caretStyle((undefined as CaretStyle | undefined)); + } + } + } + if (modifier._placeholderColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._placeholderColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.placeholderColor(modifier._placeholderColor_0_0value); + break; + } + default: { + this.placeholderColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._placeholderFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._placeholderFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.placeholderFont(modifier._placeholderFont_0_0value); + break; + } + default: { + this.placeholderFont((undefined as Font | undefined)); + } + } + } + if (modifier._textFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textFont(modifier._textFont_0_0value); + break; + } + default: { + this.textFont((undefined as Font | undefined)); + } + } + } + if (modifier._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enterKeyType_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enterKeyType(modifier._enterKeyType_0_0value); + break; + } + default: { + this.enterKeyType((undefined as EnterKeyType | undefined)); + } + } + } + if (modifier._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSubmit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSubmit(modifier._onSubmit_0_0value); + break; + } + default: { + this.onSubmit((undefined as ((value0: string) => void) | SearchSubmitCallback | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as EditableTextOnChangeCallback | undefined)); + } + } + } + if (modifier._onTextSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTextSelectionChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTextSelectionChange(modifier._onTextSelectionChange_0_0value); + break; + } + default: { + this.onTextSelectionChange((undefined as OnTextSelectionChangeCallback | undefined)); + } + } + } + if (modifier._onContentScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onContentScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onContentScroll(modifier._onContentScroll_0_0value); + break; + } + default: { + this.onContentScroll((undefined as OnContentScrollCallback | undefined)); + } + } + } + if (modifier._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onCopy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onCopy(modifier._onCopy_0_0value); + break; + } + default: { + this.onCopy((undefined as ((value0: string) => void) | undefined)); + } + } + } + if (modifier._onCut_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onCut_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onCut(modifier._onCut_0_0value); + break; + } + default: { + this.onCut((undefined as ((value0: string) => void) | undefined)); + } + } + } + if (modifier._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPaste_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPaste(modifier._onPaste_0_0value); + break; + } + default: { + this.onPaste((undefined as OnPasteCallback | undefined)); + } + } + } + if (modifier._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._copyOption_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.copyOption(modifier._copyOption_0_0value); + break; + } + default: { + this.copyOption((undefined as CopyOptions | undefined)); + } + } + } + if (modifier._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxLength_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxLength(modifier._maxLength_0_0value); + break; + } + default: { + this.maxLength((undefined as number | undefined)); + } + } + } + if (modifier._textAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textAlign(modifier._textAlign_0_0value); + break; + } + default: { + this.textAlign((undefined as TextAlign | undefined)); + } + } + } + if (modifier._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableKeyboardOnFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableKeyboardOnFocus(modifier._enableKeyboardOnFocus_0_0value); + break; + } + default: { + this.enableKeyboardOnFocus((undefined as boolean | undefined)); + } + } + } + if (modifier._selectionMenuHidden_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectionMenuHidden_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectionMenuHidden(modifier._selectionMenuHidden_0_0value); + break; + } + default: { + this.selectionMenuHidden((undefined as boolean | undefined)); + } + } + } + if (modifier._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minFontSize(modifier._minFontSize_0_0value); + break; + } + default: { + this.minFontSize((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._maxFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxFontSize(modifier._maxFontSize_0_0value); + break; + } + default: { + this.maxFontSize((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minFontScale(modifier._minFontScale_0_0value); + break; + } + default: { + this.minFontScale((undefined as number | Resource | undefined)); + } + } + } + if (modifier._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxFontScale(modifier._maxFontScale_0_0value); + break; + } + default: { + this.maxFontScale((undefined as number | Resource | undefined)); + } + } + } + if (modifier._decoration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._decoration_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.decoration(modifier._decoration_0_0value); + break; + } + default: { + this.decoration((undefined as TextDecorationOptions | undefined)); + } + } + } + if (modifier._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._letterSpacing_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.letterSpacing(modifier._letterSpacing_0_0value); + break; + } + default: { + this.letterSpacing((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._lineHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.lineHeight(modifier._lineHeight_0_0value); + break; + } + default: { + this.lineHeight((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._type_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._type_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.type(modifier._type_0_0value); + break; + } + default: { + this.type((undefined as SearchType | undefined)); + } + } + } + if (modifier._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontFeature_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontFeature(modifier._fontFeature_0_0value); + break; + } + default: { + this.fontFeature((undefined as string | undefined)); + } + } + } + if (modifier._onWillInsert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillInsert_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillInsert(modifier._onWillInsert_0_0value); + break; + } + default: { + this.onWillInsert((undefined as ((value0: InsertValue) => boolean) | undefined)); + } + } + } + if (modifier._onDidInsert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDidInsert_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDidInsert(modifier._onDidInsert_0_0value); + break; + } + default: { + this.onDidInsert((undefined as ((value0: InsertValue) => void) | undefined)); + } + } + } + if (modifier._onWillDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillDelete(modifier._onWillDelete_0_0value); + break; + } + default: { + this.onWillDelete((undefined as ((value0: DeleteValue) => boolean) | undefined)); + } + } + } + if (modifier._onDidDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDidDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDidDelete(modifier._onDidDelete_0_0value); + break; + } + default: { + this.onDidDelete((undefined as ((value0: DeleteValue) => void) | undefined)); + } + } + } + if (modifier._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._editMenuOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.editMenuOptions(modifier._editMenuOptions_0_0value); + break; + } + default: { + this.editMenuOptions((undefined as EditMenuOptions | undefined)); + } + } + } + if (modifier._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enablePreviewText_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enablePreviewText(modifier._enablePreviewText_0_0value); + break; + } + default: { + this.enablePreviewText((undefined as boolean | undefined)); + } + } + } + if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); + break; + } + default: { + this.enableHapticFeedback((undefined as boolean | undefined)); + } + } + } + if (modifier._autoCapitalizationMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._autoCapitalizationMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.autoCapitalizationMode(modifier._autoCapitalizationMode_0_0value); + break; + } + default: { + this.autoCapitalizationMode((undefined as AutoCapitalizationMode | undefined)); + } + } + } + if (modifier._halfLeading_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._halfLeading_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.halfLeading(modifier._halfLeading_0_0value); + break; + } + default: { + this.halfLeading((undefined as boolean | undefined)); + } + } + } + if (modifier._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stopBackPress_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stopBackPress(modifier._stopBackPress_0_0value); + break; + } + default: { + this.stopBackPress((undefined as boolean | undefined)); + } + } + } + if (modifier._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillChange(modifier._onWillChange_0_0value); + break; + } + default: { + this.onWillChange((undefined as ((value0: EditableTextChangeValue) => boolean) | undefined)); + } + } + } + if (modifier._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._keyboardAppearance_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.keyboardAppearance(modifier._keyboardAppearance_0_0value); + break; + } + default: { + this.keyboardAppearance((undefined as KeyboardAppearance | undefined)); + } + } + } + if (modifier._searchButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._searchButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.searchButton(modifier._searchButton_0_0value, modifier._searchButton_0_1value); + break; + } + default: { + this.searchButton((undefined as ResourceStr | undefined), (undefined as SearchButtonOptions | undefined | undefined)); + } + } + } + if (modifier._inputFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._inputFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.inputFilter(modifier._inputFilter_0_0value, modifier._inputFilter_0_1value); + break; + } + default: { + this.inputFilter((undefined as ResourceStr | undefined), (undefined as ((value0: string) => void) | undefined | undefined)); + } + } + } + if (modifier._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._customKeyboard_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.customKeyboard(modifier._customKeyboard_0_0value, modifier._customKeyboard_0_1value); + break; + } + default: { + this.customKeyboard((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); + } + } + } + } + fontColor(value: ResourceColor | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + searchIcon(value: IconOptions | SymbolGlyphModifier | undefined): this { + if (((this._searchIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._searchIcon_0_flag = AttributeUpdaterFlag.UPDATE + this._searchIcon_0_0value = value + } else + { + this._searchIcon_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions | undefined): this { + if (((this._cancelButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._cancelButton_0_flag = AttributeUpdaterFlag.UPDATE + this._cancelButton_0_0value = value + } else + { + this._cancelButton_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textIndent(value: Dimension | undefined): this { + if (((this._textIndent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textIndent_0_flag = AttributeUpdaterFlag.UPDATE + this._textIndent_0_0value = value + } else + { + this._textIndent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onEditChange(value: ((value0: boolean) => void) | undefined): this { + if (((this._onEditChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onEditChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onEditChange_0_0value = value + } else + { + this._onEditChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedBackgroundColor(value: ResourceColor | undefined): this { + if (((this._selectedBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedBackgroundColor_0_0value = value + } else + { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + caretStyle(value: CaretStyle | undefined): this { + if (((this._caretStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._caretStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._caretStyle_0_0value = value + } else + { + this._caretStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + placeholderColor(value: ResourceColor | undefined): this { + if (((this._placeholderColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._placeholderColor_0_flag = AttributeUpdaterFlag.UPDATE + this._placeholderColor_0_0value = value + } else + { + this._placeholderColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + placeholderFont(value: Font | undefined): this { + if (((this._placeholderFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._placeholderFont_0_flag = AttributeUpdaterFlag.UPDATE + this._placeholderFont_0_0value = value + } else + { + this._placeholderFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textFont(value: Font | undefined): this { + if (((this._textFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textFont_0_flag = AttributeUpdaterFlag.UPDATE + this._textFont_0_0value = value + } else + { + this._textFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enterKeyType(value: EnterKeyType | undefined): this { + if (((this._enterKeyType_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._enterKeyType_0_flag = AttributeUpdaterFlag.UPDATE + this._enterKeyType_0_0value = value + } else + { + this._enterKeyType_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSubmit(value: ((value0: string) => void) | SearchSubmitCallback | undefined): this { + if (((this._onSubmit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSubmit_0_flag = AttributeUpdaterFlag.UPDATE + this._onSubmit_0_0value = value + } else + { + this._onSubmit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: EditableTextOnChangeCallback | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTextSelectionChange(value: OnTextSelectionChangeCallback | undefined): this { + if (((this._onTextSelectionChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onTextSelectionChange_0_0value = value + } else + { + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onContentScroll(value: OnContentScrollCallback | undefined): this { + if (((this._onContentScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onContentScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onContentScroll_0_0value = value + } else + { + this._onContentScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onCopy(value: ((value0: string) => void) | undefined): this { + if (((this._onCopy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onCopy_0_flag = AttributeUpdaterFlag.UPDATE + this._onCopy_0_0value = value + } else + { + this._onCopy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onCut(value: ((value0: string) => void) | undefined): this { + if (((this._onCut_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onCut_0_flag = AttributeUpdaterFlag.UPDATE + this._onCut_0_0value = value + } else + { + this._onCut_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPaste(value: OnPasteCallback | undefined): this { + if (((this._onPaste_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPaste_0_flag = AttributeUpdaterFlag.UPDATE + this._onPaste_0_0value = value + } else + { + this._onPaste_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + copyOption(value: CopyOptions | undefined): this { + if (((this._copyOption_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._copyOption_0_flag = AttributeUpdaterFlag.UPDATE + this._copyOption_0_0value = value + } else + { + this._copyOption_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxLength(value: number | undefined): this { + if (((this._maxLength_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLength_0_0value) !== (value))) + { + this._maxLength_0_flag = AttributeUpdaterFlag.UPDATE + this._maxLength_0_0value = value + } else + { + this._maxLength_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textAlign(value: TextAlign | undefined): this { + if (((this._textAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textAlign_0_flag = AttributeUpdaterFlag.UPDATE + this._textAlign_0_0value = value + } else + { + this._textAlign_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableKeyboardOnFocus(value: boolean | undefined): this { + if (((this._enableKeyboardOnFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableKeyboardOnFocus_0_0value) !== (value))) + { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.UPDATE + this._enableKeyboardOnFocus_0_0value = value + } else + { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectionMenuHidden(value: boolean | undefined): this { + if (((this._selectionMenuHidden_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectionMenuHidden_0_0value) !== (value))) + { + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.UPDATE + this._selectionMenuHidden_0_0value = value + } else + { + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minFontSize(value: number | string | Resource | undefined): this { + if (((this._minFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._minFontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._minFontSize_0_0value = value + } else + { + this._minFontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxFontSize(value: number | string | Resource | undefined): this { + if (((this._maxFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._maxFontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._maxFontSize_0_0value = value + } else + { + this._maxFontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minFontScale(value: number | Resource | undefined): this { + if (((this._minFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._minFontScale_0_flag = AttributeUpdaterFlag.UPDATE + this._minFontScale_0_0value = value + } else + { + this._minFontScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxFontScale(value: number | Resource | undefined): this { + if (((this._maxFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._maxFontScale_0_flag = AttributeUpdaterFlag.UPDATE + this._maxFontScale_0_0value = value + } else + { + this._maxFontScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + decoration(value: TextDecorationOptions | undefined): this { + if (((this._decoration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._decoration_0_flag = AttributeUpdaterFlag.UPDATE + this._decoration_0_0value = value + } else + { + this._decoration_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + letterSpacing(value: number | string | Resource | undefined): this { + if (((this._letterSpacing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._letterSpacing_0_flag = AttributeUpdaterFlag.UPDATE + this._letterSpacing_0_0value = value + } else + { + this._letterSpacing_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + lineHeight(value: number | string | Resource | undefined): this { + if (((this._lineHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._lineHeight_0_flag = AttributeUpdaterFlag.UPDATE + this._lineHeight_0_0value = value + } else + { + this._lineHeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + type(value: SearchType | undefined): this { + if (((this._type_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._type_0_flag = AttributeUpdaterFlag.UPDATE + this._type_0_0value = value + } else + { + this._type_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontFeature(value: string | undefined): this { + if (((this._fontFeature_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fontFeature_0_0value) !== (value))) + { + this._fontFeature_0_flag = AttributeUpdaterFlag.UPDATE + this._fontFeature_0_0value = value + } else + { + this._fontFeature_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { + if (((this._onWillInsert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillInsert_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillInsert_0_0value = value + } else + { + this._onWillInsert_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { + if (((this._onDidInsert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDidInsert_0_flag = AttributeUpdaterFlag.UPDATE + this._onDidInsert_0_0value = value + } else + { + this._onDidInsert_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { + if (((this._onWillDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillDelete_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillDelete_0_0value = value + } else + { + this._onWillDelete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { + if (((this._onDidDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDidDelete_0_flag = AttributeUpdaterFlag.UPDATE + this._onDidDelete_0_0value = value + } else + { + this._onDidDelete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + editMenuOptions(value: EditMenuOptions | undefined): this { + if (((this._editMenuOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._editMenuOptions_0_0value = value + } else + { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enablePreviewText(value: boolean | undefined): this { + if (((this._enablePreviewText_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enablePreviewText_0_0value) !== (value))) + { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.UPDATE + this._enablePreviewText_0_0value = value + } else + { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableHapticFeedback(value: boolean | undefined): this { + if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE + this._enableHapticFeedback_0_0value = value + } else + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { + if (((this._autoCapitalizationMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.UPDATE + this._autoCapitalizationMode_0_0value = value + } else + { + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + halfLeading(value: boolean | undefined): this { + if (((this._halfLeading_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._halfLeading_0_0value) !== (value))) + { + this._halfLeading_0_flag = AttributeUpdaterFlag.UPDATE + this._halfLeading_0_0value = value + } else + { + this._halfLeading_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + stopBackPress(value: boolean | undefined): this { + if (((this._stopBackPress_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stopBackPress_0_0value) !== (value))) + { + this._stopBackPress_0_flag = AttributeUpdaterFlag.UPDATE + this._stopBackPress_0_0value = value + } else + { + this._stopBackPress_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { + if (((this._onWillChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillChange_0_0value = value + } else + { + this._onWillChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + keyboardAppearance(value: KeyboardAppearance | undefined): this { + if (((this._keyboardAppearance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.UPDATE + this._keyboardAppearance_0_0value = value + } else + { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + searchButton(value: ResourceStr | undefined, option?: SearchButtonOptions): this { + if (((this._searchButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._searchButton_0_flag = AttributeUpdaterFlag.UPDATE + this._searchButton_0_0value = value + this._searchButton_0_1value = option + } else + { + this._searchButton_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + inputFilter(value: ResourceStr | undefined, error?: ((value0: string) => void)): this { + if (((this._inputFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._inputFilter_0_flag = AttributeUpdaterFlag.UPDATE + this._inputFilter_0_0value = value + this._inputFilter_0_1value = error + } else + { + this._inputFilter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { + if (((this._customKeyboard_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._customKeyboard_0_flag = AttributeUpdaterFlag.UPDATE + this._customKeyboard_0_0value = value + this._customKeyboard_0_1value = options + } else + { + this._customKeyboard_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/SelectModifier.ets b/arkoala-arkts/arkui/generated/SelectModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..be347544977520431d19537fb81f09329134ed57 --- /dev/null +++ b/arkoala-arkts/arkui/generated/SelectModifier.ets @@ -0,0 +1,1241 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkSelectPeer, OnSelectCallback, ArrowPosition, MenuItemConfiguration, AvoidanceMode, MenuOutlineOptions, SelectAttribute, MenuAlignType } from "./component/select" +import { CommonMethod, Bindable, BlurStyle } from "./component/common" +import { Resource } from "global.resource" +import { ResourceStr, Font, ResourceColor, Length, Dimension, DividerStyleOptions, Offset } from "./component/units" +import { Color, OptionWidthMode } from "./component/enums" +import { ControlSize } from "./component/button" +import { DividerOptions } from "./component/textPicker" +import { TextModifier } from "./TextModifier" +import { SymbolGlyphModifier } from "./SymbolGlyphModifier" +export class SelectModifier extends CommonMethodModifier implements SelectAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: SelectAttribute): void { } + applyPressedAttribute(instance: SelectAttribute): void { } + applyFocusedAttribute(instance: SelectAttribute): void { } + applyDisabledAttribute(instance: SelectAttribute): void { } + applySelectedAttribute(instance: SelectAttribute): void { } + _selected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selected_0_0value?: number | Resource | Bindable | Bindable | undefined + _value_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _value_0_0value?: ResourceStr | Bindable | Bindable | undefined + _font_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _font_0_0value?: Font | undefined + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: ResourceColor | undefined + _selectedOptionBgColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedOptionBgColor_0_0value?: ResourceColor | undefined + _selectedOptionFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedOptionFont_0_0value?: Font | undefined + _selectedOptionFontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedOptionFontColor_0_0value?: ResourceColor | undefined + _optionBgColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _optionBgColor_0_0value?: ResourceColor | undefined + _optionFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _optionFont_0_0value?: Font | undefined + _optionFontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _optionFontColor_0_0value?: ResourceColor | undefined + _onSelect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSelect_0_0value?: OnSelectCallback | undefined + _space_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _space_0_0value?: Length | undefined + _arrowPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _arrowPosition_0_0value?: ArrowPosition | undefined + _optionWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _optionWidth_0_0value?: Dimension | OptionWidthMode | undefined + _optionHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _optionHeight_0_0value?: Dimension | undefined + _menuBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menuBackgroundColor_0_0value?: ResourceColor | undefined + _menuBackgroundBlurStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menuBackgroundBlurStyle_0_0value?: BlurStyle | undefined + _controlSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _controlSize_0_0value?: ControlSize | undefined + _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _divider_0_0value?: DividerOptions | undefined + _textModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textModifier_0_0value?: TextModifier | undefined + _arrowModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _arrowModifier_0_0value?: SymbolGlyphModifier | undefined + _optionTextModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _optionTextModifier_0_0value?: TextModifier | undefined + _selectedOptionTextModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedOptionTextModifier_0_0value?: TextModifier | undefined + _dividerStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _dividerStyle_0_0value?: DividerStyleOptions | undefined + _avoidance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _avoidance_0_0value?: AvoidanceMode | undefined + _menuOutline_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menuOutline_0_0value?: MenuOutlineOptions | undefined + _menuAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _menuAlign_0_0value?: MenuAlignType | undefined + _menuAlign_0_1value?: Offset | undefined + applyModifierPatch(peer: ArkSelectPeer): void { + super.applyModifierPatch(peer) + if (this._selected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedAttribute((this._selected_0_0value as number | Resource | Bindable | Bindable | undefined)); + this._selected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedAttribute((undefined as number | Resource | Bindable | Bindable | undefined)); + } + } + } + if (this._value_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._value_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setValueAttribute((this._value_0_0value as ResourceStr | Bindable | Bindable | undefined)); + this._value_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._value_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._value_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setValueAttribute((undefined as ResourceStr | Bindable | Bindable | undefined)); + } + } + } + if (this._font_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._font_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontAttribute((this._font_0_0value as Font | undefined)); + this._font_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._font_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._font_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._selectedOptionBgColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedOptionBgColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedOptionBgColorAttribute((this._selectedOptionBgColor_0_0value as ResourceColor | undefined)); + this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedOptionBgColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._selectedOptionFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedOptionFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedOptionFontAttribute((this._selectedOptionFont_0_0value as Font | undefined)); + this._selectedOptionFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedOptionFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedOptionFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedOptionFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._selectedOptionFontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedOptionFontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedOptionFontColorAttribute((this._selectedOptionFontColor_0_0value as ResourceColor | undefined)); + this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedOptionFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._optionBgColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._optionBgColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOptionBgColorAttribute((this._optionBgColor_0_0value as ResourceColor | undefined)); + this._optionBgColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._optionBgColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._optionBgColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOptionBgColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._optionFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._optionFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOptionFontAttribute((this._optionFont_0_0value as Font | undefined)); + this._optionFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._optionFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._optionFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOptionFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._optionFontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._optionFontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOptionFontColorAttribute((this._optionFontColor_0_0value as ResourceColor | undefined)); + this._optionFontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._optionFontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._optionFontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOptionFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSelect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSelectAttribute((this._onSelect_0_0value as OnSelectCallback | undefined)); + this._onSelect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSelect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSelect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSelectAttribute((undefined as OnSelectCallback | undefined)); + } + } + } + if (this._space_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._space_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSpaceAttribute((this._space_0_0value as Length | undefined)); + this._space_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._space_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._space_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSpaceAttribute((undefined as Length | undefined)); + } + } + } + if (this._arrowPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._arrowPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setArrowPositionAttribute((this._arrowPosition_0_0value as ArrowPosition | undefined)); + this._arrowPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._arrowPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._arrowPosition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setArrowPositionAttribute((undefined as ArrowPosition | undefined)); + } + } + } + if (this._optionWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._optionWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOptionWidthAttribute((this._optionWidth_0_0value as Dimension | OptionWidthMode | undefined)); + this._optionWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._optionWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._optionWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOptionWidthAttribute((undefined as Dimension | OptionWidthMode | undefined)); + } + } + } + if (this._optionHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._optionHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOptionHeightAttribute((this._optionHeight_0_0value as Dimension | undefined)); + this._optionHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._optionHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._optionHeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOptionHeightAttribute((undefined as Dimension | undefined)); + } + } + } + if (this._menuBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menuBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenuBackgroundColorAttribute((this._menuBackgroundColor_0_0value as ResourceColor | undefined)); + this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenuBackgroundColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._menuBackgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menuBackgroundBlurStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenuBackgroundBlurStyleAttribute((this._menuBackgroundBlurStyle_0_0value as BlurStyle | undefined)); + this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenuBackgroundBlurStyleAttribute((undefined as BlurStyle | undefined)); + } + } + } + if (this._controlSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._controlSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setControlSizeAttribute((this._controlSize_0_0value as ControlSize | undefined)); + this._controlSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._controlSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._controlSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setControlSizeAttribute((undefined as ControlSize | undefined)); + } + } + } + if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDividerAttribute((this._divider_0_0value as DividerOptions | undefined)); + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._divider_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDividerAttribute((undefined as DividerOptions | undefined)); + } + } + } + if (this._textModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextModifierAttribute((this._textModifier_0_0value as TextModifier | undefined)); + this._textModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textModifier_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextModifierAttribute((undefined as TextModifier | undefined)); + } + } + } + if (this._arrowModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._arrowModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setArrowModifierAttribute((this._arrowModifier_0_0value as SymbolGlyphModifier | undefined)); + this._arrowModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._arrowModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._arrowModifier_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setArrowModifierAttribute((undefined as SymbolGlyphModifier | undefined)); + } + } + } + if (this._optionTextModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._optionTextModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOptionTextModifierAttribute((this._optionTextModifier_0_0value as TextModifier | undefined)); + this._optionTextModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._optionTextModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._optionTextModifier_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOptionTextModifierAttribute((undefined as TextModifier | undefined)); + } + } + } + if (this._selectedOptionTextModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedOptionTextModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedOptionTextModifierAttribute((this._selectedOptionTextModifier_0_0value as TextModifier | undefined)); + this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedOptionTextModifierAttribute((undefined as TextModifier | undefined)); + } + } + } + if (this._dividerStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._dividerStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDividerStyleAttribute((this._dividerStyle_0_0value as DividerStyleOptions | undefined)); + this._dividerStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._dividerStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._dividerStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDividerStyleAttribute((undefined as DividerStyleOptions | undefined)); + } + } + } + if (this._avoidance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._avoidance_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAvoidanceAttribute((this._avoidance_0_0value as AvoidanceMode | undefined)); + this._avoidance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._avoidance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._avoidance_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAvoidanceAttribute((undefined as AvoidanceMode | undefined)); + } + } + } + if (this._menuOutline_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menuOutline_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenuOutlineAttribute((this._menuOutline_0_0value as MenuOutlineOptions | undefined)); + this._menuOutline_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menuOutline_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menuOutline_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenuOutlineAttribute((undefined as MenuOutlineOptions | undefined)); + } + } + } + if (this._menuAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._menuAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMenuAlignAttribute((this._menuAlign_0_0value as MenuAlignType | undefined), (this._menuAlign_0_1value as Offset | undefined)); + this._menuAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._menuAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._menuAlign_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMenuAlignAttribute((undefined as MenuAlignType | undefined), (undefined as Offset | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: SelectModifier): void { + super.mergeModifier(modifier) + if (modifier._selected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selected(modifier._selected_0_0value); + break; + } + default: { + this.selected((undefined as number | Resource | Bindable | Bindable | undefined)); + } + } + } + if (modifier._value_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._value_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.value(modifier._value_0_0value); + break; + } + default: { + this.value((undefined as ResourceStr | Bindable | Bindable | undefined)); + } + } + } + if (modifier._font_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._font_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.font(modifier._font_0_0value); + break; + } + default: { + this.font((undefined as Font | undefined)); + } + } + } + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._selectedOptionBgColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedOptionBgColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedOptionBgColor(modifier._selectedOptionBgColor_0_0value); + break; + } + default: { + this.selectedOptionBgColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._selectedOptionFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedOptionFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedOptionFont(modifier._selectedOptionFont_0_0value); + break; + } + default: { + this.selectedOptionFont((undefined as Font | undefined)); + } + } + } + if (modifier._selectedOptionFontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedOptionFontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedOptionFontColor(modifier._selectedOptionFontColor_0_0value); + break; + } + default: { + this.selectedOptionFontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._optionBgColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._optionBgColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.optionBgColor(modifier._optionBgColor_0_0value); + break; + } + default: { + this.optionBgColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._optionFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._optionFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.optionFont(modifier._optionFont_0_0value); + break; + } + default: { + this.optionFont((undefined as Font | undefined)); + } + } + } + if (modifier._optionFontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._optionFontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.optionFontColor(modifier._optionFontColor_0_0value); + break; + } + default: { + this.optionFontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSelect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSelect(modifier._onSelect_0_0value); + break; + } + default: { + this.onSelect((undefined as OnSelectCallback | undefined)); + } + } + } + if (modifier._space_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._space_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.space(modifier._space_0_0value); + break; + } + default: { + this.space((undefined as Length | undefined)); + } + } + } + if (modifier._arrowPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._arrowPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.arrowPosition(modifier._arrowPosition_0_0value); + break; + } + default: { + this.arrowPosition((undefined as ArrowPosition | undefined)); + } + } + } + if (modifier._optionWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._optionWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.optionWidth(modifier._optionWidth_0_0value); + break; + } + default: { + this.optionWidth((undefined as Dimension | OptionWidthMode | undefined)); + } + } + } + if (modifier._optionHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._optionHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.optionHeight(modifier._optionHeight_0_0value); + break; + } + default: { + this.optionHeight((undefined as Dimension | undefined)); + } + } + } + if (modifier._menuBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menuBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menuBackgroundColor(modifier._menuBackgroundColor_0_0value); + break; + } + default: { + this.menuBackgroundColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._menuBackgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menuBackgroundBlurStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menuBackgroundBlurStyle(modifier._menuBackgroundBlurStyle_0_0value); + break; + } + default: { + this.menuBackgroundBlurStyle((undefined as BlurStyle | undefined)); + } + } + } + if (modifier._controlSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._controlSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.controlSize(modifier._controlSize_0_0value); + break; + } + default: { + this.controlSize((undefined as ControlSize | undefined)); + } + } + } + if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.divider(modifier._divider_0_0value); + break; + } + default: { + this.divider((undefined as DividerOptions | undefined)); + } + } + } + if (modifier._textModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textModifier(modifier._textModifier_0_0value); + break; + } + default: { + this.textModifier((undefined as TextModifier | undefined)); + } + } + } + if (modifier._arrowModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._arrowModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.arrowModifier(modifier._arrowModifier_0_0value); + break; + } + default: { + this.arrowModifier((undefined as SymbolGlyphModifier | undefined)); + } + } + } + if (modifier._optionTextModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._optionTextModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.optionTextModifier(modifier._optionTextModifier_0_0value); + break; + } + default: { + this.optionTextModifier((undefined as TextModifier | undefined)); + } + } + } + if (modifier._selectedOptionTextModifier_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedOptionTextModifier_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedOptionTextModifier(modifier._selectedOptionTextModifier_0_0value); + break; + } + default: { + this.selectedOptionTextModifier((undefined as TextModifier | undefined)); + } + } + } + if (modifier._dividerStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._dividerStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.dividerStyle(modifier._dividerStyle_0_0value); + break; + } + default: { + this.dividerStyle((undefined as DividerStyleOptions | undefined)); + } + } + } + if (modifier._avoidance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._avoidance_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.avoidance(modifier._avoidance_0_0value); + break; + } + default: { + this.avoidance((undefined as AvoidanceMode | undefined)); + } + } + } + if (modifier._menuOutline_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menuOutline_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menuOutline(modifier._menuOutline_0_0value); + break; + } + default: { + this.menuOutline((undefined as MenuOutlineOptions | undefined)); + } + } + } + if (modifier._menuAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._menuAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.menuAlign(modifier._menuAlign_0_0value, modifier._menuAlign_0_1value); + break; + } + default: { + this.menuAlign((undefined as MenuAlignType | undefined), (undefined as Offset | undefined | undefined)); + } + } + } + } + selected(value: number | Resource | Bindable | Bindable | undefined): this { + if (((this._selected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selected_0_flag = AttributeUpdaterFlag.UPDATE + this._selected_0_0value = value + } else + { + this._selected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + value(value: ResourceStr | Bindable | Bindable | undefined): this { + if (((this._value_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._value_0_flag = AttributeUpdaterFlag.UPDATE + this._value_0_0value = value + } else + { + this._value_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + font(value: Font | undefined): this { + if (((this._font_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._font_0_flag = AttributeUpdaterFlag.UPDATE + this._font_0_0value = value + } else + { + this._font_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontColor(value: ResourceColor | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedOptionBgColor(value: ResourceColor | undefined): this { + if (((this._selectedOptionBgColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedOptionBgColor_0_0value = value + } else + { + this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedOptionFont(value: Font | undefined): this { + if (((this._selectedOptionFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedOptionFont_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedOptionFont_0_0value = value + } else + { + this._selectedOptionFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedOptionFontColor(value: ResourceColor | undefined): this { + if (((this._selectedOptionFontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedOptionFontColor_0_0value = value + } else + { + this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + optionBgColor(value: ResourceColor | undefined): this { + if (((this._optionBgColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._optionBgColor_0_flag = AttributeUpdaterFlag.UPDATE + this._optionBgColor_0_0value = value + } else + { + this._optionBgColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + optionFont(value: Font | undefined): this { + if (((this._optionFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._optionFont_0_flag = AttributeUpdaterFlag.UPDATE + this._optionFont_0_0value = value + } else + { + this._optionFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + optionFontColor(value: ResourceColor | undefined): this { + if (((this._optionFontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._optionFontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._optionFontColor_0_0value = value + } else + { + this._optionFontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSelect(value: OnSelectCallback | undefined): this { + if (((this._onSelect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSelect_0_flag = AttributeUpdaterFlag.UPDATE + this._onSelect_0_0value = value + } else + { + this._onSelect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + space(value: Length | undefined): this { + if (((this._space_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._space_0_flag = AttributeUpdaterFlag.UPDATE + this._space_0_0value = value + } else + { + this._space_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + arrowPosition(value: ArrowPosition | undefined): this { + if (((this._arrowPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._arrowPosition_0_flag = AttributeUpdaterFlag.UPDATE + this._arrowPosition_0_0value = value + } else + { + this._arrowPosition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + optionWidth(value: Dimension | OptionWidthMode | undefined): this { + if (((this._optionWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._optionWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._optionWidth_0_0value = value + } else + { + this._optionWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + optionHeight(value: Dimension | undefined): this { + if (((this._optionHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._optionHeight_0_flag = AttributeUpdaterFlag.UPDATE + this._optionHeight_0_0value = value + } else + { + this._optionHeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menuBackgroundColor(value: ResourceColor | undefined): this { + if (((this._menuBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE + this._menuBackgroundColor_0_0value = value + } else + { + this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menuBackgroundBlurStyle(value: BlurStyle | undefined): this { + if (((this._menuBackgroundBlurStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._menuBackgroundBlurStyle_0_0value = value + } else + { + this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + controlSize(value: ControlSize | undefined): this { + if (((this._controlSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._controlSize_0_flag = AttributeUpdaterFlag.UPDATE + this._controlSize_0_0value = value + } else + { + this._controlSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + divider(value: DividerOptions | undefined): this { + if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._divider_0_flag = AttributeUpdaterFlag.UPDATE + this._divider_0_0value = value + } else + { + this._divider_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textModifier(value: TextModifier | undefined): this { + if (((this._textModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textModifier_0_flag = AttributeUpdaterFlag.UPDATE + this._textModifier_0_0value = value + } else + { + this._textModifier_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + arrowModifier(value: SymbolGlyphModifier | undefined): this { + if (((this._arrowModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._arrowModifier_0_flag = AttributeUpdaterFlag.UPDATE + this._arrowModifier_0_0value = value + } else + { + this._arrowModifier_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + optionTextModifier(value: TextModifier | undefined): this { + if (((this._optionTextModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._optionTextModifier_0_flag = AttributeUpdaterFlag.UPDATE + this._optionTextModifier_0_0value = value + } else + { + this._optionTextModifier_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedOptionTextModifier(value: TextModifier | undefined): this { + if (((this._selectedOptionTextModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedOptionTextModifier_0_0value = value + } else + { + this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + dividerStyle(value: DividerStyleOptions | undefined): this { + if (((this._dividerStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._dividerStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._dividerStyle_0_0value = value + } else + { + this._dividerStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + avoidance(value: AvoidanceMode | undefined): this { + if (((this._avoidance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._avoidance_0_flag = AttributeUpdaterFlag.UPDATE + this._avoidance_0_0value = value + } else + { + this._avoidance_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menuOutline(value: MenuOutlineOptions | undefined): this { + if (((this._menuOutline_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._menuOutline_0_flag = AttributeUpdaterFlag.UPDATE + this._menuOutline_0_0value = value + } else + { + this._menuOutline_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + menuAlign(alignType: MenuAlignType | undefined, offset?: Offset): this { + if (((this._menuAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._menuAlign_0_flag = AttributeUpdaterFlag.UPDATE + this._menuAlign_0_0value = alignType + this._menuAlign_0_1value = offset + } else + { + this._menuAlign_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ShapeModifier.ets b/arkoala-arkts/arkui/generated/ShapeModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..92473be40e714d95adbc754e68e385297bdc76c2 --- /dev/null +++ b/arkoala-arkts/arkui/generated/ShapeModifier.ets @@ -0,0 +1,623 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkShapePeer, ViewportRect, ShapeAttribute } from "./component/shape" +import { CommonMethod } from "./component/common" +import { ResourceColor, Length } from "./component/units" +import { Color, LineCapStyle, LineJoinStyle } from "./component/enums" +import { Resource } from "global.resource" +export class ShapeModifier extends CommonMethodModifier implements ShapeAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ShapeAttribute): void { } + applyPressedAttribute(instance: ShapeAttribute): void { } + applyFocusedAttribute(instance: ShapeAttribute): void { } + applyDisabledAttribute(instance: ShapeAttribute): void { } + applySelectedAttribute(instance: ShapeAttribute): void { } + _viewPort_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _viewPort_0_0value?: ViewportRect | undefined + _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?: Length | undefined + _strokeDashArray_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _strokeDashArray_0_0value?: Array | 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?: Length | 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 + _mesh_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mesh_0_0value?: Array | undefined + _mesh_0_1value?: number | undefined + _mesh_0_2value?: number | undefined + applyModifierPatch(peer: ArkShapePeer): void { + super.applyModifierPatch(peer) + if (this._viewPort_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._viewPort_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setViewPortAttribute((this._viewPort_0_0value as ViewportRect | undefined)); + this._viewPort_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._viewPort_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._viewPort_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setViewPortAttribute((undefined as ViewportRect | undefined)); + } + } + } + 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 Length | 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 Length | 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)); + } + } + } + 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 Length | 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 Length | 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._mesh_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mesh_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMeshAttribute((this._mesh_0_0value as Array | undefined), (this._mesh_0_1value as number | undefined), (this._mesh_0_2value as number | undefined)); + this._mesh_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mesh_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mesh_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMeshAttribute((undefined as Array | undefined), (undefined as number | undefined), (undefined as number | undefined)); + } + } + } + } + mergeModifier(modifier: ShapeModifier): void { + super.mergeModifier(modifier) + if (modifier._viewPort_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._viewPort_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.viewPort(modifier._viewPort_0_0value); + break; + } + default: { + this.viewPort((undefined as ViewportRect | undefined)); + } + } + } + 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 Length | 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)); + } + } + } + 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 Length | 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._mesh_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mesh_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mesh(modifier._mesh_0_0value, modifier._mesh_0_1value, modifier._mesh_0_2value); + break; + } + default: { + this.mesh((undefined as Array | undefined), (undefined as number | undefined), (undefined as number | undefined)); + } + } + } + } + viewPort(value: ViewportRect | undefined): this { + if (((this._viewPort_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._viewPort_0_flag = AttributeUpdaterFlag.UPDATE + this._viewPort_0_0value = value + } else + { + this._viewPort_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + 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: Length | undefined): this { + if (((this._strokeDashOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._strokeDashOffset_0_flag = AttributeUpdaterFlag.UPDATE + this._strokeDashOffset_0_0value = value + } else + { + this._strokeDashOffset_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 + } + 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: Length | undefined): this { + if (((this._strokeMiterLimit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + 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 + } + mesh(value: Array | undefined, column: number | undefined, row: number | undefined): this { + if (((this._mesh_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._mesh_0_0value) !== (value)) || ((this._mesh_0_1value) !== (column)) || ((this._mesh_0_2value) !== (row))) + { + this._mesh_0_flag = AttributeUpdaterFlag.UPDATE + this._mesh_0_0value = value + this._mesh_0_1value = column + this._mesh_0_2value = row + } else + { + this._mesh_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/SideBarContainerModifier.ets b/arkoala-arkts/arkui/generated/SideBarContainerModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..755f46fc0a52261d7ed139e6594789dabaf18a74 --- /dev/null +++ b/arkoala-arkts/arkui/generated/SideBarContainerModifier.ets @@ -0,0 +1,662 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkSideBarContainerPeer, ButtonStyle, SideBarPosition, SideBarContainerAttribute } from "./component/sidebar" +import { CommonMethod, Bindable, DividerStyle } from "./component/common" +import { Length, Dimension } from "./component/units" +import { Resource } from "global.resource" +export class SideBarContainerModifier extends CommonMethodModifier implements SideBarContainerAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: SideBarContainerAttribute): void { } + applyPressedAttribute(instance: SideBarContainerAttribute): void { } + applyFocusedAttribute(instance: SideBarContainerAttribute): void { } + applyDisabledAttribute(instance: SideBarContainerAttribute): void { } + applySelectedAttribute(instance: SideBarContainerAttribute): void { } + _showSideBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showSideBar_0_0value?: boolean | Bindable | undefined + _controlButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _controlButton_0_0value?: ButtonStyle | undefined + _showControlButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showControlButton_0_0value?: boolean | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: ((value: boolean) => void) | undefined + _sideBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sideBarWidth_0_0value?: number | Bindable | undefined + _minSideBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minSideBarWidth_0_0value?: number | undefined + _maxSideBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxSideBarWidth_0_0value?: number | undefined + _sideBarWidth_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sideBarWidth_1_0value?: Length | undefined + _minSideBarWidth_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minSideBarWidth_1_0value?: Length | undefined + _maxSideBarWidth_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxSideBarWidth_1_0value?: Length | undefined + _autoHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _autoHide_0_0value?: boolean | undefined + _sideBarPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sideBarPosition_0_0value?: SideBarPosition | undefined + _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _divider_0_0value?: DividerStyle | undefined + _minContentWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minContentWidth_0_0value?: Dimension | undefined + applyModifierPatch(peer: ArkSideBarContainerPeer): void { + super.applyModifierPatch(peer) + if (this._showSideBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showSideBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowSideBarAttribute((this._showSideBar_0_0value as boolean | Bindable | undefined)); + this._showSideBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showSideBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showSideBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowSideBarAttribute((undefined as boolean | Bindable | undefined)); + } + } + } + if (this._controlButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._controlButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setControlButtonAttribute((this._controlButton_0_0value as ButtonStyle | undefined)); + this._controlButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._controlButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._controlButton_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setControlButtonAttribute((undefined as ButtonStyle | undefined)); + } + } + } + if (this._showControlButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showControlButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowControlButtonAttribute((this._showControlButton_0_0value as boolean | undefined)); + this._showControlButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showControlButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showControlButton_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowControlButtonAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as ((value: boolean) => void) | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as ((value: boolean) => void) | undefined)); + } + } + } + if (this._sideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sideBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSideBarWidth0Attribute((this._sideBarWidth_0_0value as number | Bindable | undefined)); + this._sideBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sideBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sideBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSideBarWidth0Attribute((undefined as number | Bindable | undefined)); + } + } + } + if (this._minSideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minSideBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinSideBarWidth0Attribute((this._minSideBarWidth_0_0value as number | undefined)); + this._minSideBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minSideBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minSideBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinSideBarWidth0Attribute((undefined as number | undefined)); + } + } + } + if (this._maxSideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxSideBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxSideBarWidth0Attribute((this._maxSideBarWidth_0_0value as number | undefined)); + this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxSideBarWidth0Attribute((undefined as number | undefined)); + } + } + } + if (this._sideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sideBarWidth_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSideBarWidth1Attribute((this._sideBarWidth_1_0value as Length | undefined)); + this._sideBarWidth_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sideBarWidth_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sideBarWidth_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setSideBarWidth1Attribute((undefined as Length | undefined)); + } + } + } + if (this._minSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minSideBarWidth_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinSideBarWidth1Attribute((this._minSideBarWidth_1_0value as Length | undefined)); + this._minSideBarWidth_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minSideBarWidth_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minSideBarWidth_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinSideBarWidth1Attribute((undefined as Length | undefined)); + } + } + } + if (this._maxSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxSideBarWidth_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxSideBarWidth1Attribute((this._maxSideBarWidth_1_0value as Length | undefined)); + this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxSideBarWidth1Attribute((undefined as Length | undefined)); + } + } + } + if (this._autoHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._autoHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAutoHideAttribute((this._autoHide_0_0value as boolean | undefined)); + this._autoHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._autoHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._autoHide_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAutoHideAttribute((undefined as boolean | undefined)); + } + } + } + if (this._sideBarPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sideBarPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSideBarPositionAttribute((this._sideBarPosition_0_0value as SideBarPosition | undefined)); + this._sideBarPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sideBarPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sideBarPosition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSideBarPositionAttribute((undefined as SideBarPosition | undefined)); + } + } + } + if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDividerAttribute((this._divider_0_0value as DividerStyle | undefined)); + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._divider_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDividerAttribute((undefined as DividerStyle | undefined)); + } + } + } + if (this._minContentWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minContentWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinContentWidthAttribute((this._minContentWidth_0_0value as Dimension | undefined)); + this._minContentWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minContentWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minContentWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinContentWidthAttribute((undefined as Dimension | undefined)); + } + } + } + } + mergeModifier(modifier: SideBarContainerModifier): void { + super.mergeModifier(modifier) + if (modifier._showSideBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showSideBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showSideBar(modifier._showSideBar_0_0value); + break; + } + default: { + this.showSideBar((undefined as boolean | Bindable | undefined)); + } + } + } + if (modifier._controlButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._controlButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.controlButton(modifier._controlButton_0_0value); + break; + } + default: { + this.controlButton((undefined as ButtonStyle | undefined)); + } + } + } + if (modifier._showControlButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showControlButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showControlButton(modifier._showControlButton_0_0value); + break; + } + default: { + this.showControlButton((undefined as boolean | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as ((value: boolean) => void) | undefined)); + } + } + } + if (modifier._sideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sideBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sideBarWidth(modifier._sideBarWidth_0_0value); + break; + } + default: { + this.sideBarWidth((undefined as number | Bindable | undefined)); + } + } + } + if (modifier._minSideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minSideBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minSideBarWidth(modifier._minSideBarWidth_0_0value); + break; + } + default: { + this.minSideBarWidth((undefined as number | undefined)); + } + } + } + if (modifier._maxSideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxSideBarWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxSideBarWidth(modifier._maxSideBarWidth_0_0value); + break; + } + default: { + this.maxSideBarWidth((undefined as number | undefined)); + } + } + } + if (modifier._sideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sideBarWidth_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sideBarWidth(modifier._sideBarWidth_1_0value); + break; + } + default: { + this.sideBarWidth((undefined as Length | undefined)); + } + } + } + if (modifier._minSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minSideBarWidth_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minSideBarWidth(modifier._minSideBarWidth_1_0value); + break; + } + default: { + this.minSideBarWidth((undefined as Length | undefined)); + } + } + } + if (modifier._maxSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxSideBarWidth_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxSideBarWidth(modifier._maxSideBarWidth_1_0value); + break; + } + default: { + this.maxSideBarWidth((undefined as Length | undefined)); + } + } + } + if (modifier._autoHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._autoHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.autoHide(modifier._autoHide_0_0value); + break; + } + default: { + this.autoHide((undefined as boolean | undefined)); + } + } + } + if (modifier._sideBarPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sideBarPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sideBarPosition(modifier._sideBarPosition_0_0value); + break; + } + default: { + this.sideBarPosition((undefined as SideBarPosition | undefined)); + } + } + } + if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.divider(modifier._divider_0_0value); + break; + } + default: { + this.divider((undefined as DividerStyle | undefined)); + } + } + } + if (modifier._minContentWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minContentWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minContentWidth(modifier._minContentWidth_0_0value); + break; + } + default: { + this.minContentWidth((undefined as Dimension | undefined)); + } + } + } + } + showSideBar(value: boolean | Bindable | undefined): this { + if (((this._showSideBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._showSideBar_0_flag = AttributeUpdaterFlag.UPDATE + this._showSideBar_0_0value = value + } else + { + this._showSideBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + controlButton(value: ButtonStyle | undefined): this { + if (((this._controlButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._controlButton_0_flag = AttributeUpdaterFlag.UPDATE + this._controlButton_0_0value = value + } else + { + this._controlButton_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + showControlButton(value: boolean | undefined): this { + if (((this._showControlButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showControlButton_0_0value) !== (value))) + { + this._showControlButton_0_flag = AttributeUpdaterFlag.UPDATE + this._showControlButton_0_0value = value + } else + { + this._showControlButton_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: ((value: boolean) => void) | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sideBarWidth(value: number | Bindable | undefined): this { + if (((this._sideBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._sideBarWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._sideBarWidth_0_0value = value + } else + { + this._sideBarWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minSideBarWidth(value: number | undefined): this { + if (((this._minSideBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._minSideBarWidth_0_0value) !== (value))) + { + this._minSideBarWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._minSideBarWidth_0_0value = value + } else + { + this._minSideBarWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxSideBarWidth(value: number | undefined): this { + if (((this._maxSideBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxSideBarWidth_0_0value) !== (value))) + { + this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._maxSideBarWidth_0_0value = value + } else + { + this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sideBarWidth(value: Length | undefined): this { + if (((this._sideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._sideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE + this._sideBarWidth_1_0value = value + } else + { + this._sideBarWidth_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minSideBarWidth(value: Length | undefined): this { + if (((this._minSideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._minSideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE + this._minSideBarWidth_1_0value = value + } else + { + this._minSideBarWidth_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxSideBarWidth(value: Length | undefined): this { + if (((this._maxSideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE + this._maxSideBarWidth_1_0value = value + } else + { + this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + autoHide(value: boolean | undefined): this { + if (((this._autoHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoHide_0_0value) !== (value))) + { + this._autoHide_0_flag = AttributeUpdaterFlag.UPDATE + this._autoHide_0_0value = value + } else + { + this._autoHide_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sideBarPosition(value: SideBarPosition | undefined): this { + if (((this._sideBarPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._sideBarPosition_0_flag = AttributeUpdaterFlag.UPDATE + this._sideBarPosition_0_0value = value + } else + { + this._sideBarPosition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + divider(value: DividerStyle | undefined): this { + if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._divider_0_flag = AttributeUpdaterFlag.UPDATE + this._divider_0_0value = value + } else + { + this._divider_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minContentWidth(value: Dimension | undefined): this { + if (((this._minContentWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._minContentWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._minContentWidth_0_0value = value + } else + { + this._minContentWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/SliderModifier.ets b/arkoala-arkts/arkui/generated/SliderModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..5f1525e7b1a5d643e5f1083753670b1b8e04924d --- /dev/null +++ b/arkoala-arkts/arkui/generated/SliderModifier.ets @@ -0,0 +1,930 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkSliderPeer, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderAttribute } from "./component/slider" +import { CommonMethod } from "./component/common" +import { ResourceColor, Length, Dimension, SizeOptions, ResourceStr } from "./component/units" +import { Color, CrownSensitivity } from "./component/enums" +import { Resource } from "global.resource" +import { LinearGradient } from "./component/dataPanel" +export class SliderModifier extends CommonMethodModifier implements SliderAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: SliderAttribute): void { } + applyPressedAttribute(instance: SliderAttribute): void { } + applyFocusedAttribute(instance: SliderAttribute): void { } + applyDisabledAttribute(instance: SliderAttribute): void { } + applySelectedAttribute(instance: SliderAttribute): void { } + _blockColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _blockColor_0_0value?: ResourceColor | undefined + _trackColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _trackColor_0_0value?: ResourceColor | LinearGradient | undefined + _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedColor_0_0value?: ResourceColor | LinearGradient | undefined + _showSteps_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showSteps_0_0value?: boolean | undefined + _trackThickness_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _trackThickness_0_0value?: Length | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: ((value: number,mode: SliderChangeMode) => void) | undefined + _blockBorderColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _blockBorderColor_0_0value?: ResourceColor | undefined + _blockBorderWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _blockBorderWidth_0_0value?: Length | undefined + _stepColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stepColor_0_0value?: ResourceColor | undefined + _trackBorderRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _trackBorderRadius_0_0value?: Length | undefined + _selectedBorderRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedBorderRadius_0_0value?: Dimension | undefined + _blockSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _blockSize_0_0value?: SizeOptions | undefined + _blockStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _blockStyle_0_0value?: SliderBlockStyle | undefined + _stepSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stepSize_0_0value?: Length | undefined + _sliderInteractionMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _sliderInteractionMode_0_0value?: SliderInteraction | undefined + _minResponsiveDistance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minResponsiveDistance_0_0value?: number | undefined + _slideRange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _slideRange_0_0value?: SlideRange | undefined + _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined + _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableHapticFeedback_0_0value?: boolean | undefined + _showTips_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showTips_0_0value?: boolean | undefined + _showTips_0_1value?: ResourceStr | undefined + applyModifierPatch(peer: ArkSliderPeer): void { + super.applyModifierPatch(peer) + if (this._blockColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._blockColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBlockColorAttribute((this._blockColor_0_0value as ResourceColor | undefined)); + this._blockColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._blockColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._blockColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBlockColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._trackColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._trackColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTrackColorAttribute((this._trackColor_0_0value as ResourceColor | LinearGradient | undefined)); + this._trackColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._trackColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._trackColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTrackColorAttribute((undefined as ResourceColor | LinearGradient | undefined)); + } + } + } + if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | LinearGradient | undefined)); + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedColorAttribute((undefined as ResourceColor | LinearGradient | undefined)); + } + } + } + if (this._showSteps_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showSteps_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowStepsAttribute((this._showSteps_0_0value as boolean | undefined)); + this._showSteps_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showSteps_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showSteps_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowStepsAttribute((undefined as boolean | undefined)); + } + } + } + if (this._trackThickness_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._trackThickness_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTrackThicknessAttribute((this._trackThickness_0_0value as Length | undefined)); + this._trackThickness_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._trackThickness_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._trackThickness_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTrackThicknessAttribute((undefined as Length | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as ((value: number,mode: SliderChangeMode) => void) | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as ((value: number,mode: SliderChangeMode) => void) | undefined)); + } + } + } + if (this._blockBorderColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._blockBorderColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBlockBorderColorAttribute((this._blockBorderColor_0_0value as ResourceColor | undefined)); + this._blockBorderColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._blockBorderColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._blockBorderColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBlockBorderColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._blockBorderWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._blockBorderWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBlockBorderWidthAttribute((this._blockBorderWidth_0_0value as Length | undefined)); + this._blockBorderWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._blockBorderWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._blockBorderWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBlockBorderWidthAttribute((undefined as Length | undefined)); + } + } + } + if (this._stepColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stepColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStepColorAttribute((this._stepColor_0_0value as ResourceColor | undefined)); + this._stepColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stepColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stepColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStepColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._trackBorderRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._trackBorderRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTrackBorderRadiusAttribute((this._trackBorderRadius_0_0value as Length | undefined)); + this._trackBorderRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._trackBorderRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._trackBorderRadius_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTrackBorderRadiusAttribute((undefined as Length | undefined)); + } + } + } + if (this._selectedBorderRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedBorderRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedBorderRadiusAttribute((this._selectedBorderRadius_0_0value as Dimension | undefined)); + this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedBorderRadiusAttribute((undefined as Dimension | undefined)); + } + } + } + if (this._blockSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._blockSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBlockSizeAttribute((this._blockSize_0_0value as SizeOptions | undefined)); + this._blockSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._blockSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._blockSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBlockSizeAttribute((undefined as SizeOptions | undefined)); + } + } + } + if (this._blockStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._blockStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBlockStyleAttribute((this._blockStyle_0_0value as SliderBlockStyle | undefined)); + this._blockStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._blockStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._blockStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBlockStyleAttribute((undefined as SliderBlockStyle | undefined)); + } + } + } + if (this._stepSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stepSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStepSizeAttribute((this._stepSize_0_0value as Length | undefined)); + this._stepSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stepSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stepSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStepSizeAttribute((undefined as Length | undefined)); + } + } + } + if (this._sliderInteractionMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._sliderInteractionMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSliderInteractionModeAttribute((this._sliderInteractionMode_0_0value as SliderInteraction | undefined)); + this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSliderInteractionModeAttribute((undefined as SliderInteraction | undefined)); + } + } + } + if (this._minResponsiveDistance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minResponsiveDistance_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinResponsiveDistanceAttribute((this._minResponsiveDistance_0_0value as number | undefined)); + this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinResponsiveDistanceAttribute((undefined as number | undefined)); + } + } + } + if (this._slideRange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._slideRange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSlideRangeAttribute((this._slideRange_0_0value as SlideRange | undefined)); + this._slideRange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._slideRange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._slideRange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSlideRangeAttribute((undefined as SlideRange | 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._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); + } + } + } + if (this._showTips_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showTips_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowTipsAttribute((this._showTips_0_0value as boolean | undefined), (this._showTips_0_1value as ResourceStr | undefined)); + this._showTips_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showTips_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showTips_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowTipsAttribute((undefined as boolean | undefined), (undefined as ResourceStr | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: SliderModifier): void { + super.mergeModifier(modifier) + if (modifier._blockColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._blockColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.blockColor(modifier._blockColor_0_0value); + break; + } + default: { + this.blockColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._trackColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._trackColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.trackColor(modifier._trackColor_0_0value); + break; + } + default: { + this.trackColor((undefined as ResourceColor | LinearGradient | undefined)); + } + } + } + if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedColor(modifier._selectedColor_0_0value); + break; + } + default: { + this.selectedColor((undefined as ResourceColor | LinearGradient | undefined)); + } + } + } + if (modifier._showSteps_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showSteps_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showSteps(modifier._showSteps_0_0value); + break; + } + default: { + this.showSteps((undefined as boolean | undefined)); + } + } + } + if (modifier._trackThickness_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._trackThickness_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.trackThickness(modifier._trackThickness_0_0value); + break; + } + default: { + this.trackThickness((undefined as Length | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as ((value: number,mode: SliderChangeMode) => void) | undefined)); + } + } + } + if (modifier._blockBorderColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._blockBorderColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.blockBorderColor(modifier._blockBorderColor_0_0value); + break; + } + default: { + this.blockBorderColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._blockBorderWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._blockBorderWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.blockBorderWidth(modifier._blockBorderWidth_0_0value); + break; + } + default: { + this.blockBorderWidth((undefined as Length | undefined)); + } + } + } + if (modifier._stepColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stepColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stepColor(modifier._stepColor_0_0value); + break; + } + default: { + this.stepColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._trackBorderRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._trackBorderRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.trackBorderRadius(modifier._trackBorderRadius_0_0value); + break; + } + default: { + this.trackBorderRadius((undefined as Length | undefined)); + } + } + } + if (modifier._selectedBorderRadius_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedBorderRadius_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedBorderRadius(modifier._selectedBorderRadius_0_0value); + break; + } + default: { + this.selectedBorderRadius((undefined as Dimension | undefined)); + } + } + } + if (modifier._blockSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._blockSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.blockSize(modifier._blockSize_0_0value); + break; + } + default: { + this.blockSize((undefined as SizeOptions | undefined)); + } + } + } + if (modifier._blockStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._blockStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.blockStyle(modifier._blockStyle_0_0value); + break; + } + default: { + this.blockStyle((undefined as SliderBlockStyle | undefined)); + } + } + } + if (modifier._stepSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stepSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stepSize(modifier._stepSize_0_0value); + break; + } + default: { + this.stepSize((undefined as Length | undefined)); + } + } + } + if (modifier._sliderInteractionMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._sliderInteractionMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.sliderInteractionMode(modifier._sliderInteractionMode_0_0value); + break; + } + default: { + this.sliderInteractionMode((undefined as SliderInteraction | undefined)); + } + } + } + if (modifier._minResponsiveDistance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minResponsiveDistance_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minResponsiveDistance(modifier._minResponsiveDistance_0_0value); + break; + } + default: { + this.minResponsiveDistance((undefined as number | undefined)); + } + } + } + if (modifier._slideRange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._slideRange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.slideRange(modifier._slideRange_0_0value); + break; + } + default: { + this.slideRange((undefined as SlideRange | 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._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); + break; + } + default: { + this.enableHapticFeedback((undefined as boolean | undefined)); + } + } + } + if (modifier._showTips_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showTips_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showTips(modifier._showTips_0_0value, modifier._showTips_0_1value); + break; + } + default: { + this.showTips((undefined as boolean | undefined), (undefined as ResourceStr | undefined | undefined)); + } + } + } + } + blockColor(value: ResourceColor | undefined): this { + if (((this._blockColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._blockColor_0_flag = AttributeUpdaterFlag.UPDATE + this._blockColor_0_0value = value + } else + { + this._blockColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + trackColor(value: ResourceColor | LinearGradient | undefined): this { + if (((this._trackColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._trackColor_0_flag = AttributeUpdaterFlag.UPDATE + this._trackColor_0_0value = value + } else + { + this._trackColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedColor(value: ResourceColor | LinearGradient | undefined): this { + if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedColor_0_0value = value + } else + { + this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + showSteps(value: boolean | undefined): this { + if (((this._showSteps_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showSteps_0_0value) !== (value))) + { + this._showSteps_0_flag = AttributeUpdaterFlag.UPDATE + this._showSteps_0_0value = value + } else + { + this._showSteps_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + trackThickness(value: Length | undefined): this { + if (((this._trackThickness_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._trackThickness_0_flag = AttributeUpdaterFlag.UPDATE + this._trackThickness_0_0value = value + } else + { + this._trackThickness_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: ((value: number,mode: SliderChangeMode) => void) | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + blockBorderColor(value: ResourceColor | undefined): this { + if (((this._blockBorderColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._blockBorderColor_0_flag = AttributeUpdaterFlag.UPDATE + this._blockBorderColor_0_0value = value + } else + { + this._blockBorderColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + blockBorderWidth(value: Length | undefined): this { + if (((this._blockBorderWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._blockBorderWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._blockBorderWidth_0_0value = value + } else + { + this._blockBorderWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + stepColor(value: ResourceColor | undefined): this { + if (((this._stepColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._stepColor_0_flag = AttributeUpdaterFlag.UPDATE + this._stepColor_0_0value = value + } else + { + this._stepColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + trackBorderRadius(value: Length | undefined): this { + if (((this._trackBorderRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._trackBorderRadius_0_flag = AttributeUpdaterFlag.UPDATE + this._trackBorderRadius_0_0value = value + } else + { + this._trackBorderRadius_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedBorderRadius(value: Dimension | undefined): this { + if (((this._selectedBorderRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedBorderRadius_0_0value = value + } else + { + this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + blockSize(value: SizeOptions | undefined): this { + if (((this._blockSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._blockSize_0_flag = AttributeUpdaterFlag.UPDATE + this._blockSize_0_0value = value + } else + { + this._blockSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + blockStyle(value: SliderBlockStyle | undefined): this { + if (((this._blockStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._blockStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._blockStyle_0_0value = value + } else + { + this._blockStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + stepSize(value: Length | undefined): this { + if (((this._stepSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._stepSize_0_flag = AttributeUpdaterFlag.UPDATE + this._stepSize_0_0value = value + } else + { + this._stepSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + sliderInteractionMode(value: SliderInteraction | undefined): this { + if (((this._sliderInteractionMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.UPDATE + this._sliderInteractionMode_0_0value = value + } else + { + this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minResponsiveDistance(value: number | undefined): this { + if (((this._minResponsiveDistance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._minResponsiveDistance_0_0value) !== (value))) + { + this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.UPDATE + this._minResponsiveDistance_0_0value = value + } else + { + this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + slideRange(value: SlideRange | undefined): this { + if (((this._slideRange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._slideRange_0_flag = AttributeUpdaterFlag.UPDATE + this._slideRange_0_0value = value + } else + { + this._slideRange_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 + } + enableHapticFeedback(value: boolean | undefined): this { + if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE + this._enableHapticFeedback_0_0value = value + } else + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + showTips(value: boolean | undefined, content?: ResourceStr): this { + if (((this._showTips_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showTips_0_0value) !== (value)) || (true)) + { + this._showTips_0_flag = AttributeUpdaterFlag.UPDATE + this._showTips_0_0value = value + this._showTips_0_1value = content + } else + { + this._showTips_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/SpanModifier.ets b/arkoala-arkts/arkui/generated/SpanModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..35e4493c5fa1782f0a7a9eb7d53399902ac2e043 --- /dev/null +++ b/arkoala-arkts/arkui/generated/SpanModifier.ets @@ -0,0 +1,533 @@ +/* + * 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 { BaseSpanModifier } from "./BaseSpanModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkSpanPeer, BaseSpan, SpanAttribute } from "./component/span" +import { Font, ResourceColor, Length } from "./component/units" +import { Color, FontStyle, FontWeight, TextCase } from "./component/enums" +import { Resource } from "global.resource" +import { DecorationStyleInterface } from "./component/styledString" +import { ShadowOptions, CommonMethod } from "./component/common" +export class SpanModifier extends BaseSpanModifier implements SpanAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: SpanAttribute): void { } + applyPressedAttribute(instance: SpanAttribute): void { } + applyFocusedAttribute(instance: SpanAttribute): void { } + applyDisabledAttribute(instance: SpanAttribute): void { } + applySelectedAttribute(instance: SpanAttribute): void { } + _font_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _font_0_0value?: Font | undefined + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: ResourceColor | undefined + _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontSize_0_0value?: number | string | Resource | undefined + _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontStyle_0_0value?: FontStyle | undefined + _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontWeight_0_0value?: number | FontWeight | string | undefined + _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontFamily_0_0value?: string | Resource | undefined + _decoration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _decoration_0_0value?: DecorationStyleInterface | undefined + _letterSpacing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _letterSpacing_0_0value?: number | string | undefined + _textCase_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textCase_0_0value?: TextCase | undefined + _lineHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _lineHeight_0_0value?: Length | undefined + _textShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textShadow_0_0value?: ShadowOptions | Array | undefined + applyModifierPatch(peer: ArkSpanPeer): void { + super.applyModifierPatch(peer) + if (this._font_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._font_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontAttribute((this._font_0_0value as Font | undefined)); + this._font_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._font_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._font_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontSizeAttribute((this._fontSize_0_0value as number | string | Resource | undefined)); + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontSizeAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontStyleAttribute((undefined as FontStyle | undefined)); + } + } + } + if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); + } + } + } + if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontFamilyAttribute((this._fontFamily_0_0value as string | Resource | undefined)); + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontFamilyAttribute((undefined as string | Resource | undefined)); + } + } + } + if (this._decoration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._decoration_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDecorationAttribute((this._decoration_0_0value as DecorationStyleInterface | undefined)); + this._decoration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._decoration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._decoration_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDecorationAttribute((undefined as DecorationStyleInterface | undefined)); + } + } + } + if (this._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._letterSpacing_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLetterSpacingAttribute((this._letterSpacing_0_0value as number | string | undefined)); + this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._letterSpacing_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLetterSpacingAttribute((undefined as number | string | undefined)); + } + } + } + if (this._textCase_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textCase_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextCaseAttribute((this._textCase_0_0value as TextCase | undefined)); + this._textCase_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textCase_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textCase_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextCaseAttribute((undefined as TextCase | undefined)); + } + } + } + if (this._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._lineHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLineHeightAttribute((this._lineHeight_0_0value as Length | undefined)); + this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._lineHeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLineHeightAttribute((undefined as Length | undefined)); + } + } + } + if (this._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextShadowAttribute((this._textShadow_0_0value as ShadowOptions | Array | undefined)); + this._textShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textShadow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextShadowAttribute((undefined as ShadowOptions | Array | undefined)); + } + } + } + } + mergeModifier(modifier: SpanModifier): void { + super.mergeModifier(modifier) + if (modifier._font_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._font_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.font(modifier._font_0_0value); + break; + } + default: { + this.font((undefined as Font | undefined)); + } + } + } + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontSize(modifier._fontSize_0_0value); + break; + } + default: { + this.fontSize((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontStyle(modifier._fontStyle_0_0value); + break; + } + default: { + this.fontStyle((undefined as FontStyle | undefined)); + } + } + } + if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontWeight(modifier._fontWeight_0_0value); + break; + } + default: { + this.fontWeight((undefined as number | FontWeight | string | undefined)); + } + } + } + if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontFamily(modifier._fontFamily_0_0value); + break; + } + default: { + this.fontFamily((undefined as string | Resource | undefined)); + } + } + } + if (modifier._decoration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._decoration_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.decoration(modifier._decoration_0_0value); + break; + } + default: { + this.decoration((undefined as DecorationStyleInterface | undefined)); + } + } + } + if (modifier._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._letterSpacing_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.letterSpacing(modifier._letterSpacing_0_0value); + break; + } + default: { + this.letterSpacing((undefined as number | string | undefined)); + } + } + } + if (modifier._textCase_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textCase_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textCase(modifier._textCase_0_0value); + break; + } + default: { + this.textCase((undefined as TextCase | undefined)); + } + } + } + if (modifier._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._lineHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.lineHeight(modifier._lineHeight_0_0value); + break; + } + default: { + this.lineHeight((undefined as Length | undefined)); + } + } + } + if (modifier._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textShadow(modifier._textShadow_0_0value); + break; + } + default: { + this.textShadow((undefined as ShadowOptions | Array | undefined)); + } + } + } + } + font(value: Font | undefined): this { + if (((this._font_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._font_0_flag = AttributeUpdaterFlag.UPDATE + this._font_0_0value = value + } else + { + this._font_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontColor(value: ResourceColor | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontSize(value: number | string | Resource | undefined): this { + if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fontSize_0_0value = value + } else + { + this._fontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontStyle(value: FontStyle | undefined): this { + if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._fontStyle_0_0value = value + } else + { + this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontWeight(value: number | FontWeight | string | undefined): this { + if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._fontWeight_0_0value = value + } else + { + this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontFamily(value: string | Resource | undefined): this { + if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE + this._fontFamily_0_0value = value + } else + { + this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + decoration(value: DecorationStyleInterface | undefined): this { + if (((this._decoration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._decoration_0_flag = AttributeUpdaterFlag.UPDATE + this._decoration_0_0value = value + } else + { + this._decoration_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + letterSpacing(value: number | string | undefined): this { + if (((this._letterSpacing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._letterSpacing_0_0value) !== (value))) + { + this._letterSpacing_0_flag = AttributeUpdaterFlag.UPDATE + this._letterSpacing_0_0value = value + } else + { + this._letterSpacing_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textCase(value: TextCase | undefined): this { + if (((this._textCase_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textCase_0_flag = AttributeUpdaterFlag.UPDATE + this._textCase_0_0value = value + } else + { + this._textCase_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + lineHeight(value: Length | undefined): this { + if (((this._lineHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._lineHeight_0_flag = AttributeUpdaterFlag.UPDATE + this._lineHeight_0_0value = value + } else + { + this._lineHeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textShadow(value: ShadowOptions | Array | undefined): this { + if (((this._textShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textShadow_0_flag = AttributeUpdaterFlag.UPDATE + this._textShadow_0_0value = value + } else + { + this._textShadow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/StackModifier.ets b/arkoala-arkts/arkui/generated/StackModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..70125bd4447818a2d50948f8fd9da7a91c695eb4 --- /dev/null +++ b/arkoala-arkts/arkui/generated/StackModifier.ets @@ -0,0 +1,133 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkStackPeer, StackAttribute } from "./component/stack" +import { CommonMethod, PointLightStyle } from "./component/common" +import { Alignment } from "./component/enums" +export class StackModifier extends CommonMethodModifier implements StackAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: StackAttribute): void { } + applyPressedAttribute(instance: StackAttribute): void { } + applyFocusedAttribute(instance: StackAttribute): void { } + applyDisabledAttribute(instance: StackAttribute): void { } + applySelectedAttribute(instance: StackAttribute): void { } + _alignContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _alignContent_0_0value?: Alignment | undefined + _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pointLight_0_0value?: PointLightStyle | undefined + applyModifierPatch(peer: ArkStackPeer): void { + super.applyModifierPatch(peer) + if (this._alignContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._alignContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAlignContentAttribute((this._alignContent_0_0value as Alignment | undefined)); + this._alignContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._alignContent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._alignContent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAlignContentAttribute((undefined as Alignment | undefined)); + } + } + } + if (this._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pointLight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); + } + } + } + } + mergeModifier(modifier: StackModifier): void { + super.mergeModifier(modifier) + if (modifier._alignContent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._alignContent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.alignContent(modifier._alignContent_0_0value); + break; + } + default: { + this.alignContent((undefined as Alignment | undefined)); + } + } + } + if (modifier._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pointLight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pointLight(modifier._pointLight_0_0value); + break; + } + default: { + this.pointLight((undefined as PointLightStyle | undefined)); + } + } + } + } + alignContent(value: Alignment | undefined): this { + if (((this._alignContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._alignContent_0_flag = AttributeUpdaterFlag.UPDATE + this._alignContent_0_0value = value + } else + { + this._alignContent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pointLight(value: PointLightStyle | undefined): this { + if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE + this._pointLight_0_0value = value + } else + { + this._pointLight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/StepperItemModifier.ets b/arkoala-arkts/arkui/generated/StepperItemModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..ff3cf160c28e5fb9f92bb411f73b2d4f0af67de4 --- /dev/null +++ b/arkoala-arkts/arkui/generated/StepperItemModifier.ets @@ -0,0 +1,176 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkStepperItemPeer, ItemState, StepperItemAttribute } from "./component/stepperItem" +import { CommonMethod } from "./component/common" +export class StepperItemModifier extends CommonMethodModifier implements StepperItemAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: StepperItemAttribute): void { } + applyPressedAttribute(instance: StepperItemAttribute): void { } + applyFocusedAttribute(instance: StepperItemAttribute): void { } + applyDisabledAttribute(instance: StepperItemAttribute): void { } + applySelectedAttribute(instance: StepperItemAttribute): void { } + _prevLabel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _prevLabel_0_0value?: string | undefined + _nextLabel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _nextLabel_0_0value?: string | undefined + _status_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _status_0_0value?: ItemState | undefined + applyModifierPatch(peer: ArkStepperItemPeer): void { + super.applyModifierPatch(peer) + if (this._prevLabel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._prevLabel_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPrevLabelAttribute((this._prevLabel_0_0value as string | undefined)); + this._prevLabel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._prevLabel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._prevLabel_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPrevLabelAttribute((undefined as string | undefined)); + } + } + } + if (this._nextLabel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._nextLabel_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNextLabelAttribute((this._nextLabel_0_0value as string | undefined)); + this._nextLabel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._nextLabel_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._nextLabel_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setNextLabelAttribute((undefined as string | undefined)); + } + } + } + if (this._status_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._status_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStatusAttribute((this._status_0_0value as ItemState | undefined)); + this._status_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._status_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._status_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStatusAttribute((undefined as ItemState | undefined)); + } + } + } + } + mergeModifier(modifier: StepperItemModifier): void { + super.mergeModifier(modifier) + if (modifier._prevLabel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._prevLabel_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.prevLabel(modifier._prevLabel_0_0value); + break; + } + default: { + this.prevLabel((undefined as string | undefined)); + } + } + } + if (modifier._nextLabel_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._nextLabel_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.nextLabel(modifier._nextLabel_0_0value); + break; + } + default: { + this.nextLabel((undefined as string | undefined)); + } + } + } + if (modifier._status_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._status_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.status(modifier._status_0_0value); + break; + } + default: { + this.status((undefined as ItemState | undefined)); + } + } + } + } + prevLabel(value: string | undefined): this { + if (((this._prevLabel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._prevLabel_0_0value) !== (value))) + { + this._prevLabel_0_flag = AttributeUpdaterFlag.UPDATE + this._prevLabel_0_0value = value + } else + { + this._prevLabel_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + nextLabel(value: string | undefined): this { + if (((this._nextLabel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._nextLabel_0_0value) !== (value))) + { + this._nextLabel_0_flag = AttributeUpdaterFlag.UPDATE + this._nextLabel_0_0value = value + } else + { + this._nextLabel_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + status(value: ItemState | undefined): this { + if (((this._status_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._status_0_flag = AttributeUpdaterFlag.UPDATE + this._status_0_0value = value + } else + { + this._status_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/StepperModifier.ets b/arkoala-arkts/arkui/generated/StepperModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..e2cdbbd06840b2ef4296ef930df83e28b76db3da --- /dev/null +++ b/arkoala-arkts/arkui/generated/StepperModifier.ets @@ -0,0 +1,264 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkStepperPeer, StepperAttribute } from "./component/stepper" +import { CommonMethod } from "./component/common" +export class StepperModifier extends CommonMethodModifier implements StepperAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: StepperAttribute): void { } + applyPressedAttribute(instance: StepperAttribute): void { } + applyFocusedAttribute(instance: StepperAttribute): void { } + applyDisabledAttribute(instance: StepperAttribute): void { } + applySelectedAttribute(instance: StepperAttribute): void { } + _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFinish_0_0value?: (() => void) | undefined + _onSkip_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSkip_0_0value?: (() => void) | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: ((prevIndex: number,index: number) => void) | undefined + _onNext_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onNext_0_0value?: ((prevIndex: number,index: number) => void) | undefined + _onPrevious_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPrevious_0_0value?: ((prevIndex: number,index: number) => void) | undefined + applyModifierPatch(peer: ArkStepperPeer): void { + super.applyModifierPatch(peer) + if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFinishAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onSkip_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSkip_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSkipAttribute((this._onSkip_0_0value as (() => void) | undefined)); + this._onSkip_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSkip_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSkip_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSkipAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as ((prevIndex: number,index: number) => void) | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as ((prevIndex: number,index: number) => void) | undefined)); + } + } + } + if (this._onNext_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onNext_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnNextAttribute((this._onNext_0_0value as ((prevIndex: number,index: number) => void) | undefined)); + this._onNext_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onNext_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onNext_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnNextAttribute((undefined as ((prevIndex: number,index: number) => void) | undefined)); + } + } + } + if (this._onPrevious_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPrevious_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPreviousAttribute((this._onPrevious_0_0value as ((prevIndex: number,index: number) => void) | undefined)); + this._onPrevious_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPrevious_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPrevious_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPreviousAttribute((undefined as ((prevIndex: number,index: number) => void) | undefined)); + } + } + } + } + mergeModifier(modifier: StepperModifier): void { + super.mergeModifier(modifier) + if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFinish(modifier._onFinish_0_0value); + break; + } + default: { + this.onFinish((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onSkip_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSkip_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSkip(modifier._onSkip_0_0value); + break; + } + default: { + this.onSkip((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as ((prevIndex: number,index: number) => void) | undefined)); + } + } + } + if (modifier._onNext_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onNext_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onNext(modifier._onNext_0_0value); + break; + } + default: { + this.onNext((undefined as ((prevIndex: number,index: number) => void) | undefined)); + } + } + } + if (modifier._onPrevious_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPrevious_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPrevious(modifier._onPrevious_0_0value); + break; + } + default: { + this.onPrevious((undefined as ((prevIndex: number,index: number) => void) | undefined)); + } + } + } + } + onFinish(value: (() => void) | undefined): this { + if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE + this._onFinish_0_0value = value + } else + { + this._onFinish_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSkip(value: (() => void) | undefined): this { + if (((this._onSkip_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSkip_0_flag = AttributeUpdaterFlag.UPDATE + this._onSkip_0_0value = value + } else + { + this._onSkip_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: ((prevIndex: number,index: number) => void) | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onNext(value: ((prevIndex: number,index: number) => void) | undefined): this { + if (((this._onNext_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onNext_0_flag = AttributeUpdaterFlag.UPDATE + this._onNext_0_0value = value + } else + { + this._onNext_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPrevious(value: ((prevIndex: number,index: number) => void) | undefined): this { + if (((this._onPrevious_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPrevious_0_flag = AttributeUpdaterFlag.UPDATE + this._onPrevious_0_0value = value + } else + { + this._onPrevious_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/SwiperModifier.ets b/arkoala-arkts/arkui/generated/SwiperModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..b7d65c855bf1deb327eaef11c5cd4084a68ce314 --- /dev/null +++ b/arkoala-arkts/arkui/generated/SwiperModifier.ets @@ -0,0 +1,1381 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkSwiperPeer, DotIndicator, DigitIndicator, SwiperDisplayMode, OnSwiperAnimationStartCallback, SwiperAnimationEvent, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ContentWillScrollCallback, SwiperContentWillScrollResult, SwiperAttribute, AutoPlayOptions, ArrowStyle, SwiperAutoFill } from "./component/swiper" +import { CommonMethod, Bindable } from "./component/common" +import { IndicatorComponentController } from "./component/indicatorcomponent" +import { EdgeEffect, PageFlipMode } from "./component/enums" +import { curves } from "./framework/ohos.curves" +import { Length } from "./component/units" +import { Resource } from "global.resource" +export class SwiperModifier extends CommonMethodModifier implements SwiperAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: SwiperAttribute): void { } + applyPressedAttribute(instance: SwiperAttribute): void { } + applyFocusedAttribute(instance: SwiperAttribute): void { } + applyDisabledAttribute(instance: SwiperAttribute): void { } + applySelectedAttribute(instance: SwiperAttribute): void { } + _index_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _index_0_0value?: number | Bindable | undefined + _interval_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _interval_0_0value?: number | undefined + _indicator_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _indicator_0_0value?: IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined + _loop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _loop_0_0value?: boolean | undefined + _duration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _duration_0_0value?: number | undefined + _vertical_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _vertical_0_0value?: boolean | undefined + _itemSpace_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _itemSpace_0_0value?: number | string | undefined + _displayMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _displayMode_0_0value?: SwiperDisplayMode | undefined + _cachedCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cachedCount_0_0value?: number | undefined + _effectMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _effectMode_0_0value?: EdgeEffect | undefined + _disableSwipe_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _disableSwipe_0_0value?: boolean | undefined + _curve_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _curve_0_0value?: curves.Curve | string | curves.ICurve | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: ((value0: number) => void) | undefined + _onSelected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSelected_0_0value?: ((value0: number) => void) | undefined + _onUnselected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onUnselected_0_0value?: ((value0: number) => void) | undefined + _onAnimationStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAnimationStart_0_0value?: OnSwiperAnimationStartCallback | undefined + _onAnimationEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAnimationEnd_0_0value?: OnSwiperAnimationEndCallback | undefined + _onGestureSwipe_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onGestureSwipe_0_0value?: OnSwiperGestureSwipeCallback | undefined + _nestedScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _nestedScroll_0_0value?: SwiperNestedScrollMode | undefined + _customContentTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _customContentTransition_0_0value?: SwiperContentAnimatedTransition | undefined + _onContentDidScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onContentDidScroll_0_0value?: ContentDidScrollCallback | undefined + _indicatorInteractive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _indicatorInteractive_0_0value?: boolean | undefined + _pageFlipMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pageFlipMode_0_0value?: PageFlipMode | undefined + _onContentWillScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onContentWillScroll_0_0value?: ContentWillScrollCallback | undefined + _autoPlay_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _autoPlay_0_0value?: boolean | undefined + _autoPlay_0_1value?: AutoPlayOptions | undefined + _displayArrow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _displayArrow_0_0value?: ArrowStyle | boolean | undefined + _displayArrow_0_1value?: boolean | undefined + _cachedCount_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cachedCount_1_0value?: number | undefined + _cachedCount_1_1value?: boolean | undefined + _displayCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _displayCount_0_0value?: number | string | SwiperAutoFill | undefined + _displayCount_0_1value?: boolean | undefined + _prevMargin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _prevMargin_0_0value?: Length | undefined + _prevMargin_0_1value?: boolean | undefined + _nextMargin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _nextMargin_0_0value?: Length | undefined + _nextMargin_0_1value?: boolean | undefined + applyModifierPatch(peer: ArkSwiperPeer): void { + super.applyModifierPatch(peer) + if (this._index_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._index_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIndexAttribute((this._index_0_0value as number | Bindable | undefined)); + this._index_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._index_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._index_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIndexAttribute((undefined as number | Bindable | undefined)); + } + } + } + if (this._interval_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._interval_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIntervalAttribute((this._interval_0_0value as number | undefined)); + this._interval_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._interval_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._interval_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIntervalAttribute((undefined as number | undefined)); + } + } + } + if (this._indicator_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._indicator_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIndicatorAttribute((this._indicator_0_0value as IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined)); + this._indicator_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._indicator_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._indicator_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIndicatorAttribute((undefined as IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined)); + } + } + } + if (this._loop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._loop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLoopAttribute((this._loop_0_0value as boolean | undefined)); + this._loop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._loop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._loop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLoopAttribute((undefined as boolean | undefined)); + } + } + } + if (this._duration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._duration_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDurationAttribute((this._duration_0_0value as number | undefined)); + this._duration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._duration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._duration_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDurationAttribute((undefined as number | undefined)); + } + } + } + if (this._vertical_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._vertical_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setVerticalAttribute((this._vertical_0_0value as boolean | undefined)); + this._vertical_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._vertical_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._vertical_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setVerticalAttribute((undefined as boolean | undefined)); + } + } + } + if (this._itemSpace_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._itemSpace_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setItemSpaceAttribute((this._itemSpace_0_0value as number | string | undefined)); + this._itemSpace_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._itemSpace_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._itemSpace_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setItemSpaceAttribute((undefined as number | string | undefined)); + } + } + } + if (this._displayMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._displayMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDisplayModeAttribute((this._displayMode_0_0value as SwiperDisplayMode | undefined)); + this._displayMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._displayMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._displayMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDisplayModeAttribute((undefined as SwiperDisplayMode | undefined)); + } + } + } + if (this._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cachedCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCachedCount0Attribute((this._cachedCount_0_0value as number | undefined)); + this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cachedCount_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCachedCount0Attribute((undefined as number | undefined)); + } + } + } + if (this._effectMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._effectMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEffectModeAttribute((this._effectMode_0_0value as EdgeEffect | undefined)); + this._effectMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._effectMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._effectMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEffectModeAttribute((undefined as EdgeEffect | undefined)); + } + } + } + if (this._disableSwipe_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._disableSwipe_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDisableSwipeAttribute((this._disableSwipe_0_0value as boolean | undefined)); + this._disableSwipe_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._disableSwipe_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._disableSwipe_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDisableSwipeAttribute((undefined as boolean | undefined)); + } + } + } + if (this._curve_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._curve_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCurveAttribute((this._curve_0_0value as curves.Curve | string | curves.ICurve | undefined)); + this._curve_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._curve_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._curve_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCurveAttribute((undefined as curves.Curve | string | curves.ICurve | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: number) => void) | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (this._onSelected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSelected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSelectedAttribute((this._onSelected_0_0value as ((value0: number) => void) | undefined)); + this._onSelected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSelected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSelected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSelectedAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (this._onUnselected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onUnselected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnUnselectedAttribute((this._onUnselected_0_0value as ((value0: number) => void) | undefined)); + this._onUnselected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onUnselected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onUnselected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnUnselectedAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (this._onAnimationStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAnimationStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAnimationStartAttribute((this._onAnimationStart_0_0value as OnSwiperAnimationStartCallback | undefined)); + this._onAnimationStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAnimationStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAnimationStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAnimationStartAttribute((undefined as OnSwiperAnimationStartCallback | undefined)); + } + } + } + if (this._onAnimationEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAnimationEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAnimationEndAttribute((this._onAnimationEnd_0_0value as OnSwiperAnimationEndCallback | undefined)); + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAnimationEndAttribute((undefined as OnSwiperAnimationEndCallback | undefined)); + } + } + } + if (this._onGestureSwipe_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onGestureSwipe_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnGestureSwipeAttribute((this._onGestureSwipe_0_0value as OnSwiperGestureSwipeCallback | undefined)); + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnGestureSwipeAttribute((undefined as OnSwiperGestureSwipeCallback | undefined)); + } + } + } + if (this._nestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._nestedScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNestedScrollAttribute((this._nestedScroll_0_0value as SwiperNestedScrollMode | 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 SwiperNestedScrollMode | undefined)); + } + } + } + if (this._customContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._customContentTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCustomContentTransitionAttribute((this._customContentTransition_0_0value as SwiperContentAnimatedTransition | undefined)); + this._customContentTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._customContentTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._customContentTransition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCustomContentTransitionAttribute((undefined as SwiperContentAnimatedTransition | undefined)); + } + } + } + if (this._onContentDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onContentDidScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnContentDidScrollAttribute((this._onContentDidScroll_0_0value as ContentDidScrollCallback | undefined)); + this._onContentDidScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onContentDidScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onContentDidScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnContentDidScrollAttribute((undefined as ContentDidScrollCallback | undefined)); + } + } + } + if (this._indicatorInteractive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._indicatorInteractive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setIndicatorInteractiveAttribute((this._indicatorInteractive_0_0value as boolean | undefined)); + this._indicatorInteractive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._indicatorInteractive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._indicatorInteractive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setIndicatorInteractiveAttribute((undefined as boolean | undefined)); + } + } + } + if (this._pageFlipMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pageFlipMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPageFlipModeAttribute((this._pageFlipMode_0_0value as PageFlipMode | undefined)); + this._pageFlipMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pageFlipMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pageFlipMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPageFlipModeAttribute((undefined as PageFlipMode | undefined)); + } + } + } + if (this._onContentWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onContentWillScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnContentWillScrollAttribute((this._onContentWillScroll_0_0value as ContentWillScrollCallback | undefined)); + this._onContentWillScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onContentWillScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onContentWillScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnContentWillScrollAttribute((undefined as ContentWillScrollCallback | undefined)); + } + } + } + if (this._autoPlay_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._autoPlay_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAutoPlayAttribute((this._autoPlay_0_0value as boolean | undefined), (this._autoPlay_0_1value as AutoPlayOptions | undefined)); + this._autoPlay_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._autoPlay_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._autoPlay_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAutoPlayAttribute((undefined as boolean | undefined), (undefined as AutoPlayOptions | undefined)); + } + } + } + if (this._displayArrow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._displayArrow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDisplayArrowAttribute((this._displayArrow_0_0value as ArrowStyle | boolean | undefined), (this._displayArrow_0_1value as boolean | undefined)); + this._displayArrow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._displayArrow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._displayArrow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDisplayArrowAttribute((undefined as ArrowStyle | boolean | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (this._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cachedCount_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCachedCount1Attribute((this._cachedCount_1_0value as number | undefined), (this._cachedCount_1_1value as boolean | undefined)); + this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cachedCount_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setCachedCount1Attribute((undefined as number | undefined), (undefined as boolean | undefined)); + } + } + } + if (this._displayCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._displayCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDisplayCountAttribute((this._displayCount_0_0value as number | string | SwiperAutoFill | undefined), (this._displayCount_0_1value as boolean | undefined)); + this._displayCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._displayCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._displayCount_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDisplayCountAttribute((undefined as number | string | SwiperAutoFill | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (this._prevMargin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._prevMargin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPrevMarginAttribute((this._prevMargin_0_0value as Length | undefined), (this._prevMargin_0_1value as boolean | undefined)); + this._prevMargin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._prevMargin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._prevMargin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPrevMarginAttribute((undefined as Length | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (this._nextMargin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._nextMargin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNextMarginAttribute((this._nextMargin_0_0value as Length | undefined), (this._nextMargin_0_1value as boolean | undefined)); + this._nextMargin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._nextMargin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._nextMargin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setNextMarginAttribute((undefined as Length | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: SwiperModifier): void { + super.mergeModifier(modifier) + if (modifier._index_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._index_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.index(modifier._index_0_0value); + break; + } + default: { + this.index((undefined as number | Bindable | undefined)); + } + } + } + if (modifier._interval_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._interval_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.interval(modifier._interval_0_0value); + break; + } + default: { + this.interval((undefined as number | undefined)); + } + } + } + if (modifier._indicator_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._indicator_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.indicator(modifier._indicator_0_0value); + break; + } + default: { + this.indicator((undefined as IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined)); + } + } + } + if (modifier._loop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._loop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.loop(modifier._loop_0_0value); + break; + } + default: { + this.loop((undefined as boolean | undefined)); + } + } + } + if (modifier._duration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._duration_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.duration(modifier._duration_0_0value); + break; + } + default: { + this.duration((undefined as number | undefined)); + } + } + } + if (modifier._vertical_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._vertical_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.vertical(modifier._vertical_0_0value); + break; + } + default: { + this.vertical((undefined as boolean | undefined)); + } + } + } + if (modifier._itemSpace_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._itemSpace_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.itemSpace(modifier._itemSpace_0_0value); + break; + } + default: { + this.itemSpace((undefined as number | string | undefined)); + } + } + } + if (modifier._displayMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._displayMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.displayMode(modifier._displayMode_0_0value); + break; + } + default: { + this.displayMode((undefined as SwiperDisplayMode | undefined)); + } + } + } + if (modifier._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cachedCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cachedCount(modifier._cachedCount_0_0value); + break; + } + default: { + this.cachedCount((undefined as number | undefined)); + } + } + } + if (modifier._effectMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._effectMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.effectMode(modifier._effectMode_0_0value); + break; + } + default: { + this.effectMode((undefined as EdgeEffect | undefined)); + } + } + } + if (modifier._disableSwipe_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._disableSwipe_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.disableSwipe(modifier._disableSwipe_0_0value); + break; + } + default: { + this.disableSwipe((undefined as boolean | undefined)); + } + } + } + if (modifier._curve_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._curve_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.curve(modifier._curve_0_0value); + break; + } + default: { + this.curve((undefined as curves.Curve | string | curves.ICurve | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (modifier._onSelected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSelected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSelected(modifier._onSelected_0_0value); + break; + } + default: { + this.onSelected((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (modifier._onUnselected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onUnselected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onUnselected(modifier._onUnselected_0_0value); + break; + } + default: { + this.onUnselected((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (modifier._onAnimationStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAnimationStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAnimationStart(modifier._onAnimationStart_0_0value); + break; + } + default: { + this.onAnimationStart((undefined as OnSwiperAnimationStartCallback | undefined)); + } + } + } + if (modifier._onAnimationEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAnimationEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAnimationEnd(modifier._onAnimationEnd_0_0value); + break; + } + default: { + this.onAnimationEnd((undefined as OnSwiperAnimationEndCallback | undefined)); + } + } + } + if (modifier._onGestureSwipe_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onGestureSwipe_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onGestureSwipe(modifier._onGestureSwipe_0_0value); + break; + } + default: { + this.onGestureSwipe((undefined as OnSwiperGestureSwipeCallback | 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 SwiperNestedScrollMode | undefined)); + } + } + } + if (modifier._customContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._customContentTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.customContentTransition(modifier._customContentTransition_0_0value); + break; + } + default: { + this.customContentTransition((undefined as SwiperContentAnimatedTransition | undefined)); + } + } + } + if (modifier._onContentDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onContentDidScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onContentDidScroll(modifier._onContentDidScroll_0_0value); + break; + } + default: { + this.onContentDidScroll((undefined as ContentDidScrollCallback | undefined)); + } + } + } + if (modifier._indicatorInteractive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._indicatorInteractive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.indicatorInteractive(modifier._indicatorInteractive_0_0value); + break; + } + default: { + this.indicatorInteractive((undefined as boolean | undefined)); + } + } + } + if (modifier._pageFlipMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pageFlipMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pageFlipMode(modifier._pageFlipMode_0_0value); + break; + } + default: { + this.pageFlipMode((undefined as PageFlipMode | undefined)); + } + } + } + if (modifier._onContentWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onContentWillScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onContentWillScroll(modifier._onContentWillScroll_0_0value); + break; + } + default: { + this.onContentWillScroll((undefined as ContentWillScrollCallback | undefined)); + } + } + } + if (modifier._autoPlay_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._autoPlay_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.autoPlay(modifier._autoPlay_0_0value, modifier._autoPlay_0_1value); + break; + } + default: { + this.autoPlay((undefined as boolean | undefined), (undefined as AutoPlayOptions | undefined)); + } + } + } + if (modifier._displayArrow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._displayArrow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.displayArrow(modifier._displayArrow_0_0value, modifier._displayArrow_0_1value); + break; + } + default: { + this.displayArrow((undefined as ArrowStyle | boolean | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (modifier._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cachedCount_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cachedCount(modifier._cachedCount_1_0value, modifier._cachedCount_1_1value); + break; + } + default: { + this.cachedCount((undefined as number | undefined), (undefined as boolean | undefined)); + } + } + } + if (modifier._displayCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._displayCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.displayCount(modifier._displayCount_0_0value, modifier._displayCount_0_1value); + break; + } + default: { + this.displayCount((undefined as number | string | SwiperAutoFill | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (modifier._prevMargin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._prevMargin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.prevMargin(modifier._prevMargin_0_0value, modifier._prevMargin_0_1value); + break; + } + default: { + this.prevMargin((undefined as Length | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + if (modifier._nextMargin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._nextMargin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.nextMargin(modifier._nextMargin_0_0value, modifier._nextMargin_0_1value); + break; + } + default: { + this.nextMargin((undefined as Length | undefined), (undefined as boolean | undefined | undefined)); + } + } + } + } + index(value: number | Bindable | undefined): this { + if (((this._index_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._index_0_flag = AttributeUpdaterFlag.UPDATE + this._index_0_0value = value + } else + { + this._index_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + interval(value: number | undefined): this { + if (((this._interval_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._interval_0_0value) !== (value))) + { + this._interval_0_flag = AttributeUpdaterFlag.UPDATE + this._interval_0_0value = value + } else + { + this._interval_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + indicator(value: IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined): this { + if (((this._indicator_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._indicator_0_flag = AttributeUpdaterFlag.UPDATE + this._indicator_0_0value = value + } else + { + this._indicator_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + loop(value: boolean | undefined): this { + if (((this._loop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._loop_0_0value) !== (value))) + { + this._loop_0_flag = AttributeUpdaterFlag.UPDATE + this._loop_0_0value = value + } else + { + this._loop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + duration(value: number | undefined): this { + if (((this._duration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._duration_0_0value) !== (value))) + { + this._duration_0_flag = AttributeUpdaterFlag.UPDATE + this._duration_0_0value = value + } else + { + this._duration_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + vertical(value: boolean | undefined): this { + if (((this._vertical_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._vertical_0_0value) !== (value))) + { + this._vertical_0_flag = AttributeUpdaterFlag.UPDATE + this._vertical_0_0value = value + } else + { + this._vertical_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + itemSpace(value: number | string | undefined): this { + if (((this._itemSpace_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._itemSpace_0_0value) !== (value))) + { + this._itemSpace_0_flag = AttributeUpdaterFlag.UPDATE + this._itemSpace_0_0value = value + } else + { + this._itemSpace_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + displayMode(value: SwiperDisplayMode | undefined): this { + if (((this._displayMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._displayMode_0_flag = AttributeUpdaterFlag.UPDATE + this._displayMode_0_0value = value + } else + { + this._displayMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cachedCount(value: number | undefined): this { + if (((this._cachedCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_0_0value) !== (value))) + { + this._cachedCount_0_flag = AttributeUpdaterFlag.UPDATE + this._cachedCount_0_0value = value + } else + { + this._cachedCount_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + effectMode(value: EdgeEffect | undefined): this { + if (((this._effectMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._effectMode_0_flag = AttributeUpdaterFlag.UPDATE + this._effectMode_0_0value = value + } else + { + this._effectMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + disableSwipe(value: boolean | undefined): this { + if (((this._disableSwipe_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._disableSwipe_0_0value) !== (value))) + { + this._disableSwipe_0_flag = AttributeUpdaterFlag.UPDATE + this._disableSwipe_0_0value = value + } else + { + this._disableSwipe_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + curve(value: curves.Curve | string | curves.ICurve | undefined): this { + if (((this._curve_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._curve_0_flag = AttributeUpdaterFlag.UPDATE + this._curve_0_0value = value + } else + { + this._curve_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: ((value0: number) => void) | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSelected(value: ((value0: number) => void) | undefined): this { + if (((this._onSelected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSelected_0_flag = AttributeUpdaterFlag.UPDATE + this._onSelected_0_0value = value + } else + { + this._onSelected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onUnselected(value: ((value0: number) => void) | undefined): this { + if (((this._onUnselected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onUnselected_0_flag = AttributeUpdaterFlag.UPDATE + this._onUnselected_0_0value = value + } else + { + this._onUnselected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAnimationStart(value: OnSwiperAnimationStartCallback | undefined): this { + if (((this._onAnimationStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAnimationStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onAnimationStart_0_0value = value + } else + { + this._onAnimationStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAnimationEnd(value: OnSwiperAnimationEndCallback | undefined): this { + if (((this._onAnimationEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._onAnimationEnd_0_0value = value + } else + { + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onGestureSwipe(value: OnSwiperGestureSwipeCallback | undefined): this { + if (((this._onGestureSwipe_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.UPDATE + this._onGestureSwipe_0_0value = value + } else + { + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + nestedScroll(value: SwiperNestedScrollMode | 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 + } + customContentTransition(value: SwiperContentAnimatedTransition | undefined): this { + if (((this._customContentTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._customContentTransition_0_flag = AttributeUpdaterFlag.UPDATE + this._customContentTransition_0_0value = value + } else + { + this._customContentTransition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onContentDidScroll(value: ContentDidScrollCallback | undefined): this { + if (((this._onContentDidScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onContentDidScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onContentDidScroll_0_0value = value + } else + { + this._onContentDidScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + indicatorInteractive(value: boolean | undefined): this { + if (((this._indicatorInteractive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._indicatorInteractive_0_0value) !== (value))) + { + this._indicatorInteractive_0_flag = AttributeUpdaterFlag.UPDATE + this._indicatorInteractive_0_0value = value + } else + { + this._indicatorInteractive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pageFlipMode(value: PageFlipMode | undefined): this { + if (((this._pageFlipMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pageFlipMode_0_flag = AttributeUpdaterFlag.UPDATE + this._pageFlipMode_0_0value = value + } else + { + this._pageFlipMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onContentWillScroll(value: ContentWillScrollCallback | undefined): this { + if (((this._onContentWillScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onContentWillScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onContentWillScroll_0_0value = value + } else + { + this._onContentWillScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + autoPlay(autoPlay: boolean | undefined, options: AutoPlayOptions | undefined): this { + if (((this._autoPlay_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoPlay_0_0value) !== (autoPlay)) || (true)) + { + this._autoPlay_0_flag = AttributeUpdaterFlag.UPDATE + this._autoPlay_0_0value = autoPlay + this._autoPlay_0_1value = options + } else + { + this._autoPlay_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + displayArrow(value: ArrowStyle | boolean | undefined, isHoverShow?: boolean): this { + if (((this._displayArrow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._displayArrow_0_1value) !== (isHoverShow))) + { + this._displayArrow_0_flag = AttributeUpdaterFlag.UPDATE + this._displayArrow_0_0value = value + this._displayArrow_0_1value = isHoverShow + } else + { + this._displayArrow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cachedCount(count: number | undefined, isShown: boolean | undefined): this { + if (((this._cachedCount_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_1_0value) !== (count)) || ((this._cachedCount_1_1value) !== (isShown))) + { + this._cachedCount_1_flag = AttributeUpdaterFlag.UPDATE + this._cachedCount_1_0value = count + this._cachedCount_1_1value = isShown + } else + { + this._cachedCount_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + displayCount(value: number | string | SwiperAutoFill | undefined, swipeByGroup?: boolean): this { + if (((this._displayCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._displayCount_0_1value) !== (swipeByGroup))) + { + this._displayCount_0_flag = AttributeUpdaterFlag.UPDATE + this._displayCount_0_0value = value + this._displayCount_0_1value = swipeByGroup + } else + { + this._displayCount_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + prevMargin(value: Length | undefined, ignoreBlank?: boolean): this { + if (((this._prevMargin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._prevMargin_0_1value) !== (ignoreBlank))) + { + this._prevMargin_0_flag = AttributeUpdaterFlag.UPDATE + this._prevMargin_0_0value = value + this._prevMargin_0_1value = ignoreBlank + } else + { + this._prevMargin_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + nextMargin(value: Length | undefined, ignoreBlank?: boolean): this { + if (((this._nextMargin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._nextMargin_0_1value) !== (ignoreBlank))) + { + this._nextMargin_0_flag = AttributeUpdaterFlag.UPDATE + this._nextMargin_0_0value = value + this._nextMargin_0_1value = ignoreBlank + } else + { + this._nextMargin_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/SymbolGlyphModifier.ets b/arkoala-arkts/arkui/generated/SymbolGlyphModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..6720e0e95b8f024bf50059d2194246e6e7652f12 --- /dev/null +++ b/arkoala-arkts/arkui/generated/SymbolGlyphModifier.ets @@ -0,0 +1,413 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, extractors } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkSymbolGlyphPeer, SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, SymbolEffect } from "./component/symbolglyph" +import { CommonMethod } from "./component/common" +import { Resource } from "global.resource" +import { ResourceColor } from "./component/units" +import { Color, FontWeight } from "./component/enums" +import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" +import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { TypeChecker } from "#components" +import { CallbackTransformer } from "./CallbackTransformer" +export class SymbolGlyphModifier extends CommonMethodModifier implements SymbolGlyphAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: SymbolGlyphAttribute): void { } + applyPressedAttribute(instance: SymbolGlyphAttribute): void { } + applyFocusedAttribute(instance: SymbolGlyphAttribute): void { } + applyDisabledAttribute(instance: SymbolGlyphAttribute): void { } + applySelectedAttribute(instance: SymbolGlyphAttribute): void { } + _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontSize_0_0value?: number | string | Resource | undefined + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: Array | undefined + _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontWeight_0_0value?: number | FontWeight | string | undefined + _effectStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _effectStrategy_0_0value?: SymbolEffectStrategy | undefined + _renderingStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _renderingStrategy_0_0value?: SymbolRenderingStrategy | undefined + _minFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minFontScale_0_0value?: number | Resource | undefined + _maxFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxFontScale_0_0value?: number | Resource | undefined + _symbolEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _symbolEffect_0_0value?: SymbolEffect | undefined + _symbolEffect_0_1value?: boolean | number | undefined + applyModifierPatch(peer: ArkSymbolGlyphPeer): void { + super.applyModifierPatch(peer) + if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontSizeAttribute((this._fontSize_0_0value as number | string | Resource | undefined)); + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontSizeAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as Array | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as Array | undefined)); + } + } + } + if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); + } + } + } + if (this._effectStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._effectStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEffectStrategyAttribute((this._effectStrategy_0_0value as SymbolEffectStrategy | undefined)); + this._effectStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._effectStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._effectStrategy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEffectStrategyAttribute((undefined as SymbolEffectStrategy | undefined)); + } + } + } + if (this._renderingStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._renderingStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRenderingStrategyAttribute((this._renderingStrategy_0_0value as SymbolRenderingStrategy | undefined)); + this._renderingStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._renderingStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._renderingStrategy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRenderingStrategyAttribute((undefined as SymbolRenderingStrategy | undefined)); + } + } + } + if (this._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinFontScaleAttribute((this._minFontScale_0_0value as number | Resource | undefined)); + this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minFontScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinFontScaleAttribute((undefined as number | Resource | undefined)); + } + } + } + if (this._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxFontScaleAttribute((this._maxFontScale_0_0value as number | Resource | undefined)); + this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxFontScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxFontScaleAttribute((undefined as number | Resource | undefined)); + } + } + } + if (this._symbolEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._symbolEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSymbolEffectAttribute((this._symbolEffect_0_0value as SymbolEffect | undefined), (this._symbolEffect_0_1value as boolean | number | undefined)); + this._symbolEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._symbolEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._symbolEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSymbolEffectAttribute((undefined as SymbolEffect | undefined), (undefined as boolean | number | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: SymbolGlyphModifier): void { + super.mergeModifier(modifier) + if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontSize(modifier._fontSize_0_0value); + break; + } + default: { + this.fontSize((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as Array | undefined)); + } + } + } + if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontWeight(modifier._fontWeight_0_0value); + break; + } + default: { + this.fontWeight((undefined as number | FontWeight | string | undefined)); + } + } + } + if (modifier._effectStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._effectStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.effectStrategy(modifier._effectStrategy_0_0value); + break; + } + default: { + this.effectStrategy((undefined as SymbolEffectStrategy | undefined)); + } + } + } + if (modifier._renderingStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._renderingStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.renderingStrategy(modifier._renderingStrategy_0_0value); + break; + } + default: { + this.renderingStrategy((undefined as SymbolRenderingStrategy | undefined)); + } + } + } + if (modifier._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minFontScale(modifier._minFontScale_0_0value); + break; + } + default: { + this.minFontScale((undefined as number | Resource | undefined)); + } + } + } + if (modifier._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxFontScale(modifier._maxFontScale_0_0value); + break; + } + default: { + this.maxFontScale((undefined as number | Resource | undefined)); + } + } + } + if (modifier._symbolEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._symbolEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.symbolEffect(modifier._symbolEffect_0_0value, modifier._symbolEffect_0_1value); + break; + } + default: { + this.symbolEffect((undefined as SymbolEffect | undefined), (undefined as boolean | number | undefined | undefined)); + } + } + } + } + fontSize(value: number | string | Resource | undefined): this { + if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fontSize_0_0value = value + } else + { + this._fontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontColor(value: Array | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontWeight(value: number | FontWeight | string | undefined): this { + if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._fontWeight_0_0value = value + } else + { + this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + effectStrategy(value: SymbolEffectStrategy | undefined): this { + if (((this._effectStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._effectStrategy_0_flag = AttributeUpdaterFlag.UPDATE + this._effectStrategy_0_0value = value + } else + { + this._effectStrategy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + renderingStrategy(value: SymbolRenderingStrategy | undefined): this { + if (((this._renderingStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._renderingStrategy_0_flag = AttributeUpdaterFlag.UPDATE + this._renderingStrategy_0_0value = value + } else + { + this._renderingStrategy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minFontScale(value: number | Resource | undefined): this { + if (((this._minFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._minFontScale_0_flag = AttributeUpdaterFlag.UPDATE + this._minFontScale_0_0value = value + } else + { + this._minFontScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxFontScale(value: number | Resource | undefined): this { + if (((this._maxFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._maxFontScale_0_flag = AttributeUpdaterFlag.UPDATE + this._maxFontScale_0_0value = value + } else + { + this._maxFontScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + symbolEffect(symbolEffect: SymbolEffect | undefined, triggerValue?: boolean | number): this { + if (((this._symbolEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._symbolEffect_0_1value) !== (triggerValue))) + { + this._symbolEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._symbolEffect_0_0value = symbolEffect + this._symbolEffect_0_1value = triggerValue + } else + { + this._symbolEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} +export class SymbolGlyphModifier_serializer { + public static write(buffer: SerializerBase, value: SymbolGlyphModifier): void { + } + public static read(buffer: DeserializerBase): SymbolGlyphModifier { + let value : SymbolGlyphModifier = ({} as SymbolGlyphModifier) + return value + } +} diff --git a/arkoala-arkts/arkui/generated/SymbolSpanModifier.ets b/arkoala-arkts/arkui/generated/SymbolSpanModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..bfa9b8d6f3fc6ff0db96dc396c5d9852758a01cb --- /dev/null +++ b/arkoala-arkts/arkui/generated/SymbolSpanModifier.ets @@ -0,0 +1,268 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkSymbolSpanPeer, SymbolSpanAttribute } from "./component/symbolSpan" +import { CommonMethod } from "./component/common" +import { Resource } from "global.resource" +import { ResourceColor } from "./component/units" +import { Color, FontWeight } from "./component/enums" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./component/symbolglyph" +export class SymbolSpanModifier extends CommonMethodModifier implements SymbolSpanAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: SymbolSpanAttribute): void { } + applyPressedAttribute(instance: SymbolSpanAttribute): void { } + applyFocusedAttribute(instance: SymbolSpanAttribute): void { } + applyDisabledAttribute(instance: SymbolSpanAttribute): void { } + applySelectedAttribute(instance: SymbolSpanAttribute): void { } + _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontSize_0_0value?: number | string | Resource | undefined + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: Array | undefined + _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontWeight_0_0value?: number | FontWeight | string | undefined + _effectStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _effectStrategy_0_0value?: SymbolEffectStrategy | undefined + _renderingStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _renderingStrategy_0_0value?: SymbolRenderingStrategy | undefined + applyModifierPatch(peer: ArkSymbolSpanPeer): void { + super.applyModifierPatch(peer) + if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontSizeAttribute((this._fontSize_0_0value as number | string | Resource | undefined)); + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontSizeAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as Array | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as Array | undefined)); + } + } + } + if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); + } + } + } + if (this._effectStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._effectStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEffectStrategyAttribute((this._effectStrategy_0_0value as SymbolEffectStrategy | undefined)); + this._effectStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._effectStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._effectStrategy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEffectStrategyAttribute((undefined as SymbolEffectStrategy | undefined)); + } + } + } + if (this._renderingStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._renderingStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRenderingStrategyAttribute((this._renderingStrategy_0_0value as SymbolRenderingStrategy | undefined)); + this._renderingStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._renderingStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._renderingStrategy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRenderingStrategyAttribute((undefined as SymbolRenderingStrategy | undefined)); + } + } + } + } + mergeModifier(modifier: SymbolSpanModifier): void { + super.mergeModifier(modifier) + if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontSize(modifier._fontSize_0_0value); + break; + } + default: { + this.fontSize((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as Array | undefined)); + } + } + } + if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontWeight(modifier._fontWeight_0_0value); + break; + } + default: { + this.fontWeight((undefined as number | FontWeight | string | undefined)); + } + } + } + if (modifier._effectStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._effectStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.effectStrategy(modifier._effectStrategy_0_0value); + break; + } + default: { + this.effectStrategy((undefined as SymbolEffectStrategy | undefined)); + } + } + } + if (modifier._renderingStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._renderingStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.renderingStrategy(modifier._renderingStrategy_0_0value); + break; + } + default: { + this.renderingStrategy((undefined as SymbolRenderingStrategy | undefined)); + } + } + } + } + fontSize(value: number | string | Resource | undefined): this { + if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fontSize_0_0value = value + } else + { + this._fontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontColor(value: Array | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontWeight(value: number | FontWeight | string | undefined): this { + if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._fontWeight_0_0value = value + } else + { + this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + effectStrategy(value: SymbolEffectStrategy | undefined): this { + if (((this._effectStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._effectStrategy_0_flag = AttributeUpdaterFlag.UPDATE + this._effectStrategy_0_0value = value + } else + { + this._effectStrategy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + renderingStrategy(value: SymbolRenderingStrategy | undefined): this { + if (((this._renderingStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._renderingStrategy_0_flag = AttributeUpdaterFlag.UPDATE + this._renderingStrategy_0_0value = value + } else + { + this._renderingStrategy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/TabContentModifier.ets b/arkoala-arkts/arkui/generated/TabContentModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..31d0cd687c05721363cb03304f5d68ee7e1a4dc5 --- /dev/null +++ b/arkoala-arkts/arkui/generated/TabContentModifier.ets @@ -0,0 +1,180 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTabContentPeer, SubTabBarStyle, BottomTabBarStyle, TabBarOptions, TabContentAttribute } from "./component/tabContent" +import { CommonMethod } from "./component/common" +import { ComponentContent } from "./ComponentContent" +import { Resource } from "global.resource" +import { CustomBuilder } from "./component/builder" +import { VoidCallback } from "./component/units" +export class TabContentModifier extends CommonMethodModifier implements TabContentAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: TabContentAttribute): void { } + applyPressedAttribute(instance: TabContentAttribute): void { } + applyFocusedAttribute(instance: TabContentAttribute): void { } + applyDisabledAttribute(instance: TabContentAttribute): void { } + applySelectedAttribute(instance: TabContentAttribute): void { } + _tabBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _tabBar_0_0value?: ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined + _onWillShow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillShow_0_0value?: VoidCallback | undefined + _onWillHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillHide_0_0value?: VoidCallback | undefined + applyModifierPatch(peer: ArkTabContentPeer): void { + super.applyModifierPatch(peer) + if (this._tabBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._tabBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTabBarAttribute((this._tabBar_0_0value as ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined)); + this._tabBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._tabBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._tabBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTabBarAttribute((undefined as ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined)); + } + } + } + if (this._onWillShow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillShow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillShowAttribute((this._onWillShow_0_0value as VoidCallback | undefined)); + this._onWillShow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillShow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillShow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillShowAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onWillHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillHideAttribute((this._onWillHide_0_0value as VoidCallback | undefined)); + this._onWillHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillHide_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillHideAttribute((undefined as VoidCallback | undefined)); + } + } + } + } + mergeModifier(modifier: TabContentModifier): void { + super.mergeModifier(modifier) + if (modifier._tabBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._tabBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.tabBar(modifier._tabBar_0_0value); + break; + } + default: { + this.tabBar((undefined as ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined)); + } + } + } + if (modifier._onWillShow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillShow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillShow(modifier._onWillShow_0_0value); + break; + } + default: { + this.onWillShow((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onWillHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillHide(modifier._onWillHide_0_0value); + break; + } + default: { + this.onWillHide((undefined as VoidCallback | undefined)); + } + } + } + } + tabBar(value: ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined): this { + if (((this._tabBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._tabBar_0_flag = AttributeUpdaterFlag.UPDATE + this._tabBar_0_0value = value + } else + { + this._tabBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillShow(value: VoidCallback | undefined): this { + if (((this._onWillShow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillShow_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillShow_0_0value = value + } else + { + this._onWillShow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillHide(value: VoidCallback | undefined): this { + if (((this._onWillHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillHide_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillHide_0_0value = value + } else + { + this._onWillHide_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/TabsModifier.ets b/arkoala-arkts/arkui/generated/TabsModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..1058970dd867a9a6902bc59fffacd979ac2eaa29 --- /dev/null +++ b/arkoala-arkts/arkui/generated/TabsModifier.ets @@ -0,0 +1,1285 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTabsPeer, BarPosition, AnimationMode, OnTabsAnimationStartCallback, TabsAnimationEvent, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, TabsAttribute, BarMode, ScrollableBarModeOptions, TabsCacheMode } from "./component/tabs" +import { CommonMethod, DividerStyle, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions } from "./component/common" +import { Length, ResourceColor } from "./component/units" +import { Resource } from "global.resource" +import { EdgeEffect, Color, PageFlipMode } from "./component/enums" +export class TabsModifier extends CommonMethodModifier implements TabsAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: TabsAttribute): void { } + applyPressedAttribute(instance: TabsAttribute): void { } + applyFocusedAttribute(instance: TabsAttribute): void { } + applyDisabledAttribute(instance: TabsAttribute): void { } + applySelectedAttribute(instance: TabsAttribute): void { } + _vertical_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _vertical_0_0value?: boolean | undefined + _barPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barPosition_0_0value?: BarPosition | undefined + _scrollable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _scrollable_0_0value?: boolean | undefined + _barWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barWidth_0_0value?: Length | undefined + _barHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barHeight_0_0value?: Length | undefined + _animationDuration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _animationDuration_0_0value?: number | undefined + _animationMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _animationMode_0_0value?: AnimationMode | undefined + _edgeEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _edgeEffect_0_0value?: EdgeEffect | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: ((value0: number) => void) | undefined + _onSelected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSelected_0_0value?: ((value0: number) => void) | undefined + _onTabBarClick_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTabBarClick_0_0value?: ((value0: number) => void) | undefined + _onUnselected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onUnselected_0_0value?: ((value0: number) => void) | undefined + _onAnimationStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAnimationStart_0_0value?: OnTabsAnimationStartCallback | undefined + _onAnimationEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAnimationEnd_0_0value?: OnTabsAnimationEndCallback | undefined + _onGestureSwipe_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onGestureSwipe_0_0value?: OnTabsGestureSwipeCallback | undefined + _fadingEdge_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fadingEdge_0_0value?: boolean | undefined + _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _divider_0_0value?: DividerStyle | undefined + _barOverlap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barOverlap_0_0value?: boolean | undefined + _barBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barBackgroundColor_0_0value?: ResourceColor | undefined + _barGridAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barGridAlign_0_0value?: BarGridColumnOptions | undefined + _customContentTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _customContentTransition_0_0value?: TabsCustomContentTransitionCallback | undefined + _barBackgroundBlurStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barBackgroundBlurStyle_0_0value?: BlurStyle | undefined + _pageFlipMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pageFlipMode_0_0value?: PageFlipMode | undefined + _barBackgroundEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barBackgroundEffect_0_0value?: BackgroundEffectOptions | undefined + _onContentWillChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onContentWillChange_0_0value?: OnTabsContentWillChangeCallback | undefined + _barMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barMode_0_0value?: BarMode | undefined + _barMode_0_1value?: ScrollableBarModeOptions | undefined + _barBackgroundBlurStyle_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barBackgroundBlurStyle_1_0value?: BlurStyle | undefined + _barBackgroundBlurStyle_1_1value?: BackgroundBlurStyleOptions | undefined + _cachedMaxCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cachedMaxCount_0_0value?: number | undefined + _cachedMaxCount_0_1value?: TabsCacheMode | undefined + applyModifierPatch(peer: ArkTabsPeer): void { + super.applyModifierPatch(peer) + if (this._vertical_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._vertical_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setVerticalAttribute((this._vertical_0_0value as boolean | undefined)); + this._vertical_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._vertical_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._vertical_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setVerticalAttribute((undefined as boolean | undefined)); + } + } + } + if (this._barPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarPositionAttribute((this._barPosition_0_0value as BarPosition | undefined)); + this._barPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barPosition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarPositionAttribute((undefined as BarPosition | undefined)); + } + } + } + if (this._scrollable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._scrollable_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setScrollableAttribute((this._scrollable_0_0value as boolean | undefined)); + this._scrollable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._scrollable_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._scrollable_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setScrollableAttribute((undefined as boolean | undefined)); + } + } + } + if (this._barWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarWidthAttribute((this._barWidth_0_0value as Length | undefined)); + this._barWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barWidth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barWidth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarWidthAttribute((undefined as Length | undefined)); + } + } + } + if (this._barHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarHeightAttribute((this._barHeight_0_0value as Length | undefined)); + this._barHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barHeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarHeightAttribute((undefined as Length | undefined)); + } + } + } + if (this._animationDuration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._animationDuration_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAnimationDurationAttribute((this._animationDuration_0_0value as number | undefined)); + this._animationDuration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._animationDuration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._animationDuration_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAnimationDurationAttribute((undefined as number | undefined)); + } + } + } + if (this._animationMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._animationMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAnimationModeAttribute((this._animationMode_0_0value as AnimationMode | undefined)); + this._animationMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._animationMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._animationMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAnimationModeAttribute((undefined as AnimationMode | 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_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)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: number) => void) | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (this._onSelected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSelected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSelectedAttribute((this._onSelected_0_0value as ((value0: number) => void) | undefined)); + this._onSelected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSelected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSelected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSelectedAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (this._onTabBarClick_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTabBarClick_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTabBarClickAttribute((this._onTabBarClick_0_0value as ((value0: number) => void) | undefined)); + this._onTabBarClick_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTabBarClick_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTabBarClick_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTabBarClickAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (this._onUnselected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onUnselected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnUnselectedAttribute((this._onUnselected_0_0value as ((value0: number) => void) | undefined)); + this._onUnselected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onUnselected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onUnselected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnUnselectedAttribute((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (this._onAnimationStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAnimationStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAnimationStartAttribute((this._onAnimationStart_0_0value as OnTabsAnimationStartCallback | undefined)); + this._onAnimationStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAnimationStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAnimationStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAnimationStartAttribute((undefined as OnTabsAnimationStartCallback | undefined)); + } + } + } + if (this._onAnimationEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAnimationEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAnimationEndAttribute((this._onAnimationEnd_0_0value as OnTabsAnimationEndCallback | undefined)); + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAnimationEndAttribute((undefined as OnTabsAnimationEndCallback | undefined)); + } + } + } + if (this._onGestureSwipe_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onGestureSwipe_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnGestureSwipeAttribute((this._onGestureSwipe_0_0value as OnTabsGestureSwipeCallback | undefined)); + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnGestureSwipeAttribute((undefined as OnTabsGestureSwipeCallback | 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_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)); + } + } + } + if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDividerAttribute((this._divider_0_0value as DividerStyle | undefined)); + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._divider_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDividerAttribute((undefined as DividerStyle | undefined)); + } + } + } + if (this._barOverlap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barOverlap_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarOverlapAttribute((this._barOverlap_0_0value as boolean | undefined)); + this._barOverlap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barOverlap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barOverlap_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarOverlapAttribute((undefined as boolean | undefined)); + } + } + } + if (this._barBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarBackgroundColorAttribute((this._barBackgroundColor_0_0value as ResourceColor | undefined)); + this._barBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarBackgroundColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._barGridAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barGridAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarGridAlignAttribute((this._barGridAlign_0_0value as BarGridColumnOptions | undefined)); + this._barGridAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barGridAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barGridAlign_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarGridAlignAttribute((undefined as BarGridColumnOptions | undefined)); + } + } + } + if (this._customContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._customContentTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCustomContentTransitionAttribute((this._customContentTransition_0_0value as TabsCustomContentTransitionCallback | undefined)); + this._customContentTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._customContentTransition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._customContentTransition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCustomContentTransitionAttribute((undefined as TabsCustomContentTransitionCallback | undefined)); + } + } + } + if (this._barBackgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barBackgroundBlurStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarBackgroundBlurStyle0Attribute((this._barBackgroundBlurStyle_0_0value as BlurStyle | undefined)); + this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarBackgroundBlurStyle0Attribute((undefined as BlurStyle | undefined)); + } + } + } + if (this._pageFlipMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pageFlipMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPageFlipModeAttribute((this._pageFlipMode_0_0value as PageFlipMode | undefined)); + this._pageFlipMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pageFlipMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pageFlipMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPageFlipModeAttribute((undefined as PageFlipMode | undefined)); + } + } + } + if (this._barBackgroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barBackgroundEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarBackgroundEffectAttribute((this._barBackgroundEffect_0_0value as BackgroundEffectOptions | undefined)); + this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarBackgroundEffectAttribute((undefined as BackgroundEffectOptions | undefined)); + } + } + } + if (this._onContentWillChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onContentWillChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnContentWillChangeAttribute((this._onContentWillChange_0_0value as OnTabsContentWillChangeCallback | undefined)); + this._onContentWillChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onContentWillChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onContentWillChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnContentWillChangeAttribute((undefined as OnTabsContentWillChangeCallback | undefined)); + } + } + } + if (this._barMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarModeAttribute((this._barMode_0_0value as BarMode | undefined), (this._barMode_0_1value as ScrollableBarModeOptions | undefined)); + this._barMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarModeAttribute((undefined as BarMode | undefined), (undefined as ScrollableBarModeOptions | undefined | undefined)); + } + } + } + if (this._barBackgroundBlurStyle_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barBackgroundBlurStyle_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarBackgroundBlurStyle1Attribute((this._barBackgroundBlurStyle_1_0value as BlurStyle | undefined), (this._barBackgroundBlurStyle_1_1value as BackgroundBlurStyleOptions | undefined)); + this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarBackgroundBlurStyle1Attribute((undefined as BlurStyle | undefined), (undefined as BackgroundBlurStyleOptions | undefined)); + } + } + } + if (this._cachedMaxCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cachedMaxCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCachedMaxCountAttribute((this._cachedMaxCount_0_0value as number | undefined), (this._cachedMaxCount_0_1value as TabsCacheMode | undefined)); + this._cachedMaxCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cachedMaxCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cachedMaxCount_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCachedMaxCountAttribute((undefined as number | undefined), (undefined as TabsCacheMode | undefined)); + } + } + } + } + mergeModifier(modifier: TabsModifier): void { + super.mergeModifier(modifier) + if (modifier._vertical_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._vertical_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.vertical(modifier._vertical_0_0value); + break; + } + default: { + this.vertical((undefined as boolean | undefined)); + } + } + } + if (modifier._barPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barPosition(modifier._barPosition_0_0value); + break; + } + default: { + this.barPosition((undefined as BarPosition | undefined)); + } + } + } + if (modifier._scrollable_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._scrollable_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.scrollable(modifier._scrollable_0_0value); + break; + } + default: { + this.scrollable((undefined as boolean | undefined)); + } + } + } + if (modifier._barWidth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barWidth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barWidth(modifier._barWidth_0_0value); + break; + } + default: { + this.barWidth((undefined as Length | undefined)); + } + } + } + if (modifier._barHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barHeight(modifier._barHeight_0_0value); + break; + } + default: { + this.barHeight((undefined as Length | undefined)); + } + } + } + if (modifier._animationDuration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._animationDuration_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.animationDuration(modifier._animationDuration_0_0value); + break; + } + default: { + this.animationDuration((undefined as number | undefined)); + } + } + } + if (modifier._animationMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._animationMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.animationMode(modifier._animationMode_0_0value); + break; + } + default: { + this.animationMode((undefined as AnimationMode | 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); + break; + } + default: { + this.edgeEffect((undefined as EdgeEffect | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (modifier._onSelected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSelected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSelected(modifier._onSelected_0_0value); + break; + } + default: { + this.onSelected((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (modifier._onTabBarClick_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTabBarClick_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTabBarClick(modifier._onTabBarClick_0_0value); + break; + } + default: { + this.onTabBarClick((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (modifier._onUnselected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onUnselected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onUnselected(modifier._onUnselected_0_0value); + break; + } + default: { + this.onUnselected((undefined as ((value0: number) => void) | undefined)); + } + } + } + if (modifier._onAnimationStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAnimationStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAnimationStart(modifier._onAnimationStart_0_0value); + break; + } + default: { + this.onAnimationStart((undefined as OnTabsAnimationStartCallback | undefined)); + } + } + } + if (modifier._onAnimationEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAnimationEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAnimationEnd(modifier._onAnimationEnd_0_0value); + break; + } + default: { + this.onAnimationEnd((undefined as OnTabsAnimationEndCallback | undefined)); + } + } + } + if (modifier._onGestureSwipe_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onGestureSwipe_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onGestureSwipe(modifier._onGestureSwipe_0_0value); + break; + } + default: { + this.onGestureSwipe((undefined as OnTabsGestureSwipeCallback | 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); + break; + } + default: { + this.fadingEdge((undefined as boolean | undefined)); + } + } + } + if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.divider(modifier._divider_0_0value); + break; + } + default: { + this.divider((undefined as DividerStyle | undefined)); + } + } + } + if (modifier._barOverlap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barOverlap_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barOverlap(modifier._barOverlap_0_0value); + break; + } + default: { + this.barOverlap((undefined as boolean | undefined)); + } + } + } + if (modifier._barBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barBackgroundColor(modifier._barBackgroundColor_0_0value); + break; + } + default: { + this.barBackgroundColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._barGridAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barGridAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barGridAlign(modifier._barGridAlign_0_0value); + break; + } + default: { + this.barGridAlign((undefined as BarGridColumnOptions | undefined)); + } + } + } + if (modifier._customContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._customContentTransition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.customContentTransition(modifier._customContentTransition_0_0value); + break; + } + default: { + this.customContentTransition((undefined as TabsCustomContentTransitionCallback | undefined)); + } + } + } + if (modifier._barBackgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barBackgroundBlurStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barBackgroundBlurStyle(modifier._barBackgroundBlurStyle_0_0value); + break; + } + default: { + this.barBackgroundBlurStyle((undefined as BlurStyle | undefined)); + } + } + } + if (modifier._pageFlipMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pageFlipMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pageFlipMode(modifier._pageFlipMode_0_0value); + break; + } + default: { + this.pageFlipMode((undefined as PageFlipMode | undefined)); + } + } + } + if (modifier._barBackgroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barBackgroundEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barBackgroundEffect(modifier._barBackgroundEffect_0_0value); + break; + } + default: { + this.barBackgroundEffect((undefined as BackgroundEffectOptions | undefined)); + } + } + } + if (modifier._onContentWillChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onContentWillChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onContentWillChange(modifier._onContentWillChange_0_0value); + break; + } + default: { + this.onContentWillChange((undefined as OnTabsContentWillChangeCallback | undefined)); + } + } + } + if (modifier._barMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barMode(modifier._barMode_0_0value, modifier._barMode_0_1value); + break; + } + default: { + this.barMode((undefined as BarMode | undefined), (undefined as ScrollableBarModeOptions | undefined | undefined)); + } + } + } + if (modifier._barBackgroundBlurStyle_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barBackgroundBlurStyle_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barBackgroundBlurStyle(modifier._barBackgroundBlurStyle_1_0value, modifier._barBackgroundBlurStyle_1_1value); + break; + } + default: { + this.barBackgroundBlurStyle((undefined as BlurStyle | undefined), (undefined as BackgroundBlurStyleOptions | undefined)); + } + } + } + if (modifier._cachedMaxCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cachedMaxCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cachedMaxCount(modifier._cachedMaxCount_0_0value, modifier._cachedMaxCount_0_1value); + break; + } + default: { + this.cachedMaxCount((undefined as number | undefined), (undefined as TabsCacheMode | undefined)); + } + } + } + } + vertical(value: boolean | undefined): this { + if (((this._vertical_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._vertical_0_0value) !== (value))) + { + this._vertical_0_flag = AttributeUpdaterFlag.UPDATE + this._vertical_0_0value = value + } else + { + this._vertical_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barPosition(value: BarPosition | undefined): this { + if (((this._barPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barPosition_0_flag = AttributeUpdaterFlag.UPDATE + this._barPosition_0_0value = value + } else + { + this._barPosition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + scrollable(value: boolean | undefined): this { + if (((this._scrollable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._scrollable_0_0value) !== (value))) + { + this._scrollable_0_flag = AttributeUpdaterFlag.UPDATE + this._scrollable_0_0value = value + } else + { + this._scrollable_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barWidth(value: Length | undefined): this { + if (((this._barWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barWidth_0_flag = AttributeUpdaterFlag.UPDATE + this._barWidth_0_0value = value + } else + { + this._barWidth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barHeight(value: Length | undefined): this { + if (((this._barHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barHeight_0_flag = AttributeUpdaterFlag.UPDATE + this._barHeight_0_0value = value + } else + { + this._barHeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + animationDuration(value: number | undefined): this { + if (((this._animationDuration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._animationDuration_0_0value) !== (value))) + { + this._animationDuration_0_flag = AttributeUpdaterFlag.UPDATE + this._animationDuration_0_0value = value + } else + { + this._animationDuration_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + animationMode(value: AnimationMode | undefined): this { + if (((this._animationMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._animationMode_0_flag = AttributeUpdaterFlag.UPDATE + this._animationMode_0_0value = value + } else + { + this._animationMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + edgeEffect(value: EdgeEffect | undefined): this { + if (((this._edgeEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._edgeEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._edgeEffect_0_0value = value + } else + { + this._edgeEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: ((value0: number) => void) | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSelected(value: ((value0: number) => void) | undefined): this { + if (((this._onSelected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSelected_0_flag = AttributeUpdaterFlag.UPDATE + this._onSelected_0_0value = value + } else + { + this._onSelected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTabBarClick(value: ((value0: number) => void) | undefined): this { + if (((this._onTabBarClick_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTabBarClick_0_flag = AttributeUpdaterFlag.UPDATE + this._onTabBarClick_0_0value = value + } else + { + this._onTabBarClick_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onUnselected(value: ((value0: number) => void) | undefined): this { + if (((this._onUnselected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onUnselected_0_flag = AttributeUpdaterFlag.UPDATE + this._onUnselected_0_0value = value + } else + { + this._onUnselected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAnimationStart(value: OnTabsAnimationStartCallback | undefined): this { + if (((this._onAnimationStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAnimationStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onAnimationStart_0_0value = value + } else + { + this._onAnimationStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAnimationEnd(value: OnTabsAnimationEndCallback | undefined): this { + if (((this._onAnimationEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._onAnimationEnd_0_0value = value + } else + { + this._onAnimationEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onGestureSwipe(value: OnTabsGestureSwipeCallback | undefined): this { + if (((this._onGestureSwipe_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.UPDATE + this._onGestureSwipe_0_0value = value + } else + { + this._onGestureSwipe_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fadingEdge(value: boolean | undefined): this { + if (((this._fadingEdge_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fadingEdge_0_0value) !== (value))) + { + this._fadingEdge_0_flag = AttributeUpdaterFlag.UPDATE + this._fadingEdge_0_0value = value + } else + { + this._fadingEdge_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + divider(value: DividerStyle | undefined): this { + if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._divider_0_flag = AttributeUpdaterFlag.UPDATE + this._divider_0_0value = value + } else + { + this._divider_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barOverlap(value: boolean | undefined): this { + if (((this._barOverlap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._barOverlap_0_0value) !== (value))) + { + this._barOverlap_0_flag = AttributeUpdaterFlag.UPDATE + this._barOverlap_0_0value = value + } else + { + this._barOverlap_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barBackgroundColor(value: ResourceColor | undefined): this { + if (((this._barBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE + this._barBackgroundColor_0_0value = value + } else + { + this._barBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barGridAlign(value: BarGridColumnOptions | undefined): this { + if (((this._barGridAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barGridAlign_0_flag = AttributeUpdaterFlag.UPDATE + this._barGridAlign_0_0value = value + } else + { + this._barGridAlign_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + customContentTransition(value: TabsCustomContentTransitionCallback | undefined): this { + if (((this._customContentTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._customContentTransition_0_flag = AttributeUpdaterFlag.UPDATE + this._customContentTransition_0_0value = value + } else + { + this._customContentTransition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barBackgroundBlurStyle(value: BlurStyle | undefined): this { + if (((this._barBackgroundBlurStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._barBackgroundBlurStyle_0_0value = value + } else + { + this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pageFlipMode(value: PageFlipMode | undefined): this { + if (((this._pageFlipMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._pageFlipMode_0_flag = AttributeUpdaterFlag.UPDATE + this._pageFlipMode_0_0value = value + } else + { + this._pageFlipMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barBackgroundEffect(value: BackgroundEffectOptions | undefined): this { + if (((this._barBackgroundEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._barBackgroundEffect_0_0value = value + } else + { + this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onContentWillChange(value: OnTabsContentWillChangeCallback | undefined): this { + if (((this._onContentWillChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onContentWillChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onContentWillChange_0_0value = value + } else + { + this._onContentWillChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barMode(value: BarMode | undefined, options?: ScrollableBarModeOptions): this { + if (((this._barMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._barMode_0_flag = AttributeUpdaterFlag.UPDATE + this._barMode_0_0value = value + this._barMode_0_1value = options + } else + { + this._barMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barBackgroundBlurStyle(style: BlurStyle | undefined, options: BackgroundBlurStyleOptions | undefined): this { + if (((this._barBackgroundBlurStyle_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.UPDATE + this._barBackgroundBlurStyle_1_0value = style + this._barBackgroundBlurStyle_1_1value = options + } else + { + this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cachedMaxCount(count: number | undefined, mode: TabsCacheMode | undefined): this { + if (((this._cachedMaxCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedMaxCount_0_0value) !== (count)) || (true)) + { + this._cachedMaxCount_0_flag = AttributeUpdaterFlag.UPDATE + this._cachedMaxCount_0_0value = count + this._cachedMaxCount_0_1value = mode + } else + { + this._cachedMaxCount_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/component/textArea.ets b/arkoala-arkts/arkui/generated/TextAreaModifier.ets similarity index 52% rename from arkoala-arkts/arkui/src/component/textArea.ets rename to arkoala-arkts/arkui/generated/TextAreaModifier.ets index ac4cf6182154e703b3ddbb1ddb306fba43706c59..bd4d8ed9723decdfd01febaa2c59a05937e590a1 100644 --- a/arkoala-arkts/arkui/src/component/textArea.ets +++ b/arkoala-arkts/arkui/generated/TextAreaModifier.ets @@ -16,1959 +16,30 @@ // 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 { 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 { KeyboardOptions_serializer, PasteEvent, KeyboardOptions } from "./richEditor" -import { int32, int64, float32, unsafeCast } from "@koalaui/common" -import { ComponentBase } from "./../ComponentBase" -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 { CustomBuilder } from "./builder" -import { CallbackKind } from "./../generated/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" -export class ArkTextAreaPeer 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): ArkTextAreaPeer { - const peerId = PeerNode.nextId() - const _peerPtr = ArkUIGeneratedNativeModule._TextArea_construct(peerId, flags) - const _peer = new ArkTextAreaPeer(_peerPtr, peerId, 'TextArea', flags) - component?.setPeer(_peer) - return _peer - } - setTextAreaOptionsAttribute(value?: TextAreaOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - TextAreaOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaInterface_setTextAreaOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPlaceholderColorAttribute(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._TextAreaAttribute_setPlaceholderColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPlaceholderFontAttribute(value: Font | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - Font_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setPlaceholderFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnterKeyTypeAttribute(value: EnterKeyType | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as EnterKeyType) - thisSerializer.writeInt32(TypeChecker.EnterKeyType_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setEnterKeyType(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTextAlignAttribute(value: TextAlign | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as TextAlign) - thisSerializer.writeInt32(TypeChecker.TextAlign_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setTextAlign(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCaretColorAttribute(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._TextAreaAttribute_setCaretColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontColorAttribute(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._TextAreaAttribute_setFontColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontSizeAttribute(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._TextAreaAttribute_setFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontStyleAttribute(value: FontStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as FontStyle) - thisSerializer.writeInt32(TypeChecker.FontStyle_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setFontStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontWeightAttribute(value: number | FontWeight | ResourceStr | 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 FontWeight) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as FontWeight - thisSerializer.writeInt32(TypeChecker.FontWeight_ToNumeric(valueTmpValueForIdx1)) - } else if (valueTmpValue instanceof ResourceStr) { - thisSerializer.writeInt8((2).toChar()) - const valueTmpValueForIdx2 = valueTmpValue as ResourceStr - if (valueTmpValueForIdx2 instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx2ForIdx0 = valueTmpValueForIdx2 as string - thisSerializer.writeString(valueTmpValueForIdx2ForIdx0) - } else if (valueTmpValueForIdx2 instanceof Resource) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx2ForIdx1 = valueTmpValueForIdx2 as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx2ForIdx1) - } - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setFontWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontFamilyAttribute(value: ResourceStr | 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 Resource) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setFontFamily(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTextOverflowAttribute(value: TextOverflow | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as TextOverflow) - thisSerializer.writeInt32(TypeChecker.TextOverflow_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setTextOverflow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTextIndentAttribute(value: Dimension | 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._TextAreaAttribute_setTextIndent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCaretStyleAttribute(value: CaretStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - CaretStyle_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setCaretStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSelectedBackgroundColorAttribute(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._TextAreaAttribute_setSelectedBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnSubmitAttribute(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - if (valueTmpValue instanceof ((enterKey: EnterKeyType) => void)) { - thisSerializer.writeInt8((0).toChar()) - const valueTmpValueForIdx0 = valueTmpValue as ((enterKey: EnterKeyType) => void) - thisSerializer.holdAndWriteCallback(valueTmpValueForIdx0) - } else if (valueTmpValue instanceof TextAreaSubmitCallback) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as TextAreaSubmitCallback - thisSerializer.holdAndWriteCallback(valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setOnSubmit(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnChangeAttribute(value: EditableTextOnChangeCallback | 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._TextAreaAttribute_setOnChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnTextSelectionChangeAttribute(value: ((selectionStart: number,selectionEnd: number) => 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._TextAreaAttribute_setOnTextSelectionChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnContentScrollAttribute(value: ((selectionStart: number,selectionEnd: number) => 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._TextAreaAttribute_setOnContentScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnEditChangeAttribute(value: ((isEditing: boolean) => 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._TextAreaAttribute_setOnEditChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnCopyAttribute(value: ((value: 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._TextAreaAttribute_setOnCopy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnCutAttribute(value: ((value: 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._TextAreaAttribute_setOnCut(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnPasteAttribute(value: ((value: string,event: PasteEvent) => 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._TextAreaAttribute_setOnPaste(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCopyOptionAttribute(value: CopyOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as CopyOptions) - thisSerializer.writeInt32(TypeChecker.CopyOptions_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setCopyOption(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnableKeyboardOnFocusAttribute(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._TextAreaAttribute_setEnableKeyboardOnFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaxLengthAttribute(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._TextAreaAttribute_setMaxLength(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setStyleAttribute(value: TextContentStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as TextContentStyle) - thisSerializer.writeInt32(TypeChecker.TextContentStyle_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBarStateAttribute(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._TextAreaAttribute_setBarState(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSelectionMenuHiddenAttribute(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._TextAreaAttribute_setSelectionMenuHidden(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMinFontSizeAttribute(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._TextAreaAttribute_setMinFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaxFontSizeAttribute(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._TextAreaAttribute_setMaxFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMinFontScaleAttribute(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._TextAreaAttribute_setMinFontScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaxFontScaleAttribute(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._TextAreaAttribute_setMaxFontScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setHeightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as TextHeightAdaptivePolicy) - thisSerializer.writeInt32(TypeChecker.TextHeightAdaptivePolicy_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setHeightAdaptivePolicy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaxLinesAttribute(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._TextAreaAttribute_setMaxLines(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setWordBreakAttribute(value: WordBreak | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as WordBreak) - thisSerializer.writeInt32(TypeChecker.WordBreak_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setWordBreak(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLineBreakStrategyAttribute(value: LineBreakStrategy | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as LineBreakStrategy) - thisSerializer.writeInt32(TypeChecker.LineBreakStrategy_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setLineBreakStrategy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDecorationAttribute(value: TextDecorationOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - TextDecorationOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setDecoration(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLetterSpacingAttribute(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._TextAreaAttribute_setLetterSpacing(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLineSpacingAttribute(value: LengthMetrics | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - LengthMetrics_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setLineSpacing(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLineHeightAttribute(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._TextAreaAttribute_setLineHeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTypeAttribute(value: TextAreaType | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as TextAreaType) - thisSerializer.writeInt32(TypeChecker.TextAreaType_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setType(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnableAutoFillAttribute(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._TextAreaAttribute_setEnableAutoFill(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setContentTypeAttribute(value: ContentType | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as ContentType) - thisSerializer.writeInt32(TypeChecker.ContentType_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setContentType(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontFeatureAttribute(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._TextAreaAttribute_setFontFeature(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnWillInsertAttribute(value: ((value0: InsertValue) => 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._TextAreaAttribute_setOnWillInsert(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDidInsertAttribute(value: ((value0: InsertValue) => 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._TextAreaAttribute_setOnDidInsert(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnWillDeleteAttribute(value: ((value0: DeleteValue) => 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._TextAreaAttribute_setOnWillDelete(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnDidDeleteAttribute(value: ((value0: DeleteValue) => 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._TextAreaAttribute_setOnDidDelete(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEditMenuOptionsAttribute(value: EditMenuOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - EditMenuOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setEditMenuOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnablePreviewTextAttribute(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._TextAreaAttribute_setEnablePreviewText(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnableHapticFeedbackAttribute(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._TextAreaAttribute_setEnableHapticFeedback(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setAutoCapitalizationModeAttribute(value: AutoCapitalizationMode | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as AutoCapitalizationMode) - thisSerializer.writeInt32(TypeChecker.AutoCapitalizationMode_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setAutoCapitalizationMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setHalfLeadingAttribute(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._TextAreaAttribute_setHalfLeading(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEllipsisModeAttribute(value: EllipsisMode | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as EllipsisMode) - thisSerializer.writeInt32(TypeChecker.EllipsisMode_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setEllipsisMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setStopBackPressAttribute(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._TextAreaAttribute_setStopBackPress(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnWillChangeAttribute(value: ((value0: EditableTextChangeValue) => 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._TextAreaAttribute_setOnWillChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setKeyboardAppearanceAttribute(value: KeyboardAppearance | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as KeyboardAppearance) - thisSerializer.writeInt32(TypeChecker.KeyboardAppearance_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setKeyboardAppearance(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setInputFilterAttribute(value: ResourceStr | undefined, error?: ((value: string) => 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 Resource) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (error !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const errorTmpValue = error! - thisSerializer.holdAndWriteCallback(errorTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setInputFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setShowCounterAttribute(value: boolean | undefined, options?: InputCounterOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - thisSerializer.writeBoolean(valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - InputCounterOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setShowCounter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCustomKeyboardAttribute(value: CustomBuilder | undefined, options?: KeyboardOptions): 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) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - KeyboardOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaAttribute_setCustomKeyboard(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface TextAreaOptions { - placeholder?: ResourceStr; - text?: ResourceStr | Bindable | Bindable | Bindable; - controller?: TextAreaController; -} -export enum TextAreaType { - NORMAL = 0, - NUMBER = 2, - PHONE_NUMBER = 3, - EMAIL = 5, - NUMBER_DECIMAL = 12, - URL = 13 -} -export type TextAreaSubmitCallback = (enterKeyType: EnterKeyType, event?: SubmitEvent) => void; -export interface TextAreaAttribute extends CommonMethod { - placeholderColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method placeholderColor") - } - placeholderFont(value: Font | undefined): this { - throw new Error("Unimplemented method placeholderFont") - } - enterKeyType(value: EnterKeyType | undefined): this { - throw new Error("Unimplemented method enterKeyType") - } - textAlign(value: TextAlign | undefined): this { - throw new Error("Unimplemented method textAlign") - } - caretColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method caretColor") - } - fontColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method fontColor") - } - fontSize(value: Length | undefined): this { - throw new Error("Unimplemented method fontSize") - } - fontStyle(value: FontStyle | undefined): this { - throw new Error("Unimplemented method fontStyle") - } - fontWeight(value: number | FontWeight | ResourceStr | undefined): this { - throw new Error("Unimplemented method fontWeight") - } - fontFamily(value: ResourceStr | undefined): this { - throw new Error("Unimplemented method fontFamily") - } - textOverflow(value: TextOverflow | undefined): this { - throw new Error("Unimplemented method textOverflow") - } - textIndent(value: Dimension | undefined): this { - throw new Error("Unimplemented method textIndent") - } - caretStyle(value: CaretStyle | undefined): this { - throw new Error("Unimplemented method caretStyle") - } - selectedBackgroundColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method selectedBackgroundColor") - } - onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined): this { - throw new Error("Unimplemented method onSubmit") - } - onChange(value: EditableTextOnChangeCallback | undefined): this { - throw new Error("Unimplemented method onChange") - } - onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { - throw new Error("Unimplemented method onTextSelectionChange") - } - onContentScroll(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { - throw new Error("Unimplemented method onContentScroll") - } - onEditChange(value: ((isEditing: boolean) => void) | undefined): this { - throw new Error("Unimplemented method onEditChange") - } - onCopy(value: ((value: string) => void) | undefined): this { - throw new Error("Unimplemented method onCopy") - } - onCut(value: ((value: string) => void) | undefined): this { - throw new Error("Unimplemented method onCut") - } - onPaste(value: ((value: string,event: PasteEvent) => void) | undefined): this { - throw new Error("Unimplemented method onPaste") - } - copyOption(value: CopyOptions | undefined): this { - throw new Error("Unimplemented method copyOption") - } - enableKeyboardOnFocus(value: boolean | undefined): this { - throw new Error("Unimplemented method enableKeyboardOnFocus") - } - maxLength(value: number | undefined): this { - throw new Error("Unimplemented method maxLength") - } - style(value: TextContentStyle | undefined): this { - throw new Error("Unimplemented method style") - } - barState(value: BarState | undefined): this { - throw new Error("Unimplemented method barState") - } - selectionMenuHidden(value: boolean | undefined): this { - throw new Error("Unimplemented method selectionMenuHidden") - } - minFontSize(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method minFontSize") - } - maxFontSize(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method maxFontSize") - } - minFontScale(value: number | Resource | undefined): this { - throw new Error("Unimplemented method minFontScale") - } - maxFontScale(value: number | Resource | undefined): this { - throw new Error("Unimplemented method maxFontScale") - } - heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { - throw new Error("Unimplemented method heightAdaptivePolicy") - } - maxLines(value: number | undefined): this { - throw new Error("Unimplemented method maxLines") - } - wordBreak(value: WordBreak | undefined): this { - throw new Error("Unimplemented method wordBreak") - } - lineBreakStrategy(value: LineBreakStrategy | undefined): this { - throw new Error("Unimplemented method lineBreakStrategy") - } - decoration(value: TextDecorationOptions | undefined): this { - throw new Error("Unimplemented method decoration") - } - letterSpacing(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method letterSpacing") - } - lineSpacing(value: LengthMetrics | undefined): this { - throw new Error("Unimplemented method lineSpacing") - } - lineHeight(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method lineHeight") - } - type(value: TextAreaType | undefined): this { - throw new Error("Unimplemented method type") - } - enableAutoFill(value: boolean | undefined): this { - throw new Error("Unimplemented method enableAutoFill") - } - contentType(value: ContentType | undefined): this { - throw new Error("Unimplemented method contentType") - } - fontFeature(value: string | undefined): this { - throw new Error("Unimplemented method fontFeature") - } - onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { - throw new Error("Unimplemented method onWillInsert") - } - onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { - throw new Error("Unimplemented method onDidInsert") - } - onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { - throw new Error("Unimplemented method onWillDelete") - } - onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { - throw new Error("Unimplemented method onDidDelete") - } - editMenuOptions(value: EditMenuOptions | undefined): this { - throw new Error("Unimplemented method editMenuOptions") - } - enablePreviewText(value: boolean | undefined): this { - throw new Error("Unimplemented method enablePreviewText") - } - enableHapticFeedback(value: boolean | undefined): this { - throw new Error("Unimplemented method enableHapticFeedback") - } - autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { - throw new Error("Unimplemented method autoCapitalizationMode") - } - halfLeading(value: boolean | undefined): this { - throw new Error("Unimplemented method halfLeading") - } - ellipsisMode(value: EllipsisMode | undefined): this { - throw new Error("Unimplemented method ellipsisMode") - } - stopBackPress(value: boolean | undefined): this { - throw new Error("Unimplemented method stopBackPress") - } - onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { - throw new Error("Unimplemented method onWillChange") - } - keyboardAppearance(value: KeyboardAppearance | undefined): this { - throw new Error("Unimplemented method keyboardAppearance") - } - inputFilter(value: ResourceStr | undefined, error?: ((value: string) => void)): this { - throw new Error("Unimplemented method inputFilter") - } - showCounter(value: boolean | undefined, options?: InputCounterOptions): this { - throw new Error("Unimplemented method showCounter") - } - customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { - throw new Error("Unimplemented method customKeyboard") - } - attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Unimplemented method attributeModifier") - } -} -export class ArkTextAreaStyle extends ArkCommonMethodStyle implements TextAreaAttribute { - placeholderColor_value?: ResourceColor | undefined - placeholderFont_value?: Font | undefined - enterKeyType_value?: EnterKeyType | undefined - textAlign_value?: TextAlign | undefined - caretColor_value?: ResourceColor | undefined - fontColor_value?: ResourceColor | undefined - fontSize_value?: Length | undefined - fontStyle_value?: FontStyle | undefined - fontWeight_value?: number | FontWeight | ResourceStr | undefined - fontFamily_value?: ResourceStr | undefined - textOverflow_value?: TextOverflow | undefined - textIndent_value?: Dimension | undefined - caretStyle_value?: CaretStyle | undefined - selectedBackgroundColor_value?: ResourceColor | undefined - onSubmit_value?: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined - onChange_value?: EditableTextOnChangeCallback | undefined - onTextSelectionChange_value?: ((selectionStart: number,selectionEnd: number) => void) | undefined - onContentScroll_value?: ((selectionStart: number,selectionEnd: number) => void) | undefined - onEditChange_value?: ((isEditing: boolean) => void) | undefined - onCopy_value?: ((value: string) => void) | undefined - onCut_value?: ((value: string) => void) | undefined - onPaste_value?: ((value: string,event: PasteEvent) => void) | undefined - copyOption_value?: CopyOptions | undefined - enableKeyboardOnFocus_value?: boolean | undefined - maxLength_value?: number | undefined - style_value?: TextContentStyle | undefined - barState_value?: BarState | undefined - selectionMenuHidden_value?: boolean | undefined - minFontSize_value?: number | string | Resource | undefined - maxFontSize_value?: number | string | Resource | undefined - minFontScale_value?: number | Resource | undefined - maxFontScale_value?: number | Resource | undefined - heightAdaptivePolicy_value?: TextHeightAdaptivePolicy | undefined - maxLines_value?: number | undefined - wordBreak_value?: WordBreak | undefined - lineBreakStrategy_value?: LineBreakStrategy | undefined - decoration_value?: TextDecorationOptions | undefined - letterSpacing_value?: number | string | Resource | undefined - lineSpacing_value?: LengthMetrics | undefined - lineHeight_value?: number | string | Resource | undefined - type_value?: TextAreaType | undefined - enableAutoFill_value?: boolean | undefined - contentType_value?: ContentType | undefined - fontFeature_value?: string | undefined - onWillInsert_value?: ((value0: InsertValue) => boolean) | undefined - onDidInsert_value?: ((value0: InsertValue) => void) | undefined - onWillDelete_value?: ((value0: DeleteValue) => boolean) | undefined - onDidDelete_value?: ((value0: DeleteValue) => void) | undefined - editMenuOptions_value?: EditMenuOptions | undefined - enablePreviewText_value?: boolean | undefined - enableHapticFeedback_value?: boolean | undefined - autoCapitalizationMode_value?: AutoCapitalizationMode | undefined - halfLeading_value?: boolean | undefined - ellipsisMode_value?: EllipsisMode | undefined - stopBackPress_value?: boolean | undefined - onWillChange_value?: ((value0: EditableTextChangeValue) => boolean) | undefined - keyboardAppearance_value?: KeyboardAppearance | undefined - attributeModifier_value?: AttributeModifier | AttributeModifier | undefined - public placeholderColor(value: ResourceColor | undefined): this { - return this - } - public placeholderFont(value: Font | undefined): this { - return this - } - public enterKeyType(value: EnterKeyType | undefined): this { - return this - } - public textAlign(value: TextAlign | undefined): this { - return this - } - public caretColor(value: ResourceColor | undefined): this { - return this - } - public fontColor(value: ResourceColor | undefined): this { - return this - } - public fontSize(value: Length | undefined): this { - return this - } - public fontStyle(value: FontStyle | undefined): this { - return this - } - public fontWeight(value: number | FontWeight | ResourceStr | undefined): this { - return this - } - public fontFamily(value: ResourceStr | undefined): this { - return this - } - public textOverflow(value: TextOverflow | undefined): this { - return this - } - public textIndent(value: Dimension | undefined): this { - return this - } - public caretStyle(value: CaretStyle | undefined): this { - return this - } - public selectedBackgroundColor(value: ResourceColor | undefined): this { - return this - } - public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined): this { - return this - } - public onChange(value: EditableTextOnChangeCallback | undefined): this { - return this - } - public onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { - return this - } - public onContentScroll(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { - return this - } - public onEditChange(value: ((isEditing: boolean) => void) | undefined): this { - return this - } - public onCopy(value: ((value: string) => void) | undefined): this { - return this - } - public onCut(value: ((value: string) => void) | undefined): this { - return this - } - public onPaste(value: ((value: string,event: PasteEvent) => void) | undefined): this { - return this - } - public copyOption(value: CopyOptions | undefined): this { - return this - } - public enableKeyboardOnFocus(value: boolean | undefined): this { - return this - } - public maxLength(value: number | undefined): this { - return this - } - public style(value: TextContentStyle | undefined): this { - return this - } - public barState(value: BarState | undefined): this { - return this - } - public selectionMenuHidden(value: boolean | undefined): this { - return this - } - public minFontSize(value: number | string | Resource | undefined): this { - return this - } - public maxFontSize(value: number | string | Resource | undefined): this { - return this - } - public minFontScale(value: number | Resource | undefined): this { - return this - } - public maxFontScale(value: number | Resource | undefined): this { - return this - } - public heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { - return this - } - public maxLines(value: number | undefined): this { - return this - } - public wordBreak(value: WordBreak | undefined): this { - return this - } - public lineBreakStrategy(value: LineBreakStrategy | undefined): this { - return this - } - public decoration(value: TextDecorationOptions | undefined): this { - return this - } - public letterSpacing(value: number | string | Resource | undefined): this { - return this - } - public lineSpacing(value: LengthMetrics | undefined): this { - return this - } - public lineHeight(value: number | string | Resource | undefined): this { - return this - } - public type(value: TextAreaType | undefined): this { - return this - } - public enableAutoFill(value: boolean | undefined): this { - return this - } - public contentType(value: ContentType | undefined): this { - return this - } - public fontFeature(value: string | undefined): this { - return this - } - public onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { - return this - } - public onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { - return this - } - public onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { - return this - } - public onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { - return this - } - public editMenuOptions(value: EditMenuOptions | undefined): this { - return this - } - public enablePreviewText(value: boolean | undefined): this { - return this - } - public enableHapticFeedback(value: boolean | undefined): this { - return this - } - public autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { - return this - } - public halfLeading(value: boolean | undefined): this { - return this - } - public ellipsisMode(value: EllipsisMode | undefined): this { - return this - } - public stopBackPress(value: boolean | undefined): this { - return this - } - public onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { - return this - } - public keyboardAppearance(value: KeyboardAppearance | undefined): this { - return this - } - public inputFilter(value: ResourceStr | undefined, error?: ((value: string) => void)): this { - return this - } - public showCounter(value: boolean | undefined, options?: InputCounterOptions): this { - return this - } - public customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} - -export class ArkTextAreaComponent extends ArkCommonMethodComponent implements TextAreaAttribute { - getPeer(): ArkTextAreaPeer { - return (this.peer as ArkTextAreaPeer) - } - public setTextAreaOptions(value?: TextAreaOptions): this { - if (this.checkPriority("setTextAreaOptions")) { - const value_casted = value as (TextAreaOptions | undefined) - this.getPeer()?.setTextAreaOptionsAttribute(value_casted) - return this - } - return this - } - public placeholderColor(value: ResourceColor | undefined): this { - if (this.checkPriority("placeholderColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setPlaceholderColorAttribute(value_casted) - return this - } - return this - } - public placeholderFont(value: Font | undefined): this { - if (this.checkPriority("placeholderFont")) { - const value_casted = value as (Font | undefined) - this.getPeer()?.setPlaceholderFontAttribute(value_casted) - return this - } - return this - } - public enterKeyType(value: EnterKeyType | undefined): this { - if (this.checkPriority("enterKeyType")) { - const value_casted = value as (EnterKeyType | undefined) - this.getPeer()?.setEnterKeyTypeAttribute(value_casted) - return this - } - return this - } - public textAlign(value: TextAlign | undefined): this { - if (this.checkPriority("textAlign")) { - const value_casted = value as (TextAlign | undefined) - this.getPeer()?.setTextAlignAttribute(value_casted) - return this - } - return this - } - public caretColor(value: ResourceColor | undefined): this { - if (this.checkPriority("caretColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setCaretColorAttribute(value_casted) - return this - } - return this - } - public fontColor(value: ResourceColor | undefined): this { - if (this.checkPriority("fontColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setFontColorAttribute(value_casted) - return this - } - return this - } - public fontSize(value: Length | undefined): this { - if (this.checkPriority("fontSize")) { - const value_casted = value as (Length | undefined) - this.getPeer()?.setFontSizeAttribute(value_casted) - return this - } - return this - } - public fontStyle(value: FontStyle | undefined): this { - if (this.checkPriority("fontStyle")) { - const value_casted = value as (FontStyle | undefined) - this.getPeer()?.setFontStyleAttribute(value_casted) - return this - } - return this - } - public fontWeight(value: number | FontWeight | ResourceStr | undefined): this { - if (this.checkPriority("fontWeight")) { - const value_casted = value as (number | FontWeight | ResourceStr | undefined) - this.getPeer()?.setFontWeightAttribute(value_casted) - return this - } - return this - } - public fontFamily(value: ResourceStr | undefined): this { - if (this.checkPriority("fontFamily")) { - const value_casted = value as (ResourceStr | undefined) - this.getPeer()?.setFontFamilyAttribute(value_casted) - return this - } - return this - } - public textOverflow(value: TextOverflow | undefined): this { - if (this.checkPriority("textOverflow")) { - const value_casted = value as (TextOverflow | undefined) - this.getPeer()?.setTextOverflowAttribute(value_casted) - return this - } - return this - } - public textIndent(value: Dimension | undefined): this { - if (this.checkPriority("textIndent")) { - const value_casted = value as (Dimension | undefined) - this.getPeer()?.setTextIndentAttribute(value_casted) - return this - } - return this - } - public caretStyle(value: CaretStyle | undefined): this { - if (this.checkPriority("caretStyle")) { - const value_casted = value as (CaretStyle | undefined) - this.getPeer()?.setCaretStyleAttribute(value_casted) - return this - } - return this - } - public selectedBackgroundColor(value: ResourceColor | undefined): this { - if (this.checkPriority("selectedBackgroundColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setSelectedBackgroundColorAttribute(value_casted) - return this - } - return this - } - public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined): this { - if (this.checkPriority("onSubmit")) { - const value_casted = value as (((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined) - this.getPeer()?.setOnSubmitAttribute(value_casted) - return this - } - return this - } - public onChange(value: EditableTextOnChangeCallback | undefined): this { - if (this.checkPriority("onChange")) { - const value_casted = value as (EditableTextOnChangeCallback | undefined) - this.getPeer()?.setOnChangeAttribute(value_casted) - return this - } - return this - } - public onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { - if (this.checkPriority("onTextSelectionChange")) { - const value_casted = value as (((selectionStart: number,selectionEnd: number) => void) | undefined) - this.getPeer()?.setOnTextSelectionChangeAttribute(value_casted) - return this - } - return this - } - public onContentScroll(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { - if (this.checkPriority("onContentScroll")) { - const value_casted = value as (((selectionStart: number,selectionEnd: number) => void) | undefined) - this.getPeer()?.setOnContentScrollAttribute(value_casted) - return this - } - return this - } - public onEditChange(value: ((isEditing: boolean) => void) | undefined): this { - if (this.checkPriority("onEditChange")) { - const value_casted = value as (((isEditing: boolean) => void) | undefined) - this.getPeer()?.setOnEditChangeAttribute(value_casted) - return this - } - return this - } - public onCopy(value: ((value: string) => void) | undefined): this { - if (this.checkPriority("onCopy")) { - const value_casted = value as (((value: string) => void) | undefined) - this.getPeer()?.setOnCopyAttribute(value_casted) - return this - } - return this - } - public onCut(value: ((value: string) => void) | undefined): this { - if (this.checkPriority("onCut")) { - const value_casted = value as (((value: string) => void) | undefined) - this.getPeer()?.setOnCutAttribute(value_casted) - return this - } - return this - } - public onPaste(value: ((value: string,event: PasteEvent) => void) | undefined): this { - if (this.checkPriority("onPaste")) { - const value_casted = value as (((value: string,event: PasteEvent) => void) | undefined) - this.getPeer()?.setOnPasteAttribute(value_casted) - return this - } - return this - } - public copyOption(value: CopyOptions | undefined): this { - if (this.checkPriority("copyOption")) { - const value_casted = value as (CopyOptions | undefined) - this.getPeer()?.setCopyOptionAttribute(value_casted) - return this - } - return this - } - public enableKeyboardOnFocus(value: boolean | undefined): this { - if (this.checkPriority("enableKeyboardOnFocus")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEnableKeyboardOnFocusAttribute(value_casted) - return this - } - return this - } - public maxLength(value: number | undefined): this { - if (this.checkPriority("maxLength")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setMaxLengthAttribute(value_casted) - return this - } - return this - } - public style(value: TextContentStyle | undefined): this { - if (this.checkPriority("style")) { - const value_casted = value as (TextContentStyle | undefined) - this.getPeer()?.setStyleAttribute(value_casted) - return this - } - return this - } - public barState(value: BarState | undefined): this { - if (this.checkPriority("barState")) { - const value_casted = value as (BarState | undefined) - this.getPeer()?.setBarStateAttribute(value_casted) - return this - } - return this - } - public selectionMenuHidden(value: boolean | undefined): this { - if (this.checkPriority("selectionMenuHidden")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setSelectionMenuHiddenAttribute(value_casted) - return this - } - return this - } - public minFontSize(value: number | string | Resource | undefined): this { - if (this.checkPriority("minFontSize")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setMinFontSizeAttribute(value_casted) - return this - } - return this - } - public maxFontSize(value: number | string | Resource | undefined): this { - if (this.checkPriority("maxFontSize")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setMaxFontSizeAttribute(value_casted) - return this - } - return this - } - public minFontScale(value: number | Resource | undefined): this { - if (this.checkPriority("minFontScale")) { - const value_casted = value as (number | Resource | undefined) - this.getPeer()?.setMinFontScaleAttribute(value_casted) - return this - } - return this - } - public maxFontScale(value: number | Resource | undefined): this { - if (this.checkPriority("maxFontScale")) { - const value_casted = value as (number | Resource | undefined) - this.getPeer()?.setMaxFontScaleAttribute(value_casted) - return this - } - return this - } - public heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { - if (this.checkPriority("heightAdaptivePolicy")) { - const value_casted = value as (TextHeightAdaptivePolicy | undefined) - this.getPeer()?.setHeightAdaptivePolicyAttribute(value_casted) - return this - } - return this - } - public maxLines(value: number | undefined): this { - if (this.checkPriority("maxLines")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setMaxLinesAttribute(value_casted) - return this - } - return this - } - public wordBreak(value: WordBreak | undefined): this { - if (this.checkPriority("wordBreak")) { - const value_casted = value as (WordBreak | undefined) - this.getPeer()?.setWordBreakAttribute(value_casted) - return this - } - return this - } - public lineBreakStrategy(value: LineBreakStrategy | undefined): this { - if (this.checkPriority("lineBreakStrategy")) { - const value_casted = value as (LineBreakStrategy | undefined) - this.getPeer()?.setLineBreakStrategyAttribute(value_casted) - return this - } - return this - } - public decoration(value: TextDecorationOptions | undefined): this { - if (this.checkPriority("decoration")) { - const value_casted = value as (TextDecorationOptions | undefined) - this.getPeer()?.setDecorationAttribute(value_casted) - return this - } - return this - } - public letterSpacing(value: number | string | Resource | undefined): this { - if (this.checkPriority("letterSpacing")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setLetterSpacingAttribute(value_casted) - return this - } - return this - } - public lineSpacing(value: LengthMetrics | undefined): this { - if (this.checkPriority("lineSpacing")) { - const value_casted = value as (LengthMetrics | undefined) - this.getPeer()?.setLineSpacingAttribute(value_casted) - return this - } - return this - } - public lineHeight(value: number | string | Resource | undefined): this { - if (this.checkPriority("lineHeight")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setLineHeightAttribute(value_casted) - return this - } - return this - } - public type(value: TextAreaType | undefined): this { - if (this.checkPriority("type")) { - const value_casted = value as (TextAreaType | undefined) - this.getPeer()?.setTypeAttribute(value_casted) - return this - } - return this - } - public enableAutoFill(value: boolean | undefined): this { - if (this.checkPriority("enableAutoFill")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEnableAutoFillAttribute(value_casted) - return this - } - return this - } - public contentType(value: ContentType | undefined): this { - if (this.checkPriority("contentType")) { - const value_casted = value as (ContentType | undefined) - this.getPeer()?.setContentTypeAttribute(value_casted) - return this - } - return this - } - public fontFeature(value: string | undefined): this { - if (this.checkPriority("fontFeature")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setFontFeatureAttribute(value_casted) - return this - } - return this - } - public onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { - if (this.checkPriority("onWillInsert")) { - const value_casted = value as (((value0: InsertValue) => boolean) | undefined) - this.getPeer()?.setOnWillInsertAttribute(value_casted) - return this - } - return this - } - public onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { - if (this.checkPriority("onDidInsert")) { - const value_casted = value as (((value0: InsertValue) => void) | undefined) - this.getPeer()?.setOnDidInsertAttribute(value_casted) - return this - } - return this - } - public onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { - if (this.checkPriority("onWillDelete")) { - const value_casted = value as (((value0: DeleteValue) => boolean) | undefined) - this.getPeer()?.setOnWillDeleteAttribute(value_casted) - return this - } - return this - } - public onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { - if (this.checkPriority("onDidDelete")) { - const value_casted = value as (((value0: DeleteValue) => void) | undefined) - this.getPeer()?.setOnDidDeleteAttribute(value_casted) - return this - } - return this - } - public editMenuOptions(value: EditMenuOptions | undefined): this { - if (this.checkPriority("editMenuOptions")) { - const value_casted = value as (EditMenuOptions | undefined) - this.getPeer()?.setEditMenuOptionsAttribute(value_casted) - return this - } - return this - } - public enablePreviewText(value: boolean | undefined): this { - if (this.checkPriority("enablePreviewText")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEnablePreviewTextAttribute(value_casted) - return this - } - return this - } - public enableHapticFeedback(value: boolean | undefined): this { - if (this.checkPriority("enableHapticFeedback")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEnableHapticFeedbackAttribute(value_casted) - return this - } - return this - } - public autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { - if (this.checkPriority("autoCapitalizationMode")) { - const value_casted = value as (AutoCapitalizationMode | undefined) - this.getPeer()?.setAutoCapitalizationModeAttribute(value_casted) - return this - } - return this - } - public halfLeading(value: boolean | undefined): this { - if (this.checkPriority("halfLeading")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setHalfLeadingAttribute(value_casted) - return this - } - return this - } - public ellipsisMode(value: EllipsisMode | undefined): this { - if (this.checkPriority("ellipsisMode")) { - const value_casted = value as (EllipsisMode | undefined) - this.getPeer()?.setEllipsisModeAttribute(value_casted) - return this - } - return this - } - public stopBackPress(value: boolean | undefined): this { - if (this.checkPriority("stopBackPress")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setStopBackPressAttribute(value_casted) - return this - } - return this - } - public onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { - if (this.checkPriority("onWillChange")) { - const value_casted = value as (((value0: EditableTextChangeValue) => boolean) | undefined) - this.getPeer()?.setOnWillChangeAttribute(value_casted) - return this - } - return this - } - public keyboardAppearance(value: KeyboardAppearance | undefined): this { - if (this.checkPriority("keyboardAppearance")) { - const value_casted = value as (KeyboardAppearance | undefined) - this.getPeer()?.setKeyboardAppearanceAttribute(value_casted) - return this - } - return this - } - public inputFilter(value: ResourceStr | undefined, error?: ((value: string) => void)): this { - if (this.checkPriority("inputFilter")) { - const value_casted = value as (ResourceStr | undefined) - const error_casted = error as (((value: string) => void) | undefined) - this.getPeer()?.setInputFilterAttribute(value_casted, error_casted) - return this - } - return this - } - public showCounter(value: boolean | undefined, options?: InputCounterOptions): this { - if (this.checkPriority("showCounter")) { - const value_casted = value as (boolean | undefined) - const options_casted = options as (InputCounterOptions | undefined) - this.getPeer()?.setShowCounterAttribute(value_casted, options_casted) - return this - } - return this - } - public customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { - if (this.checkPriority("customKeyboard")) { - const value_casted = value as (CustomBuilder | undefined) - const options_casted = options as (KeyboardOptions | undefined) - this.getPeer()?.setCustomKeyboardAttribute(value_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() - } -} - -@memo -export function TextArea( - @memo - style: ((attributes: TextAreaAttribute) => void) | undefined, - value?: TextAreaOptions, - @memo - content_?: () => void, -): void { - const receiver = remember((): ArkTextAreaComponent => { - return new ArkTextAreaComponent() - }) - NodeAttach((): ArkTextAreaPeer => ArkTextAreaPeer.create(receiver), (_: ArkTextAreaPeer): void => { - receiver.setTextAreaOptions(value) - style?.(receiver) - content_?.() - receiver.applyAttributesFinish() - }) -} - -export class TextAreaModifier extends CommonMethodModifier implements TextAreaAttribute { +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTextAreaPeer, TextAreaSubmitCallback, TextAreaType, TextAreaAttribute } from "./component/textArea" +import { CommonMethod, TextDecorationOptions, InputCounterOptions } from "./component/common" +import { ResourceColor, Font, Length, ResourceStr, Dimension } from "./component/units" +import { Color, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode } from "./component/enums" +import { Resource } from "global.resource" +import { EnterKeyType, SubmitEvent, ContentType } from "./component/textInput" +import { CaretStyle, EditableTextOnChangeCallback, PreviewText, TextChangeOptions, InsertValue, DeleteValue, EditMenuOptions, AutoCapitalizationMode, EditableTextChangeValue, KeyboardAppearance } from "./component/textCommon" +import { PasteEvent, KeyboardOptions } from "./component/richEditor" +import { LengthMetrics } from "./Graphics" +import { CustomBuilder } from "./component/builder" +export class TextAreaModifier extends CommonMethodModifier implements TextAreaAttribute,AttributeModifier { _instanceId: number = -1; setInstanceId(instanceId: number): void { this._instanceId = instanceId } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: TextAreaAttribute): void { } + applyPressedAttribute(instance: TextAreaAttribute): void { } + applyFocusedAttribute(instance: TextAreaAttribute): void { } + applyDisabledAttribute(instance: TextAreaAttribute): void { } + applySelectedAttribute(instance: TextAreaAttribute): void { } _placeholderColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL _placeholderColor_0_0value?: ResourceColor | undefined _placeholderFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL @@ -4625,183 +2696,3 @@ export class TextAreaModifier extends CommonMethodModifier implements TextAreaAt throw new Error("Not implemented") } } -export class TextAreaController_serializer { - public static write(buffer: SerializerBase, value: TextAreaController): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): TextAreaController { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return TextAreaControllerInternal.fromPtr(ptr) - } -} -export class TextAreaOptions_serializer { - public static write(buffer: SerializerBase, value: TextAreaOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForPlaceholder = value.placeholder - if (valueHolderForPlaceholder !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForPlaceholderTmpValue = valueHolderForPlaceholder! - if (valueHolderForPlaceholderTmpValue instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForPlaceholderTmpValueForIdx0 = valueHolderForPlaceholderTmpValue as string - valueSerializer.writeString(valueHolderForPlaceholderTmpValueForIdx0) - } else if (valueHolderForPlaceholderTmpValue instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForPlaceholderTmpValueForIdx1 = valueHolderForPlaceholderTmpValue as Resource - Resource_serializer.write(valueSerializer, valueHolderForPlaceholderTmpValueForIdx1) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForText = value.text - if (valueHolderForText !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForTextTmpValue = valueHolderForText! - if (valueHolderForTextTmpValue instanceof ResourceStr) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTextTmpValueForIdx0 = valueHolderForTextTmpValue as ResourceStr - if (valueHolderForTextTmpValueForIdx0 instanceof string) { - valueSerializer.writeInt8((0).toChar()) - const valueHolderForTextTmpValueForIdx0ForIdx0 = valueHolderForTextTmpValueForIdx0 as string - valueSerializer.writeString(valueHolderForTextTmpValueForIdx0ForIdx0) - } else if (valueHolderForTextTmpValueForIdx0 instanceof Resource) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTextTmpValueForIdx0ForIdx1 = valueHolderForTextTmpValueForIdx0 as Resource - Resource_serializer.write(valueSerializer, valueHolderForTextTmpValueForIdx0ForIdx1) - } - } else if (valueHolderForTextTmpValue instanceof Bindable) { - valueSerializer.writeInt8((1).toChar()) - const valueHolderForTextTmpValueForIdx1 = valueHolderForTextTmpValue as Bindable - Bindable_Arkui_Component_Units_ResourceStr_serializer.write(valueSerializer, valueHolderForTextTmpValueForIdx1) - } else if (valueHolderForTextTmpValue instanceof Bindable) { - valueSerializer.writeInt8((2).toChar()) - const valueHolderForTextTmpValueForIdx2 = valueHolderForTextTmpValue as Bindable - Bindable_Global_Resource_Resource_serializer.write(valueSerializer, valueHolderForTextTmpValueForIdx2) - } else if (valueHolderForTextTmpValue instanceof Bindable) { - valueSerializer.writeInt8((3).toChar()) - const valueHolderForTextTmpValueForIdx3 = valueHolderForTextTmpValue as Bindable - Bindable_String_serializer.write(valueSerializer, valueHolderForTextTmpValueForIdx3) - } - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForController = value.controller - if (valueHolderForController !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForControllerTmpValue = valueHolderForController! - TextAreaController_serializer.write(valueSerializer, valueHolderForControllerTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - } - public static read(buffer: DeserializerBase): TextAreaOptions { - let valueDeserializer : DeserializerBase = buffer - const placeholderTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let placeholderTmpBuf : ResourceStr | undefined - if ((placeholderTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const placeholderTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let placeholderTmpBuf_ : string | Resource | undefined - if (placeholderTmpBuf_UnionSelector == (0).toChar()) { - placeholderTmpBuf_ = (valueDeserializer.readString() as string) - } else if (placeholderTmpBuf_UnionSelector == (1).toChar()) { - placeholderTmpBuf_ = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for placeholderTmpBuf_ has to be chosen through deserialisation.") - } - placeholderTmpBuf = (placeholderTmpBuf_ as string | Resource) - } - const placeholderTmpResult : ResourceStr | undefined = placeholderTmpBuf - const textTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let textTmpBuf : ResourceStr | Bindable | Bindable | Bindable | undefined - if ((textTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - const textTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() - let textTmpBuf_ : ResourceStr | Bindable | Bindable | Bindable | undefined - if (textTmpBuf_UnionSelector == (0).toChar()) { - const textTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() - let textTmpBuf_BufU : string | Resource | undefined - if (textTmpBuf_BufUUnionSelector == (0).toChar()) { - textTmpBuf_BufU = (valueDeserializer.readString() as string) - } else if (textTmpBuf_BufUUnionSelector == (1).toChar()) { - textTmpBuf_BufU = Resource_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for textTmpBuf_BufU has to be chosen through deserialisation.") - } - textTmpBuf_ = (textTmpBuf_BufU as string | Resource) - } else if (textTmpBuf_UnionSelector == (1).toChar()) { - textTmpBuf_ = Bindable_Arkui_Component_Units_ResourceStr_serializer.read(valueDeserializer) - } else if (textTmpBuf_UnionSelector == (2).toChar()) { - textTmpBuf_ = Bindable_Global_Resource_Resource_serializer.read(valueDeserializer) - } else if (textTmpBuf_UnionSelector == (3).toChar()) { - textTmpBuf_ = Bindable_String_serializer.read(valueDeserializer) - } else { - throw new Error("One of the branches for textTmpBuf_ has to be chosen through deserialisation.") - } - textTmpBuf = (textTmpBuf_ as ResourceStr | Bindable | Bindable | Bindable) - } - const textTmpResult : ResourceStr | Bindable | Bindable | Bindable | undefined = textTmpBuf - const controllerTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let controllerTmpBuf : TextAreaController | undefined - if ((controllerTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - controllerTmpBuf = (TextAreaController_serializer.read(valueDeserializer) as TextAreaController) - } - const controllerTmpResult : TextAreaController | undefined = controllerTmpBuf - let value : TextAreaOptions = ({placeholder: placeholderTmpResult, text: textTmpResult, controller: controllerTmpResult} as TextAreaOptions) - return value - } -} -export class TextAreaControllerInternal { - public static fromPtr(ptr: KPointer): TextAreaController { - return new TextAreaController(ptr) - } -} -export class TextAreaController extends TextContentControllerBase implements MaterializedBase { - constructor(peerPtr: KPointer) { - super(peerPtr) - } - constructor() { - this(TextAreaController.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._TextAreaController_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._TextAreaController_getFinalizer() - } - public caretPosition(value: number): void { - const value_casted = value as (number) - this.caretPosition_serialize(value_casted) - return - } - public setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { - const selectionStart_casted = selectionStart as (number) - const selectionEnd_casted = selectionEnd as (number) - const options_casted = options as (SelectionOptions | undefined) - this.setTextSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) - return - } - public stopEditing(): void { - this.stopEditing_serialize() - return - } - private caretPosition_serialize(value: number): void { - ArkUIGeneratedNativeModule._TextAreaController_caretPosition(this.peer!.ptr, value) - } - private setTextSelection_serialize(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - SelectionOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAreaController_setTextSelection(this.peer!.ptr, selectionStart, selectionEnd, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - private stopEditing_serialize(): void { - ArkUIGeneratedNativeModule._TextAreaController_stopEditing(this.peer!.ptr) - } -} diff --git a/arkoala-arkts/arkui/generated/TextClockModifier.ets b/arkoala-arkts/arkui/generated/TextClockModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..8453cdde15d6d4f28f6f5ef82a05ccfc5b87eeaf --- /dev/null +++ b/arkoala-arkts/arkui/generated/TextClockModifier.ets @@ -0,0 +1,488 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTextClockPeer, TextClockConfiguration, TextClockAttribute } from "./component/textClock" +import { CommonMethod, ShadowOptions } from "./component/common" +import { ResourceStr, ResourceColor, Length } from "./component/units" +import { Resource } from "global.resource" +import { Color, FontStyle, FontWeight } from "./component/enums" +import { intl } from "./framework/ohos.intl" +export class TextClockModifier extends CommonMethodModifier implements TextClockAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: TextClockAttribute): void { } + applyPressedAttribute(instance: TextClockAttribute): void { } + applyFocusedAttribute(instance: TextClockAttribute): void { } + applyDisabledAttribute(instance: TextClockAttribute): void { } + applySelectedAttribute(instance: TextClockAttribute): void { } + _format_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _format_0_0value?: ResourceStr | undefined + _onDateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDateChange_0_0value?: ((value: number) => void) | undefined + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: ResourceColor | undefined + _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontSize_0_0value?: Length | undefined + _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontStyle_0_0value?: FontStyle | undefined + _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontWeight_0_0value?: number | FontWeight | string | undefined + _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontFamily_0_0value?: ResourceStr | undefined + _textShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textShadow_0_0value?: ShadowOptions | Array | undefined + _fontFeature_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontFeature_0_0value?: string | undefined + _dateTimeOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _dateTimeOptions_0_0value?: intl.DateTimeOptions | undefined + applyModifierPatch(peer: ArkTextClockPeer): void { + super.applyModifierPatch(peer) + if (this._format_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._format_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFormatAttribute((this._format_0_0value as ResourceStr | undefined)); + this._format_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._format_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._format_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFormatAttribute((undefined as ResourceStr | undefined)); + } + } + } + if (this._onDateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDateChangeAttribute((this._onDateChange_0_0value as ((value: number) => void) | undefined)); + this._onDateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDateChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDateChangeAttribute((undefined as ((value: number) => void) | undefined)); + } + } + } + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontSizeAttribute((undefined as Length | undefined)); + } + } + } + if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontStyleAttribute((undefined as FontStyle | undefined)); + } + } + } + if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); + } + } + } + if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontFamilyAttribute((this._fontFamily_0_0value as ResourceStr | undefined)); + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontFamilyAttribute((undefined as ResourceStr | undefined)); + } + } + } + if (this._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextShadowAttribute((this._textShadow_0_0value as ShadowOptions | Array | undefined)); + this._textShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textShadow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextShadowAttribute((undefined as ShadowOptions | Array | undefined)); + } + } + } + if (this._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontFeature_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontFeatureAttribute((this._fontFeature_0_0value as string | undefined)); + this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontFeature_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontFeatureAttribute((undefined as string | undefined)); + } + } + } + if (this._dateTimeOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._dateTimeOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDateTimeOptionsAttribute((this._dateTimeOptions_0_0value as intl.DateTimeOptions | undefined)); + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDateTimeOptionsAttribute((undefined as intl.DateTimeOptions | undefined)); + } + } + } + } + mergeModifier(modifier: TextClockModifier): void { + super.mergeModifier(modifier) + if (modifier._format_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._format_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.format(modifier._format_0_0value); + break; + } + default: { + this.format((undefined as ResourceStr | undefined)); + } + } + } + if (modifier._onDateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDateChange(modifier._onDateChange_0_0value); + break; + } + default: { + this.onDateChange((undefined as ((value: number) => void) | undefined)); + } + } + } + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontSize(modifier._fontSize_0_0value); + break; + } + default: { + this.fontSize((undefined as Length | undefined)); + } + } + } + if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontStyle(modifier._fontStyle_0_0value); + break; + } + default: { + this.fontStyle((undefined as FontStyle | undefined)); + } + } + } + if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontWeight(modifier._fontWeight_0_0value); + break; + } + default: { + this.fontWeight((undefined as number | FontWeight | string | undefined)); + } + } + } + if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontFamily(modifier._fontFamily_0_0value); + break; + } + default: { + this.fontFamily((undefined as ResourceStr | undefined)); + } + } + } + if (modifier._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textShadow(modifier._textShadow_0_0value); + break; + } + default: { + this.textShadow((undefined as ShadowOptions | Array | undefined)); + } + } + } + if (modifier._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontFeature_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontFeature(modifier._fontFeature_0_0value); + break; + } + default: { + this.fontFeature((undefined as string | undefined)); + } + } + } + if (modifier._dateTimeOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._dateTimeOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.dateTimeOptions(modifier._dateTimeOptions_0_0value); + break; + } + default: { + this.dateTimeOptions((undefined as intl.DateTimeOptions | undefined)); + } + } + } + } + format(value: ResourceStr | undefined): this { + if (((this._format_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._format_0_flag = AttributeUpdaterFlag.UPDATE + this._format_0_0value = value + } else + { + this._format_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDateChange(value: ((value: number) => void) | undefined): this { + if (((this._onDateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDateChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onDateChange_0_0value = value + } else + { + this._onDateChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontColor(value: ResourceColor | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontSize(value: Length | undefined): this { + if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fontSize_0_0value = value + } else + { + this._fontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontStyle(value: FontStyle | undefined): this { + if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._fontStyle_0_0value = value + } else + { + this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontWeight(value: number | FontWeight | string | undefined): this { + if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._fontWeight_0_0value = value + } else + { + this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontFamily(value: ResourceStr | undefined): this { + if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE + this._fontFamily_0_0value = value + } else + { + this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textShadow(value: ShadowOptions | Array | undefined): this { + if (((this._textShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textShadow_0_flag = AttributeUpdaterFlag.UPDATE + this._textShadow_0_0value = value + } else + { + this._textShadow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontFeature(value: string | undefined): this { + if (((this._fontFeature_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fontFeature_0_0value) !== (value))) + { + this._fontFeature_0_flag = AttributeUpdaterFlag.UPDATE + this._fontFeature_0_0value = value + } else + { + this._fontFeature_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + dateTimeOptions(value: intl.DateTimeOptions | undefined): this { + if (((this._dateTimeOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._dateTimeOptions_0_0value = value + } else + { + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/TextInputModifier.ets b/arkoala-arkts/arkui/generated/TextInputModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..14224d15a642d988945d92d628462b7519ce93cf --- /dev/null +++ b/arkoala-arkts/arkui/generated/TextInputModifier.ets @@ -0,0 +1,3181 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTextInputPeer, InputType, ContentType, EnterKeyType, OnSubmitCallback, SubmitEvent, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputAttribute } from "./component/textInput" +import { CommonMethod, TextDecorationOptions, InputCounterOptions } from "./component/common" +import { ResourceColor, Dimension, Font, Length, ResourceStr } from "./component/units" +import { Color, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, EllipsisMode } from "./component/enums" +import { Resource } from "global.resource" +import { EditableTextOnChangeCallback, PreviewText, TextChangeOptions, CaretStyle, InsertValue, DeleteValue, EditMenuOptions, AutoCapitalizationMode, EditableTextChangeValue, KeyboardAppearance } from "./component/textCommon" +import { PasteEvent, KeyboardOptions } from "./component/richEditor" +import { CustomBuilder } from "./component/builder" +import { CancelButtonOptions, CancelButtonSymbolOptions } from "./component/search" +export class TextInputModifier extends CommonMethodModifier implements TextInputAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: TextInputAttribute): void { } + applyPressedAttribute(instance: TextInputAttribute): void { } + applyFocusedAttribute(instance: TextInputAttribute): void { } + applyDisabledAttribute(instance: TextInputAttribute): void { } + applySelectedAttribute(instance: TextInputAttribute): void { } + _type_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _type_0_0value?: InputType | undefined + _contentType_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _contentType_0_0value?: ContentType | undefined + _placeholderColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _placeholderColor_0_0value?: ResourceColor | undefined + _textOverflow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textOverflow_0_0value?: TextOverflow | undefined + _textIndent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textIndent_0_0value?: Dimension | undefined + _placeholderFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _placeholderFont_0_0value?: Font | undefined + _enterKeyType_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enterKeyType_0_0value?: EnterKeyType | undefined + _caretColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _caretColor_0_0value?: ResourceColor | undefined + _onEditChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onEditChange_0_0value?: ((value0: boolean) => void) | undefined + _onSubmit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSubmit_0_0value?: OnSubmitCallback | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: EditableTextOnChangeCallback | undefined + _onTextSelectionChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTextSelectionChange_0_0value?: OnTextSelectionChangeCallback | undefined + _onContentScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onContentScroll_0_0value?: OnContentScrollCallback | undefined + _maxLength_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxLength_0_0value?: number | undefined + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: ResourceColor | undefined + _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontSize_0_0value?: Length | undefined + _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontStyle_0_0value?: FontStyle | undefined + _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontWeight_0_0value?: number | FontWeight | ResourceStr | undefined + _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontFamily_0_0value?: ResourceStr | undefined + _onCopy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onCopy_0_0value?: ((value0: string) => void) | undefined + _onCut_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onCut_0_0value?: ((value0: string) => void) | undefined + _onPaste_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPaste_0_0value?: OnPasteCallback | undefined + _copyOption_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _copyOption_0_0value?: CopyOptions | undefined + _showPasswordIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showPasswordIcon_0_0value?: boolean | undefined + _textAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textAlign_0_0value?: TextAlign | undefined + _style_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _style_0_0value?: TextInputStyle | TextContentStyle | undefined + _caretStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _caretStyle_0_0value?: CaretStyle | undefined + _selectedBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedBackgroundColor_0_0value?: ResourceColor | undefined + _caretPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _caretPosition_0_0value?: number | undefined + _enableKeyboardOnFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableKeyboardOnFocus_0_0value?: boolean | undefined + _passwordIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _passwordIcon_0_0value?: PasswordIcon | undefined + _showError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showError_0_0value?: ResourceStr | undefined + _showUnit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showUnit_0_0value?: CustomBuilder | undefined + _showUnderline_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showUnderline_0_0value?: boolean | undefined + _underlineColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _underlineColor_0_0value?: ResourceColor | UnderlineColor | undefined + _selectionMenuHidden_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectionMenuHidden_0_0value?: boolean | undefined + _barState_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _barState_0_0value?: BarState | undefined + _maxLines_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxLines_0_0value?: number | undefined + _wordBreak_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _wordBreak_0_0value?: WordBreak | undefined + _lineBreakStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _lineBreakStrategy_0_0value?: LineBreakStrategy | undefined + _cancelButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cancelButton_0_0value?: CancelButtonOptions | CancelButtonSymbolOptions | undefined + _selectAll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectAll_0_0value?: boolean | undefined + _minFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minFontSize_0_0value?: number | string | Resource | undefined + _maxFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxFontSize_0_0value?: number | string | Resource | undefined + _minFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minFontScale_0_0value?: number | Resource | undefined + _maxFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _maxFontScale_0_0value?: number | Resource | undefined + _heightAdaptivePolicy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _heightAdaptivePolicy_0_0value?: TextHeightAdaptivePolicy | undefined + _enableAutoFill_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableAutoFill_0_0value?: boolean | undefined + _decoration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _decoration_0_0value?: TextDecorationOptions | undefined + _letterSpacing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _letterSpacing_0_0value?: number | string | Resource | undefined + _lineHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _lineHeight_0_0value?: number | string | Resource | undefined + _passwordRules_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _passwordRules_0_0value?: string | undefined + _fontFeature_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontFeature_0_0value?: string | undefined + _showPassword_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showPassword_0_0value?: boolean | undefined + _onSecurityStateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSecurityStateChange_0_0value?: ((value0: boolean) => void) | undefined + _onWillInsert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillInsert_0_0value?: ((value0: InsertValue) => boolean) | undefined + _onDidInsert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDidInsert_0_0value?: ((value0: InsertValue) => void) | undefined + _onWillDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillDelete_0_0value?: ((value0: DeleteValue) => boolean) | undefined + _onDidDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDidDelete_0_0value?: ((value0: DeleteValue) => void) | undefined + _editMenuOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _editMenuOptions_0_0value?: EditMenuOptions | undefined + _enablePreviewText_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enablePreviewText_0_0value?: boolean | undefined + _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableHapticFeedback_0_0value?: boolean | undefined + _autoCapitalizationMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _autoCapitalizationMode_0_0value?: AutoCapitalizationMode | undefined + _halfLeading_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _halfLeading_0_0value?: boolean | undefined + _ellipsisMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _ellipsisMode_0_0value?: EllipsisMode | undefined + _stopBackPress_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _stopBackPress_0_0value?: boolean | undefined + _onWillChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillChange_0_0value?: ((value0: EditableTextChangeValue) => boolean) | undefined + _keyboardAppearance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _keyboardAppearance_0_0value?: KeyboardAppearance | undefined + _inputFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _inputFilter_0_0value?: ResourceStr | undefined + _inputFilter_0_1value?: ((value0: string) => void) | undefined + _customKeyboard_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _customKeyboard_0_0value?: CustomBuilder | undefined + _customKeyboard_0_1value?: KeyboardOptions | undefined + _showCounter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _showCounter_0_0value?: boolean | undefined + _showCounter_0_1value?: InputCounterOptions | undefined + applyModifierPatch(peer: ArkTextInputPeer): void { + super.applyModifierPatch(peer) + if (this._type_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._type_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTypeAttribute((this._type_0_0value as InputType | undefined)); + this._type_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._type_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._type_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTypeAttribute((undefined as InputType | undefined)); + } + } + } + if (this._contentType_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._contentType_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setContentTypeAttribute((this._contentType_0_0value as ContentType | undefined)); + this._contentType_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._contentType_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._contentType_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setContentTypeAttribute((undefined as ContentType | undefined)); + } + } + } + if (this._placeholderColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._placeholderColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPlaceholderColorAttribute((this._placeholderColor_0_0value as ResourceColor | undefined)); + this._placeholderColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._placeholderColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._placeholderColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPlaceholderColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._textOverflow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textOverflow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextOverflowAttribute((this._textOverflow_0_0value as TextOverflow | undefined)); + this._textOverflow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textOverflow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textOverflow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextOverflowAttribute((undefined as TextOverflow | undefined)); + } + } + } + if (this._textIndent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textIndent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextIndentAttribute((this._textIndent_0_0value as Dimension | undefined)); + this._textIndent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textIndent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textIndent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextIndentAttribute((undefined as Dimension | undefined)); + } + } + } + if (this._placeholderFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._placeholderFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPlaceholderFontAttribute((this._placeholderFont_0_0value as Font | undefined)); + this._placeholderFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._placeholderFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._placeholderFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPlaceholderFontAttribute((undefined as Font | undefined)); + } + } + } + if (this._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enterKeyType_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnterKeyTypeAttribute((this._enterKeyType_0_0value as EnterKeyType | undefined)); + this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enterKeyType_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnterKeyTypeAttribute((undefined as EnterKeyType | undefined)); + } + } + } + if (this._caretColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._caretColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCaretColorAttribute((this._caretColor_0_0value as ResourceColor | undefined)); + this._caretColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._caretColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._caretColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCaretColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._onEditChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onEditChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnEditChangeAttribute((this._onEditChange_0_0value as ((value0: boolean) => void) | undefined)); + this._onEditChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onEditChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onEditChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnEditChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (this._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSubmit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSubmitAttribute((this._onSubmit_0_0value as OnSubmitCallback | undefined)); + this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSubmit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSubmitAttribute((undefined as OnSubmitCallback | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as EditableTextOnChangeCallback | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as EditableTextOnChangeCallback | undefined)); + } + } + } + if (this._onTextSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTextSelectionChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTextSelectionChangeAttribute((this._onTextSelectionChange_0_0value as OnTextSelectionChangeCallback | undefined)); + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTextSelectionChangeAttribute((undefined as OnTextSelectionChangeCallback | undefined)); + } + } + } + if (this._onContentScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onContentScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnContentScrollAttribute((this._onContentScroll_0_0value as OnContentScrollCallback | undefined)); + this._onContentScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onContentScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onContentScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnContentScrollAttribute((undefined as OnContentScrollCallback | undefined)); + } + } + } + if (this._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxLength_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxLengthAttribute((this._maxLength_0_0value as number | undefined)); + this._maxLength_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxLength_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxLength_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxLengthAttribute((undefined as number | undefined)); + } + } + } + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontSizeAttribute((undefined as Length | undefined)); + } + } + } + if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontStyleAttribute((undefined as FontStyle | undefined)); + } + } + } + if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | ResourceStr | undefined)); + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontWeightAttribute((undefined as number | FontWeight | ResourceStr | undefined)); + } + } + } + if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontFamilyAttribute((this._fontFamily_0_0value as ResourceStr | undefined)); + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontFamilyAttribute((undefined as ResourceStr | undefined)); + } + } + } + if (this._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onCopy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCopyAttribute((this._onCopy_0_0value as ((value0: string) => void) | undefined)); + this._onCopy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onCopy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onCopy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCopyAttribute((undefined as ((value0: string) => void) | undefined)); + } + } + } + if (this._onCut_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onCut_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnCutAttribute((this._onCut_0_0value as ((value0: string) => void) | undefined)); + this._onCut_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onCut_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onCut_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnCutAttribute((undefined as ((value0: string) => void) | undefined)); + } + } + } + if (this._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPaste_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPasteAttribute((this._onPaste_0_0value as OnPasteCallback | undefined)); + this._onPaste_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPaste_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPaste_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPasteAttribute((undefined as OnPasteCallback | undefined)); + } + } + } + if (this._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._copyOption_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCopyOptionAttribute((this._copyOption_0_0value as CopyOptions | undefined)); + this._copyOption_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._copyOption_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._copyOption_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCopyOptionAttribute((undefined as CopyOptions | undefined)); + } + } + } + if (this._showPasswordIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showPasswordIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowPasswordIconAttribute((this._showPasswordIcon_0_0value as boolean | undefined)); + this._showPasswordIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showPasswordIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showPasswordIcon_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowPasswordIconAttribute((undefined as boolean | undefined)); + } + } + } + if (this._textAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextAlignAttribute((this._textAlign_0_0value as TextAlign | undefined)); + this._textAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textAlign_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textAlign_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextAlignAttribute((undefined as TextAlign | undefined)); + } + } + } + if (this._style_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._style_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStyleAttribute((this._style_0_0value as TextInputStyle | TextContentStyle | undefined)); + this._style_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._style_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._style_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStyleAttribute((undefined as TextInputStyle | TextContentStyle | undefined)); + } + } + } + if (this._caretStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._caretStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCaretStyleAttribute((this._caretStyle_0_0value as CaretStyle | undefined)); + this._caretStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._caretStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._caretStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCaretStyleAttribute((undefined as CaretStyle | undefined)); + } + } + } + if (this._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedBackgroundColorAttribute((this._selectedBackgroundColor_0_0value as ResourceColor | undefined)); + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedBackgroundColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._caretPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._caretPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCaretPositionAttribute((this._caretPosition_0_0value as number | undefined)); + this._caretPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._caretPosition_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._caretPosition_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCaretPositionAttribute((undefined as number | undefined)); + } + } + } + if (this._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableKeyboardOnFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableKeyboardOnFocusAttribute((this._enableKeyboardOnFocus_0_0value as boolean | undefined)); + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableKeyboardOnFocusAttribute((undefined as boolean | undefined)); + } + } + } + if (this._passwordIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._passwordIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPasswordIconAttribute((this._passwordIcon_0_0value as PasswordIcon | undefined)); + this._passwordIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._passwordIcon_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._passwordIcon_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPasswordIconAttribute((undefined as PasswordIcon | undefined)); + } + } + } + if (this._showError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showError_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowErrorAttribute((this._showError_0_0value as ResourceStr | undefined)); + this._showError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showError_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowErrorAttribute((undefined as ResourceStr | undefined)); + } + } + } + if (this._showUnit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showUnit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowUnitAttribute((this._showUnit_0_0value as CustomBuilder | undefined)); + this._showUnit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showUnit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showUnit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowUnitAttribute((undefined as CustomBuilder | undefined)); + } + } + } + if (this._showUnderline_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showUnderline_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowUnderlineAttribute((this._showUnderline_0_0value as boolean | undefined)); + this._showUnderline_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showUnderline_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showUnderline_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowUnderlineAttribute((undefined as boolean | undefined)); + } + } + } + if (this._underlineColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._underlineColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setUnderlineColorAttribute((this._underlineColor_0_0value as ResourceColor | UnderlineColor | undefined)); + this._underlineColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._underlineColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._underlineColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setUnderlineColorAttribute((undefined as ResourceColor | UnderlineColor | undefined)); + } + } + } + if (this._selectionMenuHidden_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectionMenuHidden_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectionMenuHiddenAttribute((this._selectionMenuHidden_0_0value as boolean | undefined)); + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectionMenuHiddenAttribute((undefined as boolean | undefined)); + } + } + } + if (this._barState_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._barState_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBarStateAttribute((this._barState_0_0value as BarState | undefined)); + this._barState_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._barState_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._barState_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBarStateAttribute((undefined as BarState | undefined)); + } + } + } + if (this._maxLines_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxLines_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxLinesAttribute((this._maxLines_0_0value as number | undefined)); + this._maxLines_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxLines_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxLines_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxLinesAttribute((undefined as number | undefined)); + } + } + } + if (this._wordBreak_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._wordBreak_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setWordBreakAttribute((this._wordBreak_0_0value as WordBreak | undefined)); + this._wordBreak_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._wordBreak_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._wordBreak_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setWordBreakAttribute((undefined as WordBreak | undefined)); + } + } + } + if (this._lineBreakStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._lineBreakStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLineBreakStrategyAttribute((this._lineBreakStrategy_0_0value as LineBreakStrategy | undefined)); + this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLineBreakStrategyAttribute((undefined as LineBreakStrategy | undefined)); + } + } + } + if (this._cancelButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cancelButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCancelButtonAttribute((this._cancelButton_0_0value as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); + this._cancelButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cancelButton_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cancelButton_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCancelButtonAttribute((undefined as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); + } + } + } + if (this._selectAll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectAll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectAllAttribute((this._selectAll_0_0value as boolean | undefined)); + this._selectAll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectAll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectAll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectAllAttribute((undefined as boolean | undefined)); + } + } + } + if (this._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinFontSizeAttribute((this._minFontSize_0_0value as number | string | Resource | undefined)); + this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minFontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinFontSizeAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._maxFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxFontSizeAttribute((this._maxFontSize_0_0value as number | string | Resource | undefined)); + this._maxFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxFontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxFontSizeAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinFontScaleAttribute((this._minFontScale_0_0value as number | Resource | undefined)); + this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minFontScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinFontScaleAttribute((undefined as number | Resource | undefined)); + } + } + } + if (this._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._maxFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMaxFontScaleAttribute((this._maxFontScale_0_0value as number | Resource | undefined)); + this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._maxFontScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMaxFontScaleAttribute((undefined as number | Resource | undefined)); + } + } + } + if (this._heightAdaptivePolicy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._heightAdaptivePolicy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHeightAdaptivePolicyAttribute((this._heightAdaptivePolicy_0_0value as TextHeightAdaptivePolicy | undefined)); + this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHeightAdaptivePolicyAttribute((undefined as TextHeightAdaptivePolicy | undefined)); + } + } + } + if (this._enableAutoFill_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableAutoFill_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableAutoFillAttribute((this._enableAutoFill_0_0value as boolean | undefined)); + this._enableAutoFill_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableAutoFill_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableAutoFill_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableAutoFillAttribute((undefined as boolean | undefined)); + } + } + } + if (this._decoration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._decoration_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDecorationAttribute((this._decoration_0_0value as TextDecorationOptions | undefined)); + this._decoration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._decoration_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._decoration_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDecorationAttribute((undefined as TextDecorationOptions | undefined)); + } + } + } + if (this._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._letterSpacing_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLetterSpacingAttribute((this._letterSpacing_0_0value as number | string | Resource | undefined)); + this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._letterSpacing_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLetterSpacingAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._lineHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLineHeightAttribute((this._lineHeight_0_0value as number | string | Resource | undefined)); + this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._lineHeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLineHeightAttribute((undefined as number | string | Resource | undefined)); + } + } + } + if (this._passwordRules_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._passwordRules_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPasswordRulesAttribute((this._passwordRules_0_0value as string | undefined)); + this._passwordRules_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._passwordRules_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._passwordRules_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPasswordRulesAttribute((undefined as string | undefined)); + } + } + } + if (this._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontFeature_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontFeatureAttribute((this._fontFeature_0_0value as string | undefined)); + this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontFeature_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontFeatureAttribute((undefined as string | undefined)); + } + } + } + if (this._showPassword_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showPassword_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowPasswordAttribute((this._showPassword_0_0value as boolean | undefined)); + this._showPassword_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showPassword_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showPassword_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowPasswordAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onSecurityStateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSecurityStateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSecurityStateChangeAttribute((this._onSecurityStateChange_0_0value as ((value0: boolean) => void) | undefined)); + this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSecurityStateChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (this._onWillInsert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillInsert_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillInsertAttribute((this._onWillInsert_0_0value as ((value0: InsertValue) => boolean) | undefined)); + this._onWillInsert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillInsert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillInsert_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillInsertAttribute((undefined as ((value0: InsertValue) => boolean) | undefined)); + } + } + } + if (this._onDidInsert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDidInsert_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDidInsertAttribute((this._onDidInsert_0_0value as ((value0: InsertValue) => void) | undefined)); + this._onDidInsert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDidInsert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDidInsert_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDidInsertAttribute((undefined as ((value0: InsertValue) => void) | undefined)); + } + } + } + if (this._onWillDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillDeleteAttribute((this._onWillDelete_0_0value as ((value0: DeleteValue) => boolean) | undefined)); + this._onWillDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillDelete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillDeleteAttribute((undefined as ((value0: DeleteValue) => boolean) | undefined)); + } + } + } + if (this._onDidDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDidDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDidDeleteAttribute((this._onDidDelete_0_0value as ((value0: DeleteValue) => void) | undefined)); + this._onDidDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDidDelete_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDidDelete_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDidDeleteAttribute((undefined as ((value0: DeleteValue) => void) | undefined)); + } + } + } + if (this._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._editMenuOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEditMenuOptionsAttribute((this._editMenuOptions_0_0value as EditMenuOptions | undefined)); + this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEditMenuOptionsAttribute((undefined as EditMenuOptions | undefined)); + } + } + } + if (this._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enablePreviewText_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnablePreviewTextAttribute((this._enablePreviewText_0_0value as boolean | undefined)); + this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnablePreviewTextAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); + } + } + } + if (this._autoCapitalizationMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._autoCapitalizationMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAutoCapitalizationModeAttribute((this._autoCapitalizationMode_0_0value as AutoCapitalizationMode | undefined)); + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAutoCapitalizationModeAttribute((undefined as AutoCapitalizationMode | undefined)); + } + } + } + if (this._halfLeading_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._halfLeading_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHalfLeadingAttribute((this._halfLeading_0_0value as boolean | undefined)); + this._halfLeading_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._halfLeading_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._halfLeading_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHalfLeadingAttribute((undefined as boolean | undefined)); + } + } + } + if (this._ellipsisMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._ellipsisMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEllipsisModeAttribute((this._ellipsisMode_0_0value as EllipsisMode | undefined)); + this._ellipsisMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._ellipsisMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._ellipsisMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEllipsisModeAttribute((undefined as EllipsisMode | undefined)); + } + } + } + if (this._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._stopBackPress_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setStopBackPressAttribute((this._stopBackPress_0_0value as boolean | undefined)); + this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._stopBackPress_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setStopBackPressAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillChangeAttribute((this._onWillChange_0_0value as ((value0: EditableTextChangeValue) => boolean) | undefined)); + this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillChangeAttribute((undefined as ((value0: EditableTextChangeValue) => boolean) | undefined)); + } + } + } + if (this._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._keyboardAppearance_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setKeyboardAppearanceAttribute((this._keyboardAppearance_0_0value as KeyboardAppearance | undefined)); + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setKeyboardAppearanceAttribute((undefined as KeyboardAppearance | undefined)); + } + } + } + if (this._inputFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._inputFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setInputFilterAttribute((this._inputFilter_0_0value as ResourceStr | undefined), (this._inputFilter_0_1value as ((value0: string) => void) | undefined)); + this._inputFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._inputFilter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._inputFilter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setInputFilterAttribute((undefined as ResourceStr | undefined), (undefined as ((value0: string) => void) | undefined | undefined)); + } + } + } + if (this._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._customKeyboard_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCustomKeyboardAttribute((this._customKeyboard_0_0value as CustomBuilder | undefined), (this._customKeyboard_0_1value as KeyboardOptions | undefined)); + this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._customKeyboard_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCustomKeyboardAttribute((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); + } + } + } + if (this._showCounter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._showCounter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setShowCounterAttribute((this._showCounter_0_0value as boolean | undefined), (this._showCounter_0_1value as InputCounterOptions | undefined)); + this._showCounter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._showCounter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._showCounter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setShowCounterAttribute((undefined as boolean | undefined), (undefined as InputCounterOptions | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: TextInputModifier): void { + super.mergeModifier(modifier) + if (modifier._type_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._type_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.type(modifier._type_0_0value); + break; + } + default: { + this.type((undefined as InputType | undefined)); + } + } + } + if (modifier._contentType_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._contentType_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.contentType(modifier._contentType_0_0value); + break; + } + default: { + this.contentType((undefined as ContentType | undefined)); + } + } + } + if (modifier._placeholderColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._placeholderColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.placeholderColor(modifier._placeholderColor_0_0value); + break; + } + default: { + this.placeholderColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._textOverflow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textOverflow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textOverflow(modifier._textOverflow_0_0value); + break; + } + default: { + this.textOverflow((undefined as TextOverflow | undefined)); + } + } + } + if (modifier._textIndent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textIndent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textIndent(modifier._textIndent_0_0value); + break; + } + default: { + this.textIndent((undefined as Dimension | undefined)); + } + } + } + if (modifier._placeholderFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._placeholderFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.placeholderFont(modifier._placeholderFont_0_0value); + break; + } + default: { + this.placeholderFont((undefined as Font | undefined)); + } + } + } + if (modifier._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enterKeyType_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enterKeyType(modifier._enterKeyType_0_0value); + break; + } + default: { + this.enterKeyType((undefined as EnterKeyType | undefined)); + } + } + } + if (modifier._caretColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._caretColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.caretColor(modifier._caretColor_0_0value); + break; + } + default: { + this.caretColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._onEditChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onEditChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onEditChange(modifier._onEditChange_0_0value); + break; + } + default: { + this.onEditChange((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (modifier._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSubmit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSubmit(modifier._onSubmit_0_0value); + break; + } + default: { + this.onSubmit((undefined as OnSubmitCallback | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as EditableTextOnChangeCallback | undefined)); + } + } + } + if (modifier._onTextSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTextSelectionChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTextSelectionChange(modifier._onTextSelectionChange_0_0value); + break; + } + default: { + this.onTextSelectionChange((undefined as OnTextSelectionChangeCallback | undefined)); + } + } + } + if (modifier._onContentScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onContentScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onContentScroll(modifier._onContentScroll_0_0value); + break; + } + default: { + this.onContentScroll((undefined as OnContentScrollCallback | undefined)); + } + } + } + if (modifier._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxLength_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxLength(modifier._maxLength_0_0value); + break; + } + default: { + this.maxLength((undefined as number | undefined)); + } + } + } + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontSize(modifier._fontSize_0_0value); + break; + } + default: { + this.fontSize((undefined as Length | undefined)); + } + } + } + if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontStyle(modifier._fontStyle_0_0value); + break; + } + default: { + this.fontStyle((undefined as FontStyle | undefined)); + } + } + } + if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontWeight(modifier._fontWeight_0_0value); + break; + } + default: { + this.fontWeight((undefined as number | FontWeight | ResourceStr | undefined)); + } + } + } + if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontFamily(modifier._fontFamily_0_0value); + break; + } + default: { + this.fontFamily((undefined as ResourceStr | undefined)); + } + } + } + if (modifier._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onCopy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onCopy(modifier._onCopy_0_0value); + break; + } + default: { + this.onCopy((undefined as ((value0: string) => void) | undefined)); + } + } + } + if (modifier._onCut_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onCut_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onCut(modifier._onCut_0_0value); + break; + } + default: { + this.onCut((undefined as ((value0: string) => void) | undefined)); + } + } + } + if (modifier._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPaste_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPaste(modifier._onPaste_0_0value); + break; + } + default: { + this.onPaste((undefined as OnPasteCallback | undefined)); + } + } + } + if (modifier._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._copyOption_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.copyOption(modifier._copyOption_0_0value); + break; + } + default: { + this.copyOption((undefined as CopyOptions | undefined)); + } + } + } + if (modifier._showPasswordIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showPasswordIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showPasswordIcon(modifier._showPasswordIcon_0_0value); + break; + } + default: { + this.showPasswordIcon((undefined as boolean | undefined)); + } + } + } + if (modifier._textAlign_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textAlign_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textAlign(modifier._textAlign_0_0value); + break; + } + default: { + this.textAlign((undefined as TextAlign | undefined)); + } + } + } + if (modifier._style_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._style_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.style(modifier._style_0_0value); + break; + } + default: { + this.style((undefined as TextInputStyle | TextContentStyle | undefined)); + } + } + } + if (modifier._caretStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._caretStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.caretStyle(modifier._caretStyle_0_0value); + break; + } + default: { + this.caretStyle((undefined as CaretStyle | undefined)); + } + } + } + if (modifier._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedBackgroundColor(modifier._selectedBackgroundColor_0_0value); + break; + } + default: { + this.selectedBackgroundColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._caretPosition_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._caretPosition_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.caretPosition(modifier._caretPosition_0_0value); + break; + } + default: { + this.caretPosition((undefined as number | undefined)); + } + } + } + if (modifier._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableKeyboardOnFocus_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableKeyboardOnFocus(modifier._enableKeyboardOnFocus_0_0value); + break; + } + default: { + this.enableKeyboardOnFocus((undefined as boolean | undefined)); + } + } + } + if (modifier._passwordIcon_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._passwordIcon_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.passwordIcon(modifier._passwordIcon_0_0value); + break; + } + default: { + this.passwordIcon((undefined as PasswordIcon | undefined)); + } + } + } + if (modifier._showError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showError_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showError(modifier._showError_0_0value); + break; + } + default: { + this.showError((undefined as ResourceStr | undefined)); + } + } + } + if (modifier._showUnit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showUnit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showUnit(modifier._showUnit_0_0value); + break; + } + default: { + this.showUnit((undefined as CustomBuilder | undefined)); + } + } + } + if (modifier._showUnderline_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showUnderline_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showUnderline(modifier._showUnderline_0_0value); + break; + } + default: { + this.showUnderline((undefined as boolean | undefined)); + } + } + } + if (modifier._underlineColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._underlineColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.underlineColor(modifier._underlineColor_0_0value); + break; + } + default: { + this.underlineColor((undefined as ResourceColor | UnderlineColor | undefined)); + } + } + } + if (modifier._selectionMenuHidden_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectionMenuHidden_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectionMenuHidden(modifier._selectionMenuHidden_0_0value); + break; + } + default: { + this.selectionMenuHidden((undefined as boolean | undefined)); + } + } + } + if (modifier._barState_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._barState_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.barState(modifier._barState_0_0value); + break; + } + default: { + this.barState((undefined as BarState | undefined)); + } + } + } + if (modifier._maxLines_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxLines_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxLines(modifier._maxLines_0_0value); + break; + } + default: { + this.maxLines((undefined as number | undefined)); + } + } + } + if (modifier._wordBreak_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._wordBreak_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.wordBreak(modifier._wordBreak_0_0value); + break; + } + default: { + this.wordBreak((undefined as WordBreak | undefined)); + } + } + } + if (modifier._lineBreakStrategy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._lineBreakStrategy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.lineBreakStrategy(modifier._lineBreakStrategy_0_0value); + break; + } + default: { + this.lineBreakStrategy((undefined as LineBreakStrategy | undefined)); + } + } + } + if (modifier._cancelButton_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cancelButton_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cancelButton(modifier._cancelButton_0_0value); + break; + } + default: { + this.cancelButton((undefined as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); + } + } + } + if (modifier._selectAll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectAll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectAll(modifier._selectAll_0_0value); + break; + } + default: { + this.selectAll((undefined as boolean | undefined)); + } + } + } + if (modifier._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minFontSize(modifier._minFontSize_0_0value); + break; + } + default: { + this.minFontSize((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._maxFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxFontSize(modifier._maxFontSize_0_0value); + break; + } + default: { + this.maxFontSize((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minFontScale(modifier._minFontScale_0_0value); + break; + } + default: { + this.minFontScale((undefined as number | Resource | undefined)); + } + } + } + if (modifier._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._maxFontScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.maxFontScale(modifier._maxFontScale_0_0value); + break; + } + default: { + this.maxFontScale((undefined as number | Resource | undefined)); + } + } + } + if (modifier._heightAdaptivePolicy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._heightAdaptivePolicy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.heightAdaptivePolicy(modifier._heightAdaptivePolicy_0_0value); + break; + } + default: { + this.heightAdaptivePolicy((undefined as TextHeightAdaptivePolicy | undefined)); + } + } + } + if (modifier._enableAutoFill_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableAutoFill_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableAutoFill(modifier._enableAutoFill_0_0value); + break; + } + default: { + this.enableAutoFill((undefined as boolean | undefined)); + } + } + } + if (modifier._decoration_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._decoration_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.decoration(modifier._decoration_0_0value); + break; + } + default: { + this.decoration((undefined as TextDecorationOptions | undefined)); + } + } + } + if (modifier._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._letterSpacing_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.letterSpacing(modifier._letterSpacing_0_0value); + break; + } + default: { + this.letterSpacing((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._lineHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.lineHeight(modifier._lineHeight_0_0value); + break; + } + default: { + this.lineHeight((undefined as number | string | Resource | undefined)); + } + } + } + if (modifier._passwordRules_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._passwordRules_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.passwordRules(modifier._passwordRules_0_0value); + break; + } + default: { + this.passwordRules((undefined as string | undefined)); + } + } + } + if (modifier._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontFeature_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontFeature(modifier._fontFeature_0_0value); + break; + } + default: { + this.fontFeature((undefined as string | undefined)); + } + } + } + if (modifier._showPassword_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showPassword_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showPassword(modifier._showPassword_0_0value); + break; + } + default: { + this.showPassword((undefined as boolean | undefined)); + } + } + } + if (modifier._onSecurityStateChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSecurityStateChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSecurityStateChange(modifier._onSecurityStateChange_0_0value); + break; + } + default: { + this.onSecurityStateChange((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (modifier._onWillInsert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillInsert_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillInsert(modifier._onWillInsert_0_0value); + break; + } + default: { + this.onWillInsert((undefined as ((value0: InsertValue) => boolean) | undefined)); + } + } + } + if (modifier._onDidInsert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDidInsert_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDidInsert(modifier._onDidInsert_0_0value); + break; + } + default: { + this.onDidInsert((undefined as ((value0: InsertValue) => void) | undefined)); + } + } + } + if (modifier._onWillDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillDelete(modifier._onWillDelete_0_0value); + break; + } + default: { + this.onWillDelete((undefined as ((value0: DeleteValue) => boolean) | undefined)); + } + } + } + if (modifier._onDidDelete_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDidDelete_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDidDelete(modifier._onDidDelete_0_0value); + break; + } + default: { + this.onDidDelete((undefined as ((value0: DeleteValue) => void) | undefined)); + } + } + } + if (modifier._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._editMenuOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.editMenuOptions(modifier._editMenuOptions_0_0value); + break; + } + default: { + this.editMenuOptions((undefined as EditMenuOptions | undefined)); + } + } + } + if (modifier._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enablePreviewText_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enablePreviewText(modifier._enablePreviewText_0_0value); + break; + } + default: { + this.enablePreviewText((undefined as boolean | undefined)); + } + } + } + if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); + break; + } + default: { + this.enableHapticFeedback((undefined as boolean | undefined)); + } + } + } + if (modifier._autoCapitalizationMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._autoCapitalizationMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.autoCapitalizationMode(modifier._autoCapitalizationMode_0_0value); + break; + } + default: { + this.autoCapitalizationMode((undefined as AutoCapitalizationMode | undefined)); + } + } + } + if (modifier._halfLeading_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._halfLeading_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.halfLeading(modifier._halfLeading_0_0value); + break; + } + default: { + this.halfLeading((undefined as boolean | undefined)); + } + } + } + if (modifier._ellipsisMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._ellipsisMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.ellipsisMode(modifier._ellipsisMode_0_0value); + break; + } + default: { + this.ellipsisMode((undefined as EllipsisMode | undefined)); + } + } + } + if (modifier._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._stopBackPress_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.stopBackPress(modifier._stopBackPress_0_0value); + break; + } + default: { + this.stopBackPress((undefined as boolean | undefined)); + } + } + } + if (modifier._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillChange(modifier._onWillChange_0_0value); + break; + } + default: { + this.onWillChange((undefined as ((value0: EditableTextChangeValue) => boolean) | undefined)); + } + } + } + if (modifier._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._keyboardAppearance_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.keyboardAppearance(modifier._keyboardAppearance_0_0value); + break; + } + default: { + this.keyboardAppearance((undefined as KeyboardAppearance | undefined)); + } + } + } + if (modifier._inputFilter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._inputFilter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.inputFilter(modifier._inputFilter_0_0value, modifier._inputFilter_0_1value); + break; + } + default: { + this.inputFilter((undefined as ResourceStr | undefined), (undefined as ((value0: string) => void) | undefined | undefined)); + } + } + } + if (modifier._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._customKeyboard_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.customKeyboard(modifier._customKeyboard_0_0value, modifier._customKeyboard_0_1value); + break; + } + default: { + this.customKeyboard((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); + } + } + } + if (modifier._showCounter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._showCounter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.showCounter(modifier._showCounter_0_0value, modifier._showCounter_0_1value); + break; + } + default: { + this.showCounter((undefined as boolean | undefined), (undefined as InputCounterOptions | undefined | undefined)); + } + } + } + } + type(value: InputType | undefined): this { + if (((this._type_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._type_0_flag = AttributeUpdaterFlag.UPDATE + this._type_0_0value = value + } else + { + this._type_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + contentType(value: ContentType | undefined): this { + if (((this._contentType_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._contentType_0_flag = AttributeUpdaterFlag.UPDATE + this._contentType_0_0value = value + } else + { + this._contentType_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + placeholderColor(value: ResourceColor | undefined): this { + if (((this._placeholderColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._placeholderColor_0_flag = AttributeUpdaterFlag.UPDATE + this._placeholderColor_0_0value = value + } else + { + this._placeholderColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textOverflow(value: TextOverflow | undefined): this { + if (((this._textOverflow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textOverflow_0_flag = AttributeUpdaterFlag.UPDATE + this._textOverflow_0_0value = value + } else + { + this._textOverflow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textIndent(value: Dimension | undefined): this { + if (((this._textIndent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textIndent_0_flag = AttributeUpdaterFlag.UPDATE + this._textIndent_0_0value = value + } else + { + this._textIndent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + placeholderFont(value: Font | undefined): this { + if (((this._placeholderFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._placeholderFont_0_flag = AttributeUpdaterFlag.UPDATE + this._placeholderFont_0_0value = value + } else + { + this._placeholderFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enterKeyType(value: EnterKeyType | undefined): this { + if (((this._enterKeyType_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._enterKeyType_0_flag = AttributeUpdaterFlag.UPDATE + this._enterKeyType_0_0value = value + } else + { + this._enterKeyType_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + caretColor(value: ResourceColor | undefined): this { + if (((this._caretColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._caretColor_0_flag = AttributeUpdaterFlag.UPDATE + this._caretColor_0_0value = value + } else + { + this._caretColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onEditChange(value: ((value0: boolean) => void) | undefined): this { + if (((this._onEditChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onEditChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onEditChange_0_0value = value + } else + { + this._onEditChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSubmit(value: OnSubmitCallback | undefined): this { + if (((this._onSubmit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSubmit_0_flag = AttributeUpdaterFlag.UPDATE + this._onSubmit_0_0value = value + } else + { + this._onSubmit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: EditableTextOnChangeCallback | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTextSelectionChange(value: OnTextSelectionChangeCallback | undefined): this { + if (((this._onTextSelectionChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onTextSelectionChange_0_0value = value + } else + { + this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onContentScroll(value: OnContentScrollCallback | undefined): this { + if (((this._onContentScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onContentScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onContentScroll_0_0value = value + } else + { + this._onContentScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxLength(value: number | undefined): this { + if (((this._maxLength_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLength_0_0value) !== (value))) + { + this._maxLength_0_flag = AttributeUpdaterFlag.UPDATE + this._maxLength_0_0value = value + } else + { + this._maxLength_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontColor(value: ResourceColor | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontSize(value: Length | undefined): this { + if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fontSize_0_0value = value + } else + { + this._fontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontStyle(value: FontStyle | undefined): this { + if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._fontStyle_0_0value = value + } else + { + this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontWeight(value: number | FontWeight | ResourceStr | undefined): this { + if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._fontWeight_0_0value = value + } else + { + this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontFamily(value: ResourceStr | undefined): this { + if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE + this._fontFamily_0_0value = value + } else + { + this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onCopy(value: ((value0: string) => void) | undefined): this { + if (((this._onCopy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onCopy_0_flag = AttributeUpdaterFlag.UPDATE + this._onCopy_0_0value = value + } else + { + this._onCopy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onCut(value: ((value0: string) => void) | undefined): this { + if (((this._onCut_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onCut_0_flag = AttributeUpdaterFlag.UPDATE + this._onCut_0_0value = value + } else + { + this._onCut_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPaste(value: OnPasteCallback | undefined): this { + if (((this._onPaste_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPaste_0_flag = AttributeUpdaterFlag.UPDATE + this._onPaste_0_0value = value + } else + { + this._onPaste_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + copyOption(value: CopyOptions | undefined): this { + if (((this._copyOption_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._copyOption_0_flag = AttributeUpdaterFlag.UPDATE + this._copyOption_0_0value = value + } else + { + this._copyOption_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + showPasswordIcon(value: boolean | undefined): this { + if (((this._showPasswordIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showPasswordIcon_0_0value) !== (value))) + { + this._showPasswordIcon_0_flag = AttributeUpdaterFlag.UPDATE + this._showPasswordIcon_0_0value = value + } else + { + this._showPasswordIcon_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textAlign(value: TextAlign | undefined): this { + if (((this._textAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textAlign_0_flag = AttributeUpdaterFlag.UPDATE + this._textAlign_0_0value = value + } else + { + this._textAlign_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + style(value: TextInputStyle | TextContentStyle | undefined): this { + if (((this._style_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._style_0_flag = AttributeUpdaterFlag.UPDATE + this._style_0_0value = value + } else + { + this._style_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + caretStyle(value: CaretStyle | undefined): this { + if (((this._caretStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._caretStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._caretStyle_0_0value = value + } else + { + this._caretStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedBackgroundColor(value: ResourceColor | undefined): this { + if (((this._selectedBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedBackgroundColor_0_0value = value + } else + { + this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + caretPosition(value: number | undefined): this { + if (((this._caretPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._caretPosition_0_0value) !== (value))) + { + this._caretPosition_0_flag = AttributeUpdaterFlag.UPDATE + this._caretPosition_0_0value = value + } else + { + this._caretPosition_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableKeyboardOnFocus(value: boolean | undefined): this { + if (((this._enableKeyboardOnFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableKeyboardOnFocus_0_0value) !== (value))) + { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.UPDATE + this._enableKeyboardOnFocus_0_0value = value + } else + { + this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + passwordIcon(value: PasswordIcon | undefined): this { + if (((this._passwordIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._passwordIcon_0_flag = AttributeUpdaterFlag.UPDATE + this._passwordIcon_0_0value = value + } else + { + this._passwordIcon_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + showError(value: ResourceStr | undefined): this { + if (((this._showError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._showError_0_flag = AttributeUpdaterFlag.UPDATE + this._showError_0_0value = value + } else + { + this._showError_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + showUnit(value: CustomBuilder | undefined): this { + if (((this._showUnit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._showUnit_0_flag = AttributeUpdaterFlag.UPDATE + this._showUnit_0_0value = value + } else + { + this._showUnit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + showUnderline(value: boolean | undefined): this { + if (((this._showUnderline_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showUnderline_0_0value) !== (value))) + { + this._showUnderline_0_flag = AttributeUpdaterFlag.UPDATE + this._showUnderline_0_0value = value + } else + { + this._showUnderline_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + underlineColor(value: ResourceColor | UnderlineColor | undefined): this { + if (((this._underlineColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._underlineColor_0_flag = AttributeUpdaterFlag.UPDATE + this._underlineColor_0_0value = value + } else + { + this._underlineColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectionMenuHidden(value: boolean | undefined): this { + if (((this._selectionMenuHidden_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectionMenuHidden_0_0value) !== (value))) + { + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.UPDATE + this._selectionMenuHidden_0_0value = value + } else + { + this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + barState(value: BarState | undefined): this { + if (((this._barState_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._barState_0_flag = AttributeUpdaterFlag.UPDATE + this._barState_0_0value = value + } else + { + this._barState_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxLines(value: number | undefined): this { + if (((this._maxLines_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLines_0_0value) !== (value))) + { + this._maxLines_0_flag = AttributeUpdaterFlag.UPDATE + this._maxLines_0_0value = value + } else + { + this._maxLines_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + wordBreak(value: WordBreak | undefined): this { + if (((this._wordBreak_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._wordBreak_0_flag = AttributeUpdaterFlag.UPDATE + this._wordBreak_0_0value = value + } else + { + this._wordBreak_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + lineBreakStrategy(value: LineBreakStrategy | undefined): this { + if (((this._lineBreakStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.UPDATE + this._lineBreakStrategy_0_0value = value + } else + { + this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions | undefined): this { + if (((this._cancelButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._cancelButton_0_flag = AttributeUpdaterFlag.UPDATE + this._cancelButton_0_0value = value + } else + { + this._cancelButton_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectAll(value: boolean | undefined): this { + if (((this._selectAll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectAll_0_0value) !== (value))) + { + this._selectAll_0_flag = AttributeUpdaterFlag.UPDATE + this._selectAll_0_0value = value + } else + { + this._selectAll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minFontSize(value: number | string | Resource | undefined): this { + if (((this._minFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._minFontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._minFontSize_0_0value = value + } else + { + this._minFontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxFontSize(value: number | string | Resource | undefined): this { + if (((this._maxFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._maxFontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._maxFontSize_0_0value = value + } else + { + this._maxFontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minFontScale(value: number | Resource | undefined): this { + if (((this._minFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._minFontScale_0_flag = AttributeUpdaterFlag.UPDATE + this._minFontScale_0_0value = value + } else + { + this._minFontScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + maxFontScale(value: number | Resource | undefined): this { + if (((this._maxFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._maxFontScale_0_flag = AttributeUpdaterFlag.UPDATE + this._maxFontScale_0_0value = value + } else + { + this._maxFontScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { + if (((this._heightAdaptivePolicy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.UPDATE + this._heightAdaptivePolicy_0_0value = value + } else + { + this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableAutoFill(value: boolean | undefined): this { + if (((this._enableAutoFill_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAutoFill_0_0value) !== (value))) + { + this._enableAutoFill_0_flag = AttributeUpdaterFlag.UPDATE + this._enableAutoFill_0_0value = value + } else + { + this._enableAutoFill_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + decoration(value: TextDecorationOptions | undefined): this { + if (((this._decoration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._decoration_0_flag = AttributeUpdaterFlag.UPDATE + this._decoration_0_0value = value + } else + { + this._decoration_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + letterSpacing(value: number | string | Resource | undefined): this { + if (((this._letterSpacing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._letterSpacing_0_flag = AttributeUpdaterFlag.UPDATE + this._letterSpacing_0_0value = value + } else + { + this._letterSpacing_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + lineHeight(value: number | string | Resource | undefined): this { + if (((this._lineHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._lineHeight_0_flag = AttributeUpdaterFlag.UPDATE + this._lineHeight_0_0value = value + } else + { + this._lineHeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + passwordRules(value: string | undefined): this { + if (((this._passwordRules_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._passwordRules_0_0value) !== (value))) + { + this._passwordRules_0_flag = AttributeUpdaterFlag.UPDATE + this._passwordRules_0_0value = value + } else + { + this._passwordRules_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontFeature(value: string | undefined): this { + if (((this._fontFeature_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fontFeature_0_0value) !== (value))) + { + this._fontFeature_0_flag = AttributeUpdaterFlag.UPDATE + this._fontFeature_0_0value = value + } else + { + this._fontFeature_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + showPassword(value: boolean | undefined): this { + if (((this._showPassword_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showPassword_0_0value) !== (value))) + { + this._showPassword_0_flag = AttributeUpdaterFlag.UPDATE + this._showPassword_0_0value = value + } else + { + this._showPassword_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSecurityStateChange(value: ((value0: boolean) => void) | undefined): this { + if (((this._onSecurityStateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onSecurityStateChange_0_0value = value + } else + { + this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { + if (((this._onWillInsert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillInsert_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillInsert_0_0value = value + } else + { + this._onWillInsert_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { + if (((this._onDidInsert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDidInsert_0_flag = AttributeUpdaterFlag.UPDATE + this._onDidInsert_0_0value = value + } else + { + this._onDidInsert_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { + if (((this._onWillDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillDelete_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillDelete_0_0value = value + } else + { + this._onWillDelete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { + if (((this._onDidDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDidDelete_0_flag = AttributeUpdaterFlag.UPDATE + this._onDidDelete_0_0value = value + } else + { + this._onDidDelete_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + editMenuOptions(value: EditMenuOptions | undefined): this { + if (((this._editMenuOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._editMenuOptions_0_0value = value + } else + { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enablePreviewText(value: boolean | undefined): this { + if (((this._enablePreviewText_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enablePreviewText_0_0value) !== (value))) + { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.UPDATE + this._enablePreviewText_0_0value = value + } else + { + this._enablePreviewText_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableHapticFeedback(value: boolean | undefined): this { + if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE + this._enableHapticFeedback_0_0value = value + } else + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { + if (((this._autoCapitalizationMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.UPDATE + this._autoCapitalizationMode_0_0value = value + } else + { + this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + halfLeading(value: boolean | undefined): this { + if (((this._halfLeading_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._halfLeading_0_0value) !== (value))) + { + this._halfLeading_0_flag = AttributeUpdaterFlag.UPDATE + this._halfLeading_0_0value = value + } else + { + this._halfLeading_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + ellipsisMode(value: EllipsisMode | undefined): this { + if (((this._ellipsisMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._ellipsisMode_0_flag = AttributeUpdaterFlag.UPDATE + this._ellipsisMode_0_0value = value + } else + { + this._ellipsisMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + stopBackPress(value: boolean | undefined): this { + if (((this._stopBackPress_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stopBackPress_0_0value) !== (value))) + { + this._stopBackPress_0_flag = AttributeUpdaterFlag.UPDATE + this._stopBackPress_0_0value = value + } else + { + this._stopBackPress_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { + if (((this._onWillChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillChange_0_0value = value + } else + { + this._onWillChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + keyboardAppearance(value: KeyboardAppearance | undefined): this { + if (((this._keyboardAppearance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.UPDATE + this._keyboardAppearance_0_0value = value + } else + { + this._keyboardAppearance_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + inputFilter(value: ResourceStr | undefined, error?: ((value0: string) => void)): this { + if (((this._inputFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._inputFilter_0_flag = AttributeUpdaterFlag.UPDATE + this._inputFilter_0_0value = value + this._inputFilter_0_1value = error + } else + { + this._inputFilter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { + if (((this._customKeyboard_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) + { + this._customKeyboard_0_flag = AttributeUpdaterFlag.UPDATE + this._customKeyboard_0_0value = value + this._customKeyboard_0_1value = options + } else + { + this._customKeyboard_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + showCounter(value: boolean | undefined, options?: InputCounterOptions): this { + if (((this._showCounter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showCounter_0_0value) !== (value)) || (true)) + { + this._showCounter_0_flag = AttributeUpdaterFlag.UPDATE + this._showCounter_0_0value = value + this._showCounter_0_1value = options + } else + { + this._showCounter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/component/text.ets b/arkoala-arkts/arkui/generated/TextModifier.ets similarity index 51% rename from arkoala-arkts/arkui/src/component/text.ets rename to arkoala-arkts/arkui/generated/TextModifier.ets index d4133e357b212f5577fbdd91bdd22a74e8278ca2..9d7b084a4fd84909a413f51bb30a0a09425f6f36 100644 --- a/arkoala-arkts/arkui/src/component/text.ets +++ b/arkoala-arkts/arkui/generated/TextModifier.ets @@ -16,1582 +16,34 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { StyledString, StyledStringInternal, DecorationStyleInterface_serializer, DecorationStyleInterface } from "./styledString" -import { LayoutManager, LayoutManagerInternal, TextDataDetectorConfig_serializer, EditMenuOptions_serializer, FontSettingOptions_serializer, TextDataDetectorConfig, EditMenuOptions, FontSettingOptions, MenuType } from "./textCommon" -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 { 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 { CustomBuilder } from "./builder" -import { CallbackKind } from "./../generated/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" -export class TextControllerInternal { - public static fromPtr(ptr: KPointer): TextController { - return new TextController(ptr) - } -} -export class TextController implements MaterializedBase { - peer?: Finalizable | undefined = undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - constructor(peerPtr: KPointer) { - this.peer = new Finalizable(peerPtr, TextController.getFinalizer()) - } - constructor() { - this(TextController.construct()) - } - static construct(): KPointer { - const retval = ArkUIGeneratedNativeModule._TextController_construct() - return retval - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._TextController_getFinalizer() - } - public closeSelectionMenu(): void { - this.closeSelectionMenu_serialize() - return - } - public setStyledString(value: StyledString): void { - const value_casted = value as (StyledString) - this.setStyledString_serialize(value_casted) - return - } - public getLayoutManager(): LayoutManager { - return this.getLayoutManager_serialize() - } - private closeSelectionMenu_serialize(): void { - ArkUIGeneratedNativeModule._TextController_closeSelectionMenu(this.peer!.ptr) - } - private setStyledString_serialize(value: StyledString): void { - ArkUIGeneratedNativeModule._TextController_setStyledString(this.peer!.ptr, toPeerPtr(value)) - } - private getLayoutManager_serialize(): LayoutManager { - const retval = ArkUIGeneratedNativeModule._TextController_getLayoutManager(this.peer!.ptr) - const obj : LayoutManager = LayoutManagerInternal.fromPtr(retval) - return obj - } -} -export class ArkTextPeer 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): ArkTextPeer { - const peerId = PeerNode.nextId() - const _peerPtr = ArkUIGeneratedNativeModule._Text_construct(peerId, flags) - const _peer = new ArkTextPeer(_peerPtr, peerId, 'Text', flags) - component?.setPeer(_peer) - return _peer - } - setTextOptionsAttribute(content?: string | Resource, value?: TextOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (content !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const contentTmpValue = content! - if (contentTmpValue instanceof string) { - thisSerializer.writeInt8((0).toChar()) - const contentTmpValueForIdx0 = contentTmpValue as string - thisSerializer.writeString(contentTmpValueForIdx0) - } else if (contentTmpValue instanceof Resource) { - thisSerializer.writeInt8((1).toChar()) - const contentTmpValueForIdx1 = contentTmpValue as Resource - Resource_serializer.write(thisSerializer, contentTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - TextOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextInterface_setTextOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontColorAttribute(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._TextAttribute_setFontColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontSizeAttribute(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._TextAttribute_setFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMinFontSizeAttribute(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._TextAttribute_setMinFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaxFontSizeAttribute(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._TextAttribute_setMaxFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMinFontScaleAttribute(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._TextAttribute_setMinFontScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaxFontScaleAttribute(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._TextAttribute_setMaxFontScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontStyleAttribute(value: FontStyle | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as FontStyle) - thisSerializer.writeInt32(TypeChecker.FontStyle_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setFontStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLineSpacingAttribute(value: LengthMetrics | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - LengthMetrics_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setLineSpacing(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTextAlignAttribute(value: TextAlign | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as TextAlign) - thisSerializer.writeInt32(TypeChecker.TextAlign_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setTextAlign(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLineHeightAttribute(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._TextAttribute_setLineHeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTextOverflowAttribute(value: TextOverflowOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - TextOverflowOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setTextOverflow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontFamilyAttribute(value: string | Resource | 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 Resource) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Resource - Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setFontFamily(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMaxLinesAttribute(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._TextAttribute_setMaxLines(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDecorationAttribute(value: DecorationStyleInterface | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - DecorationStyleInterface_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setDecoration(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLetterSpacingAttribute(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._TextAttribute_setLetterSpacing(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTextCaseAttribute(value: TextCase | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as TextCase) - thisSerializer.writeInt32(TypeChecker.TextCase_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setTextCase(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBaselineOffsetAttribute(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._TextAttribute_setBaselineOffset(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCopyOptionAttribute(value: CopyOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as CopyOptions) - thisSerializer.writeInt32(TypeChecker.CopyOptions_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setCopyOption(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._TextAttribute_setDraggable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTextShadowAttribute(value: ShadowOptions | Array | 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 (TypeChecker.isArray_ShadowOptions(valueTmpValue)) { - thisSerializer.writeInt8((1).toChar()) - const valueTmpValueForIdx1 = valueTmpValue as Array - thisSerializer.writeInt32((valueTmpValueForIdx1.length).toInt()) - for (let valueTmpValueForIdx1CounterI = 0; valueTmpValueForIdx1CounterI < valueTmpValueForIdx1.length; valueTmpValueForIdx1CounterI++) { - const valueTmpValueForIdx1TmpElement : ShadowOptions = valueTmpValueForIdx1[valueTmpValueForIdx1CounterI] - ShadowOptions_serializer.write(thisSerializer, valueTmpValueForIdx1TmpElement) - } - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setTextShadow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setHeightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as TextHeightAdaptivePolicy) - thisSerializer.writeInt32(TypeChecker.TextHeightAdaptivePolicy_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setHeightAdaptivePolicy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTextIndentAttribute(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._TextAttribute_setTextIndent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setWordBreakAttribute(value: WordBreak | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as WordBreak) - thisSerializer.writeInt32(TypeChecker.WordBreak_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setWordBreak(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setLineBreakStrategyAttribute(value: LineBreakStrategy | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as LineBreakStrategy) - thisSerializer.writeInt32(TypeChecker.LineBreakStrategy_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setLineBreakStrategy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnCopyAttribute(value: ((value: 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._TextAttribute_setOnCopy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setCaretColorAttribute(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._TextAttribute_setCaretColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSelectedBackgroundColorAttribute(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._TextAttribute_setSelectedBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEllipsisModeAttribute(value: EllipsisMode | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as EllipsisMode) - thisSerializer.writeInt32(TypeChecker.EllipsisMode_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setEllipsisMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnableDataDetectorAttribute(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._TextAttribute_setEnableDataDetector(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setDataDetectorConfigAttribute(value: TextDataDetectorConfig | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - TextDataDetectorConfig_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setDataDetectorConfig(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnTextSelectionChangeAttribute(value: ((selectionStart: number,selectionEnd: number) => 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._TextAttribute_setOnTextSelectionChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontFeatureAttribute(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._TextAttribute_setFontFeature(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setMarqueeOptionsAttribute(value: TextMarqueeOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - TextMarqueeOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setMarqueeOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setOnMarqueeStateChangeAttribute(value: ((value0: MarqueeState) => 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._TextAttribute_setOnMarqueeStateChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setPrivacySensitiveAttribute(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._TextAttribute_setPrivacySensitive(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setTextSelectableAttribute(value: TextSelectableMode | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = (value as TextSelectableMode) - thisSerializer.writeInt32(TypeChecker.TextSelectableMode_ToNumeric(valueTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setTextSelectable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEditMenuOptionsAttribute(value: EditMenuOptions | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (value !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const valueTmpValue = value! - EditMenuOptions_serializer.write(thisSerializer, valueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setEditMenuOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setHalfLeadingAttribute(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._TextAttribute_setHalfLeading(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setEnableHapticFeedbackAttribute(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._TextAttribute_setEnableHapticFeedback(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontAttribute(fontValue: Font | undefined, options?: FontSettingOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (fontValue !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const fontValueTmpValue = fontValue! - Font_serializer.write(thisSerializer, fontValueTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - FontSettingOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setFontWeightAttribute(weight: number | FontWeight | string | undefined, options?: FontSettingOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (weight !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const weightTmpValue = weight! - if (weightTmpValue instanceof number) { - thisSerializer.writeInt8((0).toChar()) - const weightTmpValueForIdx0 = weightTmpValue as number - thisSerializer.writeNumber(weightTmpValueForIdx0) - } else if (weightTmpValue instanceof FontWeight) { - thisSerializer.writeInt8((1).toChar()) - const weightTmpValueForIdx1 = weightTmpValue as FontWeight - thisSerializer.writeInt32(TypeChecker.FontWeight_ToNumeric(weightTmpValueForIdx1)) - } else if (weightTmpValue instanceof string) { - thisSerializer.writeInt8((2).toChar()) - const weightTmpValueForIdx2 = weightTmpValue as string - thisSerializer.writeString(weightTmpValueForIdx2) - } - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - FontSettingOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setFontWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setSelectionAttribute(selectionStart: number | undefined, selectionEnd: number | undefined): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (selectionStart !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const selectionStartTmpValue = selectionStart! - thisSerializer.writeNumber(selectionStartTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (selectionEnd !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const selectionEndTmpValue = selectionEnd! - thisSerializer.writeNumber(selectionEndTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setSelection(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } - setBindSelectionMenuAttribute(spanType: TextSpanType | undefined, content: CustomBuilder | undefined, responseType: TextResponseType | undefined, options?: SelectionMenuOptions): void { - const thisSerializer : SerializerBase = SerializerBase.hold() - if (spanType !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const spanTypeTmpValue = (spanType as TextSpanType) - thisSerializer.writeInt32(TypeChecker.TextSpanType_ToNumeric(spanTypeTmpValue)) - } 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 (responseType !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const responseTypeTmpValue = (responseType as TextResponseType) - thisSerializer.writeInt32(TypeChecker.TextResponseType_ToNumeric(responseTypeTmpValue)) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - if (options !== undefined) { - thisSerializer.writeInt8(RuntimeType.OBJECT) - const optionsTmpValue = options! - SelectionMenuOptions_serializer.write(thisSerializer, optionsTmpValue) - } else { - thisSerializer.writeInt8(RuntimeType.UNDEFINED) - } - ArkUIGeneratedNativeModule._TextAttribute_setBindSelectionMenu(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) - thisSerializer.release() - } -} -export interface TextOverflowOptions { - overflow: TextOverflow; -} -export interface TextAttribute extends CommonMethod { - fontColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method fontColor") - } - fontSize(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method fontSize") - } - minFontSize(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method minFontSize") - } - maxFontSize(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method maxFontSize") - } - minFontScale(value: number | Resource | undefined): this { - throw new Error("Unimplemented method minFontScale") - } - maxFontScale(value: number | Resource | undefined): this { - throw new Error("Unimplemented method maxFontScale") - } - fontStyle(value: FontStyle | undefined): this { - throw new Error("Unimplemented method fontStyle") - } - lineSpacing(value: LengthMetrics | undefined): this { - throw new Error("Unimplemented method lineSpacing") - } - textAlign(value: TextAlign | undefined): this { - throw new Error("Unimplemented method textAlign") - } - lineHeight(value: number | string | Resource | undefined): this { - throw new Error("Unimplemented method lineHeight") - } - textOverflow(value: TextOverflowOptions | undefined): this { - throw new Error("Unimplemented method textOverflow") - } - fontFamily(value: string | Resource | undefined): this { - throw new Error("Unimplemented method fontFamily") - } - maxLines(value: number | undefined): this { - throw new Error("Unimplemented method maxLines") - } - decoration(value: DecorationStyleInterface | undefined): this { - throw new Error("Unimplemented method decoration") - } - letterSpacing(value: number | string | undefined): this { - throw new Error("Unimplemented method letterSpacing") - } - textCase(value: TextCase | undefined): this { - throw new Error("Unimplemented method textCase") - } - baselineOffset(value: number | string | undefined): this { - throw new Error("Unimplemented method baselineOffset") - } - copyOption(value: CopyOptions | undefined): this { - throw new Error("Unimplemented method copyOption") - } - draggable(value: boolean | undefined): this - textShadow(value: ShadowOptions | Array | undefined): this { - throw new Error("Unimplemented method textShadow") - } - heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { - throw new Error("Unimplemented method heightAdaptivePolicy") - } - textIndent(value: Length | undefined): this { - throw new Error("Unimplemented method textIndent") - } - wordBreak(value: WordBreak | undefined): this { - throw new Error("Unimplemented method wordBreak") - } - lineBreakStrategy(value: LineBreakStrategy | undefined): this { - throw new Error("Unimplemented method lineBreakStrategy") - } - onCopy(value: ((value: string) => void) | undefined): this { - throw new Error("Unimplemented method onCopy") - } - caretColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method caretColor") - } - selectedBackgroundColor(value: ResourceColor | undefined): this { - throw new Error("Unimplemented method selectedBackgroundColor") - } - ellipsisMode(value: EllipsisMode | undefined): this { - throw new Error("Unimplemented method ellipsisMode") - } - enableDataDetector(value: boolean | undefined): this { - throw new Error("Unimplemented method enableDataDetector") - } - dataDetectorConfig(value: TextDataDetectorConfig | undefined): this { - throw new Error("Unimplemented method dataDetectorConfig") - } - onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { - throw new Error("Unimplemented method onTextSelectionChange") - } - fontFeature(value: string | undefined): this { - throw new Error("Unimplemented method fontFeature") - } - marqueeOptions(value: TextMarqueeOptions | undefined): this { - throw new Error("Unimplemented method marqueeOptions") - } - onMarqueeStateChange(value: ((value0: MarqueeState) => void) | undefined): this { - throw new Error("Unimplemented method onMarqueeStateChange") - } - privacySensitive(value: boolean | undefined): this { - throw new Error("Unimplemented method privacySensitive") - } - textSelectable(value: TextSelectableMode | undefined): this { - throw new Error("Unimplemented method textSelectable") - } - editMenuOptions(value: EditMenuOptions | undefined): this { - throw new Error("Unimplemented method editMenuOptions") - } - halfLeading(value: boolean | undefined): this { - throw new Error("Unimplemented method halfLeading") - } - enableHapticFeedback(value: boolean | undefined): this { - throw new Error("Unimplemented method enableHapticFeedback") - } - font(fontValue: Font | undefined, options?: FontSettingOptions): this { - throw new Error("Unimplemented method font") - } - fontWeight(weight: number | FontWeight | string | undefined, options?: FontSettingOptions): this { - throw new Error("Unimplemented method fontWeight") - } - selection(selectionStart: number | undefined, selectionEnd: number | undefined): this { - throw new Error("Unimplemented method selection") - } - bindSelectionMenu(spanType: TextSpanType | undefined, content: CustomBuilder | undefined, responseType: TextResponseType | undefined, options?: SelectionMenuOptions): this { - throw new Error("Unimplemented method bindSelectionMenu") - } - attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Unimplemented method attributeModifier") - } -} -export class ArkTextStyle extends ArkCommonMethodStyle implements TextAttribute { - fontColor_value?: ResourceColor | undefined - fontSize_value?: number | string | Resource | undefined - minFontSize_value?: number | string | Resource | undefined - maxFontSize_value?: number | string | Resource | undefined - minFontScale_value?: number | Resource | undefined - maxFontScale_value?: number | Resource | undefined - fontStyle_value?: FontStyle | undefined - lineSpacing_value?: LengthMetrics | undefined - textAlign_value?: TextAlign | undefined - lineHeight_value?: number | string | Resource | undefined - textOverflow_value?: TextOverflowOptions | undefined - fontFamily_value?: string | Resource | undefined - maxLines_value?: number | undefined - decoration_value?: DecorationStyleInterface | undefined - letterSpacing_value?: number | string | undefined - textCase_value?: TextCase | undefined - baselineOffset_value?: number | string | undefined - copyOption_value?: CopyOptions | undefined - draggable_value?: boolean | undefined - textShadow_value?: ShadowOptions | Array | undefined - heightAdaptivePolicy_value?: TextHeightAdaptivePolicy | undefined - textIndent_value?: Length | undefined - wordBreak_value?: WordBreak | undefined - lineBreakStrategy_value?: LineBreakStrategy | undefined - onCopy_value?: ((value: string) => void) | undefined - caretColor_value?: ResourceColor | undefined - selectedBackgroundColor_value?: ResourceColor | undefined - ellipsisMode_value?: EllipsisMode | undefined - enableDataDetector_value?: boolean | undefined - dataDetectorConfig_value?: TextDataDetectorConfig | undefined - onTextSelectionChange_value?: ((selectionStart: number,selectionEnd: number) => void) | undefined - fontFeature_value?: string | undefined - marqueeOptions_value?: TextMarqueeOptions | undefined - onMarqueeStateChange_value?: ((value0: MarqueeState) => void) | undefined - privacySensitive_value?: boolean | undefined - textSelectable_value?: TextSelectableMode | undefined - editMenuOptions_value?: EditMenuOptions | undefined - halfLeading_value?: boolean | undefined - enableHapticFeedback_value?: boolean | undefined - attributeModifier_value?: AttributeModifier | AttributeModifier | undefined - public fontColor(value: ResourceColor | undefined): this { - return this - } - public fontSize(value: number | string | Resource | undefined): this { - return this - } - public minFontSize(value: number | string | Resource | undefined): this { - return this - } - public maxFontSize(value: number | string | Resource | undefined): this { - return this - } - public minFontScale(value: number | Resource | undefined): this { - return this - } - public maxFontScale(value: number | Resource | undefined): this { - return this - } - public fontStyle(value: FontStyle | undefined): this { - return this - } - public lineSpacing(value: LengthMetrics | undefined): this { - return this - } - public textAlign(value: TextAlign | undefined): this { - return this - } - public lineHeight(value: number | string | Resource | undefined): this { - return this - } - public textOverflow(value: TextOverflowOptions | undefined): this { - return this - } - public fontFamily(value: string | Resource | undefined): this { - return this - } - public maxLines(value: number | undefined): this { - return this - } - public decoration(value: DecorationStyleInterface | undefined): this { - return this - } - public letterSpacing(value: number | string | undefined): this { - return this - } - public textCase(value: TextCase | undefined): this { - return this - } - public baselineOffset(value: number | string | undefined): this { - return this - } - public copyOption(value: CopyOptions | undefined): this { - return this - } - public draggable(value: boolean | undefined): this { - return this - } - public textShadow(value: ShadowOptions | Array | undefined): this { - return this - } - public heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { - return this - } - public textIndent(value: Length | undefined): this { - return this - } - public wordBreak(value: WordBreak | undefined): this { - return this - } - public lineBreakStrategy(value: LineBreakStrategy | undefined): this { - return this - } - public onCopy(value: ((value: string) => void) | undefined): this { - return this - } - public caretColor(value: ResourceColor | undefined): this { - return this - } - public selectedBackgroundColor(value: ResourceColor | undefined): this { - return this - } - public ellipsisMode(value: EllipsisMode | undefined): this { - return this - } - public enableDataDetector(value: boolean | undefined): this { - return this - } - public dataDetectorConfig(value: TextDataDetectorConfig | undefined): this { - return this - } - public onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { - return this - } - public fontFeature(value: string | undefined): this { - return this - } - public marqueeOptions(value: TextMarqueeOptions | undefined): this { - return this - } - public onMarqueeStateChange(value: ((value0: MarqueeState) => void) | undefined): this { - return this - } - public privacySensitive(value: boolean | undefined): this { - return this - } - public textSelectable(value: TextSelectableMode | undefined): this { - return this - } - public editMenuOptions(value: EditMenuOptions | undefined): this { - return this - } - public halfLeading(value: boolean | undefined): this { - return this - } - public enableHapticFeedback(value: boolean | undefined): this { - return this - } - public font(fontValue: Font | undefined, options?: FontSettingOptions): this { - return this - } - public fontWeight(weight: number | FontWeight | string | undefined, options?: FontSettingOptions): this { - return this - } - public selection(selectionStart: number | undefined, selectionEnd: number | undefined): this { - return this - } - public bindSelectionMenu(spanType: TextSpanType | undefined, content: CustomBuilder | undefined, responseType: TextResponseType | undefined, options?: SelectionMenuOptions): this { - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export enum TextSpanType { - TEXT = 0, - IMAGE = 1, - MIXED = 2, - DEFAULT = 3 -} -export enum TextResponseType { - RIGHT_CLICK = 0, - LONG_PRESS = 1, - SELECT = 2, - DEFAULT = 3 -} -export enum MarqueeState { - START = 0, - BOUNCE = 1, - FINISH = 2 -} -export enum MarqueeStartPolicy { - DEFAULT = 0, - ON_FOCUS = 1 -} -export interface TextOptions { - controller: TextController; -} -export interface TextMarqueeOptions { - start: boolean; - step?: number; - loop?: number; - fromStart?: boolean; - delay?: number; - fadeout?: boolean; - marqueeStartPolicy?: MarqueeStartPolicy; -} - -export class ArkTextComponent extends ArkCommonMethodComponent implements TextAttribute { - getPeer(): ArkTextPeer { - return (this.peer as ArkTextPeer) - } - public setTextOptions(content?: string | Resource, value?: TextOptions): this { - if (this.checkPriority("setTextOptions")) { - const content_casted = content as (string | Resource | undefined) - const value_casted = value as (TextOptions | undefined) - this.getPeer()?.setTextOptionsAttribute(content_casted, value_casted) - return this - } - return this - } - public fontColor(value: ResourceColor | undefined): this { - if (this.checkPriority("fontColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setFontColorAttribute(value_casted) - return this - } - return this - } - public fontSize(value: number | string | Resource | undefined): this { - if (this.checkPriority("fontSize")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setFontSizeAttribute(value_casted) - return this - } - return this - } - public minFontSize(value: number | string | Resource | undefined): this { - if (this.checkPriority("minFontSize")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setMinFontSizeAttribute(value_casted) - return this - } - return this - } - public maxFontSize(value: number | string | Resource | undefined): this { - if (this.checkPriority("maxFontSize")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setMaxFontSizeAttribute(value_casted) - return this - } - return this - } - public minFontScale(value: number | Resource | undefined): this { - if (this.checkPriority("minFontScale")) { - const value_casted = value as (number | Resource | undefined) - this.getPeer()?.setMinFontScaleAttribute(value_casted) - return this - } - return this - } - public maxFontScale(value: number | Resource | undefined): this { - if (this.checkPriority("maxFontScale")) { - const value_casted = value as (number | Resource | undefined) - this.getPeer()?.setMaxFontScaleAttribute(value_casted) - return this - } - return this - } - public fontStyle(value: FontStyle | undefined): this { - if (this.checkPriority("fontStyle")) { - const value_casted = value as (FontStyle | undefined) - this.getPeer()?.setFontStyleAttribute(value_casted) - return this - } - return this - } - public lineSpacing(value: LengthMetrics | undefined): this { - if (this.checkPriority("lineSpacing")) { - const value_casted = value as (LengthMetrics | undefined) - this.getPeer()?.setLineSpacingAttribute(value_casted) - return this - } - return this - } - public textAlign(value: TextAlign | undefined): this { - if (this.checkPriority("textAlign")) { - const value_casted = value as (TextAlign | undefined) - this.getPeer()?.setTextAlignAttribute(value_casted) - return this - } - return this - } - public lineHeight(value: number | string | Resource | undefined): this { - if (this.checkPriority("lineHeight")) { - const value_casted = value as (number | string | Resource | undefined) - this.getPeer()?.setLineHeightAttribute(value_casted) - return this - } - return this - } - public textOverflow(value: TextOverflowOptions | undefined): this { - if (this.checkPriority("textOverflow")) { - const value_casted = value as (TextOverflowOptions | undefined) - this.getPeer()?.setTextOverflowAttribute(value_casted) - return this - } - return this - } - public fontFamily(value: string | Resource | undefined): this { - if (this.checkPriority("fontFamily")) { - const value_casted = value as (string | Resource | undefined) - this.getPeer()?.setFontFamilyAttribute(value_casted) - return this - } - return this - } - public maxLines(value: number | undefined): this { - if (this.checkPriority("maxLines")) { - const value_casted = value as (number | undefined) - this.getPeer()?.setMaxLinesAttribute(value_casted) - return this - } - return this - } - public decoration(value: DecorationStyleInterface | undefined): this { - if (this.checkPriority("decoration")) { - const value_casted = value as (DecorationStyleInterface | undefined) - this.getPeer()?.setDecorationAttribute(value_casted) - return this - } - return this - } - public letterSpacing(value: number | string | undefined): this { - if (this.checkPriority("letterSpacing")) { - const value_casted = value as (number | string | undefined) - this.getPeer()?.setLetterSpacingAttribute(value_casted) - return this - } - return this - } - public textCase(value: TextCase | undefined): this { - if (this.checkPriority("textCase")) { - const value_casted = value as (TextCase | undefined) - this.getPeer()?.setTextCaseAttribute(value_casted) - return this - } - return this - } - public baselineOffset(value: number | string | undefined): this { - if (this.checkPriority("baselineOffset")) { - const value_casted = value as (number | string | undefined) - this.getPeer()?.setBaselineOffsetAttribute(value_casted) - return this - } - return this - } - public copyOption(value: CopyOptions | undefined): this { - if (this.checkPriority("copyOption")) { - const value_casted = value as (CopyOptions | undefined) - this.getPeer()?.setCopyOptionAttribute(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 textShadow(value: ShadowOptions | Array | undefined): this { - if (this.checkPriority("textShadow")) { - const value_casted = value as (ShadowOptions | Array | undefined) - this.getPeer()?.setTextShadowAttribute(value_casted) - return this - } - return this - } - public heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { - if (this.checkPriority("heightAdaptivePolicy")) { - const value_casted = value as (TextHeightAdaptivePolicy | undefined) - this.getPeer()?.setHeightAdaptivePolicyAttribute(value_casted) - return this - } - return this - } - public textIndent(value: Length | undefined): this { - if (this.checkPriority("textIndent")) { - const value_casted = value as (Length | undefined) - this.getPeer()?.setTextIndentAttribute(value_casted) - return this - } - return this - } - public wordBreak(value: WordBreak | undefined): this { - if (this.checkPriority("wordBreak")) { - const value_casted = value as (WordBreak | undefined) - this.getPeer()?.setWordBreakAttribute(value_casted) - return this - } - return this - } - public lineBreakStrategy(value: LineBreakStrategy | undefined): this { - if (this.checkPriority("lineBreakStrategy")) { - const value_casted = value as (LineBreakStrategy | undefined) - this.getPeer()?.setLineBreakStrategyAttribute(value_casted) - return this - } - return this - } - public onCopy(value: ((value: string) => void) | undefined): this { - if (this.checkPriority("onCopy")) { - const value_casted = value as (((value: string) => void) | undefined) - this.getPeer()?.setOnCopyAttribute(value_casted) - return this - } - return this - } - public caretColor(value: ResourceColor | undefined): this { - if (this.checkPriority("caretColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setCaretColorAttribute(value_casted) - return this - } - return this - } - public selectedBackgroundColor(value: ResourceColor | undefined): this { - if (this.checkPriority("selectedBackgroundColor")) { - const value_casted = value as (ResourceColor | undefined) - this.getPeer()?.setSelectedBackgroundColorAttribute(value_casted) - return this - } - return this - } - public ellipsisMode(value: EllipsisMode | undefined): this { - if (this.checkPriority("ellipsisMode")) { - const value_casted = value as (EllipsisMode | undefined) - this.getPeer()?.setEllipsisModeAttribute(value_casted) - return this - } - return this - } - public enableDataDetector(value: boolean | undefined): this { - if (this.checkPriority("enableDataDetector")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEnableDataDetectorAttribute(value_casted) - return this - } - return this - } - public dataDetectorConfig(value: TextDataDetectorConfig | undefined): this { - if (this.checkPriority("dataDetectorConfig")) { - const value_casted = value as (TextDataDetectorConfig | undefined) - this.getPeer()?.setDataDetectorConfigAttribute(value_casted) - return this - } - return this - } - public onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { - if (this.checkPriority("onTextSelectionChange")) { - const value_casted = value as (((selectionStart: number,selectionEnd: number) => void) | undefined) - this.getPeer()?.setOnTextSelectionChangeAttribute(value_casted) - return this - } - return this - } - public fontFeature(value: string | undefined): this { - if (this.checkPriority("fontFeature")) { - const value_casted = value as (string | undefined) - this.getPeer()?.setFontFeatureAttribute(value_casted) - return this - } - return this - } - public marqueeOptions(value: TextMarqueeOptions | undefined): this { - if (this.checkPriority("marqueeOptions")) { - const value_casted = value as (TextMarqueeOptions | undefined) - this.getPeer()?.setMarqueeOptionsAttribute(value_casted) - return this - } - return this - } - public onMarqueeStateChange(value: ((value0: MarqueeState) => void) | undefined): this { - if (this.checkPriority("onMarqueeStateChange")) { - const value_casted = value as (((value0: MarqueeState) => void) | undefined) - this.getPeer()?.setOnMarqueeStateChangeAttribute(value_casted) - return this - } - return this - } - public privacySensitive(value: boolean | undefined): this { - if (this.checkPriority("privacySensitive")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setPrivacySensitiveAttribute(value_casted) - return this - } - return this - } - public textSelectable(value: TextSelectableMode | undefined): this { - if (this.checkPriority("textSelectable")) { - const value_casted = value as (TextSelectableMode | undefined) - this.getPeer()?.setTextSelectableAttribute(value_casted) - return this - } - return this - } - public editMenuOptions(value: EditMenuOptions | undefined): this { - if (this.checkPriority("editMenuOptions")) { - const value_casted = value as (EditMenuOptions | undefined) - this.getPeer()?.setEditMenuOptionsAttribute(value_casted) - return this - } - return this - } - public halfLeading(value: boolean | undefined): this { - if (this.checkPriority("halfLeading")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setHalfLeadingAttribute(value_casted) - return this - } - return this - } - public enableHapticFeedback(value: boolean | undefined): this { - if (this.checkPriority("enableHapticFeedback")) { - const value_casted = value as (boolean | undefined) - this.getPeer()?.setEnableHapticFeedbackAttribute(value_casted) - return this - } - return this - } - public font(fontValue: Font | undefined, options?: FontSettingOptions): this { - if (this.checkPriority("font")) { - const fontValue_casted = fontValue as (Font | undefined) - const options_casted = options as (FontSettingOptions | undefined) - this.getPeer()?.setFontAttribute(fontValue_casted, options_casted) - return this - } - return this - } - public fontWeight(weight: number | FontWeight | string | undefined, options?: FontSettingOptions): this { - if (this.checkPriority("fontWeight")) { - const weight_casted = weight as (number | FontWeight | string | undefined) - const options_casted = options as (FontSettingOptions | undefined) - this.getPeer()?.setFontWeightAttribute(weight_casted, options_casted) - return this - } - return this - } - public selection(selectionStart: number | undefined, selectionEnd: number | undefined): this { - if (this.checkPriority("selection")) { - const selectionStart_casted = selectionStart as (number | undefined) - const selectionEnd_casted = selectionEnd as (number | undefined) - this.getPeer()?.setSelectionAttribute(selectionStart_casted, selectionEnd_casted) - return this - } - return this - } - public bindSelectionMenu(spanType: TextSpanType | undefined, content: CustomBuilder | undefined, responseType: TextResponseType | undefined, options?: SelectionMenuOptions): this { - if (this.checkPriority("bindSelectionMenu")) { - const spanType_casted = spanType as (TextSpanType | undefined) - const content_casted = content as (CustomBuilder | undefined) - const responseType_casted = responseType as (TextResponseType | undefined) - const options_casted = options as (SelectionMenuOptions | undefined) - this.getPeer()?.setBindSelectionMenuAttribute(spanType_casted, content_casted, responseType_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() - } -} - -@memo -export function Text( - @memo - style: ((attributes: TextAttribute) => void) | undefined, - content?: string | Resource, value?: TextOptions, - @memo - content_?: () => void, -): void { - const receiver = remember((): ArkTextComponent => { - return new ArkTextComponent() - }) - NodeAttach((): ArkTextPeer => ArkTextPeer.create(receiver), (_: ArkTextPeer): void => { - receiver.setTextOptions(content,value) - style?.(receiver) - content_?.() - receiver.applyAttributesFinish() - }) -} - -export class TextModifier extends CommonMethodModifier implements TextAttribute { +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, extractors } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTextPeer, TextOverflowOptions, TextMarqueeOptions, MarqueeState, TextAttribute, TextSpanType, TextResponseType } from "./component/text" +import { CommonMethod, ShadowOptions } from "./component/common" +import { ResourceColor, Length, Font } from "./component/units" +import { Color, FontStyle, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, FontWeight } from "./component/enums" +import { Resource } from "global.resource" +import { LengthMetrics } from "./Graphics" +import { DecorationStyleInterface } from "./component/styledString" +import { TextDataDetectorConfig, EditMenuOptions, FontSettingOptions } from "./component/textCommon" +import { CustomBuilder } from "./component/builder" +import { SelectionMenuOptions } from "./component/richEditor" +import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" +import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { TypeChecker } from "#components" +import { CallbackTransformer } from "./CallbackTransformer" +export class TextModifier extends CommonMethodModifier implements TextAttribute,AttributeModifier { _instanceId: number = -1; setInstanceId(instanceId: number): void { this._instanceId = instanceId } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: TextAttribute): void { } + applyPressedAttribute(instance: TextAttribute): void { } + applyFocusedAttribute(instance: TextAttribute): void { } + applyDisabledAttribute(instance: TextAttribute): void { } + applySelectedAttribute(instance: TextAttribute): void { } _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL _fontColor_0_0value?: ResourceColor | undefined _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL @@ -3506,137 +1958,11 @@ export class TextModifier extends CommonMethodModifier implements TextAttribute throw new Error("Not implemented") } } -export class TextController_serializer { - public static write(buffer: SerializerBase, value: TextController): void { - let valueSerializer : SerializerBase = buffer - valueSerializer.writePointer(toPeerPtr(value)) - } - public static read(buffer: DeserializerBase): TextController { - let valueDeserializer : DeserializerBase = buffer - let ptr : KPointer = valueDeserializer.readPointer() - return TextControllerInternal.fromPtr(ptr) - } -} -export class TextOptions_serializer { - public static write(buffer: SerializerBase, value: TextOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForController = value.controller - TextController_serializer.write(valueSerializer, valueHolderForController) - } - public static read(buffer: DeserializerBase): TextOptions { - let valueDeserializer : DeserializerBase = buffer - const controllerTmpResult : TextController = (TextController_serializer.read(valueDeserializer) as TextController) - let value : TextOptions = ({controller: controllerTmpResult} as TextOptions) - return value - } -} -export class TextOverflowOptions_serializer { - public static write(buffer: SerializerBase, value: TextOverflowOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForOverflow = value.overflow - valueSerializer.writeInt32(TypeChecker.TextOverflow_ToNumeric(valueHolderForOverflow)) - } - public static read(buffer: DeserializerBase): TextOverflowOptions { - let valueDeserializer : DeserializerBase = buffer - const overflowTmpResult : TextOverflow = TypeChecker.TextOverflow_FromNumeric(valueDeserializer.readInt32()) - let value : TextOverflowOptions = ({overflow: overflowTmpResult} as TextOverflowOptions) - return value - } -} -export class TextMarqueeOptions_serializer { - public static write(buffer: SerializerBase, value: TextMarqueeOptions): void { - let valueSerializer : SerializerBase = buffer - const valueHolderForStart = value.start - valueSerializer.writeBoolean(valueHolderForStart) - const valueHolderForStep = value.step - if (valueHolderForStep !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForStepTmpValue = valueHolderForStep! - valueSerializer.writeNumber(valueHolderForStepTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForLoop = value.loop - if (valueHolderForLoop !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForLoopTmpValue = valueHolderForLoop! - valueSerializer.writeNumber(valueHolderForLoopTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForFromStart = value.fromStart - if (valueHolderForFromStart !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFromStartTmpValue = valueHolderForFromStart! - valueSerializer.writeBoolean(valueHolderForFromStartTmpValue) - } 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 valueHolderForFadeout = value.fadeout - if (valueHolderForFadeout !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForFadeoutTmpValue = valueHolderForFadeout! - valueSerializer.writeBoolean(valueHolderForFadeoutTmpValue) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } - const valueHolderForMarqueeStartPolicy = value.marqueeStartPolicy - if (valueHolderForMarqueeStartPolicy !== undefined) { - valueSerializer.writeInt8(RuntimeType.OBJECT) - const valueHolderForMarqueeStartPolicyTmpValue = (valueHolderForMarqueeStartPolicy as MarqueeStartPolicy) - valueSerializer.writeInt32(TypeChecker.MarqueeStartPolicy_ToNumeric(valueHolderForMarqueeStartPolicyTmpValue)) - } else { - valueSerializer.writeInt8(RuntimeType.UNDEFINED) - } +export class TextModifier_serializer { + public static write(buffer: SerializerBase, value: TextModifier): void { } - public static read(buffer: DeserializerBase): TextMarqueeOptions { - let valueDeserializer : DeserializerBase = buffer - const startTmpResult : boolean = valueDeserializer.readBoolean() - const stepTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let stepTmpBuf : number | undefined - if ((stepTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - stepTmpBuf = (valueDeserializer.readNumber() as number) - } - const stepTmpResult : number | undefined = stepTmpBuf - const loopTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let loopTmpBuf : number | undefined - if ((loopTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - loopTmpBuf = (valueDeserializer.readNumber() as number) - } - const loopTmpResult : number | undefined = loopTmpBuf - const fromStartTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fromStartTmpBuf : boolean | undefined - if ((fromStartTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - fromStartTmpBuf = valueDeserializer.readBoolean() - } - const fromStartTmpResult : boolean | undefined = fromStartTmpBuf - 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 fadeoutTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let fadeoutTmpBuf : boolean | undefined - if ((fadeoutTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - fadeoutTmpBuf = valueDeserializer.readBoolean() - } - const fadeoutTmpResult : boolean | undefined = fadeoutTmpBuf - const marqueeStartPolicyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let marqueeStartPolicyTmpBuf : MarqueeStartPolicy | undefined - if ((marqueeStartPolicyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { - marqueeStartPolicyTmpBuf = TypeChecker.MarqueeStartPolicy_FromNumeric(valueDeserializer.readInt32()) - } - const marqueeStartPolicyTmpResult : MarqueeStartPolicy | undefined = marqueeStartPolicyTmpBuf - let value : TextMarqueeOptions = ({start: startTmpResult, step: stepTmpResult, loop: loopTmpResult, fromStart: fromStartTmpResult, delay: delayTmpResult, fadeout: fadeoutTmpResult, marqueeStartPolicy: marqueeStartPolicyTmpResult} as TextMarqueeOptions) + public static read(buffer: DeserializerBase): TextModifier { + let value : TextModifier = ({} as TextModifier) return value } } diff --git a/arkoala-arkts/arkui/generated/TextPickerModifier.ets b/arkoala-arkts/arkui/generated/TextPickerModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..d00645b0724abc0f95482e0dda45fae4b2adfddd --- /dev/null +++ b/arkoala-arkts/arkui/generated/TextPickerModifier.ets @@ -0,0 +1,707 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTextPickerPeer, TextPickerTextStyle, OnTextPickerChangeCallback, TextPickerScrollStopCallback, TextPickerEnterSelectedAreaCallback, DividerOptions, TextPickerAttribute } from "./component/textPicker" +import { CommonMethod, PickerTextStyle } from "./component/common" +import { Dimension } from "./component/units" +import { Resource } from "global.resource" +import { CrownSensitivity } from "./component/enums" +export class TextPickerModifier extends CommonMethodModifier implements TextPickerAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: TextPickerAttribute): void { } + applyPressedAttribute(instance: TextPickerAttribute): void { } + applyFocusedAttribute(instance: TextPickerAttribute): void { } + applyDisabledAttribute(instance: TextPickerAttribute): void { } + applySelectedAttribute(instance: TextPickerAttribute): void { } + _defaultPickerItemHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _defaultPickerItemHeight_0_0value?: number | string | undefined + _canLoop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _canLoop_0_0value?: boolean | undefined + _disappearTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _disappearTextStyle_0_0value?: PickerTextStyle | undefined + _textStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textStyle_0_0value?: PickerTextStyle | undefined + _selectedTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedTextStyle_0_0value?: PickerTextStyle | undefined + _disableTextStyleAnimation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _disableTextStyleAnimation_0_0value?: boolean | undefined + _defaultTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _defaultTextStyle_0_0value?: TextPickerTextStyle | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: OnTextPickerChangeCallback | undefined + _onScrollStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollStop_0_0value?: TextPickerScrollStopCallback | undefined + _onEnterSelectedArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onEnterSelectedArea_0_0value?: TextPickerEnterSelectedAreaCallback | undefined + _selectedIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedIndex_0_0value?: number | Array | undefined + _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _divider_0_0value?: DividerOptions | undefined + _gradientHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _gradientHeight_0_0value?: Dimension | undefined + _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableHapticFeedback_0_0value?: boolean | undefined + _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined + applyModifierPatch(peer: ArkTextPickerPeer): void { + super.applyModifierPatch(peer) + if (this._defaultPickerItemHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._defaultPickerItemHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDefaultPickerItemHeightAttribute((this._defaultPickerItemHeight_0_0value as number | string | undefined)); + this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDefaultPickerItemHeightAttribute((undefined as number | string | undefined)); + } + } + } + if (this._canLoop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._canLoop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCanLoopAttribute((this._canLoop_0_0value as boolean | undefined)); + this._canLoop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._canLoop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._canLoop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCanLoopAttribute((undefined as boolean | undefined)); + } + } + } + if (this._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._disappearTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDisappearTextStyleAttribute((this._disappearTextStyle_0_0value as PickerTextStyle | undefined)); + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDisappearTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextStyleAttribute((this._textStyle_0_0value as PickerTextStyle | undefined)); + this._textStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedTextStyleAttribute((this._selectedTextStyle_0_0value as PickerTextStyle | undefined)); + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._disableTextStyleAnimation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._disableTextStyleAnimation_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDisableTextStyleAnimationAttribute((this._disableTextStyleAnimation_0_0value as boolean | undefined)); + this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDisableTextStyleAnimationAttribute((undefined as boolean | undefined)); + } + } + } + if (this._defaultTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._defaultTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDefaultTextStyleAttribute((this._defaultTextStyle_0_0value as TextPickerTextStyle | undefined)); + this._defaultTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._defaultTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._defaultTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDefaultTextStyleAttribute((undefined as TextPickerTextStyle | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as OnTextPickerChangeCallback | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as OnTextPickerChangeCallback | undefined)); + } + } + } + if (this._onScrollStop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollStop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollStopAttribute((this._onScrollStop_0_0value as TextPickerScrollStopCallback | 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 TextPickerScrollStopCallback | undefined)); + } + } + } + if (this._onEnterSelectedArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onEnterSelectedArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnEnterSelectedAreaAttribute((this._onEnterSelectedArea_0_0value as TextPickerEnterSelectedAreaCallback | undefined)); + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnEnterSelectedAreaAttribute((undefined as TextPickerEnterSelectedAreaCallback | undefined)); + } + } + } + if (this._selectedIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedIndexAttribute((this._selectedIndex_0_0value as number | Array | undefined)); + this._selectedIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedIndex_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedIndexAttribute((undefined as number | Array | undefined)); + } + } + } + if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDividerAttribute((this._divider_0_0value as DividerOptions | undefined)); + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._divider_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._divider_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDividerAttribute((undefined as DividerOptions | undefined)); + } + } + } + if (this._gradientHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._gradientHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGradientHeightAttribute((this._gradientHeight_0_0value as Dimension | undefined)); + this._gradientHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._gradientHeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._gradientHeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setGradientHeightAttribute((undefined as Dimension | undefined)); + } + } + } + if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableHapticFeedbackAttribute((undefined as boolean | 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)); + } + } + } + } + mergeModifier(modifier: TextPickerModifier): void { + super.mergeModifier(modifier) + if (modifier._defaultPickerItemHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._defaultPickerItemHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.defaultPickerItemHeight(modifier._defaultPickerItemHeight_0_0value); + break; + } + default: { + this.defaultPickerItemHeight((undefined as number | string | undefined)); + } + } + } + if (modifier._canLoop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._canLoop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.canLoop(modifier._canLoop_0_0value); + break; + } + default: { + this.canLoop((undefined as boolean | undefined)); + } + } + } + if (modifier._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._disappearTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.disappearTextStyle(modifier._disappearTextStyle_0_0value); + break; + } + default: { + this.disappearTextStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textStyle(modifier._textStyle_0_0value); + break; + } + default: { + this.textStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedTextStyle(modifier._selectedTextStyle_0_0value); + break; + } + default: { + this.selectedTextStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._disableTextStyleAnimation_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._disableTextStyleAnimation_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.disableTextStyleAnimation(modifier._disableTextStyleAnimation_0_0value); + break; + } + default: { + this.disableTextStyleAnimation((undefined as boolean | undefined)); + } + } + } + if (modifier._defaultTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._defaultTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.defaultTextStyle(modifier._defaultTextStyle_0_0value); + break; + } + default: { + this.defaultTextStyle((undefined as TextPickerTextStyle | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as OnTextPickerChangeCallback | 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 TextPickerScrollStopCallback | undefined)); + } + } + } + if (modifier._onEnterSelectedArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onEnterSelectedArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onEnterSelectedArea(modifier._onEnterSelectedArea_0_0value); + break; + } + default: { + this.onEnterSelectedArea((undefined as TextPickerEnterSelectedAreaCallback | undefined)); + } + } + } + if (modifier._selectedIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedIndex(modifier._selectedIndex_0_0value); + break; + } + default: { + this.selectedIndex((undefined as number | Array | undefined)); + } + } + } + if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._divider_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.divider(modifier._divider_0_0value); + break; + } + default: { + this.divider((undefined as DividerOptions | undefined)); + } + } + } + if (modifier._gradientHeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._gradientHeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.gradientHeight(modifier._gradientHeight_0_0value); + break; + } + default: { + this.gradientHeight((undefined as Dimension | undefined)); + } + } + } + if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); + break; + } + default: { + this.enableHapticFeedback((undefined as boolean | 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)); + } + } + } + } + defaultPickerItemHeight(value: number | string | undefined): this { + if (((this._defaultPickerItemHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultPickerItemHeight_0_0value) !== (value))) + { + this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.UPDATE + this._defaultPickerItemHeight_0_0value = value + } else + { + this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + canLoop(value: boolean | undefined): this { + if (((this._canLoop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._canLoop_0_0value) !== (value))) + { + this._canLoop_0_flag = AttributeUpdaterFlag.UPDATE + this._canLoop_0_0value = value + } else + { + this._canLoop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + disappearTextStyle(value: PickerTextStyle | undefined): this { + if (((this._disappearTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._disappearTextStyle_0_0value = value + } else + { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textStyle(value: PickerTextStyle | undefined): this { + if (((this._textStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._textStyle_0_0value = value + } else + { + this._textStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedTextStyle(value: PickerTextStyle | undefined): this { + if (((this._selectedTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedTextStyle_0_0value = value + } else + { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + disableTextStyleAnimation(value: boolean | undefined): this { + if (((this._disableTextStyleAnimation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._disableTextStyleAnimation_0_0value) !== (value))) + { + this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.UPDATE + this._disableTextStyleAnimation_0_0value = value + } else + { + this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + defaultTextStyle(value: TextPickerTextStyle | undefined): this { + if (((this._defaultTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._defaultTextStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._defaultTextStyle_0_0value = value + } else + { + this._defaultTextStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: OnTextPickerChangeCallback | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollStop(value: TextPickerScrollStopCallback | 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 + } + onEnterSelectedArea(value: TextPickerEnterSelectedAreaCallback | undefined): this { + if (((this._onEnterSelectedArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.UPDATE + this._onEnterSelectedArea_0_0value = value + } else + { + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedIndex(value: number | Array | undefined): this { + if (((this._selectedIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectedIndex_0_0value) !== (value))) + { + this._selectedIndex_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedIndex_0_0value = value + } else + { + this._selectedIndex_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + divider(value: DividerOptions | undefined): this { + if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._divider_0_flag = AttributeUpdaterFlag.UPDATE + this._divider_0_0value = value + } else + { + this._divider_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + gradientHeight(value: Dimension | undefined): this { + if (((this._gradientHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._gradientHeight_0_flag = AttributeUpdaterFlag.UPDATE + this._gradientHeight_0_0value = value + } else + { + this._gradientHeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableHapticFeedback(value: boolean | undefined): this { + if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE + this._enableHapticFeedback_0_0value = value + } else + { + this._enableHapticFeedback_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 + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/TextTimerModifier.ets b/arkoala-arkts/arkui/generated/TextTimerModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..0af657e7047da4dfaa63c64a0ba63df28ea83d9b --- /dev/null +++ b/arkoala-arkts/arkui/generated/TextTimerModifier.ets @@ -0,0 +1,399 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTextTimerPeer, TextTimerConfiguration, TextTimerAttribute } from "./component/textTimer" +import { CommonMethod, ShadowOptions } from "./component/common" +import { ResourceColor, Length, ResourceStr } from "./component/units" +import { Color, FontStyle, FontWeight } from "./component/enums" +import { Resource } from "global.resource" +export class TextTimerModifier extends CommonMethodModifier implements TextTimerAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: TextTimerAttribute): void { } + applyPressedAttribute(instance: TextTimerAttribute): void { } + applyFocusedAttribute(instance: TextTimerAttribute): void { } + applyDisabledAttribute(instance: TextTimerAttribute): void { } + applySelectedAttribute(instance: TextTimerAttribute): void { } + _format_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _format_0_0value?: string | undefined + _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontColor_0_0value?: ResourceColor | undefined + _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontSize_0_0value?: Length | undefined + _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontStyle_0_0value?: FontStyle | undefined + _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontWeight_0_0value?: number | FontWeight | ResourceStr | undefined + _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fontFamily_0_0value?: ResourceStr | undefined + _onTimer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTimer_0_0value?: ((utc: number,elapsedTime: number) => void) | undefined + _textShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textShadow_0_0value?: ShadowOptions | Array | undefined + applyModifierPatch(peer: ArkTextTimerPeer): void { + super.applyModifierPatch(peer) + if (this._format_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._format_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFormatAttribute((this._format_0_0value as string | undefined)); + this._format_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._format_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._format_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFormatAttribute((undefined as string | undefined)); + } + } + } + if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontSizeAttribute((undefined as Length | undefined)); + } + } + } + if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontStyleAttribute((undefined as FontStyle | undefined)); + } + } + } + if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | ResourceStr | undefined)); + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontWeightAttribute((undefined as number | FontWeight | ResourceStr | undefined)); + } + } + } + if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFontFamilyAttribute((this._fontFamily_0_0value as ResourceStr | undefined)); + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFontFamilyAttribute((undefined as ResourceStr | undefined)); + } + } + } + if (this._onTimer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTimer_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTimerAttribute((this._onTimer_0_0value as ((utc: number,elapsedTime: number) => void) | undefined)); + this._onTimer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTimer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTimer_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTimerAttribute((undefined as ((utc: number,elapsedTime: number) => void) | undefined)); + } + } + } + if (this._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextShadowAttribute((this._textShadow_0_0value as ShadowOptions | Array | undefined)); + this._textShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textShadow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textShadow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextShadowAttribute((undefined as ShadowOptions | Array | undefined)); + } + } + } + } + mergeModifier(modifier: TextTimerModifier): void { + super.mergeModifier(modifier) + if (modifier._format_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._format_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.format(modifier._format_0_0value); + break; + } + default: { + this.format((undefined as string | undefined)); + } + } + } + if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontColor(modifier._fontColor_0_0value); + break; + } + default: { + this.fontColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontSize(modifier._fontSize_0_0value); + break; + } + default: { + this.fontSize((undefined as Length | undefined)); + } + } + } + if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontStyle(modifier._fontStyle_0_0value); + break; + } + default: { + this.fontStyle((undefined as FontStyle | undefined)); + } + } + } + if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontWeight(modifier._fontWeight_0_0value); + break; + } + default: { + this.fontWeight((undefined as number | FontWeight | ResourceStr | undefined)); + } + } + } + if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fontFamily_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fontFamily(modifier._fontFamily_0_0value); + break; + } + default: { + this.fontFamily((undefined as ResourceStr | undefined)); + } + } + } + if (modifier._onTimer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTimer_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTimer(modifier._onTimer_0_0value); + break; + } + default: { + this.onTimer((undefined as ((utc: number,elapsedTime: number) => void) | undefined)); + } + } + } + if (modifier._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textShadow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textShadow(modifier._textShadow_0_0value); + break; + } + default: { + this.textShadow((undefined as ShadowOptions | Array | undefined)); + } + } + } + } + format(value: string | undefined): this { + if (((this._format_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._format_0_0value) !== (value))) + { + this._format_0_flag = AttributeUpdaterFlag.UPDATE + this._format_0_0value = value + } else + { + this._format_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontColor(value: ResourceColor | undefined): this { + if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE + this._fontColor_0_0value = value + } else + { + this._fontColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontSize(value: Length | undefined): this { + if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._fontSize_0_0value = value + } else + { + this._fontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontStyle(value: FontStyle | undefined): this { + if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._fontStyle_0_0value = value + } else + { + this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontWeight(value: number | FontWeight | ResourceStr | undefined): this { + if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._fontWeight_0_0value = value + } else + { + this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fontFamily(value: ResourceStr | undefined): this { + if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE + this._fontFamily_0_0value = value + } else + { + this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTimer(value: ((utc: number,elapsedTime: number) => void) | undefined): this { + if (((this._onTimer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTimer_0_flag = AttributeUpdaterFlag.UPDATE + this._onTimer_0_0value = value + } else + { + this._onTimer_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textShadow(value: ShadowOptions | Array | undefined): this { + if (((this._textShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textShadow_0_flag = AttributeUpdaterFlag.UPDATE + this._textShadow_0_0value = value + } else + { + this._textShadow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/TimePickerModifier.ets b/arkoala-arkts/arkui/generated/TimePickerModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..f4698f8f7f3891148b5b0d2715e8c89a58841d29 --- /dev/null +++ b/arkoala-arkts/arkui/generated/TimePickerModifier.ets @@ -0,0 +1,530 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTimePickerPeer, OnTimePickerChangeCallback, TimePickerResult, TimePickerAttribute } from "./component/timePicker" +import { CommonMethod, PickerTextStyle } from "./component/common" +import { intl } from "./framework/ohos.intl" +import { CrownSensitivity } from "./component/enums" +export class TimePickerModifier extends CommonMethodModifier implements TimePickerAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: TimePickerAttribute): void { } + applyPressedAttribute(instance: TimePickerAttribute): void { } + applyFocusedAttribute(instance: TimePickerAttribute): void { } + applyDisabledAttribute(instance: TimePickerAttribute): void { } + applySelectedAttribute(instance: TimePickerAttribute): void { } + _useMilitaryTime_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _useMilitaryTime_0_0value?: boolean | undefined + _loop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _loop_0_0value?: boolean | undefined + _disappearTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _disappearTextStyle_0_0value?: PickerTextStyle | undefined + _textStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textStyle_0_0value?: PickerTextStyle | undefined + _selectedTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedTextStyle_0_0value?: PickerTextStyle | undefined + _dateTimeOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _dateTimeOptions_0_0value?: intl.DateTimeOptions | undefined + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: OnTimePickerChangeCallback | undefined + _onEnterSelectedArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onEnterSelectedArea_0_0value?: ((value0: TimePickerResult) => void) | undefined + _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableHapticFeedback_0_0value?: boolean | undefined + _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined + _enableCascade_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableCascade_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkTimePickerPeer): void { + super.applyModifierPatch(peer) + if (this._useMilitaryTime_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._useMilitaryTime_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setUseMilitaryTimeAttribute((this._useMilitaryTime_0_0value as boolean | undefined)); + this._useMilitaryTime_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._useMilitaryTime_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._useMilitaryTime_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setUseMilitaryTimeAttribute((undefined as boolean | undefined)); + } + } + } + if (this._loop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._loop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLoopAttribute((this._loop_0_0value as boolean | undefined)); + this._loop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._loop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._loop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLoopAttribute((undefined as boolean | undefined)); + } + } + } + if (this._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._disappearTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDisappearTextStyleAttribute((this._disappearTextStyle_0_0value as PickerTextStyle | undefined)); + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDisappearTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextStyleAttribute((this._textStyle_0_0value as PickerTextStyle | undefined)); + this._textStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedTextStyleAttribute((this._selectedTextStyle_0_0value as PickerTextStyle | undefined)); + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedTextStyleAttribute((undefined as PickerTextStyle | undefined)); + } + } + } + if (this._dateTimeOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._dateTimeOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDateTimeOptionsAttribute((this._dateTimeOptions_0_0value as intl.DateTimeOptions | undefined)); + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDateTimeOptionsAttribute((undefined as intl.DateTimeOptions | undefined)); + } + } + } + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as OnTimePickerChangeCallback | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as OnTimePickerChangeCallback | undefined)); + } + } + } + if (this._onEnterSelectedArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onEnterSelectedArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnEnterSelectedAreaAttribute((this._onEnterSelectedArea_0_0value as ((value0: TimePickerResult) => void) | undefined)); + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnEnterSelectedAreaAttribute((undefined as ((value0: TimePickerResult) => void) | undefined)); + } + } + } + if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableHapticFeedbackAttribute((undefined as boolean | 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._enableCascade_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableCascade_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableCascadeAttribute((this._enableCascade_0_0value as boolean | undefined)); + this._enableCascade_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableCascade_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableCascade_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableCascadeAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: TimePickerModifier): void { + super.mergeModifier(modifier) + if (modifier._useMilitaryTime_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._useMilitaryTime_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.useMilitaryTime(modifier._useMilitaryTime_0_0value); + break; + } + default: { + this.useMilitaryTime((undefined as boolean | undefined)); + } + } + } + if (modifier._loop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._loop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.loop(modifier._loop_0_0value); + break; + } + default: { + this.loop((undefined as boolean | undefined)); + } + } + } + if (modifier._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._disappearTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.disappearTextStyle(modifier._disappearTextStyle_0_0value); + break; + } + default: { + this.disappearTextStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textStyle(modifier._textStyle_0_0value); + break; + } + default: { + this.textStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedTextStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedTextStyle(modifier._selectedTextStyle_0_0value); + break; + } + default: { + this.selectedTextStyle((undefined as PickerTextStyle | undefined)); + } + } + } + if (modifier._dateTimeOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._dateTimeOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.dateTimeOptions(modifier._dateTimeOptions_0_0value); + break; + } + default: { + this.dateTimeOptions((undefined as intl.DateTimeOptions | undefined)); + } + } + } + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as OnTimePickerChangeCallback | undefined)); + } + } + } + if (modifier._onEnterSelectedArea_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onEnterSelectedArea_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onEnterSelectedArea(modifier._onEnterSelectedArea_0_0value); + break; + } + default: { + this.onEnterSelectedArea((undefined as ((value0: TimePickerResult) => void) | undefined)); + } + } + } + if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); + break; + } + default: { + this.enableHapticFeedback((undefined as boolean | 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._enableCascade_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableCascade_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableCascade(modifier._enableCascade_0_0value); + break; + } + default: { + this.enableCascade((undefined as boolean | undefined)); + } + } + } + } + useMilitaryTime(value: boolean | undefined): this { + if (((this._useMilitaryTime_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._useMilitaryTime_0_0value) !== (value))) + { + this._useMilitaryTime_0_flag = AttributeUpdaterFlag.UPDATE + this._useMilitaryTime_0_0value = value + } else + { + this._useMilitaryTime_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + loop(value: boolean | undefined): this { + if (((this._loop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._loop_0_0value) !== (value))) + { + this._loop_0_flag = AttributeUpdaterFlag.UPDATE + this._loop_0_0value = value + } else + { + this._loop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + disappearTextStyle(value: PickerTextStyle | undefined): this { + if (((this._disappearTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._disappearTextStyle_0_0value = value + } else + { + this._disappearTextStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textStyle(value: PickerTextStyle | undefined): this { + if (((this._textStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._textStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._textStyle_0_0value = value + } else + { + this._textStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedTextStyle(value: PickerTextStyle | undefined): this { + if (((this._selectedTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedTextStyle_0_0value = value + } else + { + this._selectedTextStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + dateTimeOptions(value: intl.DateTimeOptions | undefined): this { + if (((this._dateTimeOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._dateTimeOptions_0_0value = value + } else + { + this._dateTimeOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onChange(value: OnTimePickerChangeCallback | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onEnterSelectedArea(value: ((value0: TimePickerResult) => void) | undefined): this { + if (((this._onEnterSelectedArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.UPDATE + this._onEnterSelectedArea_0_0value = value + } else + { + this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableHapticFeedback(value: boolean | undefined): this { + if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE + this._enableHapticFeedback_0_0value = value + } else + { + this._enableHapticFeedback_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 + } + enableCascade(value: boolean | undefined): this { + if (((this._enableCascade_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableCascade_0_0value) !== (value))) + { + this._enableCascade_0_flag = AttributeUpdaterFlag.UPDATE + this._enableCascade_0_0value = value + } else + { + this._enableCascade_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/ToggleModifier.ets b/arkoala-arkts/arkui/generated/ToggleModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..0eda1b4d32786ba59a8a0ca18dcdf7f99795e39c --- /dev/null +++ b/arkoala-arkts/arkui/generated/ToggleModifier.ets @@ -0,0 +1,223 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier, ContentModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkTogglePeer, ToggleConfiguration, SwitchStyle, ToggleAttribute } from "./component/toggle" +import { CommonMethod } from "./component/common" +import { ResourceColor } from "./component/units" +import { Color } from "./component/enums" +import { Resource } from "global.resource" +export class ToggleModifier extends CommonMethodModifier implements ToggleAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: ToggleAttribute): void { } + applyPressedAttribute(instance: ToggleAttribute): void { } + applyFocusedAttribute(instance: ToggleAttribute): void { } + applyDisabledAttribute(instance: ToggleAttribute): void { } + applySelectedAttribute(instance: ToggleAttribute): void { } + _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onChange_0_0value?: ((value0: boolean) => void) | undefined + _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _selectedColor_0_0value?: ResourceColor | undefined + _switchPointColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _switchPointColor_0_0value?: ResourceColor | undefined + _switchStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _switchStyle_0_0value?: SwitchStyle | undefined + applyModifierPatch(peer: ArkTogglePeer): void { + super.applyModifierPatch(peer) + if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: boolean) => void) | undefined)); + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | undefined)); + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSelectedColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._switchPointColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._switchPointColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSwitchPointColorAttribute((this._switchPointColor_0_0value as ResourceColor | undefined)); + this._switchPointColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._switchPointColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._switchPointColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSwitchPointColorAttribute((undefined as ResourceColor | undefined)); + } + } + } + if (this._switchStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._switchStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSwitchStyleAttribute((this._switchStyle_0_0value as SwitchStyle | undefined)); + this._switchStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._switchStyle_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._switchStyle_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSwitchStyleAttribute((undefined as SwitchStyle | undefined)); + } + } + } + } + mergeModifier(modifier: ToggleModifier): void { + super.mergeModifier(modifier) + if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onChange(modifier._onChange_0_0value); + break; + } + default: { + this.onChange((undefined as ((value0: boolean) => void) | undefined)); + } + } + } + if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._selectedColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.selectedColor(modifier._selectedColor_0_0value); + break; + } + default: { + this.selectedColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._switchPointColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._switchPointColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.switchPointColor(modifier._switchPointColor_0_0value); + break; + } + default: { + this.switchPointColor((undefined as ResourceColor | undefined)); + } + } + } + if (modifier._switchStyle_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._switchStyle_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.switchStyle(modifier._switchStyle_0_0value); + break; + } + default: { + this.switchStyle((undefined as SwitchStyle | undefined)); + } + } + } + } + onChange(value: ((value0: boolean) => void) | undefined): this { + if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onChange_0_0value = value + } else + { + this._onChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + selectedColor(value: ResourceColor | undefined): this { + if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE + this._selectedColor_0_0value = value + } else + { + this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + switchPointColor(value: ResourceColor | undefined): this { + if (((this._switchPointColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._switchPointColor_0_flag = AttributeUpdaterFlag.UPDATE + this._switchPointColor_0_0value = value + } else + { + this._switchPointColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + switchStyle(value: SwitchStyle | undefined): this { + if (((this._switchStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._switchStyle_0_flag = AttributeUpdaterFlag.UPDATE + this._switchStyle_0_0value = value + } else + { + this._switchStyle_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/UIExtensionComponentModifier.ets b/arkoala-arkts/arkui/generated/UIExtensionComponentModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..78350d579ccd80c3782468e509e3c72a304dc42f --- /dev/null +++ b/arkoala-arkts/arkui/generated/UIExtensionComponentModifier.ets @@ -0,0 +1,265 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkUIExtensionComponentPeer, UIExtensionProxy, UIExtensionComponentAttribute } from "./component/uiExtensionComponent" +import { CommonMethod, TerminationInfo } from "./component/common" +import { ErrorCallback, BusinessError } from "./framework/ohos.base" +export class UIExtensionComponentModifier extends CommonMethodModifier implements UIExtensionComponentAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: UIExtensionComponentAttribute): void { } + applyPressedAttribute(instance: UIExtensionComponentAttribute): void { } + applyFocusedAttribute(instance: UIExtensionComponentAttribute): void { } + applyDisabledAttribute(instance: UIExtensionComponentAttribute): void { } + applySelectedAttribute(instance: UIExtensionComponentAttribute): void { } + _onRemoteReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRemoteReady_0_0value?: ((value0: UIExtensionProxy) => void) | undefined + _onReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onReceive_0_0value?: ((value0: Map) => void) | undefined + _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onError_0_0value?: ErrorCallback | undefined + _onTerminated_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTerminated_0_0value?: ((value0: TerminationInfo) => void) | undefined + _onDrawReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDrawReady_0_0value?: (() => void) | undefined + applyModifierPatch(peer: ArkUIExtensionComponentPeer): void { + super.applyModifierPatch(peer) + if (this._onRemoteReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRemoteReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRemoteReadyAttribute((this._onRemoteReady_0_0value as ((value0: UIExtensionProxy) => void) | undefined)); + this._onRemoteReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRemoteReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRemoteReady_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRemoteReadyAttribute((undefined as ((value0: UIExtensionProxy) => void) | undefined)); + } + } + } + if (this._onReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnReceiveAttribute((this._onReceive_0_0value as ((value0: Map) => void) | undefined)); + this._onReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onReceive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnReceiveAttribute((undefined as ((value0: Map) => void) | undefined)); + } + } + } + if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnErrorAttribute((this._onError_0_0value as ErrorCallback | undefined)); + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onError_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnErrorAttribute((undefined as ErrorCallback | undefined)); + } + } + } + if (this._onTerminated_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTerminated_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTerminatedAttribute((this._onTerminated_0_0value as ((value0: TerminationInfo) => void) | undefined)); + this._onTerminated_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTerminated_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTerminated_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTerminatedAttribute((undefined as ((value0: TerminationInfo) => void) | undefined)); + } + } + } + if (this._onDrawReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDrawReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDrawReadyAttribute((this._onDrawReady_0_0value as (() => void) | undefined)); + this._onDrawReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDrawReady_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDrawReady_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDrawReadyAttribute((undefined as (() => void) | undefined)); + } + } + } + } + mergeModifier(modifier: UIExtensionComponentModifier): void { + super.mergeModifier(modifier) + if (modifier._onRemoteReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRemoteReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRemoteReady(modifier._onRemoteReady_0_0value); + break; + } + default: { + this.onRemoteReady((undefined as ((value0: UIExtensionProxy) => void) | undefined)); + } + } + } + if (modifier._onReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onReceive(modifier._onReceive_0_0value); + break; + } + default: { + this.onReceive((undefined as ((value0: Map) => void) | undefined)); + } + } + } + if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onError(modifier._onError_0_0value); + break; + } + default: { + this.onError((undefined as ErrorCallback | undefined)); + } + } + } + if (modifier._onTerminated_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTerminated_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTerminated(modifier._onTerminated_0_0value); + break; + } + default: { + this.onTerminated((undefined as ((value0: TerminationInfo) => void) | undefined)); + } + } + } + if (modifier._onDrawReady_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDrawReady_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDrawReady(modifier._onDrawReady_0_0value); + break; + } + default: { + this.onDrawReady((undefined as (() => void) | undefined)); + } + } + } + } + onRemoteReady(value: ((value0: UIExtensionProxy) => void) | undefined): this { + if (((this._onRemoteReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRemoteReady_0_flag = AttributeUpdaterFlag.UPDATE + this._onRemoteReady_0_0value = value + } else + { + this._onRemoteReady_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onReceive(value: ((value0: Map) => void) | undefined): this { + if (((this._onReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onReceive_0_flag = AttributeUpdaterFlag.UPDATE + this._onReceive_0_0value = value + } else + { + this._onReceive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onError(value: ErrorCallback | undefined): this { + if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onError_0_flag = AttributeUpdaterFlag.UPDATE + this._onError_0_0value = value + } else + { + this._onError_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTerminated(value: ((value0: TerminationInfo) => void) | undefined): this { + if (((this._onTerminated_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTerminated_0_flag = AttributeUpdaterFlag.UPDATE + this._onTerminated_0_0value = value + } else + { + this._onTerminated_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDrawReady(value: (() => void) | undefined): this { + if (((this._onDrawReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDrawReady_0_flag = AttributeUpdaterFlag.UPDATE + this._onDrawReady_0_0value = value + } else + { + this._onDrawReady_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/VideoModifier.ets b/arkoala-arkts/arkui/generated/VideoModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..6e75496e6b1643736d4afe60547fa7a05bb3dd2f --- /dev/null +++ b/arkoala-arkts/arkui/generated/VideoModifier.ets @@ -0,0 +1,884 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkVideoPeer, FullscreenInfo, PreparedInfo, PlaybackInfo, VideoAttribute } from "./component/video" +import { CommonMethod } from "./component/common" +import { ImageFit } from "./component/enums" +import { VoidCallback } from "./component/units" +import { ImageAnalyzerConfig } from "./component/imageCommon" +import { ColorMetrics } from "./Graphics" +export class VideoModifier extends CommonMethodModifier implements VideoAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: VideoAttribute): void { } + applyPressedAttribute(instance: VideoAttribute): void { } + applyFocusedAttribute(instance: VideoAttribute): void { } + applyDisabledAttribute(instance: VideoAttribute): void { } + applySelectedAttribute(instance: VideoAttribute): void { } + _muted_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _muted_0_0value?: boolean | undefined + _autoPlay_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _autoPlay_0_0value?: boolean | undefined + _controls_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _controls_0_0value?: boolean | undefined + _loop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _loop_0_0value?: boolean | undefined + _objectFit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _objectFit_0_0value?: ImageFit | undefined + _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onStart_0_0value?: VoidCallback | undefined + _onPause_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPause_0_0value?: VoidCallback | undefined + _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFinish_0_0value?: VoidCallback | undefined + _onFullscreenChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFullscreenChange_0_0value?: ((value0: FullscreenInfo) => void) | undefined + _onPrepared_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPrepared_0_0value?: ((value0: PreparedInfo) => void) | undefined + _onSeeking_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSeeking_0_0value?: ((value0: PlaybackInfo) => void) | undefined + _onSeeked_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSeeked_0_0value?: ((value0: PlaybackInfo) => void) | undefined + _onUpdate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onUpdate_0_0value?: ((value0: PlaybackInfo) => void) | undefined + _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onError_0_0value?: (() => void) | undefined + _onStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onStop_0_0value?: (() => void) | undefined + _enableAnalyzer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableAnalyzer_0_0value?: boolean | undefined + _analyzerConfig_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _analyzerConfig_0_0value?: ImageAnalyzerConfig | undefined + _surfaceBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _surfaceBackgroundColor_0_0value?: ColorMetrics | undefined + _enableShortcutKey_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableShortcutKey_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkVideoPeer): void { + super.applyModifierPatch(peer) + if (this._muted_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._muted_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMutedAttribute((this._muted_0_0value as boolean | undefined)); + this._muted_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._muted_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._muted_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMutedAttribute((undefined as boolean | undefined)); + } + } + } + if (this._autoPlay_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._autoPlay_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAutoPlayAttribute((this._autoPlay_0_0value as boolean | undefined)); + this._autoPlay_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._autoPlay_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._autoPlay_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAutoPlayAttribute((undefined as boolean | undefined)); + } + } + } + if (this._controls_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._controls_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setControlsAttribute((this._controls_0_0value as boolean | undefined)); + this._controls_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._controls_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._controls_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setControlsAttribute((undefined as boolean | undefined)); + } + } + } + if (this._loop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._loop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLoopAttribute((this._loop_0_0value as boolean | undefined)); + this._loop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._loop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._loop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLoopAttribute((undefined as boolean | undefined)); + } + } + } + if (this._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._objectFit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setObjectFitAttribute((this._objectFit_0_0value as ImageFit | undefined)); + this._objectFit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._objectFit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._objectFit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setObjectFitAttribute((undefined as ImageFit | undefined)); + } + } + } + if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnStartAttribute((this._onStart_0_0value as VoidCallback | undefined)); + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnStartAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onPause_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPause_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPauseAttribute((this._onPause_0_0value as VoidCallback | undefined)); + this._onPause_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPause_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPause_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPauseAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFinishAttribute((this._onFinish_0_0value as VoidCallback | undefined)); + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFinish_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFinishAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._onFullscreenChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFullscreenChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFullscreenChangeAttribute((this._onFullscreenChange_0_0value as ((value0: FullscreenInfo) => void) | undefined)); + this._onFullscreenChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFullscreenChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFullscreenChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFullscreenChangeAttribute((undefined as ((value0: FullscreenInfo) => void) | undefined)); + } + } + } + if (this._onPrepared_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPrepared_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPreparedAttribute((this._onPrepared_0_0value as ((value0: PreparedInfo) => void) | undefined)); + this._onPrepared_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPrepared_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPrepared_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPreparedAttribute((undefined as ((value0: PreparedInfo) => void) | undefined)); + } + } + } + if (this._onSeeking_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSeeking_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSeekingAttribute((this._onSeeking_0_0value as ((value0: PlaybackInfo) => void) | undefined)); + this._onSeeking_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSeeking_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSeeking_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSeekingAttribute((undefined as ((value0: PlaybackInfo) => void) | undefined)); + } + } + } + if (this._onSeeked_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSeeked_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSeekedAttribute((this._onSeeked_0_0value as ((value0: PlaybackInfo) => void) | undefined)); + this._onSeeked_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSeeked_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSeeked_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSeekedAttribute((undefined as ((value0: PlaybackInfo) => void) | undefined)); + } + } + } + if (this._onUpdate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onUpdate_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnUpdateAttribute((this._onUpdate_0_0value as ((value0: PlaybackInfo) => void) | undefined)); + this._onUpdate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onUpdate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onUpdate_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnUpdateAttribute((undefined as ((value0: PlaybackInfo) => void) | undefined)); + } + } + } + if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnErrorAttribute((this._onError_0_0value as (() => void) | undefined)); + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onError_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onError_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnErrorAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onStop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onStop_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnStopAttribute((this._onStop_0_0value as (() => void) | undefined)); + this._onStop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onStop_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onStop_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnStopAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableAnalyzer_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableAnalyzerAttribute((this._enableAnalyzer_0_0value as boolean | undefined)); + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableAnalyzerAttribute((undefined as boolean | undefined)); + } + } + } + if (this._analyzerConfig_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._analyzerConfig_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAnalyzerConfigAttribute((this._analyzerConfig_0_0value as ImageAnalyzerConfig | undefined)); + this._analyzerConfig_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._analyzerConfig_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._analyzerConfig_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAnalyzerConfigAttribute((undefined as ImageAnalyzerConfig | undefined)); + } + } + } + if (this._surfaceBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._surfaceBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setSurfaceBackgroundColorAttribute((this._surfaceBackgroundColor_0_0value as ColorMetrics | undefined)); + this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setSurfaceBackgroundColorAttribute((undefined as ColorMetrics | undefined)); + } + } + } + if (this._enableShortcutKey_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableShortcutKey_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableShortcutKeyAttribute((this._enableShortcutKey_0_0value as boolean | undefined)); + this._enableShortcutKey_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableShortcutKey_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableShortcutKey_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableShortcutKeyAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: VideoModifier): void { + super.mergeModifier(modifier) + if (modifier._muted_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._muted_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.muted(modifier._muted_0_0value); + break; + } + default: { + this.muted((undefined as boolean | undefined)); + } + } + } + if (modifier._autoPlay_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._autoPlay_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.autoPlay(modifier._autoPlay_0_0value); + break; + } + default: { + this.autoPlay((undefined as boolean | undefined)); + } + } + } + if (modifier._controls_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._controls_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.controls(modifier._controls_0_0value); + break; + } + default: { + this.controls((undefined as boolean | undefined)); + } + } + } + if (modifier._loop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._loop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.loop(modifier._loop_0_0value); + break; + } + default: { + this.loop((undefined as boolean | undefined)); + } + } + } + if (modifier._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._objectFit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.objectFit(modifier._objectFit_0_0value); + break; + } + default: { + this.objectFit((undefined as ImageFit | undefined)); + } + } + } + if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onStart(modifier._onStart_0_0value); + break; + } + default: { + this.onStart((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onPause_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPause_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPause(modifier._onPause_0_0value); + break; + } + default: { + this.onPause((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFinish_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFinish(modifier._onFinish_0_0value); + break; + } + default: { + this.onFinish((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._onFullscreenChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFullscreenChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFullscreenChange(modifier._onFullscreenChange_0_0value); + break; + } + default: { + this.onFullscreenChange((undefined as ((value0: FullscreenInfo) => void) | undefined)); + } + } + } + if (modifier._onPrepared_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPrepared_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPrepared(modifier._onPrepared_0_0value); + break; + } + default: { + this.onPrepared((undefined as ((value0: PreparedInfo) => void) | undefined)); + } + } + } + if (modifier._onSeeking_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSeeking_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSeeking(modifier._onSeeking_0_0value); + break; + } + default: { + this.onSeeking((undefined as ((value0: PlaybackInfo) => void) | undefined)); + } + } + } + if (modifier._onSeeked_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSeeked_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSeeked(modifier._onSeeked_0_0value); + break; + } + default: { + this.onSeeked((undefined as ((value0: PlaybackInfo) => void) | undefined)); + } + } + } + if (modifier._onUpdate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onUpdate_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onUpdate(modifier._onUpdate_0_0value); + break; + } + default: { + this.onUpdate((undefined as ((value0: PlaybackInfo) => void) | undefined)); + } + } + } + if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onError_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onError(modifier._onError_0_0value); + break; + } + default: { + this.onError((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onStop_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onStop_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onStop(modifier._onStop_0_0value); + break; + } + default: { + this.onStop((undefined as (() => void) | undefined)); + } + } + } + if (modifier._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableAnalyzer_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableAnalyzer(modifier._enableAnalyzer_0_0value); + break; + } + default: { + this.enableAnalyzer((undefined as boolean | undefined)); + } + } + } + if (modifier._analyzerConfig_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._analyzerConfig_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.analyzerConfig(modifier._analyzerConfig_0_0value); + break; + } + default: { + this.analyzerConfig((undefined as ImageAnalyzerConfig | undefined)); + } + } + } + if (modifier._surfaceBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._surfaceBackgroundColor_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.surfaceBackgroundColor(modifier._surfaceBackgroundColor_0_0value); + break; + } + default: { + this.surfaceBackgroundColor((undefined as ColorMetrics | undefined)); + } + } + } + if (modifier._enableShortcutKey_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableShortcutKey_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableShortcutKey(modifier._enableShortcutKey_0_0value); + break; + } + default: { + this.enableShortcutKey((undefined as boolean | undefined)); + } + } + } + } + muted(value: boolean | undefined): this { + if (((this._muted_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._muted_0_0value) !== (value))) + { + this._muted_0_flag = AttributeUpdaterFlag.UPDATE + this._muted_0_0value = value + } else + { + this._muted_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + autoPlay(value: boolean | undefined): this { + if (((this._autoPlay_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoPlay_0_0value) !== (value))) + { + this._autoPlay_0_flag = AttributeUpdaterFlag.UPDATE + this._autoPlay_0_0value = value + } else + { + this._autoPlay_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + controls(value: boolean | undefined): this { + if (((this._controls_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._controls_0_0value) !== (value))) + { + this._controls_0_flag = AttributeUpdaterFlag.UPDATE + this._controls_0_0value = value + } else + { + this._controls_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + loop(value: boolean | undefined): this { + if (((this._loop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._loop_0_0value) !== (value))) + { + this._loop_0_flag = AttributeUpdaterFlag.UPDATE + this._loop_0_0value = value + } else + { + this._loop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + objectFit(value: ImageFit | undefined): this { + if (((this._objectFit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._objectFit_0_flag = AttributeUpdaterFlag.UPDATE + this._objectFit_0_0value = value + } else + { + this._objectFit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onStart(value: VoidCallback | undefined): this { + if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onStart_0_0value = value + } else + { + this._onStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPause(value: VoidCallback | undefined): this { + if (((this._onPause_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPause_0_flag = AttributeUpdaterFlag.UPDATE + this._onPause_0_0value = value + } else + { + this._onPause_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFinish(value: VoidCallback | undefined): this { + if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE + this._onFinish_0_0value = value + } else + { + this._onFinish_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFullscreenChange(value: ((value0: FullscreenInfo) => void) | undefined): this { + if (((this._onFullscreenChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFullscreenChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onFullscreenChange_0_0value = value + } else + { + this._onFullscreenChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPrepared(value: ((value0: PreparedInfo) => void) | undefined): this { + if (((this._onPrepared_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPrepared_0_flag = AttributeUpdaterFlag.UPDATE + this._onPrepared_0_0value = value + } else + { + this._onPrepared_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSeeking(value: ((value0: PlaybackInfo) => void) | undefined): this { + if (((this._onSeeking_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSeeking_0_flag = AttributeUpdaterFlag.UPDATE + this._onSeeking_0_0value = value + } else + { + this._onSeeking_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSeeked(value: ((value0: PlaybackInfo) => void) | undefined): this { + if (((this._onSeeked_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSeeked_0_flag = AttributeUpdaterFlag.UPDATE + this._onSeeked_0_0value = value + } else + { + this._onSeeked_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onUpdate(value: ((value0: PlaybackInfo) => void) | undefined): this { + if (((this._onUpdate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onUpdate_0_flag = AttributeUpdaterFlag.UPDATE + this._onUpdate_0_0value = value + } else + { + this._onUpdate_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onError(value: (() => void) | undefined): this { + if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onError_0_flag = AttributeUpdaterFlag.UPDATE + this._onError_0_0value = value + } else + { + this._onError_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onStop(value: (() => void) | undefined): this { + if (((this._onStop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onStop_0_flag = AttributeUpdaterFlag.UPDATE + this._onStop_0_0value = value + } else + { + this._onStop_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableAnalyzer(value: boolean | undefined): this { + if (((this._enableAnalyzer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnalyzer_0_0value) !== (value))) + { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.UPDATE + this._enableAnalyzer_0_0value = value + } else + { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + analyzerConfig(value: ImageAnalyzerConfig | undefined): this { + if (((this._analyzerConfig_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._analyzerConfig_0_flag = AttributeUpdaterFlag.UPDATE + this._analyzerConfig_0_0value = value + } else + { + this._analyzerConfig_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + surfaceBackgroundColor(value: ColorMetrics | undefined): this { + if (((this._surfaceBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE + this._surfaceBackgroundColor_0_0value = value + } else + { + this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableShortcutKey(value: boolean | undefined): this { + if (((this._enableShortcutKey_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableShortcutKey_0_0value) !== (value))) + { + this._enableShortcutKey_0_flag = AttributeUpdaterFlag.UPDATE + this._enableShortcutKey_0_0value = value + } else + { + this._enableShortcutKey_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/WaterFlowModifier.ets b/arkoala-arkts/arkui/generated/WaterFlowModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..c6c5f073c5daee047a0de708262a79ac526394a5 --- /dev/null +++ b/arkoala-arkts/arkui/generated/WaterFlowModifier.ets @@ -0,0 +1,580 @@ +/* + * 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 { ScrollableCommonMethodModifier } from "./ScrollableCommonMethodModifier" +import { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkWaterFlowPeer, WaterFlowAttribute } from "./component/waterFlow" +import { ScrollableCommonMethod, OnWillScrollCallback, OnScrollCallback, CommonMethod } from "./component/common" +import { ConstraintSizeOptions, Length } from "./component/units" +import { Resource } from "global.resource" +import { FlexDirection, ScrollSource } from "./component/enums" +import { OnScrollFrameBeginCallback } from "./component/scroll" +import { ScrollState } from "./component/list" +export class WaterFlowModifier extends ScrollableCommonMethodModifier implements WaterFlowAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: WaterFlowAttribute): void { } + applyPressedAttribute(instance: WaterFlowAttribute): void { } + applyFocusedAttribute(instance: WaterFlowAttribute): void { } + applyDisabledAttribute(instance: WaterFlowAttribute): void { } + applySelectedAttribute(instance: WaterFlowAttribute): void { } + _columnsTemplate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _columnsTemplate_0_0value?: string | undefined + _itemConstraintSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _itemConstraintSize_0_0value?: ConstraintSizeOptions | undefined + _rowsTemplate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _rowsTemplate_0_0value?: string | undefined + _columnsGap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _columnsGap_0_0value?: Length | undefined + _rowsGap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _rowsGap_0_0value?: Length | undefined + _layoutDirection_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _layoutDirection_0_0value?: FlexDirection | undefined + _cachedCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cachedCount_0_0value?: number | undefined + _onScrollFrameBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollFrameBegin_0_0value?: OnScrollFrameBeginCallback | undefined + _onScrollIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScrollIndex_0_0value?: ((first: number,last: number) => void) | undefined + _onWillScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWillScroll_0_0value?: OnWillScrollCallback | undefined + _onDidScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDidScroll_0_0value?: OnScrollCallback | undefined + _cachedCount_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cachedCount_1_0value?: number | undefined + _cachedCount_1_1value?: boolean | undefined + applyModifierPatch(peer: ArkWaterFlowPeer): void { + super.applyModifierPatch(peer) + if (this._columnsTemplate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._columnsTemplate_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColumnsTemplateAttribute((this._columnsTemplate_0_0value as string | undefined)); + this._columnsTemplate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._columnsTemplate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._columnsTemplate_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColumnsTemplateAttribute((undefined as string | undefined)); + } + } + } + if (this._itemConstraintSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._itemConstraintSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setItemConstraintSizeAttribute((this._itemConstraintSize_0_0value as ConstraintSizeOptions | undefined)); + this._itemConstraintSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._itemConstraintSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._itemConstraintSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setItemConstraintSizeAttribute((undefined as ConstraintSizeOptions | undefined)); + } + } + } + if (this._rowsTemplate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._rowsTemplate_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRowsTemplateAttribute((this._rowsTemplate_0_0value as string | undefined)); + this._rowsTemplate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._rowsTemplate_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._rowsTemplate_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRowsTemplateAttribute((undefined as string | undefined)); + } + } + } + if (this._columnsGap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._columnsGap_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setColumnsGapAttribute((this._columnsGap_0_0value as Length | undefined)); + this._columnsGap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._columnsGap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._columnsGap_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setColumnsGapAttribute((undefined as Length | undefined)); + } + } + } + if (this._rowsGap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._rowsGap_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRowsGapAttribute((this._rowsGap_0_0value as Length | undefined)); + this._rowsGap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._rowsGap_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._rowsGap_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRowsGapAttribute((undefined as Length | undefined)); + } + } + } + if (this._layoutDirection_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._layoutDirection_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLayoutDirectionAttribute((this._layoutDirection_0_0value as FlexDirection | undefined)); + this._layoutDirection_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._layoutDirection_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._layoutDirection_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLayoutDirectionAttribute((undefined as FlexDirection | undefined)); + } + } + } + if (this._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cachedCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCachedCount0Attribute((this._cachedCount_0_0value as number | undefined)); + this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cachedCount_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCachedCount0Attribute((undefined as number | undefined)); + } + } + } + if (this._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollFrameBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollFrameBeginAttribute((this._onScrollFrameBegin_0_0value as OnScrollFrameBeginCallback | undefined)); + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollFrameBeginAttribute((undefined as OnScrollFrameBeginCallback | undefined)); + } + } + } + if (this._onScrollIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScrollIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollIndexAttribute((this._onScrollIndex_0_0value as ((first: number,last: number) => void) | undefined)); + this._onScrollIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScrollIndex_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScrollIndex_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollIndexAttribute((undefined as ((first: number,last: number) => void) | undefined)); + } + } + } + if (this._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWillScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWillScrollAttribute((this._onWillScroll_0_0value as OnWillScrollCallback | undefined)); + this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWillScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWillScrollAttribute((undefined as OnWillScrollCallback | undefined)); + } + } + } + if (this._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDidScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDidScrollAttribute((this._onDidScroll_0_0value as OnScrollCallback | undefined)); + this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDidScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDidScrollAttribute((undefined as OnScrollCallback | undefined)); + } + } + } + if (this._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cachedCount_1_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCachedCount1Attribute((this._cachedCount_1_0value as number | undefined), (this._cachedCount_1_1value as boolean | undefined)); + this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cachedCount_1_flag = AttributeUpdaterFlag.INITIAL; + peer.setCachedCount1Attribute((undefined as number | undefined), (undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: WaterFlowModifier): void { + super.mergeModifier(modifier) + if (modifier._columnsTemplate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._columnsTemplate_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.columnsTemplate(modifier._columnsTemplate_0_0value); + break; + } + default: { + this.columnsTemplate((undefined as string | undefined)); + } + } + } + if (modifier._itemConstraintSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._itemConstraintSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.itemConstraintSize(modifier._itemConstraintSize_0_0value); + break; + } + default: { + this.itemConstraintSize((undefined as ConstraintSizeOptions | undefined)); + } + } + } + if (modifier._rowsTemplate_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._rowsTemplate_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.rowsTemplate(modifier._rowsTemplate_0_0value); + break; + } + default: { + this.rowsTemplate((undefined as string | undefined)); + } + } + } + if (modifier._columnsGap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._columnsGap_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.columnsGap(modifier._columnsGap_0_0value); + break; + } + default: { + this.columnsGap((undefined as Length | undefined)); + } + } + } + if (modifier._rowsGap_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._rowsGap_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.rowsGap(modifier._rowsGap_0_0value); + break; + } + default: { + this.rowsGap((undefined as Length | undefined)); + } + } + } + if (modifier._layoutDirection_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._layoutDirection_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.layoutDirection(modifier._layoutDirection_0_0value); + break; + } + default: { + this.layoutDirection((undefined as FlexDirection | undefined)); + } + } + } + if (modifier._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cachedCount_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cachedCount(modifier._cachedCount_0_0value); + break; + } + default: { + this.cachedCount((undefined as number | undefined)); + } + } + } + if (modifier._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScrollFrameBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScrollFrameBegin(modifier._onScrollFrameBegin_0_0value); + break; + } + default: { + this.onScrollFrameBegin((undefined as OnScrollFrameBeginCallback | undefined)); + } + } + } + if (modifier._onScrollIndex_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScrollIndex_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScrollIndex(modifier._onScrollIndex_0_0value); + break; + } + default: { + this.onScrollIndex((undefined as ((first: number,last: number) => void) | undefined)); + } + } + } + if (modifier._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWillScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWillScroll(modifier._onWillScroll_0_0value); + break; + } + default: { + this.onWillScroll((undefined as OnWillScrollCallback | undefined)); + } + } + } + if (modifier._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDidScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDidScroll(modifier._onDidScroll_0_0value); + break; + } + default: { + this.onDidScroll((undefined as OnScrollCallback | undefined)); + } + } + } + if (modifier._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cachedCount_1_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cachedCount(modifier._cachedCount_1_0value, modifier._cachedCount_1_1value); + break; + } + default: { + this.cachedCount((undefined as number | undefined), (undefined as boolean | undefined)); + } + } + } + } + columnsTemplate(value: string | undefined): this { + if (((this._columnsTemplate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._columnsTemplate_0_0value) !== (value))) + { + this._columnsTemplate_0_flag = AttributeUpdaterFlag.UPDATE + this._columnsTemplate_0_0value = value + } else + { + this._columnsTemplate_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + itemConstraintSize(value: ConstraintSizeOptions | undefined): this { + if (((this._itemConstraintSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._itemConstraintSize_0_flag = AttributeUpdaterFlag.UPDATE + this._itemConstraintSize_0_0value = value + } else + { + this._itemConstraintSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + rowsTemplate(value: string | undefined): this { + if (((this._rowsTemplate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._rowsTemplate_0_0value) !== (value))) + { + this._rowsTemplate_0_flag = AttributeUpdaterFlag.UPDATE + this._rowsTemplate_0_0value = value + } else + { + this._rowsTemplate_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + columnsGap(value: Length | undefined): this { + if (((this._columnsGap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._columnsGap_0_flag = AttributeUpdaterFlag.UPDATE + this._columnsGap_0_0value = value + } else + { + this._columnsGap_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + rowsGap(value: Length | undefined): this { + if (((this._rowsGap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._rowsGap_0_flag = AttributeUpdaterFlag.UPDATE + this._rowsGap_0_0value = value + } else + { + this._rowsGap_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + layoutDirection(value: FlexDirection | undefined): this { + if (((this._layoutDirection_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._layoutDirection_0_flag = AttributeUpdaterFlag.UPDATE + this._layoutDirection_0_0value = value + } else + { + this._layoutDirection_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cachedCount(value: number | undefined): this { + if (((this._cachedCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_0_0value) !== (value))) + { + this._cachedCount_0_flag = AttributeUpdaterFlag.UPDATE + this._cachedCount_0_0value = value + } else + { + this._cachedCount_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { + if (((this._onScrollFrameBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.UPDATE + this._onScrollFrameBegin_0_0value = value + } else + { + this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScrollIndex(value: ((first: number,last: number) => void) | undefined): this { + if (((this._onScrollIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScrollIndex_0_flag = AttributeUpdaterFlag.UPDATE + this._onScrollIndex_0_0value = value + } else + { + this._onScrollIndex_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWillScroll(value: OnWillScrollCallback | undefined): this { + if (((this._onWillScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWillScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onWillScroll_0_0value = value + } else + { + this._onWillScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDidScroll(value: OnScrollCallback | undefined): this { + if (((this._onDidScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDidScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onDidScroll_0_0value = value + } else + { + this._onDidScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cachedCount(count: number | undefined, show: boolean | undefined): this { + if (((this._cachedCount_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_1_0value) !== (count)) || ((this._cachedCount_1_1value) !== (show))) + { + this._cachedCount_1_flag = AttributeUpdaterFlag.UPDATE + this._cachedCount_1_0value = count + this._cachedCount_1_1value = show + } else + { + this._cachedCount_1_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/WebModifier.ets b/arkoala-arkts/arkui/generated/WebModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..faa210154d2f6f53107201ee8207dc863ef13399 --- /dev/null +++ b/arkoala-arkts/arkui/generated/WebModifier.ets @@ -0,0 +1,5249 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkWebPeer, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, BlurOnKeyboardHideMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, WebResourceResponse, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, SslErrorEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, ThreatType, OnNavigationEntryCommittedCallback, LoadCommittedDetails, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, WebResourceRequest, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, OnRenderProcessRespondingCallback, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo, OnAdsBlockedCallback, AdsBlockedDetails, WebKeyboardAvoidMode, EmbedOptions, WebAttribute, WebElementType, WebResponseType, SelectionMenuOptionsExt } from "./component/web" +import { CommonMethod, KeyEvent, NestedScrollOptions } from "./component/common" +import { CopyOptions } from "./component/enums" +import { EditMenuOptions } from "./component/textCommon" +import { CustomBuilder } from "./component/builder" +import { int32 } from "@koalaui/common" + +export class WebModifier extends CommonMethodModifier implements WebAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: WebAttribute): void { } + applyPressedAttribute(instance: WebAttribute): void { } + applyFocusedAttribute(instance: WebAttribute): void { } + applyDisabledAttribute(instance: WebAttribute): void { } + applySelectedAttribute(instance: WebAttribute): void { } + _javaScriptAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _javaScriptAccess_0_0value?: boolean | undefined + _fileAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _fileAccess_0_0value?: boolean | undefined + _onlineImageAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onlineImageAccess_0_0value?: boolean | undefined + _domStorageAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _domStorageAccess_0_0value?: boolean | undefined + _imageAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _imageAccess_0_0value?: boolean | undefined + _mixedMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mixedMode_0_0value?: MixedMode | undefined + _zoomAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _zoomAccess_0_0value?: boolean | undefined + _geolocationAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _geolocationAccess_0_0value?: boolean | undefined + _javaScriptProxy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _javaScriptProxy_0_0value?: JavaScriptProxy | undefined + _cacheMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _cacheMode_0_0value?: CacheMode | undefined + _darkMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _darkMode_0_0value?: WebDarkMode | undefined + _forceDarkAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _forceDarkAccess_0_0value?: boolean | undefined + _mediaOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mediaOptions_0_0value?: WebMediaOptions | undefined + _overviewModeAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _overviewModeAccess_0_0value?: boolean | undefined + _overScrollMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _overScrollMode_0_0value?: OverScrollMode | undefined + _blurOnKeyboardHideMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _blurOnKeyboardHideMode_0_0value?: BlurOnKeyboardHideMode | undefined + _textZoomRatio_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textZoomRatio_0_0value?: int32 | undefined + _databaseAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _databaseAccess_0_0value?: boolean | undefined + _initialScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _initialScale_0_0value?: double | undefined + _metaViewport_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _metaViewport_0_0value?: boolean | undefined + _onPageEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPageEnd_0_0value?: ((value0: OnPageEndEvent) => void) | undefined + _onPageBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPageBegin_0_0value?: ((value0: OnPageBeginEvent) => void) | undefined + _onProgressChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onProgressChange_0_0value?: ((value0: OnProgressChangeEvent) => void) | undefined + _onTitleReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTitleReceive_0_0value?: ((value0: OnTitleReceiveEvent) => void) | undefined + _onGeolocationHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onGeolocationHide_0_0value?: (() => void) | undefined + _onGeolocationShow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onGeolocationShow_0_0value?: ((value0: OnGeolocationShowEvent) => void) | undefined + _onRequestSelected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRequestSelected_0_0value?: (() => void) | undefined + _onAlert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAlert_0_0value?: ((value0: OnAlertEvent) => boolean) | undefined + _onBeforeUnload_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onBeforeUnload_0_0value?: ((value0: OnBeforeUnloadEvent) => boolean) | undefined + _onConfirm_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onConfirm_0_0value?: ((value0: OnConfirmEvent) => boolean) | undefined + _onPrompt_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPrompt_0_0value?: ((value0: OnPromptEvent) => boolean) | undefined + _onConsole_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onConsole_0_0value?: ((value0: OnConsoleEvent) => boolean) | undefined + _onErrorReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onErrorReceive_0_0value?: ((value0: OnErrorReceiveEvent) => void) | undefined + _onHttpErrorReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onHttpErrorReceive_0_0value?: ((value0: OnHttpErrorReceiveEvent) => void) | undefined + _onDownloadStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDownloadStart_0_0value?: ((value0: OnDownloadStartEvent) => void) | undefined + _onRefreshAccessedHistory_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRefreshAccessedHistory_0_0value?: ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined + _onRenderExited_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRenderExited_0_0value?: ((value0: OnRenderExitedEvent) => void) | undefined + _onShowFileSelector_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onShowFileSelector_0_0value?: ((value0: OnShowFileSelectorEvent) => boolean) | undefined + _onResourceLoad_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onResourceLoad_0_0value?: ((value0: OnResourceLoadEvent) => void) | undefined + _onFullScreenExit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFullScreenExit_0_0value?: (() => void) | undefined + _onFullScreenEnter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFullScreenEnter_0_0value?: OnFullScreenEnterCallback | undefined + _onScaleChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScaleChange_0_0value?: ((value0: OnScaleChangeEvent) => void) | undefined + _onHttpAuthRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onHttpAuthRequest_0_0value?: ((value0: OnHttpAuthRequestEvent) => boolean) | undefined + _onInterceptRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onInterceptRequest_0_0value?: ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined + _onPermissionRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPermissionRequest_0_0value?: ((value0: OnPermissionRequestEvent) => void) | undefined + _onScreenCaptureRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScreenCaptureRequest_0_0value?: ((value0: OnScreenCaptureRequestEvent) => void) | undefined + _onContextMenuShow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onContextMenuShow_0_0value?: ((value0: OnContextMenuShowEvent) => boolean) | undefined + _onContextMenuHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onContextMenuHide_0_0value?: OnContextMenuHideCallback | undefined + _mediaPlayGestureAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _mediaPlayGestureAccess_0_0value?: boolean | undefined + _onSearchResultReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSearchResultReceive_0_0value?: ((value0: OnSearchResultReceiveEvent) => void) | undefined + _onScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onScroll_0_0value?: ((value0: OnScrollEvent) => void) | undefined + _onSslErrorEventReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSslErrorEventReceive_0_0value?: ((value0: OnSslErrorEventReceiveEvent) => void) | undefined + _onSslErrorEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSslErrorEvent_0_0value?: OnSslErrorEventCallback | undefined + _onClientAuthenticationRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onClientAuthenticationRequest_0_0value?: ((value0: OnClientAuthenticationEvent) => void) | undefined + _onWindowNew_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWindowNew_0_0value?: ((value0: OnWindowNewEvent) => void) | undefined + _onWindowExit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onWindowExit_0_0value?: (() => void) | undefined + _multiWindowAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _multiWindowAccess_0_0value?: boolean | undefined + _onInterceptKeyEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onInterceptKeyEvent_0_0value?: ((event: KeyEvent) => boolean) | undefined + _webStandardFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _webStandardFont_0_0value?: string | undefined + _webSerifFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _webSerifFont_0_0value?: string | undefined + _webSansSerifFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _webSansSerifFont_0_0value?: string | undefined + _webFixedFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _webFixedFont_0_0value?: string | undefined + _webFantasyFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _webFantasyFont_0_0value?: string | undefined + _webCursiveFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _webCursiveFont_0_0value?: string | undefined + _defaultFixedFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _defaultFixedFontSize_0_0value?: int32 | undefined + _defaultFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _defaultFontSize_0_0value?: int32 | undefined + _minFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minFontSize_0_0value?: int32 | undefined + _minLogicalFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _minLogicalFontSize_0_0value?: int32 | undefined + _defaultTextEncodingFormat_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _defaultTextEncodingFormat_0_0value?: string | undefined + _forceDisplayScrollBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _forceDisplayScrollBar_0_0value?: boolean | undefined + _blockNetwork_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _blockNetwork_0_0value?: boolean | undefined + _horizontalScrollBarAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _horizontalScrollBarAccess_0_0value?: boolean | undefined + _verticalScrollBarAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _verticalScrollBarAccess_0_0value?: boolean | undefined + _onTouchIconUrlReceived_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onTouchIconUrlReceived_0_0value?: ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined + _onFaviconReceived_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFaviconReceived_0_0value?: ((value0: OnFaviconReceivedEvent) => void) | undefined + _onPageVisible_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onPageVisible_0_0value?: ((value0: OnPageVisibleEvent) => void) | undefined + _onDataResubmitted_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDataResubmitted_0_0value?: ((value0: OnDataResubmittedEvent) => void) | undefined + _pinchSmooth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _pinchSmooth_0_0value?: boolean | undefined + _allowWindowOpenMethod_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _allowWindowOpenMethod_0_0value?: boolean | undefined + _onAudioStateChanged_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAudioStateChanged_0_0value?: ((value0: OnAudioStateChangedEvent) => void) | undefined + _onFirstContentfulPaint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFirstContentfulPaint_0_0value?: ((value0: OnFirstContentfulPaintEvent) => void) | undefined + _onFirstMeaningfulPaint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onFirstMeaningfulPaint_0_0value?: OnFirstMeaningfulPaintCallback | undefined + _onLargestContentfulPaint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onLargestContentfulPaint_0_0value?: OnLargestContentfulPaintCallback | undefined + _onLoadIntercept_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onLoadIntercept_0_0value?: ((value0: OnLoadInterceptEvent) => boolean) | undefined + _onControllerAttached_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onControllerAttached_0_0value?: (() => void) | undefined + _onOverScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onOverScroll_0_0value?: ((value0: OnOverScrollEvent) => void) | undefined + _onSafeBrowsingCheckResult_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onSafeBrowsingCheckResult_0_0value?: OnSafeBrowsingCheckResultCallback | undefined + _onNavigationEntryCommitted_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onNavigationEntryCommitted_0_0value?: OnNavigationEntryCommittedCallback | undefined + _onIntelligentTrackingPreventionResult_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onIntelligentTrackingPreventionResult_0_0value?: OnIntelligentTrackingPreventionCallback | undefined + _javaScriptOnDocumentStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _javaScriptOnDocumentStart_0_0value?: Array | undefined + _javaScriptOnDocumentEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _javaScriptOnDocumentEnd_0_0value?: Array | undefined + _layoutMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _layoutMode_0_0value?: WebLayoutMode | undefined + _nestedScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _nestedScroll_0_0value?: NestedScrollOptions | NestedScrollOptionsExt | undefined + _enableNativeEmbedMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableNativeEmbedMode_0_0value?: boolean | undefined + _onNativeEmbedLifecycleChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onNativeEmbedLifecycleChange_0_0value?: ((event: NativeEmbedDataInfo) => void) | undefined + _onNativeEmbedVisibilityChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onNativeEmbedVisibilityChange_0_0value?: OnNativeEmbedVisibilityChangeCallback | undefined + _onNativeEmbedGestureEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onNativeEmbedGestureEvent_0_0value?: ((event: NativeEmbedTouchInfo) => void) | undefined + _copyOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _copyOptions_0_0value?: CopyOptions | undefined + _onOverrideUrlLoading_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onOverrideUrlLoading_0_0value?: OnOverrideUrlLoadingCallback | undefined + _textAutosizing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _textAutosizing_0_0value?: boolean | undefined + _enableNativeMediaPlayer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableNativeMediaPlayer_0_0value?: NativeMediaPlayerConfig | undefined + _onRenderProcessNotResponding_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRenderProcessNotResponding_0_0value?: OnRenderProcessNotRespondingCallback | undefined + _onRenderProcessResponding_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onRenderProcessResponding_0_0value?: OnRenderProcessRespondingCallback | undefined + _onViewportFitChanged_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onViewportFitChanged_0_0value?: OnViewportFitChangedCallback | undefined + _onInterceptKeyboardAttach_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onInterceptKeyboardAttach_0_0value?: WebKeyboardCallback | undefined + _onAdsBlocked_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onAdsBlocked_0_0value?: OnAdsBlockedCallback | undefined + _keyboardAvoidMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _keyboardAvoidMode_0_0value?: WebKeyboardAvoidMode | undefined + _editMenuOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _editMenuOptions_0_0value?: EditMenuOptions | undefined + _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableHapticFeedback_0_0value?: boolean | undefined + _optimizeParserBudget_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _optimizeParserBudget_0_0value?: boolean | undefined + _enableFollowSystemFontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableFollowSystemFontWeight_0_0value?: boolean | undefined + _enableWebAVSession_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableWebAVSession_0_0value?: boolean | undefined + _runJavaScriptOnDocumentStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _runJavaScriptOnDocumentStart_0_0value?: Array | undefined + _runJavaScriptOnDocumentEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _runJavaScriptOnDocumentEnd_0_0value?: Array | undefined + _runJavaScriptOnHeadEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _runJavaScriptOnHeadEnd_0_0value?: Array | undefined + _nativeEmbedOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _nativeEmbedOptions_0_0value?: EmbedOptions | undefined + _registerNativeEmbedRule_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _registerNativeEmbedRule_0_0value?: string | undefined + _registerNativeEmbedRule_0_1value?: string | undefined + _bindSelectionMenu_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _bindSelectionMenu_0_0value?: WebElementType | undefined + _bindSelectionMenu_0_1value?: CustomBuilder | undefined + _bindSelectionMenu_0_2value?: WebResponseType | undefined + _bindSelectionMenu_0_3value?: SelectionMenuOptionsExt | undefined + applyModifierPatch(peer: ArkWebPeer): void { + super.applyModifierPatch(peer) + if (this._javaScriptAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._javaScriptAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setJavaScriptAccessAttribute((this._javaScriptAccess_0_0value as boolean | undefined)); + this._javaScriptAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._javaScriptAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._javaScriptAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setJavaScriptAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._fileAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._fileAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setFileAccessAttribute((this._fileAccess_0_0value as boolean | undefined)); + this._fileAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._fileAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._fileAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setFileAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onlineImageAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onlineImageAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnlineImageAccessAttribute((this._onlineImageAccess_0_0value as boolean | undefined)); + this._onlineImageAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onlineImageAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onlineImageAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnlineImageAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._domStorageAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._domStorageAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDomStorageAccessAttribute((this._domStorageAccess_0_0value as boolean | undefined)); + this._domStorageAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._domStorageAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._domStorageAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDomStorageAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._imageAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._imageAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setImageAccessAttribute((this._imageAccess_0_0value as boolean | undefined)); + this._imageAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._imageAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._imageAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setImageAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._mixedMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mixedMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMixedModeAttribute((this._mixedMode_0_0value as MixedMode | undefined)); + this._mixedMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mixedMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mixedMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMixedModeAttribute((undefined as MixedMode | undefined)); + } + } + } + if (this._zoomAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._zoomAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setZoomAccessAttribute((this._zoomAccess_0_0value as boolean | undefined)); + this._zoomAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._zoomAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._zoomAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setZoomAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._geolocationAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._geolocationAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setGeolocationAccessAttribute((this._geolocationAccess_0_0value as boolean | undefined)); + this._geolocationAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._geolocationAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._geolocationAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setGeolocationAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._javaScriptProxy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._javaScriptProxy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setJavaScriptProxyAttribute((this._javaScriptProxy_0_0value as JavaScriptProxy | undefined)); + this._javaScriptProxy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._javaScriptProxy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._javaScriptProxy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setJavaScriptProxyAttribute((undefined as JavaScriptProxy | undefined)); + } + } + } + if (this._cacheMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._cacheMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCacheModeAttribute((this._cacheMode_0_0value as CacheMode | undefined)); + this._cacheMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._cacheMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._cacheMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCacheModeAttribute((undefined as CacheMode | undefined)); + } + } + } + if (this._darkMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._darkMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDarkModeAttribute((this._darkMode_0_0value as WebDarkMode | undefined)); + this._darkMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._darkMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._darkMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDarkModeAttribute((undefined as WebDarkMode | undefined)); + } + } + } + if (this._forceDarkAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._forceDarkAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setForceDarkAccessAttribute((this._forceDarkAccess_0_0value as boolean | undefined)); + this._forceDarkAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._forceDarkAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._forceDarkAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setForceDarkAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._mediaOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mediaOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMediaOptionsAttribute((this._mediaOptions_0_0value as WebMediaOptions | undefined)); + this._mediaOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mediaOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mediaOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMediaOptionsAttribute((undefined as WebMediaOptions | undefined)); + } + } + } + if (this._overviewModeAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._overviewModeAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOverviewModeAccessAttribute((this._overviewModeAccess_0_0value as boolean | undefined)); + this._overviewModeAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._overviewModeAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._overviewModeAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOverviewModeAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._overScrollMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._overScrollMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOverScrollModeAttribute((this._overScrollMode_0_0value as OverScrollMode | undefined)); + this._overScrollMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._overScrollMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._overScrollMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOverScrollModeAttribute((undefined as OverScrollMode | undefined)); + } + } + } + if (this._blurOnKeyboardHideMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._blurOnKeyboardHideMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBlurOnKeyboardHideModeAttribute((this._blurOnKeyboardHideMode_0_0value as BlurOnKeyboardHideMode | undefined)); + this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBlurOnKeyboardHideModeAttribute((undefined as BlurOnKeyboardHideMode | undefined)); + } + } + } + if (this._textZoomRatio_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textZoomRatio_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextZoomRatioAttribute((this._textZoomRatio_0_0value as int32 | undefined)); + this._textZoomRatio_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textZoomRatio_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textZoomRatio_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextZoomRatioAttribute((undefined as int32 | undefined)); + } + } + } + if (this._databaseAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._databaseAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDatabaseAccessAttribute((this._databaseAccess_0_0value as boolean | undefined)); + this._databaseAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._databaseAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._databaseAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDatabaseAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._initialScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._initialScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setInitialScaleAttribute((this._initialScale_0_0value as double | undefined)); + this._initialScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._initialScale_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._initialScale_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setInitialScaleAttribute((undefined as double | undefined)); + } + } + } + if (this._metaViewport_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._metaViewport_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMetaViewportAttribute((this._metaViewport_0_0value as boolean | undefined)); + this._metaViewport_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._metaViewport_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._metaViewport_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMetaViewportAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onPageEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPageEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPageEndAttribute((this._onPageEnd_0_0value as ((value0: OnPageEndEvent) => void) | undefined)); + this._onPageEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPageEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPageEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPageEndAttribute((undefined as ((value0: OnPageEndEvent) => void) | undefined)); + } + } + } + if (this._onPageBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPageBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPageBeginAttribute((this._onPageBegin_0_0value as ((value0: OnPageBeginEvent) => void) | undefined)); + this._onPageBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPageBegin_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPageBegin_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPageBeginAttribute((undefined as ((value0: OnPageBeginEvent) => void) | undefined)); + } + } + } + if (this._onProgressChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onProgressChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnProgressChangeAttribute((this._onProgressChange_0_0value as ((value0: OnProgressChangeEvent) => void) | undefined)); + this._onProgressChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onProgressChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onProgressChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnProgressChangeAttribute((undefined as ((value0: OnProgressChangeEvent) => void) | undefined)); + } + } + } + if (this._onTitleReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTitleReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTitleReceiveAttribute((this._onTitleReceive_0_0value as ((value0: OnTitleReceiveEvent) => void) | undefined)); + this._onTitleReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTitleReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTitleReceive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTitleReceiveAttribute((undefined as ((value0: OnTitleReceiveEvent) => void) | undefined)); + } + } + } + if (this._onGeolocationHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onGeolocationHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnGeolocationHideAttribute((this._onGeolocationHide_0_0value as (() => void) | undefined)); + this._onGeolocationHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onGeolocationHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onGeolocationHide_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnGeolocationHideAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onGeolocationShow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onGeolocationShow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnGeolocationShowAttribute((this._onGeolocationShow_0_0value as ((value0: OnGeolocationShowEvent) => void) | undefined)); + this._onGeolocationShow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onGeolocationShow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onGeolocationShow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnGeolocationShowAttribute((undefined as ((value0: OnGeolocationShowEvent) => void) | undefined)); + } + } + } + if (this._onRequestSelected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRequestSelected_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRequestSelectedAttribute((this._onRequestSelected_0_0value as (() => void) | undefined)); + this._onRequestSelected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRequestSelected_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRequestSelected_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRequestSelectedAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onAlert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAlert_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAlertAttribute((this._onAlert_0_0value as ((value0: OnAlertEvent) => boolean) | undefined)); + this._onAlert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAlert_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAlert_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAlertAttribute((undefined as ((value0: OnAlertEvent) => boolean) | undefined)); + } + } + } + if (this._onBeforeUnload_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onBeforeUnload_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnBeforeUnloadAttribute((this._onBeforeUnload_0_0value as ((value0: OnBeforeUnloadEvent) => boolean) | undefined)); + this._onBeforeUnload_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onBeforeUnload_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onBeforeUnload_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnBeforeUnloadAttribute((undefined as ((value0: OnBeforeUnloadEvent) => boolean) | undefined)); + } + } + } + if (this._onConfirm_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onConfirm_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnConfirmAttribute((this._onConfirm_0_0value as ((value0: OnConfirmEvent) => boolean) | undefined)); + this._onConfirm_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onConfirm_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onConfirm_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnConfirmAttribute((undefined as ((value0: OnConfirmEvent) => boolean) | undefined)); + } + } + } + if (this._onPrompt_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPrompt_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPromptAttribute((this._onPrompt_0_0value as ((value0: OnPromptEvent) => boolean) | undefined)); + this._onPrompt_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPrompt_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPrompt_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPromptAttribute((undefined as ((value0: OnPromptEvent) => boolean) | undefined)); + } + } + } + if (this._onConsole_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onConsole_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnConsoleAttribute((this._onConsole_0_0value as ((value0: OnConsoleEvent) => boolean) | undefined)); + this._onConsole_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onConsole_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onConsole_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnConsoleAttribute((undefined as ((value0: OnConsoleEvent) => boolean) | undefined)); + } + } + } + if (this._onErrorReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onErrorReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnErrorReceiveAttribute((this._onErrorReceive_0_0value as ((value0: OnErrorReceiveEvent) => void) | undefined)); + this._onErrorReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onErrorReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onErrorReceive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnErrorReceiveAttribute((undefined as ((value0: OnErrorReceiveEvent) => void) | undefined)); + } + } + } + if (this._onHttpErrorReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onHttpErrorReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnHttpErrorReceiveAttribute((this._onHttpErrorReceive_0_0value as ((value0: OnHttpErrorReceiveEvent) => void) | undefined)); + this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnHttpErrorReceiveAttribute((undefined as ((value0: OnHttpErrorReceiveEvent) => void) | undefined)); + } + } + } + if (this._onDownloadStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDownloadStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDownloadStartAttribute((this._onDownloadStart_0_0value as ((value0: OnDownloadStartEvent) => void) | undefined)); + this._onDownloadStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDownloadStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDownloadStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDownloadStartAttribute((undefined as ((value0: OnDownloadStartEvent) => void) | undefined)); + } + } + } + if (this._onRefreshAccessedHistory_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRefreshAccessedHistory_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRefreshAccessedHistoryAttribute((this._onRefreshAccessedHistory_0_0value as ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined)); + this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRefreshAccessedHistoryAttribute((undefined as ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined)); + } + } + } + if (this._onRenderExited_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRenderExited_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRenderExitedAttribute((this._onRenderExited_0_0value as ((value0: OnRenderExitedEvent) => void) | undefined)); + this._onRenderExited_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRenderExited_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRenderExited_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRenderExitedAttribute((undefined as ((value0: OnRenderExitedEvent) => void) | undefined)); + } + } + } + if (this._onShowFileSelector_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onShowFileSelector_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnShowFileSelectorAttribute((this._onShowFileSelector_0_0value as ((value0: OnShowFileSelectorEvent) => boolean) | undefined)); + this._onShowFileSelector_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onShowFileSelector_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onShowFileSelector_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnShowFileSelectorAttribute((undefined as ((value0: OnShowFileSelectorEvent) => boolean) | undefined)); + } + } + } + if (this._onResourceLoad_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onResourceLoad_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnResourceLoadAttribute((this._onResourceLoad_0_0value as ((value0: OnResourceLoadEvent) => void) | undefined)); + this._onResourceLoad_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onResourceLoad_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onResourceLoad_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnResourceLoadAttribute((undefined as ((value0: OnResourceLoadEvent) => void) | undefined)); + } + } + } + if (this._onFullScreenExit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFullScreenExit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFullScreenExitAttribute((this._onFullScreenExit_0_0value as (() => void) | undefined)); + this._onFullScreenExit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFullScreenExit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFullScreenExit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFullScreenExitAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onFullScreenEnter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFullScreenEnter_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFullScreenEnterAttribute((this._onFullScreenEnter_0_0value as OnFullScreenEnterCallback | undefined)); + this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFullScreenEnterAttribute((undefined as OnFullScreenEnterCallback | undefined)); + } + } + } + if (this._onScaleChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScaleChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScaleChangeAttribute((this._onScaleChange_0_0value as ((value0: OnScaleChangeEvent) => void) | undefined)); + this._onScaleChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScaleChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScaleChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScaleChangeAttribute((undefined as ((value0: OnScaleChangeEvent) => void) | undefined)); + } + } + } + if (this._onHttpAuthRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onHttpAuthRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnHttpAuthRequestAttribute((this._onHttpAuthRequest_0_0value as ((value0: OnHttpAuthRequestEvent) => boolean) | undefined)); + this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnHttpAuthRequestAttribute((undefined as ((value0: OnHttpAuthRequestEvent) => boolean) | undefined)); + } + } + } + if (this._onInterceptRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onInterceptRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnInterceptRequestAttribute((this._onInterceptRequest_0_0value as ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined)); + this._onInterceptRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onInterceptRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onInterceptRequest_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnInterceptRequestAttribute((undefined as ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined)); + } + } + } + if (this._onPermissionRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPermissionRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPermissionRequestAttribute((this._onPermissionRequest_0_0value as ((value0: OnPermissionRequestEvent) => void) | undefined)); + this._onPermissionRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPermissionRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPermissionRequest_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPermissionRequestAttribute((undefined as ((value0: OnPermissionRequestEvent) => void) | undefined)); + } + } + } + if (this._onScreenCaptureRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScreenCaptureRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScreenCaptureRequestAttribute((this._onScreenCaptureRequest_0_0value as ((value0: OnScreenCaptureRequestEvent) => void) | undefined)); + this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScreenCaptureRequestAttribute((undefined as ((value0: OnScreenCaptureRequestEvent) => void) | undefined)); + } + } + } + if (this._onContextMenuShow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onContextMenuShow_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnContextMenuShowAttribute((this._onContextMenuShow_0_0value as ((value0: OnContextMenuShowEvent) => boolean) | undefined)); + this._onContextMenuShow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onContextMenuShow_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onContextMenuShow_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnContextMenuShowAttribute((undefined as ((value0: OnContextMenuShowEvent) => boolean) | undefined)); + } + } + } + if (this._onContextMenuHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onContextMenuHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnContextMenuHideAttribute((this._onContextMenuHide_0_0value as OnContextMenuHideCallback | undefined)); + this._onContextMenuHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onContextMenuHide_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onContextMenuHide_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnContextMenuHideAttribute((undefined as OnContextMenuHideCallback | undefined)); + } + } + } + if (this._mediaPlayGestureAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._mediaPlayGestureAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMediaPlayGestureAccessAttribute((this._mediaPlayGestureAccess_0_0value as boolean | undefined)); + this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMediaPlayGestureAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onSearchResultReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSearchResultReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSearchResultReceiveAttribute((this._onSearchResultReceive_0_0value as ((value0: OnSearchResultReceiveEvent) => void) | undefined)); + this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSearchResultReceiveAttribute((undefined as ((value0: OnSearchResultReceiveEvent) => void) | undefined)); + } + } + } + if (this._onScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnScrollAttribute((this._onScroll_0_0value as ((value0: OnScrollEvent) => void) | undefined)); + this._onScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnScrollAttribute((undefined as ((value0: OnScrollEvent) => void) | undefined)); + } + } + } + if (this._onSslErrorEventReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSslErrorEventReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSslErrorEventReceiveAttribute((this._onSslErrorEventReceive_0_0value as ((value0: OnSslErrorEventReceiveEvent) => void) | undefined)); + this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSslErrorEventReceiveAttribute((undefined as ((value0: OnSslErrorEventReceiveEvent) => void) | undefined)); + } + } + } + if (this._onSslErrorEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSslErrorEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSslErrorEventAttribute((this._onSslErrorEvent_0_0value as OnSslErrorEventCallback | undefined)); + this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSslErrorEventAttribute((undefined as OnSslErrorEventCallback | undefined)); + } + } + } + if (this._onClientAuthenticationRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onClientAuthenticationRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnClientAuthenticationRequestAttribute((this._onClientAuthenticationRequest_0_0value as ((value0: OnClientAuthenticationEvent) => void) | undefined)); + this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnClientAuthenticationRequestAttribute((undefined as ((value0: OnClientAuthenticationEvent) => void) | undefined)); + } + } + } + if (this._onWindowNew_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWindowNew_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWindowNewAttribute((this._onWindowNew_0_0value as ((value0: OnWindowNewEvent) => void) | undefined)); + this._onWindowNew_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWindowNew_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWindowNew_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWindowNewAttribute((undefined as ((value0: OnWindowNewEvent) => void) | undefined)); + } + } + } + if (this._onWindowExit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onWindowExit_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnWindowExitAttribute((this._onWindowExit_0_0value as (() => void) | undefined)); + this._onWindowExit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onWindowExit_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onWindowExit_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnWindowExitAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._multiWindowAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._multiWindowAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMultiWindowAccessAttribute((this._multiWindowAccess_0_0value as boolean | undefined)); + this._multiWindowAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._multiWindowAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._multiWindowAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMultiWindowAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onInterceptKeyEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onInterceptKeyEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnInterceptKeyEventAttribute((this._onInterceptKeyEvent_0_0value as ((event: KeyEvent) => boolean) | undefined)); + this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnInterceptKeyEventAttribute((undefined as ((event: KeyEvent) => boolean) | undefined)); + } + } + } + if (this._webStandardFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._webStandardFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setWebStandardFontAttribute((this._webStandardFont_0_0value as string | undefined)); + this._webStandardFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._webStandardFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._webStandardFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setWebStandardFontAttribute((undefined as string | undefined)); + } + } + } + if (this._webSerifFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._webSerifFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setWebSerifFontAttribute((this._webSerifFont_0_0value as string | undefined)); + this._webSerifFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._webSerifFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._webSerifFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setWebSerifFontAttribute((undefined as string | undefined)); + } + } + } + if (this._webSansSerifFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._webSansSerifFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setWebSansSerifFontAttribute((this._webSansSerifFont_0_0value as string | undefined)); + this._webSansSerifFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._webSansSerifFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._webSansSerifFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setWebSansSerifFontAttribute((undefined as string | undefined)); + } + } + } + if (this._webFixedFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._webFixedFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setWebFixedFontAttribute((this._webFixedFont_0_0value as string | undefined)); + this._webFixedFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._webFixedFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._webFixedFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setWebFixedFontAttribute((undefined as string | undefined)); + } + } + } + if (this._webFantasyFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._webFantasyFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setWebFantasyFontAttribute((this._webFantasyFont_0_0value as string | undefined)); + this._webFantasyFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._webFantasyFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._webFantasyFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setWebFantasyFontAttribute((undefined as string | undefined)); + } + } + } + if (this._webCursiveFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._webCursiveFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setWebCursiveFontAttribute((this._webCursiveFont_0_0value as string | undefined)); + this._webCursiveFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._webCursiveFont_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._webCursiveFont_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setWebCursiveFontAttribute((undefined as string | undefined)); + } + } + } + if (this._defaultFixedFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._defaultFixedFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDefaultFixedFontSizeAttribute((this._defaultFixedFontSize_0_0value as int32 | undefined)); + this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDefaultFixedFontSizeAttribute((undefined as int32 | undefined)); + } + } + } + if (this._defaultFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._defaultFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDefaultFontSizeAttribute((this._defaultFontSize_0_0value as int32 | undefined)); + this._defaultFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._defaultFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._defaultFontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDefaultFontSizeAttribute((undefined as int32 | undefined)); + } + } + } + if (this._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinFontSizeAttribute((this._minFontSize_0_0value as int32 | undefined)); + this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minFontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinFontSizeAttribute((undefined as int32 | undefined)); + } + } + } + if (this._minLogicalFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._minLogicalFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setMinLogicalFontSizeAttribute((this._minLogicalFontSize_0_0value as int32 | undefined)); + this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setMinLogicalFontSizeAttribute((undefined as int32 | undefined)); + } + } + } + if (this._defaultTextEncodingFormat_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._defaultTextEncodingFormat_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setDefaultTextEncodingFormatAttribute((this._defaultTextEncodingFormat_0_0value as string | undefined)); + this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setDefaultTextEncodingFormatAttribute((undefined as string | undefined)); + } + } + } + if (this._forceDisplayScrollBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._forceDisplayScrollBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setForceDisplayScrollBarAttribute((this._forceDisplayScrollBar_0_0value as boolean | undefined)); + this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setForceDisplayScrollBarAttribute((undefined as boolean | undefined)); + } + } + } + if (this._blockNetwork_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._blockNetwork_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBlockNetworkAttribute((this._blockNetwork_0_0value as boolean | undefined)); + this._blockNetwork_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._blockNetwork_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._blockNetwork_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBlockNetworkAttribute((undefined as boolean | undefined)); + } + } + } + if (this._horizontalScrollBarAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._horizontalScrollBarAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHorizontalScrollBarAccessAttribute((this._horizontalScrollBarAccess_0_0value as boolean | undefined)); + this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHorizontalScrollBarAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._verticalScrollBarAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._verticalScrollBarAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setVerticalScrollBarAccessAttribute((this._verticalScrollBarAccess_0_0value as boolean | undefined)); + this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setVerticalScrollBarAccessAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onTouchIconUrlReceived_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onTouchIconUrlReceived_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnTouchIconUrlReceivedAttribute((this._onTouchIconUrlReceived_0_0value as ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined)); + this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnTouchIconUrlReceivedAttribute((undefined as ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined)); + } + } + } + if (this._onFaviconReceived_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFaviconReceived_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFaviconReceivedAttribute((this._onFaviconReceived_0_0value as ((value0: OnFaviconReceivedEvent) => void) | undefined)); + this._onFaviconReceived_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFaviconReceived_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFaviconReceived_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFaviconReceivedAttribute((undefined as ((value0: OnFaviconReceivedEvent) => void) | undefined)); + } + } + } + if (this._onPageVisible_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onPageVisible_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnPageVisibleAttribute((this._onPageVisible_0_0value as ((value0: OnPageVisibleEvent) => void) | undefined)); + this._onPageVisible_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onPageVisible_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onPageVisible_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnPageVisibleAttribute((undefined as ((value0: OnPageVisibleEvent) => void) | undefined)); + } + } + } + if (this._onDataResubmitted_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDataResubmitted_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDataResubmittedAttribute((this._onDataResubmitted_0_0value as ((value0: OnDataResubmittedEvent) => void) | undefined)); + this._onDataResubmitted_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDataResubmitted_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDataResubmitted_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDataResubmittedAttribute((undefined as ((value0: OnDataResubmittedEvent) => void) | undefined)); + } + } + } + if (this._pinchSmooth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._pinchSmooth_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setPinchSmoothAttribute((this._pinchSmooth_0_0value as boolean | undefined)); + this._pinchSmooth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._pinchSmooth_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._pinchSmooth_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setPinchSmoothAttribute((undefined as boolean | undefined)); + } + } + } + if (this._allowWindowOpenMethod_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._allowWindowOpenMethod_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAllowWindowOpenMethodAttribute((this._allowWindowOpenMethod_0_0value as boolean | undefined)); + this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAllowWindowOpenMethodAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onAudioStateChanged_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAudioStateChanged_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAudioStateChangedAttribute((this._onAudioStateChanged_0_0value as ((value0: OnAudioStateChangedEvent) => void) | undefined)); + this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAudioStateChangedAttribute((undefined as ((value0: OnAudioStateChangedEvent) => void) | undefined)); + } + } + } + if (this._onFirstContentfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFirstContentfulPaint_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFirstContentfulPaintAttribute((this._onFirstContentfulPaint_0_0value as ((value0: OnFirstContentfulPaintEvent) => void) | undefined)); + this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFirstContentfulPaintAttribute((undefined as ((value0: OnFirstContentfulPaintEvent) => void) | undefined)); + } + } + } + if (this._onFirstMeaningfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onFirstMeaningfulPaint_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnFirstMeaningfulPaintAttribute((this._onFirstMeaningfulPaint_0_0value as OnFirstMeaningfulPaintCallback | undefined)); + this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnFirstMeaningfulPaintAttribute((undefined as OnFirstMeaningfulPaintCallback | undefined)); + } + } + } + if (this._onLargestContentfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onLargestContentfulPaint_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnLargestContentfulPaintAttribute((this._onLargestContentfulPaint_0_0value as OnLargestContentfulPaintCallback | undefined)); + this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnLargestContentfulPaintAttribute((undefined as OnLargestContentfulPaintCallback | undefined)); + } + } + } + if (this._onLoadIntercept_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onLoadIntercept_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnLoadInterceptAttribute((this._onLoadIntercept_0_0value as ((value0: OnLoadInterceptEvent) => boolean) | undefined)); + this._onLoadIntercept_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onLoadIntercept_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onLoadIntercept_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnLoadInterceptAttribute((undefined as ((value0: OnLoadInterceptEvent) => boolean) | undefined)); + } + } + } + if (this._onControllerAttached_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onControllerAttached_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnControllerAttachedAttribute((this._onControllerAttached_0_0value as (() => void) | undefined)); + this._onControllerAttached_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onControllerAttached_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onControllerAttached_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnControllerAttachedAttribute((undefined as (() => void) | undefined)); + } + } + } + if (this._onOverScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onOverScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnOverScrollAttribute((this._onOverScroll_0_0value as ((value0: OnOverScrollEvent) => void) | undefined)); + this._onOverScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onOverScroll_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onOverScroll_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnOverScrollAttribute((undefined as ((value0: OnOverScrollEvent) => void) | undefined)); + } + } + } + if (this._onSafeBrowsingCheckResult_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onSafeBrowsingCheckResult_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnSafeBrowsingCheckResultAttribute((this._onSafeBrowsingCheckResult_0_0value as OnSafeBrowsingCheckResultCallback | undefined)); + this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnSafeBrowsingCheckResultAttribute((undefined as OnSafeBrowsingCheckResultCallback | undefined)); + } + } + } + if (this._onNavigationEntryCommitted_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onNavigationEntryCommitted_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnNavigationEntryCommittedAttribute((this._onNavigationEntryCommitted_0_0value as OnNavigationEntryCommittedCallback | undefined)); + this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnNavigationEntryCommittedAttribute((undefined as OnNavigationEntryCommittedCallback | undefined)); + } + } + } + if (this._onIntelligentTrackingPreventionResult_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onIntelligentTrackingPreventionResult_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnIntelligentTrackingPreventionResultAttribute((this._onIntelligentTrackingPreventionResult_0_0value as OnIntelligentTrackingPreventionCallback | undefined)); + this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnIntelligentTrackingPreventionResultAttribute((undefined as OnIntelligentTrackingPreventionCallback | undefined)); + } + } + } + if (this._javaScriptOnDocumentStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._javaScriptOnDocumentStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setJavaScriptOnDocumentStartAttribute((this._javaScriptOnDocumentStart_0_0value as Array | undefined)); + this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setJavaScriptOnDocumentStartAttribute((undefined as Array | undefined)); + } + } + } + if (this._javaScriptOnDocumentEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._javaScriptOnDocumentEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setJavaScriptOnDocumentEndAttribute((this._javaScriptOnDocumentEnd_0_0value as Array | undefined)); + this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setJavaScriptOnDocumentEndAttribute((undefined as Array | undefined)); + } + } + } + if (this._layoutMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._layoutMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setLayoutModeAttribute((this._layoutMode_0_0value as WebLayoutMode | undefined)); + this._layoutMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._layoutMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._layoutMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setLayoutModeAttribute((undefined as WebLayoutMode | undefined)); + } + } + } + if (this._nestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._nestedScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNestedScrollAttribute((this._nestedScroll_0_0value as NestedScrollOptions | NestedScrollOptionsExt | 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 | NestedScrollOptionsExt | undefined)); + } + } + } + if (this._enableNativeEmbedMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableNativeEmbedMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableNativeEmbedModeAttribute((this._enableNativeEmbedMode_0_0value as boolean | undefined)); + this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableNativeEmbedModeAttribute((undefined as boolean | undefined)); + } + } + } + if (this._onNativeEmbedLifecycleChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onNativeEmbedLifecycleChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnNativeEmbedLifecycleChangeAttribute((this._onNativeEmbedLifecycleChange_0_0value as ((event: NativeEmbedDataInfo) => void) | undefined)); + this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnNativeEmbedLifecycleChangeAttribute((undefined as ((event: NativeEmbedDataInfo) => void) | undefined)); + } + } + } + if (this._onNativeEmbedVisibilityChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onNativeEmbedVisibilityChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnNativeEmbedVisibilityChangeAttribute((this._onNativeEmbedVisibilityChange_0_0value as OnNativeEmbedVisibilityChangeCallback | undefined)); + this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnNativeEmbedVisibilityChangeAttribute((undefined as OnNativeEmbedVisibilityChangeCallback | undefined)); + } + } + } + if (this._onNativeEmbedGestureEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onNativeEmbedGestureEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnNativeEmbedGestureEventAttribute((this._onNativeEmbedGestureEvent_0_0value as ((event: NativeEmbedTouchInfo) => void) | undefined)); + this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnNativeEmbedGestureEventAttribute((undefined as ((event: NativeEmbedTouchInfo) => void) | undefined)); + } + } + } + if (this._copyOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._copyOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setCopyOptionsAttribute((this._copyOptions_0_0value as CopyOptions | undefined)); + this._copyOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._copyOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._copyOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setCopyOptionsAttribute((undefined as CopyOptions | undefined)); + } + } + } + if (this._onOverrideUrlLoading_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onOverrideUrlLoading_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnOverrideUrlLoadingAttribute((this._onOverrideUrlLoading_0_0value as OnOverrideUrlLoadingCallback | undefined)); + this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnOverrideUrlLoadingAttribute((undefined as OnOverrideUrlLoadingCallback | undefined)); + } + } + } + if (this._textAutosizing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._textAutosizing_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setTextAutosizingAttribute((this._textAutosizing_0_0value as boolean | undefined)); + this._textAutosizing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._textAutosizing_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._textAutosizing_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setTextAutosizingAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableNativeMediaPlayer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableNativeMediaPlayer_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableNativeMediaPlayerAttribute((this._enableNativeMediaPlayer_0_0value as NativeMediaPlayerConfig | undefined)); + this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableNativeMediaPlayerAttribute((undefined as NativeMediaPlayerConfig | undefined)); + } + } + } + if (this._onRenderProcessNotResponding_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRenderProcessNotResponding_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRenderProcessNotRespondingAttribute((this._onRenderProcessNotResponding_0_0value as OnRenderProcessNotRespondingCallback | undefined)); + this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRenderProcessNotRespondingAttribute((undefined as OnRenderProcessNotRespondingCallback | undefined)); + } + } + } + if (this._onRenderProcessResponding_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onRenderProcessResponding_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnRenderProcessRespondingAttribute((this._onRenderProcessResponding_0_0value as OnRenderProcessRespondingCallback | undefined)); + this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnRenderProcessRespondingAttribute((undefined as OnRenderProcessRespondingCallback | undefined)); + } + } + } + if (this._onViewportFitChanged_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onViewportFitChanged_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnViewportFitChangedAttribute((this._onViewportFitChanged_0_0value as OnViewportFitChangedCallback | undefined)); + this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnViewportFitChangedAttribute((undefined as OnViewportFitChangedCallback | undefined)); + } + } + } + if (this._onInterceptKeyboardAttach_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onInterceptKeyboardAttach_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnInterceptKeyboardAttachAttribute((this._onInterceptKeyboardAttach_0_0value as WebKeyboardCallback | undefined)); + this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnInterceptKeyboardAttachAttribute((undefined as WebKeyboardCallback | undefined)); + } + } + } + if (this._onAdsBlocked_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onAdsBlocked_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnAdsBlockedAttribute((this._onAdsBlocked_0_0value as OnAdsBlockedCallback | undefined)); + this._onAdsBlocked_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onAdsBlocked_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onAdsBlocked_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnAdsBlockedAttribute((undefined as OnAdsBlockedCallback | undefined)); + } + } + } + if (this._keyboardAvoidMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._keyboardAvoidMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setKeyboardAvoidModeAttribute((this._keyboardAvoidMode_0_0value as WebKeyboardAvoidMode | undefined)); + this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setKeyboardAvoidModeAttribute((undefined as WebKeyboardAvoidMode | undefined)); + } + } + } + if (this._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._editMenuOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEditMenuOptionsAttribute((this._editMenuOptions_0_0value as EditMenuOptions | undefined)); + this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEditMenuOptionsAttribute((undefined as EditMenuOptions | undefined)); + } + } + } + if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); + } + } + } + if (this._optimizeParserBudget_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._optimizeParserBudget_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOptimizeParserBudgetAttribute((this._optimizeParserBudget_0_0value as boolean | undefined)); + this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOptimizeParserBudgetAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableFollowSystemFontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableFollowSystemFontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableFollowSystemFontWeightAttribute((this._enableFollowSystemFontWeight_0_0value as boolean | undefined)); + this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableFollowSystemFontWeightAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableWebAVSession_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableWebAVSession_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableWebAVSessionAttribute((this._enableWebAVSession_0_0value as boolean | undefined)); + this._enableWebAVSession_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableWebAVSession_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableWebAVSession_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableWebAVSessionAttribute((undefined as boolean | undefined)); + } + } + } + if (this._runJavaScriptOnDocumentStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._runJavaScriptOnDocumentStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRunJavaScriptOnDocumentStartAttribute((this._runJavaScriptOnDocumentStart_0_0value as Array | undefined)); + this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRunJavaScriptOnDocumentStartAttribute((undefined as Array | undefined)); + } + } + } + if (this._runJavaScriptOnDocumentEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._runJavaScriptOnDocumentEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRunJavaScriptOnDocumentEndAttribute((this._runJavaScriptOnDocumentEnd_0_0value as Array | undefined)); + this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRunJavaScriptOnDocumentEndAttribute((undefined as Array | undefined)); + } + } + } + if (this._runJavaScriptOnHeadEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._runJavaScriptOnHeadEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRunJavaScriptOnHeadEndAttribute((this._runJavaScriptOnHeadEnd_0_0value as Array | undefined)); + this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRunJavaScriptOnHeadEndAttribute((undefined as Array | undefined)); + } + } + } + if (this._nativeEmbedOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._nativeEmbedOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setNativeEmbedOptionsAttribute((this._nativeEmbedOptions_0_0value as EmbedOptions | undefined)); + this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setNativeEmbedOptionsAttribute((undefined as EmbedOptions | undefined)); + } + } + } + if (this._registerNativeEmbedRule_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._registerNativeEmbedRule_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setRegisterNativeEmbedRuleAttribute((this._registerNativeEmbedRule_0_0value as string | undefined), (this._registerNativeEmbedRule_0_1value as string | undefined)); + this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setRegisterNativeEmbedRuleAttribute((undefined as string | undefined), (undefined as string | undefined)); + } + } + } + if (this._bindSelectionMenu_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._bindSelectionMenu_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setBindSelectionMenuAttribute((this._bindSelectionMenu_0_0value as WebElementType | undefined), (this._bindSelectionMenu_0_1value as CustomBuilder | undefined), (this._bindSelectionMenu_0_2value as WebResponseType | undefined), (this._bindSelectionMenu_0_3value as SelectionMenuOptionsExt | undefined)); + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setBindSelectionMenuAttribute((undefined as WebElementType | undefined), (undefined as CustomBuilder | undefined), (undefined as WebResponseType | undefined), (undefined as SelectionMenuOptionsExt | undefined | undefined)); + } + } + } + } + mergeModifier(modifier: WebModifier): void { + super.mergeModifier(modifier) + if (modifier._javaScriptAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._javaScriptAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.javaScriptAccess(modifier._javaScriptAccess_0_0value); + break; + } + default: { + this.javaScriptAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._fileAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._fileAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.fileAccess(modifier._fileAccess_0_0value); + break; + } + default: { + this.fileAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._onlineImageAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onlineImageAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onlineImageAccess(modifier._onlineImageAccess_0_0value); + break; + } + default: { + this.onlineImageAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._domStorageAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._domStorageAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.domStorageAccess(modifier._domStorageAccess_0_0value); + break; + } + default: { + this.domStorageAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._imageAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._imageAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.imageAccess(modifier._imageAccess_0_0value); + break; + } + default: { + this.imageAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._mixedMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mixedMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mixedMode(modifier._mixedMode_0_0value); + break; + } + default: { + this.mixedMode((undefined as MixedMode | undefined)); + } + } + } + if (modifier._zoomAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._zoomAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.zoomAccess(modifier._zoomAccess_0_0value); + break; + } + default: { + this.zoomAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._geolocationAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._geolocationAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.geolocationAccess(modifier._geolocationAccess_0_0value); + break; + } + default: { + this.geolocationAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._javaScriptProxy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._javaScriptProxy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.javaScriptProxy(modifier._javaScriptProxy_0_0value); + break; + } + default: { + this.javaScriptProxy((undefined as JavaScriptProxy | undefined)); + } + } + } + if (modifier._cacheMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._cacheMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.cacheMode(modifier._cacheMode_0_0value); + break; + } + default: { + this.cacheMode((undefined as CacheMode | undefined)); + } + } + } + if (modifier._darkMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._darkMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.darkMode(modifier._darkMode_0_0value); + break; + } + default: { + this.darkMode((undefined as WebDarkMode | undefined)); + } + } + } + if (modifier._forceDarkAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._forceDarkAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.forceDarkAccess(modifier._forceDarkAccess_0_0value); + break; + } + default: { + this.forceDarkAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._mediaOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mediaOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mediaOptions(modifier._mediaOptions_0_0value); + break; + } + default: { + this.mediaOptions((undefined as WebMediaOptions | undefined)); + } + } + } + if (modifier._overviewModeAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._overviewModeAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.overviewModeAccess(modifier._overviewModeAccess_0_0value); + break; + } + default: { + this.overviewModeAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._overScrollMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._overScrollMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.overScrollMode(modifier._overScrollMode_0_0value); + break; + } + default: { + this.overScrollMode((undefined as OverScrollMode | undefined)); + } + } + } + if (modifier._blurOnKeyboardHideMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._blurOnKeyboardHideMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.blurOnKeyboardHideMode(modifier._blurOnKeyboardHideMode_0_0value); + break; + } + default: { + this.blurOnKeyboardHideMode((undefined as BlurOnKeyboardHideMode | undefined)); + } + } + } + if (modifier._textZoomRatio_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textZoomRatio_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textZoomRatio(modifier._textZoomRatio_0_0value); + break; + } + default: { + this.textZoomRatio((undefined as int32 | undefined)); + } + } + } + if (modifier._databaseAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._databaseAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.databaseAccess(modifier._databaseAccess_0_0value); + break; + } + default: { + this.databaseAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._initialScale_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._initialScale_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.initialScale(modifier._initialScale_0_0value); + break; + } + default: { + this.initialScale((undefined as double | undefined)); + } + } + } + if (modifier._metaViewport_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._metaViewport_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.metaViewport(modifier._metaViewport_0_0value); + break; + } + default: { + this.metaViewport((undefined as boolean | undefined)); + } + } + } + if (modifier._onPageEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPageEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPageEnd(modifier._onPageEnd_0_0value); + break; + } + default: { + this.onPageEnd((undefined as ((value0: OnPageEndEvent) => void) | undefined)); + } + } + } + if (modifier._onPageBegin_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPageBegin_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPageBegin(modifier._onPageBegin_0_0value); + break; + } + default: { + this.onPageBegin((undefined as ((value0: OnPageBeginEvent) => void) | undefined)); + } + } + } + if (modifier._onProgressChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onProgressChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onProgressChange(modifier._onProgressChange_0_0value); + break; + } + default: { + this.onProgressChange((undefined as ((value0: OnProgressChangeEvent) => void) | undefined)); + } + } + } + if (modifier._onTitleReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTitleReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTitleReceive(modifier._onTitleReceive_0_0value); + break; + } + default: { + this.onTitleReceive((undefined as ((value0: OnTitleReceiveEvent) => void) | undefined)); + } + } + } + if (modifier._onGeolocationHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onGeolocationHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onGeolocationHide(modifier._onGeolocationHide_0_0value); + break; + } + default: { + this.onGeolocationHide((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onGeolocationShow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onGeolocationShow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onGeolocationShow(modifier._onGeolocationShow_0_0value); + break; + } + default: { + this.onGeolocationShow((undefined as ((value0: OnGeolocationShowEvent) => void) | undefined)); + } + } + } + if (modifier._onRequestSelected_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRequestSelected_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRequestSelected(modifier._onRequestSelected_0_0value); + break; + } + default: { + this.onRequestSelected((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onAlert_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAlert_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAlert(modifier._onAlert_0_0value); + break; + } + default: { + this.onAlert((undefined as ((value0: OnAlertEvent) => boolean) | undefined)); + } + } + } + if (modifier._onBeforeUnload_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onBeforeUnload_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onBeforeUnload(modifier._onBeforeUnload_0_0value); + break; + } + default: { + this.onBeforeUnload((undefined as ((value0: OnBeforeUnloadEvent) => boolean) | undefined)); + } + } + } + if (modifier._onConfirm_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onConfirm_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onConfirm(modifier._onConfirm_0_0value); + break; + } + default: { + this.onConfirm((undefined as ((value0: OnConfirmEvent) => boolean) | undefined)); + } + } + } + if (modifier._onPrompt_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPrompt_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPrompt(modifier._onPrompt_0_0value); + break; + } + default: { + this.onPrompt((undefined as ((value0: OnPromptEvent) => boolean) | undefined)); + } + } + } + if (modifier._onConsole_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onConsole_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onConsole(modifier._onConsole_0_0value); + break; + } + default: { + this.onConsole((undefined as ((value0: OnConsoleEvent) => boolean) | undefined)); + } + } + } + if (modifier._onErrorReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onErrorReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onErrorReceive(modifier._onErrorReceive_0_0value); + break; + } + default: { + this.onErrorReceive((undefined as ((value0: OnErrorReceiveEvent) => void) | undefined)); + } + } + } + if (modifier._onHttpErrorReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onHttpErrorReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onHttpErrorReceive(modifier._onHttpErrorReceive_0_0value); + break; + } + default: { + this.onHttpErrorReceive((undefined as ((value0: OnHttpErrorReceiveEvent) => void) | undefined)); + } + } + } + if (modifier._onDownloadStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDownloadStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDownloadStart(modifier._onDownloadStart_0_0value); + break; + } + default: { + this.onDownloadStart((undefined as ((value0: OnDownloadStartEvent) => void) | undefined)); + } + } + } + if (modifier._onRefreshAccessedHistory_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRefreshAccessedHistory_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRefreshAccessedHistory(modifier._onRefreshAccessedHistory_0_0value); + break; + } + default: { + this.onRefreshAccessedHistory((undefined as ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined)); + } + } + } + if (modifier._onRenderExited_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRenderExited_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRenderExited(modifier._onRenderExited_0_0value); + break; + } + default: { + this.onRenderExited((undefined as ((value0: OnRenderExitedEvent) => void) | undefined)); + } + } + } + if (modifier._onShowFileSelector_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onShowFileSelector_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onShowFileSelector(modifier._onShowFileSelector_0_0value); + break; + } + default: { + this.onShowFileSelector((undefined as ((value0: OnShowFileSelectorEvent) => boolean) | undefined)); + } + } + } + if (modifier._onResourceLoad_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onResourceLoad_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onResourceLoad(modifier._onResourceLoad_0_0value); + break; + } + default: { + this.onResourceLoad((undefined as ((value0: OnResourceLoadEvent) => void) | undefined)); + } + } + } + if (modifier._onFullScreenExit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFullScreenExit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFullScreenExit(modifier._onFullScreenExit_0_0value); + break; + } + default: { + this.onFullScreenExit((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onFullScreenEnter_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFullScreenEnter_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFullScreenEnter(modifier._onFullScreenEnter_0_0value); + break; + } + default: { + this.onFullScreenEnter((undefined as OnFullScreenEnterCallback | undefined)); + } + } + } + if (modifier._onScaleChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScaleChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScaleChange(modifier._onScaleChange_0_0value); + break; + } + default: { + this.onScaleChange((undefined as ((value0: OnScaleChangeEvent) => void) | undefined)); + } + } + } + if (modifier._onHttpAuthRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onHttpAuthRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onHttpAuthRequest(modifier._onHttpAuthRequest_0_0value); + break; + } + default: { + this.onHttpAuthRequest((undefined as ((value0: OnHttpAuthRequestEvent) => boolean) | undefined)); + } + } + } + if (modifier._onInterceptRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onInterceptRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onInterceptRequest(modifier._onInterceptRequest_0_0value); + break; + } + default: { + this.onInterceptRequest((undefined as ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined)); + } + } + } + if (modifier._onPermissionRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPermissionRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPermissionRequest(modifier._onPermissionRequest_0_0value); + break; + } + default: { + this.onPermissionRequest((undefined as ((value0: OnPermissionRequestEvent) => void) | undefined)); + } + } + } + if (modifier._onScreenCaptureRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScreenCaptureRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScreenCaptureRequest(modifier._onScreenCaptureRequest_0_0value); + break; + } + default: { + this.onScreenCaptureRequest((undefined as ((value0: OnScreenCaptureRequestEvent) => void) | undefined)); + } + } + } + if (modifier._onContextMenuShow_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onContextMenuShow_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onContextMenuShow(modifier._onContextMenuShow_0_0value); + break; + } + default: { + this.onContextMenuShow((undefined as ((value0: OnContextMenuShowEvent) => boolean) | undefined)); + } + } + } + if (modifier._onContextMenuHide_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onContextMenuHide_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onContextMenuHide(modifier._onContextMenuHide_0_0value); + break; + } + default: { + this.onContextMenuHide((undefined as OnContextMenuHideCallback | undefined)); + } + } + } + if (modifier._mediaPlayGestureAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._mediaPlayGestureAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.mediaPlayGestureAccess(modifier._mediaPlayGestureAccess_0_0value); + break; + } + default: { + this.mediaPlayGestureAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._onSearchResultReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSearchResultReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSearchResultReceive(modifier._onSearchResultReceive_0_0value); + break; + } + default: { + this.onSearchResultReceive((undefined as ((value0: OnSearchResultReceiveEvent) => void) | undefined)); + } + } + } + if (modifier._onScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onScroll(modifier._onScroll_0_0value); + break; + } + default: { + this.onScroll((undefined as ((value0: OnScrollEvent) => void) | undefined)); + } + } + } + if (modifier._onSslErrorEventReceive_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSslErrorEventReceive_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSslErrorEventReceive(modifier._onSslErrorEventReceive_0_0value); + break; + } + default: { + this.onSslErrorEventReceive((undefined as ((value0: OnSslErrorEventReceiveEvent) => void) | undefined)); + } + } + } + if (modifier._onSslErrorEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSslErrorEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSslErrorEvent(modifier._onSslErrorEvent_0_0value); + break; + } + default: { + this.onSslErrorEvent((undefined as OnSslErrorEventCallback | undefined)); + } + } + } + if (modifier._onClientAuthenticationRequest_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onClientAuthenticationRequest_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onClientAuthenticationRequest(modifier._onClientAuthenticationRequest_0_0value); + break; + } + default: { + this.onClientAuthenticationRequest((undefined as ((value0: OnClientAuthenticationEvent) => void) | undefined)); + } + } + } + if (modifier._onWindowNew_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWindowNew_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWindowNew(modifier._onWindowNew_0_0value); + break; + } + default: { + this.onWindowNew((undefined as ((value0: OnWindowNewEvent) => void) | undefined)); + } + } + } + if (modifier._onWindowExit_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onWindowExit_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onWindowExit(modifier._onWindowExit_0_0value); + break; + } + default: { + this.onWindowExit((undefined as (() => void) | undefined)); + } + } + } + if (modifier._multiWindowAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._multiWindowAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.multiWindowAccess(modifier._multiWindowAccess_0_0value); + break; + } + default: { + this.multiWindowAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._onInterceptKeyEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onInterceptKeyEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onInterceptKeyEvent(modifier._onInterceptKeyEvent_0_0value); + break; + } + default: { + this.onInterceptKeyEvent((undefined as ((event: KeyEvent) => boolean) | undefined)); + } + } + } + if (modifier._webStandardFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._webStandardFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.webStandardFont(modifier._webStandardFont_0_0value); + break; + } + default: { + this.webStandardFont((undefined as string | undefined)); + } + } + } + if (modifier._webSerifFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._webSerifFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.webSerifFont(modifier._webSerifFont_0_0value); + break; + } + default: { + this.webSerifFont((undefined as string | undefined)); + } + } + } + if (modifier._webSansSerifFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._webSansSerifFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.webSansSerifFont(modifier._webSansSerifFont_0_0value); + break; + } + default: { + this.webSansSerifFont((undefined as string | undefined)); + } + } + } + if (modifier._webFixedFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._webFixedFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.webFixedFont(modifier._webFixedFont_0_0value); + break; + } + default: { + this.webFixedFont((undefined as string | undefined)); + } + } + } + if (modifier._webFantasyFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._webFantasyFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.webFantasyFont(modifier._webFantasyFont_0_0value); + break; + } + default: { + this.webFantasyFont((undefined as string | undefined)); + } + } + } + if (modifier._webCursiveFont_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._webCursiveFont_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.webCursiveFont(modifier._webCursiveFont_0_0value); + break; + } + default: { + this.webCursiveFont((undefined as string | undefined)); + } + } + } + if (modifier._defaultFixedFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._defaultFixedFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.defaultFixedFontSize(modifier._defaultFixedFontSize_0_0value); + break; + } + default: { + this.defaultFixedFontSize((undefined as int32 | undefined)); + } + } + } + if (modifier._defaultFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._defaultFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.defaultFontSize(modifier._defaultFontSize_0_0value); + break; + } + default: { + this.defaultFontSize((undefined as int32 | undefined)); + } + } + } + if (modifier._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minFontSize(modifier._minFontSize_0_0value); + break; + } + default: { + this.minFontSize((undefined as int32 | undefined)); + } + } + } + if (modifier._minLogicalFontSize_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._minLogicalFontSize_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.minLogicalFontSize(modifier._minLogicalFontSize_0_0value); + break; + } + default: { + this.minLogicalFontSize((undefined as int32 | undefined)); + } + } + } + if (modifier._defaultTextEncodingFormat_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._defaultTextEncodingFormat_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.defaultTextEncodingFormat(modifier._defaultTextEncodingFormat_0_0value); + break; + } + default: { + this.defaultTextEncodingFormat((undefined as string | undefined)); + } + } + } + if (modifier._forceDisplayScrollBar_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._forceDisplayScrollBar_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.forceDisplayScrollBar(modifier._forceDisplayScrollBar_0_0value); + break; + } + default: { + this.forceDisplayScrollBar((undefined as boolean | undefined)); + } + } + } + if (modifier._blockNetwork_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._blockNetwork_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.blockNetwork(modifier._blockNetwork_0_0value); + break; + } + default: { + this.blockNetwork((undefined as boolean | undefined)); + } + } + } + if (modifier._horizontalScrollBarAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._horizontalScrollBarAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.horizontalScrollBarAccess(modifier._horizontalScrollBarAccess_0_0value); + break; + } + default: { + this.horizontalScrollBarAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._verticalScrollBarAccess_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._verticalScrollBarAccess_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.verticalScrollBarAccess(modifier._verticalScrollBarAccess_0_0value); + break; + } + default: { + this.verticalScrollBarAccess((undefined as boolean | undefined)); + } + } + } + if (modifier._onTouchIconUrlReceived_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onTouchIconUrlReceived_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTouchIconUrlReceived(modifier._onTouchIconUrlReceived_0_0value); + break; + } + default: { + this.onTouchIconUrlReceived((undefined as ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined)); + } + } + } + if (modifier._onFaviconReceived_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFaviconReceived_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFaviconReceived(modifier._onFaviconReceived_0_0value); + break; + } + default: { + this.onFaviconReceived((undefined as ((value0: OnFaviconReceivedEvent) => void) | undefined)); + } + } + } + if (modifier._onPageVisible_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onPageVisible_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onPageVisible(modifier._onPageVisible_0_0value); + break; + } + default: { + this.onPageVisible((undefined as ((value0: OnPageVisibleEvent) => void) | undefined)); + } + } + } + if (modifier._onDataResubmitted_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDataResubmitted_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDataResubmitted(modifier._onDataResubmitted_0_0value); + break; + } + default: { + this.onDataResubmitted((undefined as ((value0: OnDataResubmittedEvent) => void) | undefined)); + } + } + } + if (modifier._pinchSmooth_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._pinchSmooth_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.pinchSmooth(modifier._pinchSmooth_0_0value); + break; + } + default: { + this.pinchSmooth((undefined as boolean | undefined)); + } + } + } + if (modifier._allowWindowOpenMethod_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._allowWindowOpenMethod_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.allowWindowOpenMethod(modifier._allowWindowOpenMethod_0_0value); + break; + } + default: { + this.allowWindowOpenMethod((undefined as boolean | undefined)); + } + } + } + if (modifier._onAudioStateChanged_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAudioStateChanged_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAudioStateChanged(modifier._onAudioStateChanged_0_0value); + break; + } + default: { + this.onAudioStateChanged((undefined as ((value0: OnAudioStateChangedEvent) => void) | undefined)); + } + } + } + if (modifier._onFirstContentfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFirstContentfulPaint_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFirstContentfulPaint(modifier._onFirstContentfulPaint_0_0value); + break; + } + default: { + this.onFirstContentfulPaint((undefined as ((value0: OnFirstContentfulPaintEvent) => void) | undefined)); + } + } + } + if (modifier._onFirstMeaningfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onFirstMeaningfulPaint_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFirstMeaningfulPaint(modifier._onFirstMeaningfulPaint_0_0value); + break; + } + default: { + this.onFirstMeaningfulPaint((undefined as OnFirstMeaningfulPaintCallback | undefined)); + } + } + } + if (modifier._onLargestContentfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onLargestContentfulPaint_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onLargestContentfulPaint(modifier._onLargestContentfulPaint_0_0value); + break; + } + default: { + this.onLargestContentfulPaint((undefined as OnLargestContentfulPaintCallback | undefined)); + } + } + } + if (modifier._onLoadIntercept_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onLoadIntercept_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onLoadIntercept(modifier._onLoadIntercept_0_0value); + break; + } + default: { + this.onLoadIntercept((undefined as ((value0: OnLoadInterceptEvent) => boolean) | undefined)); + } + } + } + if (modifier._onControllerAttached_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onControllerAttached_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onControllerAttached(modifier._onControllerAttached_0_0value); + break; + } + default: { + this.onControllerAttached((undefined as (() => void) | undefined)); + } + } + } + if (modifier._onOverScroll_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onOverScroll_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onOverScroll(modifier._onOverScroll_0_0value); + break; + } + default: { + this.onOverScroll((undefined as ((value0: OnOverScrollEvent) => void) | undefined)); + } + } + } + if (modifier._onSafeBrowsingCheckResult_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onSafeBrowsingCheckResult_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSafeBrowsingCheckResult(modifier._onSafeBrowsingCheckResult_0_0value); + break; + } + default: { + this.onSafeBrowsingCheckResult((undefined as OnSafeBrowsingCheckResultCallback | undefined)); + } + } + } + if (modifier._onNavigationEntryCommitted_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onNavigationEntryCommitted_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onNavigationEntryCommitted(modifier._onNavigationEntryCommitted_0_0value); + break; + } + default: { + this.onNavigationEntryCommitted((undefined as OnNavigationEntryCommittedCallback | undefined)); + } + } + } + if (modifier._onIntelligentTrackingPreventionResult_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onIntelligentTrackingPreventionResult_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onIntelligentTrackingPreventionResult(modifier._onIntelligentTrackingPreventionResult_0_0value); + break; + } + default: { + this.onIntelligentTrackingPreventionResult((undefined as OnIntelligentTrackingPreventionCallback | undefined)); + } + } + } + if (modifier._javaScriptOnDocumentStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._javaScriptOnDocumentStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.javaScriptOnDocumentStart(modifier._javaScriptOnDocumentStart_0_0value); + break; + } + default: { + this.javaScriptOnDocumentStart((undefined as Array | undefined)); + } + } + } + if (modifier._javaScriptOnDocumentEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._javaScriptOnDocumentEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.javaScriptOnDocumentEnd(modifier._javaScriptOnDocumentEnd_0_0value); + break; + } + default: { + this.javaScriptOnDocumentEnd((undefined as Array | undefined)); + } + } + } + if (modifier._layoutMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._layoutMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.layoutMode(modifier._layoutMode_0_0value); + break; + } + default: { + this.layoutMode((undefined as WebLayoutMode | 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 | NestedScrollOptionsExt | undefined)); + } + } + } + if (modifier._enableNativeEmbedMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableNativeEmbedMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableNativeEmbedMode(modifier._enableNativeEmbedMode_0_0value); + break; + } + default: { + this.enableNativeEmbedMode((undefined as boolean | undefined)); + } + } + } + if (modifier._onNativeEmbedLifecycleChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onNativeEmbedLifecycleChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onNativeEmbedLifecycleChange(modifier._onNativeEmbedLifecycleChange_0_0value); + break; + } + default: { + this.onNativeEmbedLifecycleChange((undefined as ((event: NativeEmbedDataInfo) => void) | undefined)); + } + } + } + if (modifier._onNativeEmbedVisibilityChange_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onNativeEmbedVisibilityChange_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onNativeEmbedVisibilityChange(modifier._onNativeEmbedVisibilityChange_0_0value); + break; + } + default: { + this.onNativeEmbedVisibilityChange((undefined as OnNativeEmbedVisibilityChangeCallback | undefined)); + } + } + } + if (modifier._onNativeEmbedGestureEvent_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onNativeEmbedGestureEvent_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onNativeEmbedGestureEvent(modifier._onNativeEmbedGestureEvent_0_0value); + break; + } + default: { + this.onNativeEmbedGestureEvent((undefined as ((event: NativeEmbedTouchInfo) => void) | undefined)); + } + } + } + if (modifier._copyOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._copyOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.copyOptions(modifier._copyOptions_0_0value); + break; + } + default: { + this.copyOptions((undefined as CopyOptions | undefined)); + } + } + } + if (modifier._onOverrideUrlLoading_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onOverrideUrlLoading_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onOverrideUrlLoading(modifier._onOverrideUrlLoading_0_0value); + break; + } + default: { + this.onOverrideUrlLoading((undefined as OnOverrideUrlLoadingCallback | undefined)); + } + } + } + if (modifier._textAutosizing_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._textAutosizing_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.textAutosizing(modifier._textAutosizing_0_0value); + break; + } + default: { + this.textAutosizing((undefined as boolean | undefined)); + } + } + } + if (modifier._enableNativeMediaPlayer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableNativeMediaPlayer_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableNativeMediaPlayer(modifier._enableNativeMediaPlayer_0_0value); + break; + } + default: { + this.enableNativeMediaPlayer((undefined as NativeMediaPlayerConfig | undefined)); + } + } + } + if (modifier._onRenderProcessNotResponding_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRenderProcessNotResponding_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRenderProcessNotResponding(modifier._onRenderProcessNotResponding_0_0value); + break; + } + default: { + this.onRenderProcessNotResponding((undefined as OnRenderProcessNotRespondingCallback | undefined)); + } + } + } + if (modifier._onRenderProcessResponding_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onRenderProcessResponding_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onRenderProcessResponding(modifier._onRenderProcessResponding_0_0value); + break; + } + default: { + this.onRenderProcessResponding((undefined as OnRenderProcessRespondingCallback | undefined)); + } + } + } + if (modifier._onViewportFitChanged_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onViewportFitChanged_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onViewportFitChanged(modifier._onViewportFitChanged_0_0value); + break; + } + default: { + this.onViewportFitChanged((undefined as OnViewportFitChangedCallback | undefined)); + } + } + } + if (modifier._onInterceptKeyboardAttach_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onInterceptKeyboardAttach_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onInterceptKeyboardAttach(modifier._onInterceptKeyboardAttach_0_0value); + break; + } + default: { + this.onInterceptKeyboardAttach((undefined as WebKeyboardCallback | undefined)); + } + } + } + if (modifier._onAdsBlocked_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onAdsBlocked_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAdsBlocked(modifier._onAdsBlocked_0_0value); + break; + } + default: { + this.onAdsBlocked((undefined as OnAdsBlockedCallback | undefined)); + } + } + } + if (modifier._keyboardAvoidMode_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._keyboardAvoidMode_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.keyboardAvoidMode(modifier._keyboardAvoidMode_0_0value); + break; + } + default: { + this.keyboardAvoidMode((undefined as WebKeyboardAvoidMode | undefined)); + } + } + } + if (modifier._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._editMenuOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.editMenuOptions(modifier._editMenuOptions_0_0value); + break; + } + default: { + this.editMenuOptions((undefined as EditMenuOptions | undefined)); + } + } + } + if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableHapticFeedback_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); + break; + } + default: { + this.enableHapticFeedback((undefined as boolean | undefined)); + } + } + } + if (modifier._optimizeParserBudget_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._optimizeParserBudget_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.optimizeParserBudget(modifier._optimizeParserBudget_0_0value); + break; + } + default: { + this.optimizeParserBudget((undefined as boolean | undefined)); + } + } + } + if (modifier._enableFollowSystemFontWeight_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableFollowSystemFontWeight_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableFollowSystemFontWeight(modifier._enableFollowSystemFontWeight_0_0value); + break; + } + default: { + this.enableFollowSystemFontWeight((undefined as boolean | undefined)); + } + } + } + if (modifier._enableWebAVSession_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableWebAVSession_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableWebAVSession(modifier._enableWebAVSession_0_0value); + break; + } + default: { + this.enableWebAVSession((undefined as boolean | undefined)); + } + } + } + if (modifier._runJavaScriptOnDocumentStart_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._runJavaScriptOnDocumentStart_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.runJavaScriptOnDocumentStart(modifier._runJavaScriptOnDocumentStart_0_0value); + break; + } + default: { + this.runJavaScriptOnDocumentStart((undefined as Array | undefined)); + } + } + } + if (modifier._runJavaScriptOnDocumentEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._runJavaScriptOnDocumentEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.runJavaScriptOnDocumentEnd(modifier._runJavaScriptOnDocumentEnd_0_0value); + break; + } + default: { + this.runJavaScriptOnDocumentEnd((undefined as Array | undefined)); + } + } + } + if (modifier._runJavaScriptOnHeadEnd_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._runJavaScriptOnHeadEnd_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.runJavaScriptOnHeadEnd(modifier._runJavaScriptOnHeadEnd_0_0value); + break; + } + default: { + this.runJavaScriptOnHeadEnd((undefined as Array | undefined)); + } + } + } + if (modifier._nativeEmbedOptions_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._nativeEmbedOptions_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.nativeEmbedOptions(modifier._nativeEmbedOptions_0_0value); + break; + } + default: { + this.nativeEmbedOptions((undefined as EmbedOptions | undefined)); + } + } + } + if (modifier._registerNativeEmbedRule_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._registerNativeEmbedRule_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.registerNativeEmbedRule(modifier._registerNativeEmbedRule_0_0value, modifier._registerNativeEmbedRule_0_1value); + break; + } + default: { + this.registerNativeEmbedRule((undefined as string | undefined), (undefined as string | undefined)); + } + } + } + if (modifier._bindSelectionMenu_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._bindSelectionMenu_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.bindSelectionMenu(modifier._bindSelectionMenu_0_0value, modifier._bindSelectionMenu_0_1value, modifier._bindSelectionMenu_0_2value, modifier._bindSelectionMenu_0_3value); + break; + } + default: { + this.bindSelectionMenu((undefined as WebElementType | undefined), (undefined as CustomBuilder | undefined), (undefined as WebResponseType | undefined), (undefined as SelectionMenuOptionsExt | undefined | undefined)); + } + } + } + } + javaScriptAccess(value: boolean | undefined): this { + if (((this._javaScriptAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._javaScriptAccess_0_0value) !== (value))) + { + this._javaScriptAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._javaScriptAccess_0_0value = value + } else + { + this._javaScriptAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + fileAccess(value: boolean | undefined): this { + if (((this._fileAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fileAccess_0_0value) !== (value))) + { + this._fileAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._fileAccess_0_0value = value + } else + { + this._fileAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onlineImageAccess(value: boolean | undefined): this { + if (((this._onlineImageAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._onlineImageAccess_0_0value) !== (value))) + { + this._onlineImageAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._onlineImageAccess_0_0value = value + } else + { + this._onlineImageAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + domStorageAccess(value: boolean | undefined): this { + if (((this._domStorageAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._domStorageAccess_0_0value) !== (value))) + { + this._domStorageAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._domStorageAccess_0_0value = value + } else + { + this._domStorageAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + imageAccess(value: boolean | undefined): this { + if (((this._imageAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._imageAccess_0_0value) !== (value))) + { + this._imageAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._imageAccess_0_0value = value + } else + { + this._imageAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + mixedMode(value: MixedMode | undefined): this { + if (((this._mixedMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._mixedMode_0_flag = AttributeUpdaterFlag.UPDATE + this._mixedMode_0_0value = value + } else + { + this._mixedMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + zoomAccess(value: boolean | undefined): this { + if (((this._zoomAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._zoomAccess_0_0value) !== (value))) + { + this._zoomAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._zoomAccess_0_0value = value + } else + { + this._zoomAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + geolocationAccess(value: boolean | undefined): this { + if (((this._geolocationAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._geolocationAccess_0_0value) !== (value))) + { + this._geolocationAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._geolocationAccess_0_0value = value + } else + { + this._geolocationAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + javaScriptProxy(value: JavaScriptProxy | undefined): this { + if (((this._javaScriptProxy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._javaScriptProxy_0_flag = AttributeUpdaterFlag.UPDATE + this._javaScriptProxy_0_0value = value + } else + { + this._javaScriptProxy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + cacheMode(value: CacheMode | undefined): this { + if (((this._cacheMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._cacheMode_0_flag = AttributeUpdaterFlag.UPDATE + this._cacheMode_0_0value = value + } else + { + this._cacheMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + darkMode(value: WebDarkMode | undefined): this { + if (((this._darkMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._darkMode_0_flag = AttributeUpdaterFlag.UPDATE + this._darkMode_0_0value = value + } else + { + this._darkMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + forceDarkAccess(value: boolean | undefined): this { + if (((this._forceDarkAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._forceDarkAccess_0_0value) !== (value))) + { + this._forceDarkAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._forceDarkAccess_0_0value = value + } else + { + this._forceDarkAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + mediaOptions(value: WebMediaOptions | undefined): this { + if (((this._mediaOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._mediaOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._mediaOptions_0_0value = value + } else + { + this._mediaOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + overviewModeAccess(value: boolean | undefined): this { + if (((this._overviewModeAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._overviewModeAccess_0_0value) !== (value))) + { + this._overviewModeAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._overviewModeAccess_0_0value = value + } else + { + this._overviewModeAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + overScrollMode(value: OverScrollMode | undefined): this { + if (((this._overScrollMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._overScrollMode_0_flag = AttributeUpdaterFlag.UPDATE + this._overScrollMode_0_0value = value + } else + { + this._overScrollMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + blurOnKeyboardHideMode(value: BlurOnKeyboardHideMode | undefined): this { + if (((this._blurOnKeyboardHideMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.UPDATE + this._blurOnKeyboardHideMode_0_0value = value + } else + { + this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textZoomRatio(value: int32 | undefined): this { + if (((this._textZoomRatio_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._textZoomRatio_0_0value) !== (value))) + { + this._textZoomRatio_0_flag = AttributeUpdaterFlag.UPDATE + this._textZoomRatio_0_0value = value + } else + { + this._textZoomRatio_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + databaseAccess(value: boolean | undefined): this { + if (((this._databaseAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._databaseAccess_0_0value) !== (value))) + { + this._databaseAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._databaseAccess_0_0value = value + } else + { + this._databaseAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + initialScale(value: double | undefined): this { + if (((this._initialScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._initialScale_0_0value) !== (value))) + { + this._initialScale_0_flag = AttributeUpdaterFlag.UPDATE + this._initialScale_0_0value = value + } else + { + this._initialScale_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + metaViewport(value: boolean | undefined): this { + if (((this._metaViewport_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._metaViewport_0_0value) !== (value))) + { + this._metaViewport_0_flag = AttributeUpdaterFlag.UPDATE + this._metaViewport_0_0value = value + } else + { + this._metaViewport_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPageEnd(value: ((value0: OnPageEndEvent) => void) | undefined): this { + if (((this._onPageEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPageEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._onPageEnd_0_0value = value + } else + { + this._onPageEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPageBegin(value: ((value0: OnPageBeginEvent) => void) | undefined): this { + if (((this._onPageBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPageBegin_0_flag = AttributeUpdaterFlag.UPDATE + this._onPageBegin_0_0value = value + } else + { + this._onPageBegin_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onProgressChange(value: ((value0: OnProgressChangeEvent) => void) | undefined): this { + if (((this._onProgressChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onProgressChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onProgressChange_0_0value = value + } else + { + this._onProgressChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTitleReceive(value: ((value0: OnTitleReceiveEvent) => void) | undefined): this { + if (((this._onTitleReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTitleReceive_0_flag = AttributeUpdaterFlag.UPDATE + this._onTitleReceive_0_0value = value + } else + { + this._onTitleReceive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onGeolocationHide(value: (() => void) | undefined): this { + if (((this._onGeolocationHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onGeolocationHide_0_flag = AttributeUpdaterFlag.UPDATE + this._onGeolocationHide_0_0value = value + } else + { + this._onGeolocationHide_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onGeolocationShow(value: ((value0: OnGeolocationShowEvent) => void) | undefined): this { + if (((this._onGeolocationShow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onGeolocationShow_0_flag = AttributeUpdaterFlag.UPDATE + this._onGeolocationShow_0_0value = value + } else + { + this._onGeolocationShow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onRequestSelected(value: (() => void) | undefined): this { + if (((this._onRequestSelected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRequestSelected_0_flag = AttributeUpdaterFlag.UPDATE + this._onRequestSelected_0_0value = value + } else + { + this._onRequestSelected_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAlert(value: ((value0: OnAlertEvent) => boolean) | undefined): this { + if (((this._onAlert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAlert_0_flag = AttributeUpdaterFlag.UPDATE + this._onAlert_0_0value = value + } else + { + this._onAlert_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onBeforeUnload(value: ((value0: OnBeforeUnloadEvent) => boolean) | undefined): this { + if (((this._onBeforeUnload_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onBeforeUnload_0_flag = AttributeUpdaterFlag.UPDATE + this._onBeforeUnload_0_0value = value + } else + { + this._onBeforeUnload_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onConfirm(value: ((value0: OnConfirmEvent) => boolean) | undefined): this { + if (((this._onConfirm_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onConfirm_0_flag = AttributeUpdaterFlag.UPDATE + this._onConfirm_0_0value = value + } else + { + this._onConfirm_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPrompt(value: ((value0: OnPromptEvent) => boolean) | undefined): this { + if (((this._onPrompt_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPrompt_0_flag = AttributeUpdaterFlag.UPDATE + this._onPrompt_0_0value = value + } else + { + this._onPrompt_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onConsole(value: ((value0: OnConsoleEvent) => boolean) | undefined): this { + if (((this._onConsole_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onConsole_0_flag = AttributeUpdaterFlag.UPDATE + this._onConsole_0_0value = value + } else + { + this._onConsole_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onErrorReceive(value: ((value0: OnErrorReceiveEvent) => void) | undefined): this { + if (((this._onErrorReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onErrorReceive_0_flag = AttributeUpdaterFlag.UPDATE + this._onErrorReceive_0_0value = value + } else + { + this._onErrorReceive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onHttpErrorReceive(value: ((value0: OnHttpErrorReceiveEvent) => void) | undefined): this { + if (((this._onHttpErrorReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.UPDATE + this._onHttpErrorReceive_0_0value = value + } else + { + this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDownloadStart(value: ((value0: OnDownloadStartEvent) => void) | undefined): this { + if (((this._onDownloadStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDownloadStart_0_flag = AttributeUpdaterFlag.UPDATE + this._onDownloadStart_0_0value = value + } else + { + this._onDownloadStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onRefreshAccessedHistory(value: ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined): this { + if (((this._onRefreshAccessedHistory_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.UPDATE + this._onRefreshAccessedHistory_0_0value = value + } else + { + this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onRenderExited(value: ((value0: OnRenderExitedEvent) => void) | undefined): this { + if (((this._onRenderExited_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRenderExited_0_flag = AttributeUpdaterFlag.UPDATE + this._onRenderExited_0_0value = value + } else + { + this._onRenderExited_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onShowFileSelector(value: ((value0: OnShowFileSelectorEvent) => boolean) | undefined): this { + if (((this._onShowFileSelector_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onShowFileSelector_0_flag = AttributeUpdaterFlag.UPDATE + this._onShowFileSelector_0_0value = value + } else + { + this._onShowFileSelector_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onResourceLoad(value: ((value0: OnResourceLoadEvent) => void) | undefined): this { + if (((this._onResourceLoad_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onResourceLoad_0_flag = AttributeUpdaterFlag.UPDATE + this._onResourceLoad_0_0value = value + } else + { + this._onResourceLoad_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFullScreenExit(value: (() => void) | undefined): this { + if (((this._onFullScreenExit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFullScreenExit_0_flag = AttributeUpdaterFlag.UPDATE + this._onFullScreenExit_0_0value = value + } else + { + this._onFullScreenExit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFullScreenEnter(value: OnFullScreenEnterCallback | undefined): this { + if (((this._onFullScreenEnter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.UPDATE + this._onFullScreenEnter_0_0value = value + } else + { + this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScaleChange(value: ((value0: OnScaleChangeEvent) => void) | undefined): this { + if (((this._onScaleChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScaleChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onScaleChange_0_0value = value + } else + { + this._onScaleChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onHttpAuthRequest(value: ((value0: OnHttpAuthRequestEvent) => boolean) | undefined): this { + if (((this._onHttpAuthRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.UPDATE + this._onHttpAuthRequest_0_0value = value + } else + { + this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onInterceptRequest(value: ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined): this { + if (((this._onInterceptRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onInterceptRequest_0_flag = AttributeUpdaterFlag.UPDATE + this._onInterceptRequest_0_0value = value + } else + { + this._onInterceptRequest_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPermissionRequest(value: ((value0: OnPermissionRequestEvent) => void) | undefined): this { + if (((this._onPermissionRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPermissionRequest_0_flag = AttributeUpdaterFlag.UPDATE + this._onPermissionRequest_0_0value = value + } else + { + this._onPermissionRequest_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScreenCaptureRequest(value: ((value0: OnScreenCaptureRequestEvent) => void) | undefined): this { + if (((this._onScreenCaptureRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.UPDATE + this._onScreenCaptureRequest_0_0value = value + } else + { + this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onContextMenuShow(value: ((value0: OnContextMenuShowEvent) => boolean) | undefined): this { + if (((this._onContextMenuShow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onContextMenuShow_0_flag = AttributeUpdaterFlag.UPDATE + this._onContextMenuShow_0_0value = value + } else + { + this._onContextMenuShow_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onContextMenuHide(value: OnContextMenuHideCallback | undefined): this { + if (((this._onContextMenuHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onContextMenuHide_0_flag = AttributeUpdaterFlag.UPDATE + this._onContextMenuHide_0_0value = value + } else + { + this._onContextMenuHide_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + mediaPlayGestureAccess(value: boolean | undefined): this { + if (((this._mediaPlayGestureAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._mediaPlayGestureAccess_0_0value) !== (value))) + { + this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._mediaPlayGestureAccess_0_0value = value + } else + { + this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSearchResultReceive(value: ((value0: OnSearchResultReceiveEvent) => void) | undefined): this { + if (((this._onSearchResultReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.UPDATE + this._onSearchResultReceive_0_0value = value + } else + { + this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onScroll(value: ((value0: OnScrollEvent) => void) | undefined): this { + if (((this._onScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onScroll_0_0value = value + } else + { + this._onScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSslErrorEventReceive(value: ((value0: OnSslErrorEventReceiveEvent) => void) | undefined): this { + if (((this._onSslErrorEventReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.UPDATE + this._onSslErrorEventReceive_0_0value = value + } else + { + this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSslErrorEvent(value: OnSslErrorEventCallback | undefined): this { + if (((this._onSslErrorEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.UPDATE + this._onSslErrorEvent_0_0value = value + } else + { + this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onClientAuthenticationRequest(value: ((value0: OnClientAuthenticationEvent) => void) | undefined): this { + if (((this._onClientAuthenticationRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.UPDATE + this._onClientAuthenticationRequest_0_0value = value + } else + { + this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWindowNew(value: ((value0: OnWindowNewEvent) => void) | undefined): this { + if (((this._onWindowNew_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWindowNew_0_flag = AttributeUpdaterFlag.UPDATE + this._onWindowNew_0_0value = value + } else + { + this._onWindowNew_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onWindowExit(value: (() => void) | undefined): this { + if (((this._onWindowExit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onWindowExit_0_flag = AttributeUpdaterFlag.UPDATE + this._onWindowExit_0_0value = value + } else + { + this._onWindowExit_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + multiWindowAccess(value: boolean | undefined): this { + if (((this._multiWindowAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._multiWindowAccess_0_0value) !== (value))) + { + this._multiWindowAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._multiWindowAccess_0_0value = value + } else + { + this._multiWindowAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onInterceptKeyEvent(value: ((event: KeyEvent) => boolean) | undefined): this { + if (((this._onInterceptKeyEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.UPDATE + this._onInterceptKeyEvent_0_0value = value + } else + { + this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + webStandardFont(value: string | undefined): this { + if (((this._webStandardFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webStandardFont_0_0value) !== (value))) + { + this._webStandardFont_0_flag = AttributeUpdaterFlag.UPDATE + this._webStandardFont_0_0value = value + } else + { + this._webStandardFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + webSerifFont(value: string | undefined): this { + if (((this._webSerifFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webSerifFont_0_0value) !== (value))) + { + this._webSerifFont_0_flag = AttributeUpdaterFlag.UPDATE + this._webSerifFont_0_0value = value + } else + { + this._webSerifFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + webSansSerifFont(value: string | undefined): this { + if (((this._webSansSerifFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webSansSerifFont_0_0value) !== (value))) + { + this._webSansSerifFont_0_flag = AttributeUpdaterFlag.UPDATE + this._webSansSerifFont_0_0value = value + } else + { + this._webSansSerifFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + webFixedFont(value: string | undefined): this { + if (((this._webFixedFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webFixedFont_0_0value) !== (value))) + { + this._webFixedFont_0_flag = AttributeUpdaterFlag.UPDATE + this._webFixedFont_0_0value = value + } else + { + this._webFixedFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + webFantasyFont(value: string | undefined): this { + if (((this._webFantasyFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webFantasyFont_0_0value) !== (value))) + { + this._webFantasyFont_0_flag = AttributeUpdaterFlag.UPDATE + this._webFantasyFont_0_0value = value + } else + { + this._webFantasyFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + webCursiveFont(value: string | undefined): this { + if (((this._webCursiveFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webCursiveFont_0_0value) !== (value))) + { + this._webCursiveFont_0_flag = AttributeUpdaterFlag.UPDATE + this._webCursiveFont_0_0value = value + } else + { + this._webCursiveFont_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + defaultFixedFontSize(value: int32 | undefined): this { + if (((this._defaultFixedFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultFixedFontSize_0_0value) !== (value))) + { + this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._defaultFixedFontSize_0_0value = value + } else + { + this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + defaultFontSize(value: int32 | undefined): this { + if (((this._defaultFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultFontSize_0_0value) !== (value))) + { + this._defaultFontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._defaultFontSize_0_0value = value + } else + { + this._defaultFontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minFontSize(value: int32 | undefined): this { + if (((this._minFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._minFontSize_0_0value) !== (value))) + { + this._minFontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._minFontSize_0_0value = value + } else + { + this._minFontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + minLogicalFontSize(value: int32 | undefined): this { + if (((this._minLogicalFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._minLogicalFontSize_0_0value) !== (value))) + { + this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.UPDATE + this._minLogicalFontSize_0_0value = value + } else + { + this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + defaultTextEncodingFormat(value: string | undefined): this { + if (((this._defaultTextEncodingFormat_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultTextEncodingFormat_0_0value) !== (value))) + { + this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.UPDATE + this._defaultTextEncodingFormat_0_0value = value + } else + { + this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + forceDisplayScrollBar(value: boolean | undefined): this { + if (((this._forceDisplayScrollBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._forceDisplayScrollBar_0_0value) !== (value))) + { + this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.UPDATE + this._forceDisplayScrollBar_0_0value = value + } else + { + this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + blockNetwork(value: boolean | undefined): this { + if (((this._blockNetwork_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._blockNetwork_0_0value) !== (value))) + { + this._blockNetwork_0_flag = AttributeUpdaterFlag.UPDATE + this._blockNetwork_0_0value = value + } else + { + this._blockNetwork_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + horizontalScrollBarAccess(value: boolean | undefined): this { + if (((this._horizontalScrollBarAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._horizontalScrollBarAccess_0_0value) !== (value))) + { + this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._horizontalScrollBarAccess_0_0value = value + } else + { + this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + verticalScrollBarAccess(value: boolean | undefined): this { + if (((this._verticalScrollBarAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._verticalScrollBarAccess_0_0value) !== (value))) + { + this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.UPDATE + this._verticalScrollBarAccess_0_0value = value + } else + { + this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onTouchIconUrlReceived(value: ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined): this { + if (((this._onTouchIconUrlReceived_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.UPDATE + this._onTouchIconUrlReceived_0_0value = value + } else + { + this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFaviconReceived(value: ((value0: OnFaviconReceivedEvent) => void) | undefined): this { + if (((this._onFaviconReceived_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFaviconReceived_0_flag = AttributeUpdaterFlag.UPDATE + this._onFaviconReceived_0_0value = value + } else + { + this._onFaviconReceived_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onPageVisible(value: ((value0: OnPageVisibleEvent) => void) | undefined): this { + if (((this._onPageVisible_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onPageVisible_0_flag = AttributeUpdaterFlag.UPDATE + this._onPageVisible_0_0value = value + } else + { + this._onPageVisible_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDataResubmitted(value: ((value0: OnDataResubmittedEvent) => void) | undefined): this { + if (((this._onDataResubmitted_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDataResubmitted_0_flag = AttributeUpdaterFlag.UPDATE + this._onDataResubmitted_0_0value = value + } else + { + this._onDataResubmitted_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + pinchSmooth(value: boolean | undefined): this { + if (((this._pinchSmooth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._pinchSmooth_0_0value) !== (value))) + { + this._pinchSmooth_0_flag = AttributeUpdaterFlag.UPDATE + this._pinchSmooth_0_0value = value + } else + { + this._pinchSmooth_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + allowWindowOpenMethod(value: boolean | undefined): this { + if (((this._allowWindowOpenMethod_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._allowWindowOpenMethod_0_0value) !== (value))) + { + this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.UPDATE + this._allowWindowOpenMethod_0_0value = value + } else + { + this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAudioStateChanged(value: ((value0: OnAudioStateChangedEvent) => void) | undefined): this { + if (((this._onAudioStateChanged_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.UPDATE + this._onAudioStateChanged_0_0value = value + } else + { + this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFirstContentfulPaint(value: ((value0: OnFirstContentfulPaintEvent) => void) | undefined): this { + if (((this._onFirstContentfulPaint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.UPDATE + this._onFirstContentfulPaint_0_0value = value + } else + { + this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onFirstMeaningfulPaint(value: OnFirstMeaningfulPaintCallback | undefined): this { + if (((this._onFirstMeaningfulPaint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.UPDATE + this._onFirstMeaningfulPaint_0_0value = value + } else + { + this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onLargestContentfulPaint(value: OnLargestContentfulPaintCallback | undefined): this { + if (((this._onLargestContentfulPaint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.UPDATE + this._onLargestContentfulPaint_0_0value = value + } else + { + this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onLoadIntercept(value: ((value0: OnLoadInterceptEvent) => boolean) | undefined): this { + if (((this._onLoadIntercept_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onLoadIntercept_0_flag = AttributeUpdaterFlag.UPDATE + this._onLoadIntercept_0_0value = value + } else + { + this._onLoadIntercept_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onControllerAttached(value: (() => void) | undefined): this { + if (((this._onControllerAttached_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onControllerAttached_0_flag = AttributeUpdaterFlag.UPDATE + this._onControllerAttached_0_0value = value + } else + { + this._onControllerAttached_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onOverScroll(value: ((value0: OnOverScrollEvent) => void) | undefined): this { + if (((this._onOverScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onOverScroll_0_flag = AttributeUpdaterFlag.UPDATE + this._onOverScroll_0_0value = value + } else + { + this._onOverScroll_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onSafeBrowsingCheckResult(value: OnSafeBrowsingCheckResultCallback | undefined): this { + if (((this._onSafeBrowsingCheckResult_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.UPDATE + this._onSafeBrowsingCheckResult_0_0value = value + } else + { + this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onNavigationEntryCommitted(value: OnNavigationEntryCommittedCallback | undefined): this { + if (((this._onNavigationEntryCommitted_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.UPDATE + this._onNavigationEntryCommitted_0_0value = value + } else + { + this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onIntelligentTrackingPreventionResult(value: OnIntelligentTrackingPreventionCallback | undefined): this { + if (((this._onIntelligentTrackingPreventionResult_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.UPDATE + this._onIntelligentTrackingPreventionResult_0_0value = value + } else + { + this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + javaScriptOnDocumentStart(value: Array | undefined): this { + if (((this._javaScriptOnDocumentStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.UPDATE + this._javaScriptOnDocumentStart_0_0value = value + } else + { + this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + javaScriptOnDocumentEnd(value: Array | undefined): this { + if (((this._javaScriptOnDocumentEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._javaScriptOnDocumentEnd_0_0value = value + } else + { + this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + layoutMode(value: WebLayoutMode | undefined): this { + if (((this._layoutMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._layoutMode_0_flag = AttributeUpdaterFlag.UPDATE + this._layoutMode_0_0value = value + } else + { + this._layoutMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt | 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 + } + enableNativeEmbedMode(value: boolean | undefined): this { + if (((this._enableNativeEmbedMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableNativeEmbedMode_0_0value) !== (value))) + { + this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.UPDATE + this._enableNativeEmbedMode_0_0value = value + } else + { + this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onNativeEmbedLifecycleChange(value: ((event: NativeEmbedDataInfo) => void) | undefined): this { + if (((this._onNativeEmbedLifecycleChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onNativeEmbedLifecycleChange_0_0value = value + } else + { + this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onNativeEmbedVisibilityChange(value: OnNativeEmbedVisibilityChangeCallback | undefined): this { + if (((this._onNativeEmbedVisibilityChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.UPDATE + this._onNativeEmbedVisibilityChange_0_0value = value + } else + { + this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onNativeEmbedGestureEvent(value: ((event: NativeEmbedTouchInfo) => void) | undefined): this { + if (((this._onNativeEmbedGestureEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.UPDATE + this._onNativeEmbedGestureEvent_0_0value = value + } else + { + this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + copyOptions(value: CopyOptions | undefined): this { + if (((this._copyOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._copyOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._copyOptions_0_0value = value + } else + { + this._copyOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onOverrideUrlLoading(value: OnOverrideUrlLoadingCallback | undefined): this { + if (((this._onOverrideUrlLoading_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.UPDATE + this._onOverrideUrlLoading_0_0value = value + } else + { + this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + textAutosizing(value: boolean | undefined): this { + if (((this._textAutosizing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._textAutosizing_0_0value) !== (value))) + { + this._textAutosizing_0_flag = AttributeUpdaterFlag.UPDATE + this._textAutosizing_0_0value = value + } else + { + this._textAutosizing_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableNativeMediaPlayer(value: NativeMediaPlayerConfig | undefined): this { + if (((this._enableNativeMediaPlayer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.UPDATE + this._enableNativeMediaPlayer_0_0value = value + } else + { + this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onRenderProcessNotResponding(value: OnRenderProcessNotRespondingCallback | undefined): this { + if (((this._onRenderProcessNotResponding_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.UPDATE + this._onRenderProcessNotResponding_0_0value = value + } else + { + this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onRenderProcessResponding(value: OnRenderProcessRespondingCallback | undefined): this { + if (((this._onRenderProcessResponding_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.UPDATE + this._onRenderProcessResponding_0_0value = value + } else + { + this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onViewportFitChanged(value: OnViewportFitChangedCallback | undefined): this { + if (((this._onViewportFitChanged_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.UPDATE + this._onViewportFitChanged_0_0value = value + } else + { + this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onInterceptKeyboardAttach(value: WebKeyboardCallback | undefined): this { + if (((this._onInterceptKeyboardAttach_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.UPDATE + this._onInterceptKeyboardAttach_0_0value = value + } else + { + this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onAdsBlocked(value: OnAdsBlockedCallback | undefined): this { + if (((this._onAdsBlocked_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onAdsBlocked_0_flag = AttributeUpdaterFlag.UPDATE + this._onAdsBlocked_0_0value = value + } else + { + this._onAdsBlocked_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + keyboardAvoidMode(value: WebKeyboardAvoidMode | undefined): this { + if (((this._keyboardAvoidMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.UPDATE + this._keyboardAvoidMode_0_0value = value + } else + { + this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + editMenuOptions(value: EditMenuOptions | undefined): this { + if (((this._editMenuOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._editMenuOptions_0_0value = value + } else + { + this._editMenuOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableHapticFeedback(value: boolean | undefined): this { + if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE + this._enableHapticFeedback_0_0value = value + } else + { + this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + optimizeParserBudget(value: boolean | undefined): this { + if (((this._optimizeParserBudget_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._optimizeParserBudget_0_0value) !== (value))) + { + this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.UPDATE + this._optimizeParserBudget_0_0value = value + } else + { + this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableFollowSystemFontWeight(value: boolean | undefined): this { + if (((this._enableFollowSystemFontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableFollowSystemFontWeight_0_0value) !== (value))) + { + this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.UPDATE + this._enableFollowSystemFontWeight_0_0value = value + } else + { + this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableWebAVSession(value: boolean | undefined): this { + if (((this._enableWebAVSession_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableWebAVSession_0_0value) !== (value))) + { + this._enableWebAVSession_0_flag = AttributeUpdaterFlag.UPDATE + this._enableWebAVSession_0_0value = value + } else + { + this._enableWebAVSession_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + runJavaScriptOnDocumentStart(value: Array | undefined): this { + if (((this._runJavaScriptOnDocumentStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.UPDATE + this._runJavaScriptOnDocumentStart_0_0value = value + } else + { + this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + runJavaScriptOnDocumentEnd(value: Array | undefined): this { + if (((this._runJavaScriptOnDocumentEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._runJavaScriptOnDocumentEnd_0_0value = value + } else + { + this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + runJavaScriptOnHeadEnd(value: Array | undefined): this { + if (((this._runJavaScriptOnHeadEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.UPDATE + this._runJavaScriptOnHeadEnd_0_0value = value + } else + { + this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + nativeEmbedOptions(value: EmbedOptions | undefined): this { + if (((this._nativeEmbedOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.UPDATE + this._nativeEmbedOptions_0_0value = value + } else + { + this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + registerNativeEmbedRule(tag: string | undefined, type: string | undefined): this { + if (((this._registerNativeEmbedRule_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._registerNativeEmbedRule_0_0value) !== (tag)) || ((this._registerNativeEmbedRule_0_1value) !== (type))) + { + this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.UPDATE + this._registerNativeEmbedRule_0_0value = tag + this._registerNativeEmbedRule_0_1value = type + } else + { + this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + bindSelectionMenu(elementType: WebElementType | undefined, content: CustomBuilder | undefined, responseType: WebResponseType | undefined, options?: SelectionMenuOptionsExt): this { + if (((this._bindSelectionMenu_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true) || (true)) + { + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.UPDATE + this._bindSelectionMenu_0_0value = elementType + this._bindSelectionMenu_0_1value = content + this._bindSelectionMenu_0_2value = responseType + this._bindSelectionMenu_0_3value = options + } else + { + this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/generated/WindowSceneModifier.ets b/arkoala-arkts/arkui/generated/WindowSceneModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..40497cde1756229dfb34faf162eeffe5dbebe269 --- /dev/null +++ b/arkoala-arkts/arkui/generated/WindowSceneModifier.ets @@ -0,0 +1,91 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkWindowScenePeer, WindowSceneAttribute } from "./component/windowScene" +import { CommonMethod } from "./component/common" +import { Position } from "./component/units" +export class WindowSceneModifier extends CommonMethodModifier implements WindowSceneAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: WindowSceneAttribute): void { } + applyPressedAttribute(instance: WindowSceneAttribute): void { } + applyFocusedAttribute(instance: WindowSceneAttribute): void { } + applyDisabledAttribute(instance: WindowSceneAttribute): void { } + applySelectedAttribute(instance: WindowSceneAttribute): void { } + _attractionEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _attractionEffect_0_0value?: Position | undefined + _attractionEffect_0_1value?: number | undefined + applyModifierPatch(peer: ArkWindowScenePeer): void { + super.applyModifierPatch(peer) + if (this._attractionEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._attractionEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setAttractionEffectAttribute((this._attractionEffect_0_0value as Position | undefined), (this._attractionEffect_0_1value as number | undefined)); + this._attractionEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._attractionEffect_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._attractionEffect_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setAttractionEffectAttribute((undefined as Position | undefined), (undefined as number | undefined)); + } + } + } + } + mergeModifier(modifier: WindowSceneModifier): void { + super.mergeModifier(modifier) + if (modifier._attractionEffect_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._attractionEffect_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.attractionEffect(modifier._attractionEffect_0_0value, modifier._attractionEffect_0_1value); + break; + } + default: { + this.attractionEffect((undefined as Position | undefined), (undefined as number | undefined)); + } + } + } + } + attractionEffect(destination: Position | undefined, fraction: number | undefined): this { + if (((this._attractionEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._attractionEffect_0_1value) !== (fraction))) + { + this._attractionEffect_0_flag = AttributeUpdaterFlag.UPDATE + this._attractionEffect_0_0value = destination + this._attractionEffect_0_1value = fraction + } else + { + this._attractionEffect_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/generated/arkui.TextModifier.ets b/arkoala-arkts/arkui/generated/WithThemeModifier.ets similarity index 41% rename from arkoala-arkts/arkui/src/generated/arkui.TextModifier.ets rename to arkoala-arkts/arkui/generated/WithThemeModifier.ets index 94e13c288ae4432468f9d4841aa900175a48822a..85c28339a246281332ab554f7f8f151964aff8b5 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.TextModifier.ets +++ b/arkoala-arkts/arkui/generated/WithThemeModifier.ets @@ -16,19 +16,25 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -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 { TypeChecker } from "#components" -import { CallbackTransformer } from "./../CallbackTransformer" -export interface TextModifier { -} -export class TextModifier_serializer { - public static write(buffer: SerializerBase, value: TextModifier): void { +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkWithThemePeer, WithThemeAttribute } from "./component/withTheme" +export class WithThemeModifier implements WithThemeAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: WithThemeAttribute): void { } + applyPressedAttribute(instance: WithThemeAttribute): void { } + applyFocusedAttribute(instance: WithThemeAttribute): void { } + applyDisabledAttribute(instance: WithThemeAttribute): void { } + applySelectedAttribute(instance: WithThemeAttribute): void { } + applyModifierPatch(peer: ArkWithThemePeer): void { + } + mergeModifier(modifier: WithThemeModifier): void { } - public static read(buffer: DeserializerBase): TextModifier { - let value : TextModifier = ({} as TextModifier) - return value + public attributeModifier(value: AttributeModifier | undefined): this { + throw new Error("Not implemented") } } diff --git a/arkoala-arkts/arkui/generated/XComponentModifier.ets b/arkoala-arkts/arkui/generated/XComponentModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..39a03800db7bf232f1f6ee3907bd0cc7b6312d59 --- /dev/null +++ b/arkoala-arkts/arkui/generated/XComponentModifier.ets @@ -0,0 +1,309 @@ +/* + * 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 { CommonMethodModifier } from "./CommonMethodModifier" +import { AttributeModifier } from "#handwritten" +import { AttributeUpdaterFlag } from "./AttributeUpdater" +import { ArkXComponentPeer, OnNativeLoadCallback, XComponentAttribute } from "./component/xcomponent" +import { CommonMethod } from "./component/common" +import { VoidCallback } from "./component/units" +export class XComponentModifier extends CommonMethodModifier implements XComponentAttribute,AttributeModifier { + _instanceId: number = -1; + setInstanceId(instanceId: number): void { + this._instanceId = instanceId + } + isUpdater: () => boolean = () => false + applyNormalAttribute(instance: XComponentAttribute): void { } + applyPressedAttribute(instance: XComponentAttribute): void { } + applyFocusedAttribute(instance: XComponentAttribute): void { } + applyDisabledAttribute(instance: XComponentAttribute): void { } + applySelectedAttribute(instance: XComponentAttribute): void { } + _onLoad_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onLoad_0_0value?: OnNativeLoadCallback | undefined + _onDestroy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _onDestroy_0_0value?: VoidCallback | undefined + _enableAnalyzer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableAnalyzer_0_0value?: boolean | undefined + _enableSecure_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableSecure_0_0value?: boolean | undefined + _hdrBrightness_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _hdrBrightness_0_0value?: number | undefined + _enableTransparentLayer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL + _enableTransparentLayer_0_0value?: boolean | undefined + applyModifierPatch(peer: ArkXComponentPeer): void { + super.applyModifierPatch(peer) + if (this._onLoad_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onLoad_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnLoadAttribute((this._onLoad_0_0value as OnNativeLoadCallback | undefined)); + this._onLoad_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onLoad_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onLoad_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnLoadAttribute((undefined as OnNativeLoadCallback | undefined)); + } + } + } + if (this._onDestroy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._onDestroy_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setOnDestroyAttribute((this._onDestroy_0_0value as VoidCallback | undefined)); + this._onDestroy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._onDestroy_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._onDestroy_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setOnDestroyAttribute((undefined as VoidCallback | undefined)); + } + } + } + if (this._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableAnalyzer_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableAnalyzerAttribute((this._enableAnalyzer_0_0value as boolean | undefined)); + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableAnalyzerAttribute((undefined as boolean | undefined)); + } + } + } + if (this._enableSecure_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableSecure_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableSecureAttribute((this._enableSecure_0_0value as boolean | undefined)); + this._enableSecure_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableSecure_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableSecure_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableSecureAttribute((undefined as boolean | undefined)); + } + } + } + if (this._hdrBrightness_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._hdrBrightness_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setHdrBrightnessAttribute((this._hdrBrightness_0_0value as number | undefined)); + this._hdrBrightness_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._hdrBrightness_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._hdrBrightness_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setHdrBrightnessAttribute((undefined as number | undefined)); + } + } + } + if (this._enableTransparentLayer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (this._enableTransparentLayer_0_flag) { + case AttributeUpdaterFlag.UPDATE: { + peer.setEnableTransparentLayerAttribute((this._enableTransparentLayer_0_0value as boolean | undefined)); + this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.INITIAL; + peer.setEnableTransparentLayerAttribute((undefined as boolean | undefined)); + } + } + } + } + mergeModifier(modifier: XComponentModifier): void { + super.mergeModifier(modifier) + if (modifier._onLoad_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onLoad_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onLoad(modifier._onLoad_0_0value); + break; + } + default: { + this.onLoad((undefined as OnNativeLoadCallback | undefined)); + } + } + } + if (modifier._onDestroy_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._onDestroy_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDestroy(modifier._onDestroy_0_0value); + break; + } + default: { + this.onDestroy((undefined as VoidCallback | undefined)); + } + } + } + if (modifier._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableAnalyzer_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableAnalyzer(modifier._enableAnalyzer_0_0value); + break; + } + default: { + this.enableAnalyzer((undefined as boolean | undefined)); + } + } + } + if (modifier._enableSecure_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableSecure_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableSecure(modifier._enableSecure_0_0value); + break; + } + default: { + this.enableSecure((undefined as boolean | undefined)); + } + } + } + if (modifier._hdrBrightness_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._hdrBrightness_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hdrBrightness(modifier._hdrBrightness_0_0value); + break; + } + default: { + this.hdrBrightness((undefined as number | undefined)); + } + } + } + if (modifier._enableTransparentLayer_0_flag != AttributeUpdaterFlag.INITIAL) + { + switch (modifier._enableTransparentLayer_0_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enableTransparentLayer(modifier._enableTransparentLayer_0_0value); + break; + } + default: { + this.enableTransparentLayer((undefined as boolean | undefined)); + } + } + } + } + onLoad(value: OnNativeLoadCallback | undefined): this { + if (((this._onLoad_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onLoad_0_flag = AttributeUpdaterFlag.UPDATE + this._onLoad_0_0value = value + } else + { + this._onLoad_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + onDestroy(value: VoidCallback | undefined): this { + if (((this._onDestroy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + { + this._onDestroy_0_flag = AttributeUpdaterFlag.UPDATE + this._onDestroy_0_0value = value + } else + { + this._onDestroy_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableAnalyzer(value: boolean | undefined): this { + if (((this._enableAnalyzer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnalyzer_0_0value) !== (value))) + { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.UPDATE + this._enableAnalyzer_0_0value = value + } else + { + this._enableAnalyzer_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableSecure(value: boolean | undefined): this { + if (((this._enableSecure_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableSecure_0_0value) !== (value))) + { + this._enableSecure_0_flag = AttributeUpdaterFlag.UPDATE + this._enableSecure_0_0value = value + } else + { + this._enableSecure_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + hdrBrightness(value: number | undefined): this { + if (((this._hdrBrightness_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hdrBrightness_0_0value) !== (value))) + { + this._hdrBrightness_0_flag = AttributeUpdaterFlag.UPDATE + this._hdrBrightness_0_0value = value + } else + { + this._hdrBrightness_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + enableTransparentLayer(value: boolean | undefined): this { + if (((this._enableTransparentLayer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableTransparentLayer_0_0value) !== (value))) + { + this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.UPDATE + this._enableTransparentLayer_0_0value = value + } else + { + this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.SKIP + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} diff --git a/arkoala-arkts/arkui/src/component/actionSheet.ets b/arkoala-arkts/arkui/generated/component/actionSheet.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/actionSheet.ets rename to arkoala-arkts/arkui/generated/component/actionSheet.ets index 81a48243ed4c13e33baa4308125772aa27770a97..729f51d3b4d107a283b384d00898c5d16b037072 100644 --- a/arkoala-arkts/arkui/src/component/actionSheet.ets +++ b/arkoala-arkts/arkui/generated/component/actionSheet.ets @@ -22,12 +22,13 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.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" +import { extractors } from "#handwritten" 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 95% rename from arkoala-arkts/arkui/src/component/alertDialog.ets rename to arkoala-arkts/arkui/generated/component/alertDialog.ets index 4dad3cd66e7e0440371e2bf348bc03d52ee1dc01..ac28531601025c54025b520ad9b189f516e602f6 100644 --- a/arkoala-arkts/arkui/src/component/alertDialog.ets +++ b/arkoala-arkts/arkui/generated/component/alertDialog.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } 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 "global.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/generated/component/alphabetIndexer.ets b/arkoala-arkts/arkui/generated/component/alphabetIndexer.ets new file mode 100644 index 0000000000000000000000000000000000000000..45f5bef596c353a42fbeb5c89be538a603a4393c --- /dev/null +++ b/arkoala-arkts/arkui/generated/component/alphabetIndexer.ets @@ -0,0 +1,1042 @@ +/* + * 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, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" +import { Resource_serializer } from "./../framework/resource" +import { Font_serializer, Position_serializer, ResourceColor, Font, Position, Length } from "./units" +import { Bindable_Number_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, BlurStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +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 { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" +import { CallbackTransformer } from "./../CallbackTransformer" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { NodeAttach, remember } from "@koalaui/runtime" +export class ArkAlphabetIndexerPeer 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): ArkAlphabetIndexerPeer { + const peerId = PeerNode.nextId() + const _peerPtr = ArkUIGeneratedNativeModule._AlphabetIndexer_construct(peerId, flags) + const _peer = new ArkAlphabetIndexerPeer(_peerPtr, peerId, 'AlphabetIndexer', flags) + component?.setPeer(_peer) + return _peer + } + setAlphabetIndexerOptionsAttribute(options: AlphabetIndexerOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + AlphabetIndexerOptions_serializer.write(thisSerializer, options) + ArkUIGeneratedNativeModule._AlphabetIndexerInterface_setAlphabetIndexerOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setColorAttribute(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._AlphabetIndexerAttribute_setColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSelectedColorAttribute(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._AlphabetIndexerAttribute_setSelectedColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupColorAttribute(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._AlphabetIndexerAttribute_setPopupColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSelectedBackgroundColorAttribute(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._AlphabetIndexerAttribute_setSelectedBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupBackgroundAttribute(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._AlphabetIndexerAttribute_setPopupBackground(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupSelectedColorAttribute(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._AlphabetIndexerAttribute_setPopupSelectedColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupUnselectedColorAttribute(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._AlphabetIndexerAttribute_setPopupUnselectedColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupItemBackgroundColorAttribute(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._AlphabetIndexerAttribute_setPopupItemBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setUsingPopupAttribute(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._AlphabetIndexerAttribute_setUsingPopup(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSelectedFontAttribute(value: Font | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + Font_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setSelectedFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupFontAttribute(value: Font | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + Font_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setPopupFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupItemFontAttribute(value: Font | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + Font_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setPopupItemFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setItemSizeAttribute(value: string | number | 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 { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setItemSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontAttribute(value: Font | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + Font_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnSelectAttribute(value: OnAlphabetIndexerSelectCallback | 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._AlphabetIndexerAttribute_setOnSelect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnRequestPopupDataAttribute(value: OnAlphabetIndexerRequestPopupDataCallback | 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._AlphabetIndexerAttribute_setOnRequestPopupData(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnPopupSelectAttribute(value: OnAlphabetIndexerPopupSelectCallback | 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._AlphabetIndexerAttribute_setOnPopupSelect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSelectedAttribute(value: number | Bindable | 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 Bindable) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Bindable + Bindable_Number_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setSelected(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupPositionAttribute(value: Position | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + Position_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setPopupPosition(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAutoCollapseAttribute(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._AlphabetIndexerAttribute_setAutoCollapse(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupItemBorderRadiusAttribute(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._AlphabetIndexerAttribute_setPopupItemBorderRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setItemBorderRadiusAttribute(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._AlphabetIndexerAttribute_setItemBorderRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupBackgroundBlurStyleAttribute(value: BlurStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as BlurStyle) + thisSerializer.writeInt32(TypeChecker.BlurStyle_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setPopupBackgroundBlurStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPopupTitleBackgroundAttribute(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._AlphabetIndexerAttribute_setPopupTitleBackground(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnableHapticFeedbackAttribute(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._AlphabetIndexerAttribute_setEnableHapticFeedback(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAlignStyleAttribute(value: IndexerAlign | undefined, offset?: Length): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as IndexerAlign) + thisSerializer.writeInt32(TypeChecker.IndexerAlign_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (offset !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const offsetTmpValue = offset! + if (offsetTmpValue instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const offsetTmpValueForIdx0 = offsetTmpValue as string + thisSerializer.writeString(offsetTmpValueForIdx0) + } else if (offsetTmpValue instanceof number) { + thisSerializer.writeInt8((1).toChar()) + const offsetTmpValueForIdx1 = offsetTmpValue as number + thisSerializer.writeNumber(offsetTmpValueForIdx1) + } else if (offsetTmpValue instanceof Resource) { + thisSerializer.writeInt8((2).toChar()) + const offsetTmpValueForIdx2 = offsetTmpValue as Resource + Resource_serializer.write(thisSerializer, offsetTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_setAlignStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export enum IndexerAlign { + LEFT = 0, + Left = 0, + RIGHT = 1, + Right = 1, + START = 2, + END = 3 +} +export interface AlphabetIndexerOptions { + arrayValue: Array; + selected: number | Bindable; +} +export type OnAlphabetIndexerSelectCallback = (index: number) => void; +export type OnAlphabetIndexerPopupSelectCallback = (index: number) => void; +export type OnAlphabetIndexerRequestPopupDataCallback = (index: number) => Array; +export interface AlphabetIndexerAttribute extends CommonMethod { + color(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method color") + } + selectedColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method selectedColor") + } + popupColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method popupColor") + } + selectedBackgroundColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method selectedBackgroundColor") + } + popupBackground(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method popupBackground") + } + popupSelectedColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method popupSelectedColor") + } + popupUnselectedColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method popupUnselectedColor") + } + popupItemBackgroundColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method popupItemBackgroundColor") + } + usingPopup(value: boolean | undefined): this { + throw new Error("Unimplemented method usingPopup") + } + selectedFont(value: Font | undefined): this { + throw new Error("Unimplemented method selectedFont") + } + popupFont(value: Font | undefined): this { + throw new Error("Unimplemented method popupFont") + } + popupItemFont(value: Font | undefined): this { + throw new Error("Unimplemented method popupItemFont") + } + itemSize(value: string | number | undefined): this { + throw new Error("Unimplemented method itemSize") + } + font(value: Font | undefined): this { + throw new Error("Unimplemented method font") + } + onSelect(value: OnAlphabetIndexerSelectCallback | undefined): this { + throw new Error("Unimplemented method onSelect") + } + onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback | undefined): this { + throw new Error("Unimplemented method onRequestPopupData") + } + onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback | undefined): this { + throw new Error("Unimplemented method onPopupSelect") + } + selected(value: number | Bindable | undefined): this { + throw new Error("Unimplemented method selected") + } + popupPosition(value: Position | undefined): this { + throw new Error("Unimplemented method popupPosition") + } + autoCollapse(value: boolean | undefined): this { + throw new Error("Unimplemented method autoCollapse") + } + popupItemBorderRadius(value: number | undefined): this { + throw new Error("Unimplemented method popupItemBorderRadius") + } + itemBorderRadius(value: number | undefined): this { + throw new Error("Unimplemented method itemBorderRadius") + } + popupBackgroundBlurStyle(value: BlurStyle | undefined): this { + throw new Error("Unimplemented method popupBackgroundBlurStyle") + } + popupTitleBackground(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method popupTitleBackground") + } + enableHapticFeedback(value: boolean | undefined): this { + throw new Error("Unimplemented method enableHapticFeedback") + } + alignStyle(value: IndexerAlign | undefined, offset?: Length): this { + throw new Error("Unimplemented method alignStyle") + } + attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Unimplemented method attributeModifier") + } +} +export class ArkAlphabetIndexerStyle extends ArkCommonMethodStyle implements AlphabetIndexerAttribute { + color_value?: ResourceColor | undefined + selectedColor_value?: ResourceColor | undefined + popupColor_value?: ResourceColor | undefined + selectedBackgroundColor_value?: ResourceColor | undefined + popupBackground_value?: ResourceColor | undefined + popupSelectedColor_value?: ResourceColor | undefined + popupUnselectedColor_value?: ResourceColor | undefined + popupItemBackgroundColor_value?: ResourceColor | undefined + usingPopup_value?: boolean | undefined + selectedFont_value?: Font | undefined + popupFont_value?: Font | undefined + popupItemFont_value?: Font | undefined + itemSize_value?: string | number | undefined + font_value?: Font | undefined + onSelect_value?: OnAlphabetIndexerSelectCallback | undefined + onRequestPopupData_value?: OnAlphabetIndexerRequestPopupDataCallback | undefined + onPopupSelect_value?: OnAlphabetIndexerPopupSelectCallback | undefined + selected_value?: number | Bindable | undefined + popupPosition_value?: Position | undefined + autoCollapse_value?: boolean | undefined + popupItemBorderRadius_value?: number | undefined + itemBorderRadius_value?: number | undefined + popupBackgroundBlurStyle_value?: BlurStyle | undefined + popupTitleBackground_value?: ResourceColor | undefined + enableHapticFeedback_value?: boolean | undefined + attributeModifier_value?: AttributeModifier | AttributeModifier | undefined + public color(value: ResourceColor | undefined): this { + return this + } + public selectedColor(value: ResourceColor | undefined): this { + return this + } + public popupColor(value: ResourceColor | undefined): this { + return this + } + public selectedBackgroundColor(value: ResourceColor | undefined): this { + return this + } + public popupBackground(value: ResourceColor | undefined): this { + return this + } + public popupSelectedColor(value: ResourceColor | undefined): this { + return this + } + public popupUnselectedColor(value: ResourceColor | undefined): this { + return this + } + public popupItemBackgroundColor(value: ResourceColor | undefined): this { + return this + } + public usingPopup(value: boolean | undefined): this { + return this + } + public selectedFont(value: Font | undefined): this { + return this + } + public popupFont(value: Font | undefined): this { + return this + } + public popupItemFont(value: Font | undefined): this { + return this + } + public itemSize(value: string | number | undefined): this { + return this + } + public font(value: Font | undefined): this { + return this + } + public onSelect(value: OnAlphabetIndexerSelectCallback | undefined): this { + return this + } + public onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback | undefined): this { + return this + } + public onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback | undefined): this { + return this + } + public selected(value: number | Bindable | undefined): this { + return this + } + public popupPosition(value: Position | undefined): this { + return this + } + public autoCollapse(value: boolean | undefined): this { + return this + } + public popupItemBorderRadius(value: number | undefined): this { + return this + } + public itemBorderRadius(value: number | undefined): this { + return this + } + public popupBackgroundBlurStyle(value: BlurStyle | undefined): this { + return this + } + public popupTitleBackground(value: ResourceColor | undefined): this { + return this + } + public enableHapticFeedback(value: boolean | undefined): this { + return this + } + public alignStyle(value: IndexerAlign | undefined, offset?: Length): this { + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} + +export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent implements AlphabetIndexerAttribute { + getPeer(): ArkAlphabetIndexerPeer { + return (this.peer as ArkAlphabetIndexerPeer) + } + public setAlphabetIndexerOptions(options: AlphabetIndexerOptions): this { + if (this.checkPriority("setAlphabetIndexerOptions")) { + const options_casted = options as (AlphabetIndexerOptions) + this.getPeer()?.setAlphabetIndexerOptionsAttribute(options_casted) + return this + } + return this + } + public color(value: ResourceColor | undefined): this { + if (this.checkPriority("color")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setColorAttribute(value_casted) + return this + } + return this + } + public selectedColor(value: ResourceColor | undefined): this { + if (this.checkPriority("selectedColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setSelectedColorAttribute(value_casted) + return this + } + return this + } + public popupColor(value: ResourceColor | undefined): this { + if (this.checkPriority("popupColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setPopupColorAttribute(value_casted) + return this + } + return this + } + public selectedBackgroundColor(value: ResourceColor | undefined): this { + if (this.checkPriority("selectedBackgroundColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setSelectedBackgroundColorAttribute(value_casted) + return this + } + return this + } + public popupBackground(value: ResourceColor | undefined): this { + if (this.checkPriority("popupBackground")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setPopupBackgroundAttribute(value_casted) + return this + } + return this + } + public popupSelectedColor(value: ResourceColor | undefined): this { + if (this.checkPriority("popupSelectedColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setPopupSelectedColorAttribute(value_casted) + return this + } + return this + } + public popupUnselectedColor(value: ResourceColor | undefined): this { + if (this.checkPriority("popupUnselectedColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setPopupUnselectedColorAttribute(value_casted) + return this + } + return this + } + public popupItemBackgroundColor(value: ResourceColor | undefined): this { + if (this.checkPriority("popupItemBackgroundColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setPopupItemBackgroundColorAttribute(value_casted) + return this + } + return this + } + public usingPopup(value: boolean | undefined): this { + if (this.checkPriority("usingPopup")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setUsingPopupAttribute(value_casted) + return this + } + return this + } + public selectedFont(value: Font | undefined): this { + if (this.checkPriority("selectedFont")) { + const value_casted = value as (Font | undefined) + this.getPeer()?.setSelectedFontAttribute(value_casted) + return this + } + return this + } + public popupFont(value: Font | undefined): this { + if (this.checkPriority("popupFont")) { + const value_casted = value as (Font | undefined) + this.getPeer()?.setPopupFontAttribute(value_casted) + return this + } + return this + } + public popupItemFont(value: Font | undefined): this { + if (this.checkPriority("popupItemFont")) { + const value_casted = value as (Font | undefined) + this.getPeer()?.setPopupItemFontAttribute(value_casted) + return this + } + return this + } + public itemSize(value: string | number | undefined): this { + if (this.checkPriority("itemSize")) { + const value_casted = value as (string | number | undefined) + this.getPeer()?.setItemSizeAttribute(value_casted) + return this + } + return this + } + public font(value: Font | undefined): this { + if (this.checkPriority("font")) { + const value_casted = value as (Font | undefined) + this.getPeer()?.setFontAttribute(value_casted) + return this + } + return this + } + public onSelect(value: OnAlphabetIndexerSelectCallback | undefined): this { + if (this.checkPriority("onSelect")) { + const value_casted = value as (OnAlphabetIndexerSelectCallback | undefined) + this.getPeer()?.setOnSelectAttribute(value_casted) + return this + } + return this + } + public onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback | undefined): this { + if (this.checkPriority("onRequestPopupData")) { + const value_casted = value as (OnAlphabetIndexerRequestPopupDataCallback | undefined) + this.getPeer()?.setOnRequestPopupDataAttribute(value_casted) + return this + } + return this + } + public onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback | undefined): this { + if (this.checkPriority("onPopupSelect")) { + const value_casted = value as (OnAlphabetIndexerPopupSelectCallback | undefined) + this.getPeer()?.setOnPopupSelectAttribute(value_casted) + return this + } + return this + } + public selected(value: number | Bindable | undefined): this { + if (this.checkPriority("selected")) { + const value_casted = value as (number | Bindable | undefined) + this.getPeer()?.setSelectedAttribute(value_casted) + return this + } + return this + } + public popupPosition(value: Position | undefined): this { + if (this.checkPriority("popupPosition")) { + const value_casted = value as (Position | undefined) + this.getPeer()?.setPopupPositionAttribute(value_casted) + return this + } + return this + } + public autoCollapse(value: boolean | undefined): this { + if (this.checkPriority("autoCollapse")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setAutoCollapseAttribute(value_casted) + return this + } + return this + } + public popupItemBorderRadius(value: number | undefined): this { + if (this.checkPriority("popupItemBorderRadius")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setPopupItemBorderRadiusAttribute(value_casted) + return this + } + return this + } + public itemBorderRadius(value: number | undefined): this { + if (this.checkPriority("itemBorderRadius")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setItemBorderRadiusAttribute(value_casted) + return this + } + return this + } + public popupBackgroundBlurStyle(value: BlurStyle | undefined): this { + if (this.checkPriority("popupBackgroundBlurStyle")) { + const value_casted = value as (BlurStyle | undefined) + this.getPeer()?.setPopupBackgroundBlurStyleAttribute(value_casted) + return this + } + return this + } + public popupTitleBackground(value: ResourceColor | undefined): this { + if (this.checkPriority("popupTitleBackground")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setPopupTitleBackgroundAttribute(value_casted) + return this + } + return this + } + public enableHapticFeedback(value: boolean | undefined): this { + if (this.checkPriority("enableHapticFeedback")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEnableHapticFeedbackAttribute(value_casted) + return this + } + return this + } + public alignStyle(value: IndexerAlign | undefined, offset?: Length): this { + if (this.checkPriority("alignStyle")) { + const value_casted = value as (IndexerAlign | undefined) + const offset_casted = offset as (Length | undefined) + this.getPeer()?.setAlignStyleAttribute(value_casted, offset_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() + } +} + +@memo +export function AlphabetIndexer( + @memo + style: ((attributes: AlphabetIndexerAttribute) => void) | undefined, + options: AlphabetIndexerOptions, + @memo + content_?: () => void, +): void { + const receiver = remember((): ArkAlphabetIndexerComponent => { + return new ArkAlphabetIndexerComponent() + }) + NodeAttach((): ArkAlphabetIndexerPeer => ArkAlphabetIndexerPeer.create(receiver), (_: ArkAlphabetIndexerPeer): void => { + receiver.setAlphabetIndexerOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} + +export class AlphabetIndexerOptions_serializer { + public static write(buffer: SerializerBase, value: AlphabetIndexerOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForArrayValue = value.arrayValue + valueSerializer.writeInt32((valueHolderForArrayValue.length).toInt()) + for (let valueHolderForArrayValueCounterI = 0; valueHolderForArrayValueCounterI < valueHolderForArrayValue.length; valueHolderForArrayValueCounterI++) { + const valueHolderForArrayValueTmpElement : string = valueHolderForArrayValue[valueHolderForArrayValueCounterI] + valueSerializer.writeString(valueHolderForArrayValueTmpElement) + } + const valueHolderForSelected = value.selected + if (valueHolderForSelected instanceof number) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForSelectedForIdx0 = valueHolderForSelected as number + valueSerializer.writeNumber(valueHolderForSelectedForIdx0) + } else if (valueHolderForSelected instanceof Bindable) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForSelectedForIdx1 = valueHolderForSelected as Bindable + Bindable_Number_serializer.write(valueSerializer, valueHolderForSelectedForIdx1) + } + } + public static read(buffer: DeserializerBase): AlphabetIndexerOptions { + let valueDeserializer : DeserializerBase = buffer + const arrayValueTmpBufLength : int32 = valueDeserializer.readInt32() + let arrayValueTmpBuf : Array = new Array(arrayValueTmpBufLength) + for (let arrayValueTmpBufBufCounterI = 0; arrayValueTmpBufBufCounterI < arrayValueTmpBufLength; arrayValueTmpBufBufCounterI++) { + arrayValueTmpBuf[arrayValueTmpBufBufCounterI] = (valueDeserializer.readString() as string) + } + const arrayValueTmpResult : Array = arrayValueTmpBuf + const selectedTmpBufUnionSelector : int32 = valueDeserializer.readInt8() + let selectedTmpBuf : number | Bindable | undefined + if (selectedTmpBufUnionSelector == (0).toChar()) { + selectedTmpBuf = (valueDeserializer.readNumber() as number) + } else if (selectedTmpBufUnionSelector == (1).toChar()) { + selectedTmpBuf = Bindable_Number_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for selectedTmpBuf has to be chosen through deserialisation.") + } + const selectedTmpResult : number | Bindable = (selectedTmpBuf as number | Bindable) + let value : AlphabetIndexerOptions = ({arrayValue: arrayValueTmpResult, selected: selectedTmpResult} as AlphabetIndexerOptions) + return value + } +} diff --git a/arkoala-arkts/arkui/src/component/animator.ets b/arkoala-arkts/arkui/generated/component/animator.ets similarity index 51% rename from arkoala-arkts/arkui/src/component/animator.ets rename to arkoala-arkts/arkui/generated/component/animator.ets index d0b73e04da1400f4a86e273bb62e0a780420aaec..aff457db7fd73a4944e18f5ca0f727f0f4d61999 100644 --- a/arkoala-arkts/arkui/src/component/animator.ets +++ b/arkoala-arkts/arkui/generated/component/animator.ets @@ -22,15 +22,14 @@ import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } 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, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class FrictionMotionInternal { public static fromPtr(ptr: KPointer): FrictionMotion { return new FrictionMotion(false, false, false, ptr) @@ -584,637 +583,6 @@ export function Animator( }) } -export class AnimatorModifier extends CommonMethodModifier implements AnimatorAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _state_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _state_0_0value?: AnimationStatus | undefined - _duration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _duration_0_0value?: number | undefined - _curve_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _curve_0_0value?: curves.Curve | undefined - _delay_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _delay_0_0value?: number | undefined - _fillMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fillMode_0_0value?: FillMode | undefined - _iterations_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _iterations_0_0value?: number | undefined - _playMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _playMode_0_0value?: PlayMode | undefined - _motion_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _motion_0_0value?: SpringMotion | FrictionMotion | ScrollMotion | undefined - _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onStart_0_0value?: (() => void) | undefined - _onPause_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPause_0_0value?: (() => void) | undefined - _onRepeat_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRepeat_0_0value?: (() => void) | undefined - _onCancel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onCancel_0_0value?: (() => void) | undefined - _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFinish_0_0value?: (() => void) | undefined - _onFrame_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFrame_0_0value?: ((value: number) => void) | undefined - applyModifierPatch(peer: ArkAnimatorPeer): void { - super.applyModifierPatch(peer) - if (this._state_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._state_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStateAttribute((this._state_0_0value as AnimationStatus | undefined)); - this._state_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._state_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._state_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStateAttribute((undefined as AnimationStatus | undefined)); - } - } - } - if (this._duration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._duration_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDurationAttribute((this._duration_0_0value as number | undefined)); - this._duration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._duration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._duration_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDurationAttribute((undefined as number | undefined)); - } - } - } - if (this._curve_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._curve_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCurveAttribute((this._curve_0_0value as curves.Curve | undefined)); - this._curve_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._curve_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._curve_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCurveAttribute((undefined as curves.Curve | undefined)); - } - } - } - if (this._delay_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._delay_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDelayAttribute((this._delay_0_0value as number | undefined)); - this._delay_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._delay_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._delay_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDelayAttribute((undefined as number | undefined)); - } - } - } - if (this._fillMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fillMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFillModeAttribute((this._fillMode_0_0value as FillMode | undefined)); - this._fillMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fillMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fillMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFillModeAttribute((undefined as FillMode | undefined)); - } - } - } - if (this._iterations_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._iterations_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIterationsAttribute((this._iterations_0_0value as number | undefined)); - this._iterations_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._iterations_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._iterations_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIterationsAttribute((undefined as number | undefined)); - } - } - } - if (this._playMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._playMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPlayModeAttribute((this._playMode_0_0value as PlayMode | undefined)); - this._playMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._playMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._playMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPlayModeAttribute((undefined as PlayMode | undefined)); - } - } - } - if (this._motion_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._motion_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMotionAttribute((this._motion_0_0value as SpringMotion | FrictionMotion | ScrollMotion | undefined)); - this._motion_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._motion_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._motion_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMotionAttribute((undefined as SpringMotion | FrictionMotion | ScrollMotion | undefined)); - } - } - } - if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnStartAttribute((this._onStart_0_0value as (() => void) | undefined)); - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnStartAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onPause_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPause_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPauseAttribute((this._onPause_0_0value as (() => void) | undefined)); - this._onPause_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPause_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPause_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPauseAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onRepeat_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRepeat_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRepeatAttribute((this._onRepeat_0_0value as (() => void) | undefined)); - this._onRepeat_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRepeat_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRepeat_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRepeatAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onCancel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onCancel_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCancelAttribute((this._onCancel_0_0value as (() => void) | undefined)); - this._onCancel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onCancel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onCancel_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCancelAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFinishAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onFrame_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFrame_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFrameAttribute((this._onFrame_0_0value as ((value: number) => void) | undefined)); - this._onFrame_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFrame_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFrame_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFrameAttribute((undefined as ((value: number) => void) | undefined)); - } - } - } - } - mergeModifier(modifier: AnimatorModifier): void { - super.mergeModifier(modifier) - if (modifier._state_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._state_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.state(modifier._state_0_0value); - break; - } - default: { - this.state((undefined as AnimationStatus | undefined)); - } - } - } - if (modifier._duration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._duration_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.duration(modifier._duration_0_0value); - break; - } - default: { - this.duration((undefined as number | undefined)); - } - } - } - if (modifier._curve_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._curve_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.curve(modifier._curve_0_0value); - break; - } - default: { - this.curve((undefined as curves.Curve | undefined)); - } - } - } - if (modifier._delay_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._delay_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.delay(modifier._delay_0_0value); - break; - } - default: { - this.delay((undefined as number | undefined)); - } - } - } - if (modifier._fillMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fillMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fillMode(modifier._fillMode_0_0value); - break; - } - default: { - this.fillMode((undefined as FillMode | undefined)); - } - } - } - if (modifier._iterations_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._iterations_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.iterations(modifier._iterations_0_0value); - break; - } - default: { - this.iterations((undefined as number | undefined)); - } - } - } - if (modifier._playMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._playMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.playMode(modifier._playMode_0_0value); - break; - } - default: { - this.playMode((undefined as PlayMode | undefined)); - } - } - } - if (modifier._motion_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._motion_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.motion(modifier._motion_0_0value); - break; - } - default: { - this.motion((undefined as SpringMotion | FrictionMotion | ScrollMotion | undefined)); - } - } - } - if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onStart(modifier._onStart_0_0value); - break; - } - default: { - this.onStart((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onPause_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPause_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPause(modifier._onPause_0_0value); - break; - } - default: { - this.onPause((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onRepeat_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRepeat_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRepeat(modifier._onRepeat_0_0value); - break; - } - default: { - this.onRepeat((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onCancel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onCancel_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onCancel(modifier._onCancel_0_0value); - break; - } - default: { - this.onCancel((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFinish(modifier._onFinish_0_0value); - break; - } - default: { - this.onFinish((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onFrame_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFrame_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFrame(modifier._onFrame_0_0value); - break; - } - default: { - this.onFrame((undefined as ((value: number) => void) | undefined)); - } - } - } - } - state(value: AnimationStatus | undefined): this { - if (((this._state_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._state_0_flag = AttributeUpdaterFlag.UPDATE - this._state_0_0value = value - } else - { - this._state_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - duration(value: number | undefined): this { - if (((this._duration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._duration_0_0value) !== (value))) - { - this._duration_0_flag = AttributeUpdaterFlag.UPDATE - this._duration_0_0value = value - } else - { - this._duration_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - curve(value: curves.Curve | undefined): this { - if (((this._curve_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._curve_0_flag = AttributeUpdaterFlag.UPDATE - this._curve_0_0value = value - } else - { - this._curve_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - delay(value: number | undefined): this { - if (((this._delay_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._delay_0_0value) !== (value))) - { - this._delay_0_flag = AttributeUpdaterFlag.UPDATE - this._delay_0_0value = value - } else - { - this._delay_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fillMode(value: FillMode | undefined): this { - if (((this._fillMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fillMode_0_flag = AttributeUpdaterFlag.UPDATE - this._fillMode_0_0value = value - } else - { - this._fillMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - iterations(value: number | undefined): this { - if (((this._iterations_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._iterations_0_0value) !== (value))) - { - this._iterations_0_flag = AttributeUpdaterFlag.UPDATE - this._iterations_0_0value = value - } else - { - this._iterations_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - playMode(value: PlayMode | undefined): this { - if (((this._playMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._playMode_0_flag = AttributeUpdaterFlag.UPDATE - this._playMode_0_0value = value - } else - { - this._playMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - motion(value: SpringMotion | FrictionMotion | ScrollMotion | undefined): this { - if (((this._motion_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._motion_0_flag = AttributeUpdaterFlag.UPDATE - this._motion_0_0value = value - } else - { - this._motion_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onStart(value: (() => void) | undefined): this { - if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onStart_0_0value = value - } else - { - this._onStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPause(value: (() => void) | undefined): this { - if (((this._onPause_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPause_0_flag = AttributeUpdaterFlag.UPDATE - this._onPause_0_0value = value - } else - { - this._onPause_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onRepeat(value: (() => void) | undefined): this { - if (((this._onRepeat_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRepeat_0_flag = AttributeUpdaterFlag.UPDATE - this._onRepeat_0_0value = value - } else - { - this._onRepeat_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onCancel(value: (() => void) | undefined): this { - if (((this._onCancel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onCancel_0_flag = AttributeUpdaterFlag.UPDATE - this._onCancel_0_0value = value - } else - { - this._onCancel_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFinish(value: (() => void) | undefined): this { - if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE - this._onFinish_0_0value = value - } else - { - this._onFinish_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFrame(value: ((value: number) => void) | undefined): this { - if (((this._onFrame_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFrame_0_flag = AttributeUpdaterFlag.UPDATE - this._onFrame_0_0value = value - } else - { - this._onFrame_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class FrictionMotion_serializer { public static write(buffer: SerializerBase, value: FrictionMotion): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/badge.ets b/arkoala-arkts/arkui/generated/component/badge.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/badge.ets rename to arkoala-arkts/arkui/generated/component/badge.ets index 8511c6e8974cdddf6aaca0dad49c73423e22648f..84c27391927a304ab6a34d97f8da6686aa2a72ed 100644 --- a/arkoala-arkts/arkui/src/component/badge.ets +++ b/arkoala-arkts/arkui/generated/component/badge.ets @@ -21,17 +21,17 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } 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 } from "global.resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkBadgePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -164,21 +164,6 @@ export function Badge( }) } -export class BadgeModifier extends CommonMethodModifier implements BadgeAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkBadgePeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: BadgeModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class BadgeStyle_serializer { public static write(buffer: SerializerBase, value: BadgeStyle): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/blank.ets b/arkoala-arkts/arkui/generated/component/blank.ets similarity index 72% rename from arkoala-arkts/arkui/src/component/blank.ets rename to arkoala-arkts/arkui/generated/component/blank.ets index b8fb130bbc721fc634bc9eb98b8e64f801dfb673..ecdc815d7c97a4fc77e189f03a0dd40282373fc1 100644 --- a/arkoala-arkts/arkui/src/component/blank.ets +++ b/arkoala-arkts/arkui/generated/component/blank.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 { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ResourceColor } from "./units" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.resource" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkBlankPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -159,62 +159,3 @@ export function Blank( }) } -export class BlankModifier extends CommonMethodModifier implements BlankAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _color_0_0value?: ResourceColor | undefined - applyModifierPatch(peer: ArkBlankPeer): void { - super.applyModifierPatch(peer) - if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorAttribute((this._color_0_0value as ResourceColor | undefined)); - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._color_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - } - mergeModifier(modifier: BlankModifier): void { - super.mergeModifier(modifier) - if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.color(modifier._color_0_0value); - break; - } - default: { - this.color((undefined as ResourceColor | undefined)); - } - } - } - } - color(value: ResourceColor | undefined): this { - if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._color_0_flag = AttributeUpdaterFlag.UPDATE - this._color_0_0value = value - } else - { - this._color_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/generated/component/builder.ets b/arkoala-arkts/arkui/generated/component/builder.ets new file mode 100644 index 0000000000000000000000000000000000000000..ec9652109878717d87eb703c13182bdc04a1766c --- /dev/null +++ b/arkoala-arkts/arkui/generated/component/builder.ets @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +export type CustomBuilder = @Builder +@memo +() => void; +export type CustomBuilderT = @Builder (t: T) => void; +export type PageMapBuilder = @Builder (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 64% rename from arkoala-arkts/arkui/src/component/button.ets rename to arkoala-arkts/arkui/generated/component/button.ets index 645effbe3b72f4eda026f7e894e50148495ecb4d..635ce846be5152a7f705096ac511a9d18937e61a 100644 --- a/arkoala-arkts/arkui/src/component/button.ets +++ b/arkoala-arkts/arkui/generated/component/button.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 } 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, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, hookButtonContentModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkButtonPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -597,593 +597,6 @@ export function Button( }) } -export class ButtonModifier extends CommonMethodModifier implements ButtonAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _type_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _type_0_0value?: ButtonType | undefined - _stateEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stateEffect_0_0value?: boolean | undefined - _buttonStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _buttonStyle_0_0value?: ButtonStyleMode | undefined - _controlSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _controlSize_0_0value?: ControlSize | undefined - _role_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _role_0_0value?: ButtonRole | undefined - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: ResourceColor | undefined - _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontSize_0_0value?: Length | undefined - _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontWeight_0_0value?: number | FontWeight | string | undefined - _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontStyle_0_0value?: FontStyle | undefined - _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontFamily_0_0value?: string | Resource | undefined - _labelStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _labelStyle_0_0value?: ButtonLabelStyle | undefined - _minFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minFontScale_0_0value?: number | Resource | undefined - _maxFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxFontScale_0_0value?: number | Resource | undefined - applyModifierPatch(peer: ArkButtonPeer): void { - super.applyModifierPatch(peer) - if (this._type_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._type_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTypeAttribute((this._type_0_0value as ButtonType | undefined)); - this._type_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._type_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._type_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTypeAttribute((undefined as ButtonType | undefined)); - } - } - } - if (this._stateEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stateEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStateEffectAttribute((this._stateEffect_0_0value as boolean | undefined)); - this._stateEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stateEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stateEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStateEffectAttribute((undefined as boolean | undefined)); - } - } - } - if (this._buttonStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._buttonStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setButtonStyleAttribute((this._buttonStyle_0_0value as ButtonStyleMode | undefined)); - this._buttonStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._buttonStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._buttonStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setButtonStyleAttribute((undefined as ButtonStyleMode | undefined)); - } - } - } - if (this._controlSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._controlSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setControlSizeAttribute((this._controlSize_0_0value as ControlSize | undefined)); - this._controlSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._controlSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._controlSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setControlSizeAttribute((undefined as ControlSize | undefined)); - } - } - } - if (this._role_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._role_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRoleAttribute((this._role_0_0value as ButtonRole | undefined)); - this._role_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._role_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._role_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRoleAttribute((undefined as ButtonRole | undefined)); - } - } - } - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontSizeAttribute((undefined as Length | undefined)); - } - } - } - if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); - } - } - } - if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontStyleAttribute((undefined as FontStyle | undefined)); - } - } - } - if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontFamilyAttribute((this._fontFamily_0_0value as string | Resource | undefined)); - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontFamilyAttribute((undefined as string | Resource | undefined)); - } - } - } - if (this._labelStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._labelStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLabelStyleAttribute((this._labelStyle_0_0value as ButtonLabelStyle | undefined)); - this._labelStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._labelStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._labelStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLabelStyleAttribute((undefined as ButtonLabelStyle | undefined)); - } - } - } - if (this._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinFontScaleAttribute((this._minFontScale_0_0value as number | Resource | undefined)); - this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minFontScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinFontScaleAttribute((undefined as number | Resource | undefined)); - } - } - } - if (this._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxFontScaleAttribute((this._maxFontScale_0_0value as number | Resource | undefined)); - this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxFontScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxFontScaleAttribute((undefined as number | Resource | undefined)); - } - } - } - } - mergeModifier(modifier: ButtonModifier): void { - super.mergeModifier(modifier) - if (modifier._type_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._type_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.type(modifier._type_0_0value); - break; - } - default: { - this.type((undefined as ButtonType | undefined)); - } - } - } - if (modifier._stateEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stateEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stateEffect(modifier._stateEffect_0_0value); - break; - } - default: { - this.stateEffect((undefined as boolean | undefined)); - } - } - } - if (modifier._buttonStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._buttonStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.buttonStyle(modifier._buttonStyle_0_0value); - break; - } - default: { - this.buttonStyle((undefined as ButtonStyleMode | undefined)); - } - } - } - if (modifier._controlSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._controlSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.controlSize(modifier._controlSize_0_0value); - break; - } - default: { - this.controlSize((undefined as ControlSize | undefined)); - } - } - } - if (modifier._role_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._role_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.role(modifier._role_0_0value); - break; - } - default: { - this.role((undefined as ButtonRole | undefined)); - } - } - } - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontSize(modifier._fontSize_0_0value); - break; - } - default: { - this.fontSize((undefined as Length | undefined)); - } - } - } - if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontWeight(modifier._fontWeight_0_0value); - break; - } - default: { - this.fontWeight((undefined as number | FontWeight | string | undefined)); - } - } - } - if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontStyle(modifier._fontStyle_0_0value); - break; - } - default: { - this.fontStyle((undefined as FontStyle | undefined)); - } - } - } - if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontFamily(modifier._fontFamily_0_0value); - break; - } - default: { - this.fontFamily((undefined as string | Resource | undefined)); - } - } - } - if (modifier._labelStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._labelStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.labelStyle(modifier._labelStyle_0_0value); - break; - } - default: { - this.labelStyle((undefined as ButtonLabelStyle | undefined)); - } - } - } - if (modifier._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minFontScale(modifier._minFontScale_0_0value); - break; - } - default: { - this.minFontScale((undefined as number | Resource | undefined)); - } - } - } - if (modifier._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxFontScale(modifier._maxFontScale_0_0value); - break; - } - default: { - this.maxFontScale((undefined as number | Resource | undefined)); - } - } - } - } - type(value: ButtonType | undefined): this { - if (((this._type_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._type_0_flag = AttributeUpdaterFlag.UPDATE - this._type_0_0value = value - } else - { - this._type_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - stateEffect(value: boolean | undefined): this { - if (((this._stateEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stateEffect_0_0value) !== (value))) - { - this._stateEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._stateEffect_0_0value = value - } else - { - this._stateEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - buttonStyle(value: ButtonStyleMode | undefined): this { - if (((this._buttonStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._buttonStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._buttonStyle_0_0value = value - } else - { - this._buttonStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - controlSize(value: ControlSize | undefined): this { - if (((this._controlSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._controlSize_0_flag = AttributeUpdaterFlag.UPDATE - this._controlSize_0_0value = value - } else - { - this._controlSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - role(value: ButtonRole | undefined): this { - if (((this._role_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._role_0_flag = AttributeUpdaterFlag.UPDATE - this._role_0_0value = value - } else - { - this._role_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontColor(value: ResourceColor | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontSize(value: Length | undefined): this { - if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fontSize_0_0value = value - } else - { - this._fontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontWeight(value: number | FontWeight | string | undefined): this { - if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._fontWeight_0_0value = value - } else - { - this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontStyle(value: FontStyle | undefined): this { - if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._fontStyle_0_0value = value - } else - { - this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontFamily(value: string | Resource | undefined): this { - if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE - this._fontFamily_0_0value = value - } else - { - this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - labelStyle(value: ButtonLabelStyle | undefined): this { - if (((this._labelStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._labelStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._labelStyle_0_0value = value - } else - { - this._labelStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minFontScale(value: number | Resource | undefined): this { - if (((this._minFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minFontScale_0_flag = AttributeUpdaterFlag.UPDATE - this._minFontScale_0_0value = value - } else - { - this._minFontScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxFontScale(value: number | Resource | undefined): this { - if (((this._maxFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._maxFontScale_0_flag = AttributeUpdaterFlag.UPDATE - this._maxFontScale_0_0value = value - } else - { - this._maxFontScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ButtonConfiguration_serializer { public static write(buffer: SerializerBase, value: ButtonConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/calendarPicker.ets b/arkoala-arkts/arkui/generated/component/calendarPicker.ets similarity index 85% rename from arkoala-arkts/arkui/src/component/calendarPicker.ets rename to arkoala-arkts/arkui/generated/component/calendarPicker.ets index edda7d80a10546b64b8c227ad742f4f453bc07e1..adc08449f4cdefec7c9ea77e1b35355b419c0282 100644 --- a/arkoala-arkts/arkui/src/component/calendarPicker.ets +++ b/arkoala-arkts/arkui/generated/component/calendarPicker.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 { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTextStyle, DateRange, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, DateRange_serializer, BackgroundBlurStyleOptions_serializer, BackgroundEffectOptions_serializer, PickerDialogButtonStyle_serializer, ShadowOptions_serializer } from "./common" +import { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTextStyle, DateRange, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle, DateRange_serializer, BackgroundBlurStyleOptions_serializer, BackgroundEffectOptions_serializer, PickerDialogButtonStyle_serializer, ShadowOptions_serializer } from "./common" 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, AttributeUpdater, extractors } from "#handwritten" +import { Resource } from "global.resource" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Color } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class CalendarPickerDialogInternal { public static fromPtr(ptr: KPointer): CalendarPickerDialog { return new CalendarPickerDialog(ptr) @@ -295,199 +295,6 @@ export function CalendarPicker( }) } -export class CalendarPickerModifier extends CommonMethodModifier implements CalendarPickerAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _textStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textStyle_0_0value?: PickerTextStyle | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: ((value0: Date) => void) | undefined - _markToday_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _markToday_0_0value?: boolean | undefined - _edgeAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _edgeAlign_0_0value?: CalendarAlign | undefined - _edgeAlign_0_1value?: Offset | undefined - applyModifierPatch(peer: ArkCalendarPickerPeer): void { - super.applyModifierPatch(peer) - if (this._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextStyleAttribute((this._textStyle_0_0value as PickerTextStyle | undefined)); - this._textStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: Date) => void) | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as ((value0: Date) => void) | undefined)); - } - } - } - if (this._markToday_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._markToday_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMarkTodayAttribute((this._markToday_0_0value as boolean | undefined)); - this._markToday_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._markToday_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._markToday_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMarkTodayAttribute((undefined as boolean | undefined)); - } - } - } - if (this._edgeAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._edgeAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEdgeAlignAttribute((this._edgeAlign_0_0value as CalendarAlign | undefined), (this._edgeAlign_0_1value as Offset | undefined)); - this._edgeAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._edgeAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._edgeAlign_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEdgeAlignAttribute((undefined as CalendarAlign | undefined), (undefined as Offset | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: CalendarPickerModifier): void { - super.mergeModifier(modifier) - if (modifier._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textStyle(modifier._textStyle_0_0value); - break; - } - default: { - this.textStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as ((value0: Date) => void) | undefined)); - } - } - } - if (modifier._markToday_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._markToday_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.markToday(modifier._markToday_0_0value); - break; - } - default: { - this.markToday((undefined as boolean | undefined)); - } - } - } - if (modifier._edgeAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._edgeAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.edgeAlign(modifier._edgeAlign_0_0value, modifier._edgeAlign_0_1value); - break; - } - default: { - this.edgeAlign((undefined as CalendarAlign | undefined), (undefined as Offset | undefined | undefined)); - } - } - } - } - textStyle(value: PickerTextStyle | undefined): this { - if (((this._textStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._textStyle_0_0value = value - } else - { - this._textStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: ((value0: Date) => void) | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - markToday(value: boolean | undefined): this { - if (((this._markToday_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._markToday_0_0value) !== (value))) - { - this._markToday_0_flag = AttributeUpdaterFlag.UPDATE - this._markToday_0_0value = value - } else - { - this._markToday_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - edgeAlign(alignType: CalendarAlign | undefined, offset?: Offset): this { - if (((this._edgeAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._edgeAlign_0_flag = AttributeUpdaterFlag.UPDATE - this._edgeAlign_0_0value = alignType - this._edgeAlign_0_1value = offset - } else - { - this._edgeAlign_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class CalendarPickerDialog_serializer { public static write(buffer: SerializerBase, value: CalendarPickerDialog): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/canvas.ets b/arkoala-arkts/arkui/generated/component/canvas.ets similarity index 95% rename from arkoala-arkts/arkui/src/component/canvas.ets rename to arkoala-arkts/arkui/generated/component/canvas.ets index 8176f6378299bab71d9514dd08702dfa81176018..6e9327f5e0f84589b7bd5ef1aed49e360704dc49 100644 --- a/arkoala-arkts/arkui/src/component/canvas.ets +++ b/arkoala-arkts/arkui/generated/component/canvas.ets @@ -21,20 +21,19 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase 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 "./../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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" -import { FrameNode, FrameNodeInternal } from "./../generated/arkui.FrameNode" +import { FrameNode, FrameNodeInternal } from "./../FrameNode" export class CanvasGradientInternal { public static fromPtr(ptr: KPointer): CanvasGradient { return new CanvasGradient(ptr) @@ -419,10 +418,10 @@ export class ImageData implements MaterializedBase { public getPeer(): Finalizable | undefined { return this.peer } - get data(): NativeBuffer { + get data(): ArrayBuffer { return this.getData() } - set data(data: NativeBuffer) { + set data(data: ArrayBuffer) { this.setData(data) } get height(): number { @@ -440,10 +439,10 @@ export class ImageData implements MaterializedBase { constructor(_0: boolean, _1: boolean, _2: boolean, _3: boolean, peerPtr: KPointer) { this.peer = new Finalizable(peerPtr, ImageData.getFinalizer()) } - constructor(width: number, height: number, data?: NativeBuffer, unit?: LengthMetricsUnit) { + constructor(width: number, height: number, data?: ArrayBuffer, unit?: LengthMetricsUnit) { this(false, false, false, false, ImageData.construct(width, height, data, unit)) } - static construct(width: number, height: number, data?: NativeBuffer, unit?: LengthMetricsUnit): KPointer { + static construct(width: number, height: number, data?: ArrayBuffer, unit?: LengthMetricsUnit): KPointer { const thisSerializer : SerializerBase = SerializerBase.hold() if (data !== undefined) { thisSerializer.writeInt8(RuntimeType.OBJECT) @@ -466,11 +465,11 @@ export class ImageData implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ImageData_getFinalizer() } - private getData(): NativeBuffer { + private getData(): ArrayBuffer { return this.getData_serialize() } - private setData(data: NativeBuffer): void { - const data_casted = data as (NativeBuffer) + private setData(data: ArrayBuffer): void { + const data_casted = data as (ArrayBuffer) this.setData_serialize(data_casted) return } @@ -490,11 +489,11 @@ export class ImageData implements MaterializedBase { this.setWidth_serialize(width_casted) return } - private getData_serialize(): NativeBuffer { + private getData_serialize(): ArrayBuffer { const retval = ArkUIGeneratedNativeModule._ImageData_getData(this.peer!.ptr) return new DeserializerBase(retval, retval.length).readBuffer() } - private setData_serialize(data: NativeBuffer): void { + private setData_serialize(data: ArrayBuffer): void { const thisSerializer : SerializerBase = SerializerBase.hold() thisSerializer.writeBuffer(data) ArkUIGeneratedNativeModule._ImageData_setData(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) @@ -893,109 +892,6 @@ export function Canvas( }) } -export class CanvasModifier extends CommonMethodModifier implements CanvasAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onReady_0_0value?: VoidCallback | undefined - _enableAnalyzer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableAnalyzer_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkCanvasPeer): void { - super.applyModifierPatch(peer) - if (this._onReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnReadyAttribute((this._onReady_0_0value as VoidCallback | undefined)); - this._onReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onReady_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnReadyAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableAnalyzer_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableAnalyzerAttribute((this._enableAnalyzer_0_0value as boolean | undefined)); - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableAnalyzerAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: CanvasModifier): void { - super.mergeModifier(modifier) - if (modifier._onReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onReady(modifier._onReady_0_0value); - break; - } - default: { - this.onReady((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableAnalyzer_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableAnalyzer(modifier._enableAnalyzer_0_0value); - break; - } - default: { - this.enableAnalyzer((undefined as boolean | undefined)); - } - } - } - } - onReady(value: VoidCallback | undefined): this { - if (((this._onReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onReady_0_flag = AttributeUpdaterFlag.UPDATE - this._onReady_0_0value = value - } else - { - this._onReady_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableAnalyzer(value: boolean | undefined): this { - if (((this._enableAnalyzer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnalyzer_0_0value) !== (value))) - { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.UPDATE - this._enableAnalyzer_0_0value = value - } else - { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class CanvasGradient_serializer { public static write(buffer: SerializerBase, value: CanvasGradient): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/checkbox.ets b/arkoala-arkts/arkui/generated/component/checkbox.ets similarity index 64% rename from arkoala-arkts/arkui/src/component/checkbox.ets rename to arkoala-arkts/arkui/generated/component/checkbox.ets index 530fefa90da321dbfd101b50db60d4973a1054da..fe03683679cb4d649e56181d04e5dbfb67096f2f 100644 --- a/arkoala-arkts/arkui/src/component/checkbox.ets +++ b/arkoala-arkts/arkui/generated/component/checkbox.ets @@ -17,22 +17,22 @@ // 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 { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Resource_serializer } 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 { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, hookCheckBoxContentModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkCheckboxPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -335,285 +335,6 @@ export function Checkbox( }) } -export class CheckboxModifier extends CommonMethodModifier implements CheckboxAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _select_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _select_0_0value?: boolean | Bindable | undefined - _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedColor_0_0value?: ResourceColor | undefined - _shape_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _shape_0_0value?: CheckBoxShape | undefined - _unselectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _unselectedColor_0_0value?: ResourceColor | undefined - _mark_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mark_0_0value?: MarkStyle | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: OnCheckboxChangeCallback | undefined - applyModifierPatch(peer: ArkCheckboxPeer): void { - super.applyModifierPatch(peer) - if (this._select_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._select_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectAttribute((this._select_0_0value as boolean | Bindable | undefined)); - this._select_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._select_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._select_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectAttribute((undefined as boolean | Bindable | undefined)); - } - } - } - if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | undefined)); - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._shape_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._shape_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShapeAttribute((this._shape_0_0value as CheckBoxShape | undefined)); - this._shape_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._shape_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._shape_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShapeAttribute((undefined as CheckBoxShape | undefined)); - } - } - } - if (this._unselectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._unselectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setUnselectedColorAttribute((this._unselectedColor_0_0value as ResourceColor | undefined)); - this._unselectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._unselectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._unselectedColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setUnselectedColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._mark_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mark_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMarkAttribute((this._mark_0_0value as MarkStyle | undefined)); - this._mark_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mark_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mark_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMarkAttribute((undefined as MarkStyle | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as OnCheckboxChangeCallback | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as OnCheckboxChangeCallback | undefined)); - } - } - } - } - mergeModifier(modifier: CheckboxModifier): void { - super.mergeModifier(modifier) - if (modifier._select_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._select_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.select(modifier._select_0_0value); - break; - } - default: { - this.select((undefined as boolean | Bindable | undefined)); - } - } - } - if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedColor(modifier._selectedColor_0_0value); - break; - } - default: { - this.selectedColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._shape_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._shape_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.shape(modifier._shape_0_0value); - break; - } - default: { - this.shape((undefined as CheckBoxShape | undefined)); - } - } - } - if (modifier._unselectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._unselectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.unselectedColor(modifier._unselectedColor_0_0value); - break; - } - default: { - this.unselectedColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._mark_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mark_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mark(modifier._mark_0_0value); - break; - } - default: { - this.mark((undefined as MarkStyle | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as OnCheckboxChangeCallback | undefined)); - } - } - } - } - select(value: boolean | Bindable | undefined): this { - if (((this._select_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._select_0_flag = AttributeUpdaterFlag.UPDATE - this._select_0_0value = value - } else - { - this._select_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedColor(value: ResourceColor | undefined): this { - if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedColor_0_0value = value - } else - { - this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - shape(value: CheckBoxShape | undefined): this { - if (((this._shape_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._shape_0_flag = AttributeUpdaterFlag.UPDATE - this._shape_0_0value = value - } else - { - this._shape_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - unselectedColor(value: ResourceColor | undefined): this { - if (((this._unselectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._unselectedColor_0_flag = AttributeUpdaterFlag.UPDATE - this._unselectedColor_0_0value = value - } else - { - this._unselectedColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - mark(value: MarkStyle | undefined): this { - if (((this._mark_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._mark_0_flag = AttributeUpdaterFlag.UPDATE - this._mark_0_0value = value - } else - { - this._mark_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: OnCheckboxChangeCallback | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class CheckBoxConfiguration_serializer { public static write(buffer: SerializerBase, value: CheckBoxConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/checkboxgroup.ets b/arkoala-arkts/arkui/generated/component/checkboxgroup.ets similarity index 59% rename from arkoala-arkts/arkui/src/component/checkboxgroup.ets rename to arkoala-arkts/arkui/generated/component/checkboxgroup.ets index 47b99949faf6b54f0be98a0b1a27f0741ee99060..2b82d7fac62f538caaf0490b6bb57e0af9dfa65a 100644 --- a/arkoala-arkts/arkui/src/component/checkboxgroup.ets +++ b/arkoala-arkts/arkui/generated/component/checkboxgroup.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 { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Resource_serializer } 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 { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -326,285 +326,6 @@ export function CheckboxGroup( }) } -export class CheckboxGroupModifier extends CommonMethodModifier implements CheckboxGroupAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _selectAll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectAll_0_0value?: boolean | Bindable | undefined - _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedColor_0_0value?: ResourceColor | undefined - _unselectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _unselectedColor_0_0value?: ResourceColor | undefined - _mark_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mark_0_0value?: MarkStyle | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: OnCheckboxGroupChangeCallback | undefined - _checkboxShape_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _checkboxShape_0_0value?: CheckBoxShape | undefined - applyModifierPatch(peer: ArkCheckboxGroupPeer): void { - super.applyModifierPatch(peer) - if (this._selectAll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectAll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectAllAttribute((this._selectAll_0_0value as boolean | Bindable | undefined)); - this._selectAll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectAll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectAll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectAllAttribute((undefined as boolean | Bindable | undefined)); - } - } - } - if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | undefined)); - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._unselectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._unselectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setUnselectedColorAttribute((this._unselectedColor_0_0value as ResourceColor | undefined)); - this._unselectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._unselectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._unselectedColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setUnselectedColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._mark_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mark_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMarkAttribute((this._mark_0_0value as MarkStyle | undefined)); - this._mark_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mark_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mark_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMarkAttribute((undefined as MarkStyle | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as OnCheckboxGroupChangeCallback | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as OnCheckboxGroupChangeCallback | undefined)); - } - } - } - if (this._checkboxShape_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._checkboxShape_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCheckboxShapeAttribute((this._checkboxShape_0_0value as CheckBoxShape | undefined)); - this._checkboxShape_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._checkboxShape_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._checkboxShape_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCheckboxShapeAttribute((undefined as CheckBoxShape | undefined)); - } - } - } - } - mergeModifier(modifier: CheckboxGroupModifier): void { - super.mergeModifier(modifier) - if (modifier._selectAll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectAll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectAll(modifier._selectAll_0_0value); - break; - } - default: { - this.selectAll((undefined as boolean | Bindable | undefined)); - } - } - } - if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedColor(modifier._selectedColor_0_0value); - break; - } - default: { - this.selectedColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._unselectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._unselectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.unselectedColor(modifier._unselectedColor_0_0value); - break; - } - default: { - this.unselectedColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._mark_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mark_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mark(modifier._mark_0_0value); - break; - } - default: { - this.mark((undefined as MarkStyle | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as OnCheckboxGroupChangeCallback | undefined)); - } - } - } - if (modifier._checkboxShape_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._checkboxShape_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.checkboxShape(modifier._checkboxShape_0_0value); - break; - } - default: { - this.checkboxShape((undefined as CheckBoxShape | undefined)); - } - } - } - } - selectAll(value: boolean | Bindable | undefined): this { - if (((this._selectAll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectAll_0_flag = AttributeUpdaterFlag.UPDATE - this._selectAll_0_0value = value - } else - { - this._selectAll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedColor(value: ResourceColor | undefined): this { - if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedColor_0_0value = value - } else - { - this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - unselectedColor(value: ResourceColor | undefined): this { - if (((this._unselectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._unselectedColor_0_flag = AttributeUpdaterFlag.UPDATE - this._unselectedColor_0_0value = value - } else - { - this._unselectedColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - mark(value: MarkStyle | undefined): this { - if (((this._mark_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._mark_0_flag = AttributeUpdaterFlag.UPDATE - this._mark_0_0value = value - } else - { - this._mark_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: OnCheckboxGroupChangeCallback | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - checkboxShape(value: CheckBoxShape | undefined): this { - if (((this._checkboxShape_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._checkboxShape_0_flag = AttributeUpdaterFlag.UPDATE - this._checkboxShape_0_0value = value - } else - { - this._checkboxShape_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class CheckboxGroupOptions_serializer { public static write(buffer: SerializerBase, value: CheckboxGroupOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/circle.ets b/arkoala-arkts/arkui/generated/component/circle.ets similarity index 83% rename from arkoala-arkts/arkui/src/component/circle.ets rename to arkoala-arkts/arkui/generated/component/circle.ets index 23d0014d092107694ab340bc8b177cc7be97062a..78bdcd5e0af77f26b7bdac850da60fb0b799cd2a 100644 --- a/arkoala-arkts/arkui/src/component/circle.ets +++ b/arkoala-arkts/arkui/generated/component/circle.ets @@ -21,14 +21,13 @@ 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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkCirclePeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -107,21 +106,6 @@ export function Circle( }) } -export class CircleModifier extends CommonShapeMethodModifier implements CircleAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkCirclePeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: CircleModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class CircleOptions_serializer { public static write(buffer: SerializerBase, value: CircleOptions): void { } diff --git a/arkoala-arkts/arkui/src/component/column.ets b/arkoala-arkts/arkui/generated/component/column.ets similarity index 62% rename from arkoala-arkts/arkui/src/component/column.ets rename to arkoala-arkts/arkui/generated/component/column.ets index 9a93e137ced53f6e01c3d7f9923776bbb9b8d701..9440797c4aeb02c65def18b1af1f7b5654338fa3 100644 --- a/arkoala-arkts/arkui/src/component/column.ets +++ b/arkoala-arkts/arkui/generated/component/column.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 { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { int32, int64, float32, unsafeCast } from "@koalaui/common" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkColumnPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -230,197 +230,6 @@ export function Column( }) } -export class ColumnModifier extends CommonMethodModifier implements ColumnAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _alignItems_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alignItems_0_0value?: HorizontalAlign | undefined - _justifyContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _justifyContent_0_0value?: FlexAlign | undefined - _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pointLight_0_0value?: PointLightStyle | undefined - _reverse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _reverse_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkColumnPeer): void { - super.applyModifierPatch(peer) - if (this._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alignItems_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignItemsAttribute((this._alignItems_0_0value as HorizontalAlign | undefined)); - this._alignItems_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alignItems_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alignItems_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignItemsAttribute((undefined as HorizontalAlign | undefined)); - } - } - } - if (this._justifyContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._justifyContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setJustifyContentAttribute((this._justifyContent_0_0value as FlexAlign | undefined)); - this._justifyContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._justifyContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._justifyContent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setJustifyContentAttribute((undefined as FlexAlign | undefined)); - } - } - } - if (this._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); - } - } - } - if (this._reverse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._reverse_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setReverseAttribute((this._reverse_0_0value as boolean | undefined)); - this._reverse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._reverse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._reverse_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setReverseAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: ColumnModifier): void { - super.mergeModifier(modifier) - if (modifier._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alignItems_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alignItems(modifier._alignItems_0_0value); - break; - } - default: { - this.alignItems((undefined as HorizontalAlign | undefined)); - } - } - } - if (modifier._justifyContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._justifyContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.justifyContent(modifier._justifyContent_0_0value); - break; - } - default: { - this.justifyContent((undefined as FlexAlign | undefined)); - } - } - } - if (modifier._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pointLight(modifier._pointLight_0_0value); - break; - } - default: { - this.pointLight((undefined as PointLightStyle | undefined)); - } - } - } - if (modifier._reverse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._reverse_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.reverse(modifier._reverse_0_0value); - break; - } - default: { - this.reverse((undefined as boolean | undefined)); - } - } - } - } - alignItems(value: HorizontalAlign | undefined): this { - if (((this._alignItems_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alignItems_0_flag = AttributeUpdaterFlag.UPDATE - this._alignItems_0_0value = value - } else - { - this._alignItems_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - justifyContent(value: FlexAlign | undefined): this { - if (((this._justifyContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._justifyContent_0_flag = AttributeUpdaterFlag.UPDATE - this._justifyContent_0_0value = value - } else - { - this._justifyContent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pointLight(value: PointLightStyle | undefined): this { - if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE - this._pointLight_0_0value = value - } else - { - this._pointLight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - reverse(value: boolean | undefined): this { - if (((this._reverse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._reverse_0_0value) !== (value))) - { - this._reverse_0_flag = AttributeUpdaterFlag.UPDATE - this._reverse_0_0value = value - } else - { - this._reverse_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ColumnOptionsV2_serializer { public static write(buffer: SerializerBase, value: ColumnOptionsV2): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/columnSplit.ets b/arkoala-arkts/arkui/generated/component/columnSplit.ets similarity index 72% rename from arkoala-arkts/arkui/src/component/columnSplit.ets rename to arkoala-arkts/arkui/generated/component/columnSplit.ets index 46e48113326fd598dee050eddc58de4f2001c8bb..4e9e0d25744477b2637a4c71687a997af6d1ed9e 100644 --- a/arkoala-arkts/arkui/src/component/columnSplit.ets +++ b/arkoala-arkts/arkui/generated/component/columnSplit.ets @@ -21,16 +21,16 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Dimension } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource } from "global.resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkColumnSplitPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -155,109 +155,6 @@ export function ColumnSplit( }) } -export class ColumnSplitModifier extends CommonMethodModifier implements ColumnSplitAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _resizeable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _resizeable_0_0value?: boolean | undefined - _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _divider_0_0value?: ColumnSplitDividerStyle | undefined - applyModifierPatch(peer: ArkColumnSplitPeer): void { - super.applyModifierPatch(peer) - if (this._resizeable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._resizeable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setResizeableAttribute((this._resizeable_0_0value as boolean | undefined)); - this._resizeable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._resizeable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._resizeable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setResizeableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDividerAttribute((this._divider_0_0value as ColumnSplitDividerStyle | undefined)); - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._divider_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDividerAttribute((undefined as ColumnSplitDividerStyle | undefined)); - } - } - } - } - mergeModifier(modifier: ColumnSplitModifier): void { - super.mergeModifier(modifier) - if (modifier._resizeable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._resizeable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.resizeable(modifier._resizeable_0_0value); - break; - } - default: { - this.resizeable((undefined as boolean | undefined)); - } - } - } - if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.divider(modifier._divider_0_0value); - break; - } - default: { - this.divider((undefined as ColumnSplitDividerStyle | undefined)); - } - } - } - } - resizeable(value: boolean | undefined): this { - if (((this._resizeable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._resizeable_0_0value) !== (value))) - { - this._resizeable_0_flag = AttributeUpdaterFlag.UPDATE - this._resizeable_0_0value = value - } else - { - this._resizeable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - divider(value: ColumnSplitDividerStyle | undefined): this { - if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._divider_0_flag = AttributeUpdaterFlag.UPDATE - this._divider_0_0value = value - } else - { - this._divider_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ColumnSplitDividerStyle_serializer { public static write(buffer: SerializerBase, value: ColumnSplitDividerStyle): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/generated/component/common.ets b/arkoala-arkts/arkui/generated/component/common.ets new file mode 100644 index 0000000000000000000000000000000000000000..6cb4f963f6f2316532145dbd26f57879a35b140e --- /dev/null +++ b/arkoala-arkts/arkui/generated/component/common.ets @@ -0,0 +1,22938 @@ +/* + * 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 "./../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 } from "./../framework/resource" +import { Resource } from "global.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 } from "./gesture" +import { ComponentContent_serializer, ComponentContent } from "./../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 { GestureModifier, hookId, hookStateStyleImpl, hookGestureModifier, CustomStyles, ContentModifier, AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { curves, curves_ICurve_serializer } from "./../framework/ohos.curves" +import { SymbolGlyphModifier, SymbolGlyphModifier_serializer } from "./../SymbolGlyphModifier" +import { UIContext, UIContext_serializer } from "./../framework/ohos.arkui.UIContext" +import { CallbackKind } from "./../framework/peers/CallbackKind" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { ComponentBuilder, Builder } 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 { 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 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() + } + 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 "./../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 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")) { + hookGestureModifier(this, value) + } + 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 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 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 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 65% rename from arkoala-arkts/arkui/src/component/containerSpan.ets rename to arkoala-arkts/arkui/generated/component/containerSpan.ets index d240aa698ee95ae3d7aafa7c1cf6095110e05697..2d761cc5267a9f5d3d03d40209393c7e63fbc5aa 100644 --- a/arkoala-arkts/arkui/src/component/containerSpan.ets +++ b/arkoala-arkts/arkui/generated/component/containerSpan.ets @@ -22,13 +22,12 @@ 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, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkContainerSpanPeer extends PeerNode { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -122,60 +121,3 @@ export function ContainerSpan( }) } -export class ContainerSpanModifier implements ContainerSpanAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _textBackgroundStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textBackgroundStyle_0_0value?: TextBackgroundStyle | undefined - applyModifierPatch(peer: ArkContainerSpanPeer): void { - if (this._textBackgroundStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textBackgroundStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextBackgroundStyleAttribute((this._textBackgroundStyle_0_0value as TextBackgroundStyle | undefined)); - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextBackgroundStyleAttribute((undefined as TextBackgroundStyle | undefined)); - } - } - } - } - mergeModifier(modifier: ContainerSpanModifier): void { - if (modifier._textBackgroundStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textBackgroundStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textBackgroundStyle(modifier._textBackgroundStyle_0_0value); - break; - } - default: { - this.textBackgroundStyle((undefined as TextBackgroundStyle | undefined)); - } - } - } - } - textBackgroundStyle(value: TextBackgroundStyle | undefined): this { - if (((this._textBackgroundStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._textBackgroundStyle_0_0value = value - } else - { - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/contentSlot.ets b/arkoala-arkts/arkui/generated/component/contentSlot.ets similarity index 89% rename from arkoala-arkts/arkui/src/component/contentSlot.ets rename to arkoala-arkts/arkui/generated/component/contentSlot.ets index 90dedfd4b90541fa8ff36cdda9265dd26e57c9ea..2bc7e61624949d0af303dd2c2ec23f4030a9a9b0 100644 --- a/arkoala-arkts/arkui/src/component/contentSlot.ets +++ b/arkoala-arkts/arkui/generated/component/contentSlot.ets @@ -19,8 +19,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 { Content } from "./../generated/ohos.arkui.node" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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 51% rename from arkoala-arkts/arkui/src/component/counter.ets rename to arkoala-arkts/arkui/generated/component/counter.ets index c15869887dbd5f0d47ebabbd227f20475f70c6ee..7cda5d906f91eb6bf25a916402b3fdba0aee1392 100644 --- a/arkoala-arkts/arkui/src/component/counter.ets +++ b/arkoala-arkts/arkui/generated/component/counter.ets @@ -21,15 +21,14 @@ 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkCounterPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -204,194 +203,3 @@ export function Counter( }) } -export class CounterModifier extends CommonMethodModifier implements CounterAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onInc_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onInc_0_0value?: VoidCallback | undefined - _onDec_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDec_0_0value?: VoidCallback | undefined - _enableDec_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableDec_0_0value?: boolean | undefined - _enableInc_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableInc_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkCounterPeer): void { - super.applyModifierPatch(peer) - if (this._onInc_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onInc_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnIncAttribute((this._onInc_0_0value as VoidCallback | undefined)); - this._onInc_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onInc_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onInc_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnIncAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onDec_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDec_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDecAttribute((this._onDec_0_0value as VoidCallback | undefined)); - this._onDec_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDec_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDec_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDecAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._enableDec_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableDec_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableDecAttribute((this._enableDec_0_0value as boolean | undefined)); - this._enableDec_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableDec_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableDec_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableDecAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableInc_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableInc_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableIncAttribute((this._enableInc_0_0value as boolean | undefined)); - this._enableInc_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableInc_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableInc_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableIncAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: CounterModifier): void { - super.mergeModifier(modifier) - if (modifier._onInc_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onInc_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onInc(modifier._onInc_0_0value); - break; - } - default: { - this.onInc((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onDec_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDec_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDec(modifier._onDec_0_0value); - break; - } - default: { - this.onDec((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._enableDec_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableDec_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableDec(modifier._enableDec_0_0value); - break; - } - default: { - this.enableDec((undefined as boolean | undefined)); - } - } - } - if (modifier._enableInc_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableInc_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableInc(modifier._enableInc_0_0value); - break; - } - default: { - this.enableInc((undefined as boolean | undefined)); - } - } - } - } - onInc(value: VoidCallback | undefined): this { - if (((this._onInc_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onInc_0_flag = AttributeUpdaterFlag.UPDATE - this._onInc_0_0value = value - } else - { - this._onInc_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDec(value: VoidCallback | undefined): this { - if (((this._onDec_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDec_0_flag = AttributeUpdaterFlag.UPDATE - this._onDec_0_0value = value - } else - { - this._onDec_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableDec(value: boolean | undefined): this { - if (((this._enableDec_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableDec_0_0value) !== (value))) - { - this._enableDec_0_flag = AttributeUpdaterFlag.UPDATE - this._enableDec_0_0value = value - } else - { - this._enableDec_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableInc(value: boolean | undefined): this { - if (((this._enableInc_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableInc_0_0value) !== (value))) - { - this._enableInc_0_flag = AttributeUpdaterFlag.UPDATE - this._enableInc_0_0value = value - } else - { - this._enableInc_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/generated/component/customComponent.ets b/arkoala-arkts/arkui/generated/component/customComponent.ets new file mode 100644 index 0000000000000000000000000000000000000000..0a0619ac18a74f10969935030c8be73944c54458 --- /dev/null +++ b/arkoala-arkts/arkui/generated/component/customComponent.ets @@ -0,0 +1,189 @@ +/* + * 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, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" +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..f480181c2dceb0dda1c3bce8f908c8463abfc563 100644 --- a/arkoala-arkts/arkui/src/component/customDialogController.ets +++ b/arkoala-arkts/arkui/generated/component/customDialogController.ets @@ -21,17 +21,19 @@ 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" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { DismissDialogAction, DismissDialogAction_serializer } from "./actionSheet" import { CustomBuilder } from "./builder" import { ExtendableComponent, ExtendableComponent_serializer } from "./extendableComponent" 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 } from "global.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 "./../Graphics" +import { LevelMode, ImmersiveMode, LevelOrder, LevelOrder_serializer } from "./../framework/ohos.promptAction" +import { extractors } from "#handwritten" +import { Resource_serializer } from "./../framework/resource" 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 78% rename from arkoala-arkts/arkui/src/component/dataPanel.ets rename to arkoala-arkts/arkui/generated/component/dataPanel.ets index 2128abba0f28fd4ffd50019f4414edcd28d61a23..f659bf334a81123bb5911b7b03ac25a1331fd1f2 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 } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, MultiShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, MultiShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, hookDataPanelContentModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class LinearGradientInternal { public static fromPtr(ptr: KPointer): LinearGradient { return new LinearGradient(false, ptr) @@ -359,241 +359,6 @@ export function DataPanel( }) } -export class DataPanelModifier extends CommonMethodModifier implements DataPanelAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _closeEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _closeEffect_0_0value?: boolean | undefined - _valueColors_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _valueColors_0_0value?: Array | undefined - _trackBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _trackBackgroundColor_0_0value?: ResourceColor | undefined - _strokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeWidth_0_0value?: Length | undefined - _trackShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _trackShadow_0_0value?: DataPanelShadowOptions | undefined - applyModifierPatch(peer: ArkDataPanelPeer): void { - super.applyModifierPatch(peer) - if (this._closeEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._closeEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCloseEffectAttribute((this._closeEffect_0_0value as boolean | undefined)); - this._closeEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._closeEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._closeEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCloseEffectAttribute((undefined as boolean | undefined)); - } - } - } - if (this._valueColors_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._valueColors_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setValueColorsAttribute((this._valueColors_0_0value as Array | undefined)); - this._valueColors_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._valueColors_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._valueColors_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setValueColorsAttribute((undefined as Array | undefined)); - } - } - } - if (this._trackBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._trackBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTrackBackgroundColorAttribute((this._trackBackgroundColor_0_0value as ResourceColor | undefined)); - this._trackBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._trackBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._trackBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTrackBackgroundColorAttribute((undefined as ResourceColor | 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._trackShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._trackShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTrackShadowAttribute((this._trackShadow_0_0value as DataPanelShadowOptions | undefined)); - this._trackShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._trackShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._trackShadow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTrackShadowAttribute((undefined as DataPanelShadowOptions | undefined)); - } - } - } - } - mergeModifier(modifier: DataPanelModifier): void { - super.mergeModifier(modifier) - if (modifier._closeEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._closeEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.closeEffect(modifier._closeEffect_0_0value); - break; - } - default: { - this.closeEffect((undefined as boolean | undefined)); - } - } - } - if (modifier._valueColors_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._valueColors_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.valueColors(modifier._valueColors_0_0value); - break; - } - default: { - this.valueColors((undefined as Array | undefined)); - } - } - } - if (modifier._trackBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._trackBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.trackBackgroundColor(modifier._trackBackgroundColor_0_0value); - break; - } - default: { - this.trackBackgroundColor((undefined as ResourceColor | 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._trackShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._trackShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.trackShadow(modifier._trackShadow_0_0value); - break; - } - default: { - this.trackShadow((undefined as DataPanelShadowOptions | undefined)); - } - } - } - } - closeEffect(value: boolean | undefined): this { - if (((this._closeEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._closeEffect_0_0value) !== (value))) - { - this._closeEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._closeEffect_0_0value = value - } else - { - this._closeEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - valueColors(value: Array | undefined): this { - if (((this._valueColors_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._valueColors_0_flag = AttributeUpdaterFlag.UPDATE - this._valueColors_0_0value = value - } else - { - this._valueColors_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - trackBackgroundColor(value: ResourceColor | undefined): this { - if (((this._trackBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._trackBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE - this._trackBackgroundColor_0_0value = value - } else - { - this._trackBackgroundColor_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 - } - trackShadow(value: DataPanelShadowOptions | undefined): this { - if (((this._trackShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._trackShadow_0_flag = AttributeUpdaterFlag.UPDATE - this._trackShadow_0_0value = value - } else - { - this._trackShadow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class LinearGradient_serializer { public static write(buffer: SerializerBase, value: LinearGradient): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/datePicker.ets b/arkoala-arkts/arkui/generated/component/datePicker.ets similarity index 59% rename from arkoala-arkts/arkui/src/component/datePicker.ets rename to arkoala-arkts/arkui/generated/component/datePicker.ets index cd5a23c36b3014451b1fc0f2efa7b80685fb5df3..4f5aa07d3dad31692ad42d31b47c94ca8a50bc68 100644 --- a/arkoala-arkts/arkui/src/component/datePicker.ets +++ b/arkoala-arkts/arkui/generated/component/datePicker.ets @@ -20,20 +20,19 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTextStyle, Bindable, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, Bindable_Date_serializer } from "./common" +import { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTextStyle, Bindable, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable_Date_serializer } from "./common" 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, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceColor, Offset, VoidCallback } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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" export class DatePickerDialogInternal { public static fromPtr(ptr: KPointer): DatePickerDialog { return new DatePickerDialog(ptr) @@ -375,329 +374,6 @@ export function DatePicker( }) } -export class DatePickerModifier extends CommonMethodModifier implements DatePickerAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _lunar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _lunar_0_0value?: boolean | undefined - _disappearTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _disappearTextStyle_0_0value?: PickerTextStyle | undefined - _textStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textStyle_0_0value?: PickerTextStyle | undefined - _selectedTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedTextStyle_0_0value?: PickerTextStyle | undefined - _onDateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDateChange_0_0value?: ((value0: Date) => void) | undefined - _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined - _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableHapticFeedback_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkDatePickerPeer): void { - super.applyModifierPatch(peer) - if (this._lunar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._lunar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLunarAttribute((this._lunar_0_0value as boolean | undefined)); - this._lunar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._lunar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._lunar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLunarAttribute((undefined as boolean | undefined)); - } - } - } - if (this._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._disappearTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDisappearTextStyleAttribute((this._disappearTextStyle_0_0value as PickerTextStyle | undefined)); - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDisappearTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextStyleAttribute((this._textStyle_0_0value as PickerTextStyle | undefined)); - this._textStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedTextStyleAttribute((this._selectedTextStyle_0_0value as PickerTextStyle | undefined)); - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._onDateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDateChangeAttribute((this._onDateChange_0_0value as ((value0: Date) => void) | undefined)); - this._onDateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDateChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDateChangeAttribute((undefined as ((value0: Date) => void) | 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._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: DatePickerModifier): void { - super.mergeModifier(modifier) - if (modifier._lunar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._lunar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.lunar(modifier._lunar_0_0value); - break; - } - default: { - this.lunar((undefined as boolean | undefined)); - } - } - } - if (modifier._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._disappearTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.disappearTextStyle(modifier._disappearTextStyle_0_0value); - break; - } - default: { - this.disappearTextStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textStyle(modifier._textStyle_0_0value); - break; - } - default: { - this.textStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedTextStyle(modifier._selectedTextStyle_0_0value); - break; - } - default: { - this.selectedTextStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._onDateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDateChange(modifier._onDateChange_0_0value); - break; - } - default: { - this.onDateChange((undefined as ((value0: Date) => void) | 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._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); - break; - } - default: { - this.enableHapticFeedback((undefined as boolean | undefined)); - } - } - } - } - lunar(value: boolean | undefined): this { - if (((this._lunar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._lunar_0_0value) !== (value))) - { - this._lunar_0_flag = AttributeUpdaterFlag.UPDATE - this._lunar_0_0value = value - } else - { - this._lunar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - disappearTextStyle(value: PickerTextStyle | undefined): this { - if (((this._disappearTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._disappearTextStyle_0_0value = value - } else - { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textStyle(value: PickerTextStyle | undefined): this { - if (((this._textStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._textStyle_0_0value = value - } else - { - this._textStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedTextStyle(value: PickerTextStyle | undefined): this { - if (((this._selectedTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedTextStyle_0_0value = value - } else - { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDateChange(value: ((value0: Date) => void) | undefined): this { - if (((this._onDateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDateChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onDateChange_0_0value = value - } else - { - this._onDateChange_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 - } - enableHapticFeedback(value: boolean | undefined): this { - if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE - this._enableHapticFeedback_0_0value = value - } else - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class DatePickerDialog_serializer { public static write(buffer: SerializerBase, value: DatePickerDialog): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/divider.ets b/arkoala-arkts/arkui/generated/component/divider.ets similarity index 55% rename from arkoala-arkts/arkui/src/component/divider.ets rename to arkoala-arkts/arkui/generated/component/divider.ets index e3dfa19e32353d93f260e589a6d8a5647db7eb24..749752ef0c77537e445e6c9a3a09deaea016feb3 100644 --- a/arkoala-arkts/arkui/src/component/divider.ets +++ b/arkoala-arkts/arkui/generated/component/divider.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 { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ResourceColor } from "./units" import { Color, LineCapStyle } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.resource" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkDividerPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -230,194 +230,3 @@ export function Divider( }) } -export class DividerModifier extends CommonMethodModifier implements DividerAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _vertical_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _vertical_0_0value?: boolean | undefined - _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _color_0_0value?: ResourceColor | undefined - _strokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeWidth_0_0value?: number | string | undefined - _lineCap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _lineCap_0_0value?: LineCapStyle | undefined - applyModifierPatch(peer: ArkDividerPeer): void { - super.applyModifierPatch(peer) - if (this._vertical_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._vertical_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setVerticalAttribute((this._vertical_0_0value as boolean | undefined)); - this._vertical_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._vertical_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._vertical_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setVerticalAttribute((undefined as boolean | undefined)); - } - } - } - if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorAttribute((this._color_0_0value as ResourceColor | undefined)); - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._color_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._strokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._strokeWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStrokeWidthAttribute((this._strokeWidth_0_0value as number | string | 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 number | string | undefined)); - } - } - } - if (this._lineCap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._lineCap_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLineCapAttribute((this._lineCap_0_0value as LineCapStyle | undefined)); - this._lineCap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._lineCap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._lineCap_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLineCapAttribute((undefined as LineCapStyle | undefined)); - } - } - } - } - mergeModifier(modifier: DividerModifier): void { - super.mergeModifier(modifier) - if (modifier._vertical_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._vertical_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.vertical(modifier._vertical_0_0value); - break; - } - default: { - this.vertical((undefined as boolean | undefined)); - } - } - } - if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.color(modifier._color_0_0value); - break; - } - default: { - this.color((undefined as ResourceColor | 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 number | string | undefined)); - } - } - } - if (modifier._lineCap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._lineCap_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.lineCap(modifier._lineCap_0_0value); - break; - } - default: { - this.lineCap((undefined as LineCapStyle | undefined)); - } - } - } - } - vertical(value: boolean | undefined): this { - if (((this._vertical_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._vertical_0_0value) !== (value))) - { - this._vertical_0_flag = AttributeUpdaterFlag.UPDATE - this._vertical_0_0value = value - } else - { - this._vertical_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - color(value: ResourceColor | undefined): this { - if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._color_0_flag = AttributeUpdaterFlag.UPDATE - this._color_0_0value = value - } else - { - this._color_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - strokeWidth(value: number | string | undefined): this { - if (((this._strokeWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._strokeWidth_0_0value) !== (value))) - { - this._strokeWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._strokeWidth_0_0value = value - } else - { - this._strokeWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - lineCap(value: LineCapStyle | undefined): this { - if (((this._lineCap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._lineCap_0_flag = AttributeUpdaterFlag.UPDATE - this._lineCap_0_0value = value - } else - { - this._lineCap_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/effectComponent.ets b/arkoala-arkts/arkui/generated/component/effectComponent.ets similarity index 81% rename from arkoala-arkts/arkui/src/component/effectComponent.ets rename to arkoala-arkts/arkui/generated/component/effectComponent.ets index 25ca47d8e46cc3641878d98a669f07a59119e367..57974f4368794347559ec5ec7069d2700b4c44cb 100644 --- a/arkoala-arkts/arkui/src/component/effectComponent.ets +++ b/arkoala-arkts/arkui/generated/component/effectComponent.ets @@ -21,14 +21,13 @@ import { nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkEffectComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -95,18 +94,3 @@ export function EffectComponent( }) } -export class EffectComponentModifier extends CommonMethodModifier implements EffectComponentAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkEffectComponentPeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: EffectComponentModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/ellipse.ets b/arkoala-arkts/arkui/generated/component/ellipse.ets similarity index 83% rename from arkoala-arkts/arkui/src/component/ellipse.ets rename to arkoala-arkts/arkui/generated/component/ellipse.ets index b898abd286e904339c2fb889ac350fd604197c21..8212915f071e80b7104c17544d3f5d1f93f351f5 100644 --- a/arkoala-arkts/arkui/src/component/ellipse.ets +++ b/arkoala-arkts/arkui/generated/component/ellipse.ets @@ -21,14 +21,13 @@ 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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkEllipsePeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -107,21 +106,6 @@ export function Ellipse( }) } -export class EllipseModifier extends CommonShapeMethodModifier implements EllipseAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkEllipsePeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: EllipseModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class EllipseOptions_serializer { public static write(buffer: SerializerBase, value: EllipseOptions): void { } diff --git a/arkoala-arkts/arkui/src/component/embeddedComponent.ets b/arkoala-arkts/arkui/generated/component/embeddedComponent.ets similarity index 59% rename from arkoala-arkts/arkui/src/component/embeddedComponent.ets rename to arkoala-arkts/arkui/generated/component/embeddedComponent.ets index e10c7c17b0e7485b46575f622f11e4a361cbf4b8..88ffb1aa8d7a648ebd122945d1f8473611126794 100644 --- a/arkoala-arkts/arkui/src/component/embeddedComponent.ets +++ b/arkoala-arkts/arkui/generated/component/embeddedComponent.ets @@ -17,21 +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 { 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 { ArkCommonMethodPeer, CommonMethod, TerminationInfo, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { ErrorCallback, BusinessError } from "./../framework/ohos.base" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkEmbeddedComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -157,106 +156,3 @@ export function EmbeddedComponent( }) } -export class EmbeddedComponentModifier extends CommonMethodModifier implements EmbeddedComponentAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onTerminated_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTerminated_0_0value?: ((value0: TerminationInfo) => void) | undefined - _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onError_0_0value?: ErrorCallback | undefined - applyModifierPatch(peer: ArkEmbeddedComponentPeer): void { - super.applyModifierPatch(peer) - if (this._onTerminated_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTerminated_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTerminatedAttribute((this._onTerminated_0_0value as ((value0: TerminationInfo) => void) | undefined)); - this._onTerminated_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTerminated_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTerminated_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTerminatedAttribute((undefined as ((value0: TerminationInfo) => void) | undefined)); - } - } - } - if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnErrorAttribute((this._onError_0_0value as ErrorCallback | undefined)); - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onError_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnErrorAttribute((undefined as ErrorCallback | undefined)); - } - } - } - } - mergeModifier(modifier: EmbeddedComponentModifier): void { - super.mergeModifier(modifier) - if (modifier._onTerminated_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTerminated_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTerminated(modifier._onTerminated_0_0value); - break; - } - default: { - this.onTerminated((undefined as ((value0: TerminationInfo) => void) | undefined)); - } - } - } - if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onError(modifier._onError_0_0value); - break; - } - default: { - this.onError((undefined as ErrorCallback | undefined)); - } - } - } - } - onTerminated(value: ((value0: TerminationInfo) => void) | undefined): this { - if (((this._onTerminated_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTerminated_0_flag = AttributeUpdaterFlag.UPDATE - this._onTerminated_0_0value = value - } else - { - this._onTerminated_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onError(value: ErrorCallback | undefined): this { - if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onError_0_flag = AttributeUpdaterFlag.UPDATE - this._onError_0_0value = value - } else - { - this._onError_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} 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..f286c7e95b6ed92a66c38a94580e5becd16bdd2a 100644 --- a/arkoala-arkts/arkui/src/component/enums.ets +++ b/arkoala-arkts/arkui/generated/component/enums.ets @@ -19,8 +19,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 { curves } from "./../generated/ohos.curves" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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..7d8989e8e7e6446fa46f1a55ab1f567b0d8fcf0c 100644 --- a/arkoala-arkts/arkui/src/component/extendableComponent.ets +++ b/arkoala-arkts/arkui/generated/component/extendableComponent.ets @@ -16,12 +16,13 @@ // 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" +import { extractors } from "#handwritten" export class ExtendableComponentInternal { public static fromPtr(ptr: KPointer): ExtendableComponent { return new ExtendableComponent(ptr) diff --git a/arkoala-arkts/arkui/src/component/flex.ets b/arkoala-arkts/arkui/generated/component/flex.ets similarity index 82% rename from arkoala-arkts/arkui/src/component/flex.ets rename to arkoala-arkts/arkui/generated/component/flex.ets index c5762e76957315389c875e65f07b6782eaf8fb27..da8cd724992ecd3ae5f718957b53c1e3ea404f89 100644 --- a/arkoala-arkts/arkui/src/component/flex.ets +++ b/arkoala-arkts/arkui/generated/component/flex.ets @@ -17,20 +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, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" -import { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { FlexDirection, FlexWrap, FlexAlign, ItemAlign } from "./enums" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" +import { LengthMetrics, LengthMetrics_serializer } from "./../Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkFlexPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -146,65 +145,6 @@ export function Flex( }) } -export class FlexModifier extends CommonMethodModifier implements FlexAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pointLight_0_0value?: PointLightStyle | undefined - applyModifierPatch(peer: ArkFlexPeer): void { - super.applyModifierPatch(peer) - if (this._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); - } - } - } - } - mergeModifier(modifier: FlexModifier): void { - super.mergeModifier(modifier) - if (modifier._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pointLight(modifier._pointLight_0_0value); - break; - } - default: { - this.pointLight((undefined as PointLightStyle | undefined)); - } - } - } - } - pointLight(value: PointLightStyle | undefined): this { - if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE - this._pointLight_0_0value = value - } else - { - this._pointLight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class FlexSpaceOptions_serializer { public static write(buffer: SerializerBase, value: FlexSpaceOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/flowItem.ets b/arkoala-arkts/arkui/generated/component/flowItem.ets similarity index 80% rename from arkoala-arkts/arkui/src/component/flowItem.ets rename to arkoala-arkts/arkui/generated/component/flowItem.ets index de187981f1849749ae0583aa0344c5683fa66c1e..66ebb97b4005d86a7648a3bacda9ffccfc9c06e6 100644 --- a/arkoala-arkts/arkui/src/component/flowItem.ets +++ b/arkoala-arkts/arkui/generated/component/flowItem.ets @@ -21,14 +21,13 @@ import { nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkFlowItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -95,18 +94,3 @@ export function FlowItem( }) } -export class FlowItemModifier extends CommonMethodModifier implements FlowItemAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkFlowItemPeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: FlowItemModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/focus.ets b/arkoala-arkts/arkui/generated/component/focus.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/focus.ets rename to arkoala-arkts/arkui/generated/component/focus.ets index 616bcb62238fa09a3c8d4b7e80cbb201f2e3452f..893cea77ab5c3d32f4ea6291bd41374d30fdc65c 100644 --- a/arkoala-arkts/arkui/src/component/focus.ets +++ b/arkoala-arkts/arkui/generated/component/focus.ets @@ -19,8 +19,9 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetrics, ColorMetrics, LengthMetrics_serializer, ColorMetrics_serializer } from "./../Graphics" +import { extractors } from "#handwritten" 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 59% rename from arkoala-arkts/arkui/src/component/folderStack.ets rename to arkoala-arkts/arkui/generated/component/folderStack.ets index 8e94110da5a3099fe3f6ee381e28949c2931ec9b..c86c9d5f7f96209785e1ea3f1b927f5c1ea6c6fb 100644 --- a/arkoala-arkts/arkui/src/component/folderStack.ets +++ b/arkoala-arkts/arkui/generated/component/folderStack.ets @@ -21,16 +21,15 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { Alignment, FoldStatus, AppRotation } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { window } from "./../framework/ohos.window" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkFolderStackPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -257,241 +256,6 @@ export function FolderStack( }) } -export class FolderStackModifier extends CommonMethodModifier implements FolderStackAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _alignContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alignContent_0_0value?: Alignment | undefined - _onFolderStateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFolderStateChange_0_0value?: OnFoldStatusChangeCallback | undefined - _onHoverStatusChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onHoverStatusChange_0_0value?: OnHoverStatusChangeCallback | undefined - _enableAnimation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableAnimation_0_0value?: boolean | undefined - _autoHalfFold_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _autoHalfFold_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkFolderStackPeer): void { - super.applyModifierPatch(peer) - if (this._alignContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alignContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignContentAttribute((this._alignContent_0_0value as Alignment | undefined)); - this._alignContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alignContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alignContent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignContentAttribute((undefined as Alignment | undefined)); - } - } - } - if (this._onFolderStateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFolderStateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFolderStateChangeAttribute((this._onFolderStateChange_0_0value as OnFoldStatusChangeCallback | undefined)); - this._onFolderStateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFolderStateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFolderStateChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFolderStateChangeAttribute((undefined as OnFoldStatusChangeCallback | undefined)); - } - } - } - if (this._onHoverStatusChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onHoverStatusChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnHoverStatusChangeAttribute((this._onHoverStatusChange_0_0value as OnHoverStatusChangeCallback | undefined)); - this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnHoverStatusChangeAttribute((undefined as OnHoverStatusChangeCallback | undefined)); - } - } - } - if (this._enableAnimation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableAnimation_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableAnimationAttribute((this._enableAnimation_0_0value as boolean | undefined)); - this._enableAnimation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableAnimation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableAnimation_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableAnimationAttribute((undefined as boolean | undefined)); - } - } - } - if (this._autoHalfFold_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._autoHalfFold_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAutoHalfFoldAttribute((this._autoHalfFold_0_0value as boolean | undefined)); - this._autoHalfFold_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._autoHalfFold_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._autoHalfFold_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAutoHalfFoldAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: FolderStackModifier): void { - super.mergeModifier(modifier) - if (modifier._alignContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alignContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alignContent(modifier._alignContent_0_0value); - break; - } - default: { - this.alignContent((undefined as Alignment | undefined)); - } - } - } - if (modifier._onFolderStateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFolderStateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFolderStateChange(modifier._onFolderStateChange_0_0value); - break; - } - default: { - this.onFolderStateChange((undefined as OnFoldStatusChangeCallback | undefined)); - } - } - } - if (modifier._onHoverStatusChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onHoverStatusChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onHoverStatusChange(modifier._onHoverStatusChange_0_0value); - break; - } - default: { - this.onHoverStatusChange((undefined as OnHoverStatusChangeCallback | undefined)); - } - } - } - if (modifier._enableAnimation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableAnimation_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableAnimation(modifier._enableAnimation_0_0value); - break; - } - default: { - this.enableAnimation((undefined as boolean | undefined)); - } - } - } - if (modifier._autoHalfFold_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._autoHalfFold_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.autoHalfFold(modifier._autoHalfFold_0_0value); - break; - } - default: { - this.autoHalfFold((undefined as boolean | undefined)); - } - } - } - } - alignContent(value: Alignment | undefined): this { - if (((this._alignContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alignContent_0_flag = AttributeUpdaterFlag.UPDATE - this._alignContent_0_0value = value - } else - { - this._alignContent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFolderStateChange(value: OnFoldStatusChangeCallback | undefined): this { - if (((this._onFolderStateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFolderStateChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onFolderStateChange_0_0value = value - } else - { - this._onFolderStateChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onHoverStatusChange(value: OnHoverStatusChangeCallback | undefined): this { - if (((this._onHoverStatusChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onHoverStatusChange_0_0value = value - } else - { - this._onHoverStatusChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableAnimation(value: boolean | undefined): this { - if (((this._enableAnimation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnimation_0_0value) !== (value))) - { - this._enableAnimation_0_flag = AttributeUpdaterFlag.UPDATE - this._enableAnimation_0_0value = value - } else - { - this._enableAnimation_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - autoHalfFold(value: boolean | undefined): this { - if (((this._autoHalfFold_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoHalfFold_0_0value) !== (value))) - { - this._autoHalfFold_0_flag = AttributeUpdaterFlag.UPDATE - this._autoHalfFold_0_0value = value - } else - { - this._autoHalfFold_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class OnFoldStatusChangeInfo_serializer { public static write(buffer: SerializerBase, value: OnFoldStatusChangeInfo): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/formComponent.ets b/arkoala-arkts/arkui/generated/component/formComponent.ets similarity index 56% rename from arkoala-arkts/arkui/src/component/formComponent.ets rename to arkoala-arkts/arkui/generated/component/formComponent.ets index d8b4e221d34976484348fea51d30199f11f18841..c8c2a504f519eebd866f7c167acfabe8171c3f5b 100644 --- a/arkoala-arkts/arkui/src/component/formComponent.ets +++ b/arkoala-arkts/arkui/generated/component/formComponent.ets @@ -21,17 +21,16 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { Visibility } from "./enums" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Want, Want_serializer } from "./../framework/ohos.app.ability.Want" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkFormComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -441,505 +440,6 @@ export function FormComponent( }) } -export class FormComponentModifier extends CommonMethodModifier implements FormComponentAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _size_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _size_0_0value?: FormSize | undefined - _moduleName_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _moduleName_0_0value?: string | undefined - _dimension_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _dimension_0_0value?: FormDimension | undefined - _allowUpdate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _allowUpdate_0_0value?: boolean | undefined - _visibility_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _visibility_0_0value?: Visibility | undefined - _onAcquired_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAcquired_0_0value?: ((value0: FormCallbackInfo) => void) | undefined - _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onError_0_0value?: ((value0: ErrorInformation) => void) | undefined - _onRouter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRouter_0_0value?: ((value0: Object) => void) | undefined - _onUninstall_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onUninstall_0_0value?: ((value0: FormCallbackInfo) => void) | undefined - _onLoad_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onLoad_0_0value?: VoidCallback | undefined - _onUpdate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onUpdate_0_0value?: ((value0: FormCallbackInfo) => void) | undefined - applyModifierPatch(peer: ArkFormComponentPeer): void { - super.applyModifierPatch(peer) - if (this._size_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._size_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSizeAttribute((this._size_0_0value as FormSize | 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 FormSize | undefined)); - } - } - } - if (this._moduleName_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._moduleName_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setModuleNameAttribute((this._moduleName_0_0value as string | undefined)); - this._moduleName_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._moduleName_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._moduleName_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setModuleNameAttribute((undefined as string | undefined)); - } - } - } - if (this._dimension_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._dimension_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDimensionAttribute((this._dimension_0_0value as FormDimension | undefined)); - this._dimension_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._dimension_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._dimension_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDimensionAttribute((undefined as FormDimension | undefined)); - } - } - } - if (this._allowUpdate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._allowUpdate_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAllowUpdateAttribute((this._allowUpdate_0_0value as boolean | undefined)); - this._allowUpdate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._allowUpdate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._allowUpdate_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAllowUpdateAttribute((undefined as boolean | 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._onAcquired_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAcquired_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAcquiredAttribute((this._onAcquired_0_0value as ((value0: FormCallbackInfo) => void) | undefined)); - this._onAcquired_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAcquired_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAcquired_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAcquiredAttribute((undefined as ((value0: FormCallbackInfo) => void) | undefined)); - } - } - } - if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnErrorAttribute((this._onError_0_0value as ((value0: ErrorInformation) => void) | undefined)); - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onError_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnErrorAttribute((undefined as ((value0: ErrorInformation) => void) | undefined)); - } - } - } - if (this._onRouter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRouter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRouterAttribute((this._onRouter_0_0value as ((value0: Object) => void) | undefined)); - this._onRouter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRouter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRouter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRouterAttribute((undefined as ((value0: Object) => void) | undefined)); - } - } - } - if (this._onUninstall_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onUninstall_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnUninstallAttribute((this._onUninstall_0_0value as ((value0: FormCallbackInfo) => void) | undefined)); - this._onUninstall_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onUninstall_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onUninstall_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnUninstallAttribute((undefined as ((value0: FormCallbackInfo) => void) | undefined)); - } - } - } - if (this._onLoad_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onLoad_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnLoadAttribute((this._onLoad_0_0value as VoidCallback | undefined)); - this._onLoad_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onLoad_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onLoad_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnLoadAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onUpdate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onUpdate_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnUpdateAttribute((this._onUpdate_0_0value as ((value0: FormCallbackInfo) => void) | undefined)); - this._onUpdate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onUpdate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onUpdate_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnUpdateAttribute((undefined as ((value0: FormCallbackInfo) => void) | undefined)); - } - } - } - } - mergeModifier(modifier: FormComponentModifier): void { - super.mergeModifier(modifier) - 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 FormSize | undefined)); - } - } - } - if (modifier._moduleName_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._moduleName_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.moduleName(modifier._moduleName_0_0value); - break; - } - default: { - this.moduleName((undefined as string | undefined)); - } - } - } - if (modifier._dimension_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._dimension_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.dimension(modifier._dimension_0_0value); - break; - } - default: { - this.dimension((undefined as FormDimension | undefined)); - } - } - } - if (modifier._allowUpdate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._allowUpdate_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.allowUpdate(modifier._allowUpdate_0_0value); - break; - } - default: { - this.allowUpdate((undefined as boolean | 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._onAcquired_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAcquired_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAcquired(modifier._onAcquired_0_0value); - break; - } - default: { - this.onAcquired((undefined as ((value0: FormCallbackInfo) => void) | undefined)); - } - } - } - if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onError(modifier._onError_0_0value); - break; - } - default: { - this.onError((undefined as ((value0: ErrorInformation) => void) | undefined)); - } - } - } - if (modifier._onRouter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRouter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRouter(modifier._onRouter_0_0value); - break; - } - default: { - this.onRouter((undefined as ((value0: Object) => void) | undefined)); - } - } - } - if (modifier._onUninstall_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onUninstall_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onUninstall(modifier._onUninstall_0_0value); - break; - } - default: { - this.onUninstall((undefined as ((value0: FormCallbackInfo) => void) | undefined)); - } - } - } - if (modifier._onLoad_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onLoad_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onLoad(modifier._onLoad_0_0value); - break; - } - default: { - this.onLoad((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onUpdate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onUpdate_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onUpdate(modifier._onUpdate_0_0value); - break; - } - default: { - this.onUpdate((undefined as ((value0: FormCallbackInfo) => void) | undefined)); - } - } - } - } - size(value: FormSize | 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 - } - moduleName(value: string | undefined): this { - if (((this._moduleName_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._moduleName_0_0value) !== (value))) - { - this._moduleName_0_flag = AttributeUpdaterFlag.UPDATE - this._moduleName_0_0value = value - } else - { - this._moduleName_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - dimension(value: FormDimension | undefined): this { - if (((this._dimension_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._dimension_0_flag = AttributeUpdaterFlag.UPDATE - this._dimension_0_0value = value - } else - { - this._dimension_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - allowUpdate(value: boolean | undefined): this { - if (((this._allowUpdate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._allowUpdate_0_0value) !== (value))) - { - this._allowUpdate_0_flag = AttributeUpdaterFlag.UPDATE - this._allowUpdate_0_0value = value - } else - { - this._allowUpdate_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 - } - onAcquired(value: ((value0: FormCallbackInfo) => void) | undefined): this { - if (((this._onAcquired_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAcquired_0_flag = AttributeUpdaterFlag.UPDATE - this._onAcquired_0_0value = value - } else - { - this._onAcquired_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onError(value: ((value0: ErrorInformation) => void) | undefined): this { - if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onError_0_flag = AttributeUpdaterFlag.UPDATE - this._onError_0_0value = value - } else - { - this._onError_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onRouter(value: ((value0: Object) => void) | undefined): this { - if (((this._onRouter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRouter_0_flag = AttributeUpdaterFlag.UPDATE - this._onRouter_0_0value = value - } else - { - this._onRouter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onUninstall(value: ((value0: FormCallbackInfo) => void) | undefined): this { - if (((this._onUninstall_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onUninstall_0_flag = AttributeUpdaterFlag.UPDATE - this._onUninstall_0_0value = value - } else - { - this._onUninstall_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onLoad(value: VoidCallback | undefined): this { - if (((this._onLoad_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onLoad_0_flag = AttributeUpdaterFlag.UPDATE - this._onLoad_0_0value = value - } else - { - this._onLoad_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onUpdate(value: ((value0: FormCallbackInfo) => void) | undefined): this { - if (((this._onUpdate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onUpdate_0_flag = AttributeUpdaterFlag.UPDATE - this._onUpdate_0_0value = value - } else - { - this._onUpdate_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class FormSize_serializer { public static write(buffer: SerializerBase, value: FormSize): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/formLink.ets b/arkoala-arkts/arkui/generated/component/formLink.ets similarity index 90% rename from arkoala-arkts/arkui/src/component/formLink.ets rename to arkoala-arkts/arkui/generated/component/formLink.ets index 34fe736f43cc11b70fe8c224b9a2a63067fc1263..46a313ed10e2714a2528443d7aee0cfda255e2ee 100644 --- a/arkoala-arkts/arkui/src/component/formLink.ets +++ b/arkoala-arkts/arkui/generated/component/formLink.ets @@ -21,14 +21,13 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkFormLinkPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -107,21 +106,6 @@ export function FormLink( }) } -export class FormLinkModifier extends CommonMethodModifier implements FormLinkAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkFormLinkPeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: FormLinkModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class FormLinkOptions_serializer { public static write(buffer: SerializerBase, value: FormLinkOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/gauge.ets b/arkoala-arkts/arkui/generated/component/gauge.ets similarity index 67% rename from arkoala-arkts/arkui/src/component/gauge.ets rename to arkoala-arkts/arkui/generated/component/gauge.ets index bd0acc5a330a6e7b24d478bf2cf601d414f8d6f2..9dd38038f7f6e2c24d1d5b92eff2f26110ae44c8 100644 --- a/arkoala-arkts/arkui/src/component/gauge.ets +++ b/arkoala-arkts/arkui/generated/component/gauge.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 { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer } from "./../framework/resource" import { LinearGradient_serializer, LinearGradient } from "./dataPanel" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, MultiShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, MultiShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ResourceColor, Length, ResourceStr, Dimension } from "./units" import { Color } from "./enums" +import { Resource } from "global.resource" import { CustomBuilder } from "./builder" -import { ContentModifier, AttributeModifier, hookGaugeContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookGaugeContentModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkGaugePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -447,417 +447,6 @@ export function Gauge( }) } -export class GaugeModifier extends CommonMethodModifier implements GaugeAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _value_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _value_0_0value?: number | undefined - _startAngle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _startAngle_0_0value?: number | undefined - _endAngle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _endAngle_0_0value?: number | undefined - _colors_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _colors_0_0value?: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | undefined - _strokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeWidth_0_0value?: Length | undefined - _description_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _description_0_0value?: CustomBuilder | undefined - _trackShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _trackShadow_0_0value?: GaugeShadowOptions | undefined - _indicator_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _indicator_0_0value?: GaugeIndicatorOptions | undefined - _privacySensitive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _privacySensitive_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkGaugePeer): void { - super.applyModifierPatch(peer) - if (this._value_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._value_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setValueAttribute((this._value_0_0value as number | undefined)); - this._value_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._value_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._value_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setValueAttribute((undefined as number | undefined)); - } - } - } - if (this._startAngle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._startAngle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStartAngleAttribute((this._startAngle_0_0value as number | undefined)); - this._startAngle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._startAngle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._startAngle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStartAngleAttribute((undefined as number | undefined)); - } - } - } - if (this._endAngle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._endAngle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEndAngleAttribute((this._endAngle_0_0value as number | undefined)); - this._endAngle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._endAngle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._endAngle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEndAngleAttribute((undefined as number | undefined)); - } - } - } - if (this._colors_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._colors_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorsAttribute((this._colors_0_0value as ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | undefined)); - this._colors_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._colors_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._colors_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorsAttribute((undefined as ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | 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._description_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._description_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDescriptionAttribute((this._description_0_0value as CustomBuilder | undefined)); - this._description_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._description_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._description_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDescriptionAttribute((undefined as CustomBuilder | undefined)); - } - } - } - if (this._trackShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._trackShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTrackShadowAttribute((this._trackShadow_0_0value as GaugeShadowOptions | undefined)); - this._trackShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._trackShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._trackShadow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTrackShadowAttribute((undefined as GaugeShadowOptions | undefined)); - } - } - } - if (this._indicator_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._indicator_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIndicatorAttribute((this._indicator_0_0value as GaugeIndicatorOptions | undefined)); - this._indicator_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._indicator_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._indicator_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIndicatorAttribute((undefined as GaugeIndicatorOptions | undefined)); - } - } - } - if (this._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._privacySensitive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPrivacySensitiveAttribute((this._privacySensitive_0_0value as boolean | undefined)); - this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._privacySensitive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPrivacySensitiveAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: GaugeModifier): void { - super.mergeModifier(modifier) - if (modifier._value_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._value_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.value(modifier._value_0_0value); - break; - } - default: { - this.value((undefined as number | undefined)); - } - } - } - if (modifier._startAngle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._startAngle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.startAngle(modifier._startAngle_0_0value); - break; - } - default: { - this.startAngle((undefined as number | undefined)); - } - } - } - if (modifier._endAngle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._endAngle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.endAngle(modifier._endAngle_0_0value); - break; - } - default: { - this.endAngle((undefined as number | undefined)); - } - } - } - if (modifier._colors_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._colors_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.colors(modifier._colors_0_0value); - break; - } - default: { - this.colors((undefined as ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | 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._description_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._description_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.description(modifier._description_0_0value); - break; - } - default: { - this.description((undefined as CustomBuilder | undefined)); - } - } - } - if (modifier._trackShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._trackShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.trackShadow(modifier._trackShadow_0_0value); - break; - } - default: { - this.trackShadow((undefined as GaugeShadowOptions | undefined)); - } - } - } - if (modifier._indicator_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._indicator_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.indicator(modifier._indicator_0_0value); - break; - } - default: { - this.indicator((undefined as GaugeIndicatorOptions | undefined)); - } - } - } - if (modifier._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._privacySensitive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.privacySensitive(modifier._privacySensitive_0_0value); - break; - } - default: { - this.privacySensitive((undefined as boolean | undefined)); - } - } - } - } - value(value: number | undefined): this { - if (((this._value_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._value_0_0value) !== (value))) - { - this._value_0_flag = AttributeUpdaterFlag.UPDATE - this._value_0_0value = value - } else - { - this._value_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - startAngle(value: number | undefined): this { - if (((this._startAngle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._startAngle_0_0value) !== (value))) - { - this._startAngle_0_flag = AttributeUpdaterFlag.UPDATE - this._startAngle_0_0value = value - } else - { - this._startAngle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - endAngle(value: number | undefined): this { - if (((this._endAngle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._endAngle_0_0value) !== (value))) - { - this._endAngle_0_flag = AttributeUpdaterFlag.UPDATE - this._endAngle_0_0value = value - } else - { - this._endAngle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - colors(value: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> | undefined): this { - if (((this._colors_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._colors_0_flag = AttributeUpdaterFlag.UPDATE - this._colors_0_0value = value - } else - { - this._colors_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 - } - description(value: CustomBuilder | undefined): this { - if (((this._description_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._description_0_flag = AttributeUpdaterFlag.UPDATE - this._description_0_0value = value - } else - { - this._description_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - trackShadow(value: GaugeShadowOptions | undefined): this { - if (((this._trackShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._trackShadow_0_flag = AttributeUpdaterFlag.UPDATE - this._trackShadow_0_0value = value - } else - { - this._trackShadow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - indicator(value: GaugeIndicatorOptions | undefined): this { - if (((this._indicator_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._indicator_0_flag = AttributeUpdaterFlag.UPDATE - this._indicator_0_0value = value - } else - { - this._indicator_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - privacySensitive(value: boolean | undefined): this { - if (((this._privacySensitive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._privacySensitive_0_0value) !== (value))) - { - this._privacySensitive_0_flag = AttributeUpdaterFlag.UPDATE - this._privacySensitive_0_0value = value - } else - { - this._privacySensitive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class GaugeConfiguration_serializer { public static write(buffer: SerializerBase, value: GaugeConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/gesture.ets b/arkoala-arkts/arkui/generated/component/gesture.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/gesture.ets rename to arkoala-arkts/arkui/generated/component/gesture.ets index aa30e272cab53dd3afa78b203b97cd8fb691db35..b4a75315110e393831cbc5e25cc80098f27a096a 100644 --- a/arkoala-arkts/arkui/src/component/gesture.ets +++ b/arkoala-arkts/arkui/generated/component/gesture.ets @@ -22,8 +22,9 @@ import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { SourceTool, BaseEvent, BaseEventInternal } from "./common" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { InteractionHand } from "./enums" +import { extractors } from "#handwritten" export class EventTargetInfoInternal { public static fromPtr(ptr: KPointer): EventTargetInfo { return new EventTargetInfo(ptr) diff --git a/arkoala-arkts/arkui/src/component/gesture.extra.ets b/arkoala-arkts/arkui/generated/component/gesture.extra.ets similarity index 99% rename from arkoala-arkts/arkui/src/component/gesture.extra.ets rename to arkoala-arkts/arkui/generated/component/gesture.extra.ets index 5ab06aea276fab8540b76ba77e06fefec9fe22ce..f26cdc085f095c17379089bf92bb6594fb19a86d 100644 --- a/arkoala-arkts/arkui/src/component/gesture.extra.ets +++ b/arkoala-arkts/arkui/generated/component/gesture.extra.ets @@ -22,8 +22,9 @@ 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" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { SourceTool } from "./common" +import { extractors } from "#handwritten" export interface GestureGroupInterface { onCancel(event: (() => void)): GestureGroupInterface } diff --git a/arkoala-arkts/arkui/generated/component/grid.ets b/arkoala-arkts/arkui/generated/component/grid.ets new file mode 100644 index 0000000000000000000000000000000000000000..8aec6b1ddddf11c0857b30f3875be4cc891e1d44 --- /dev/null +++ b/arkoala-arkts/arkui/generated/component/grid.ets @@ -0,0 +1,942 @@ +/* + * 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, 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 } 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 { ArkScrollableCommonMethodPeer, ScrollableCommonMethod, OnItemDragStartCallback, ItemDragInfo, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Length } from "./units" +import { Resource } from "global.resource" +import { ScrollState } from "./list" +import { ScrollSource } from "./enums" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" +import { CallbackTransformer } from "./../CallbackTransformer" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { NodeAttach, remember } from "@koalaui/runtime" +export class ArkGridPeer extends ArkScrollableCommonMethodPeer { + protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { + super(peerPtr, id, name, flags) + } + public static create(component?: ComponentBase, flags: int32 = 0): ArkGridPeer { + const peerId = PeerNode.nextId() + const _peerPtr = ArkUIGeneratedNativeModule._Grid_construct(peerId, flags) + const _peer = new ArkGridPeer(_peerPtr, peerId, 'Grid', flags) + component?.setPeer(_peer) + return _peer + } + setGridOptionsAttribute(scroller?: Scroller, layoutOptions?: GridLayoutOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (scroller !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const scrollerTmpValue = scroller! + Scroller_serializer.write(thisSerializer, scrollerTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (layoutOptions !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const layoutOptionsTmpValue = layoutOptions! + GridLayoutOptions_serializer.write(thisSerializer, layoutOptionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._GridInterface_setGridOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setColumnsTemplateAttribute(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._GridAttribute_setColumnsTemplate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setRowsTemplateAttribute(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._GridAttribute_setRowsTemplate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setColumnsGapAttribute(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._GridAttribute_setColumnsGap(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setRowsGapAttribute(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._GridAttribute_setRowsGap(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnScrollBarUpdateAttribute(value: ((index: number,offset: number) => ComputedBarAttribute) | 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._GridAttribute_setOnScrollBarUpdate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnScrollIndexAttribute(value: ((first: number,last: number) => 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._GridAttribute_setOnScrollIndex(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCachedCount0Attribute(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._GridAttribute_setCachedCount0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEditModeAttribute(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._GridAttribute_setEditMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMultiSelectableAttribute(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._GridAttribute_setMultiSelectable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaxCountAttribute(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._GridAttribute_setMaxCount(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMinCountAttribute(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._GridAttribute_setMinCount(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCellLengthAttribute(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._GridAttribute_setCellLength(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLayoutDirectionAttribute(value: GridDirection | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as GridDirection) + thisSerializer.writeInt32(TypeChecker.GridDirection_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._GridAttribute_setLayoutDirection(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSupportAnimationAttribute(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._GridAttribute_setSupportAnimation(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnItemDragStartAttribute(value: OnItemDragStartCallback | 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._GridAttribute_setOnItemDragStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnItemDragEnterAttribute(value: ((event: ItemDragInfo) => 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._GridAttribute_setOnItemDragEnter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnItemDragMoveAttribute(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => 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._GridAttribute_setOnItemDragMove(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnItemDragLeaveAttribute(value: ((event: ItemDragInfo,itemIndex: number) => 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._GridAttribute_setOnItemDragLeave(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnItemDropAttribute(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => 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._GridAttribute_setOnItemDrop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAlignItemsAttribute(value: GridItemAlignment | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as GridItemAlignment) + thisSerializer.writeInt32(TypeChecker.GridItemAlignment_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._GridAttribute_setAlignItems(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnScrollFrameBeginAttribute(value: OnScrollFrameBeginCallback | 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._GridAttribute_setOnScrollFrameBegin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnWillScrollAttribute(value: OnWillScrollCallback | 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._GridAttribute_setOnWillScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDidScrollAttribute(value: OnScrollCallback | 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._GridAttribute_setOnDidScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCachedCount1Attribute(count: number | undefined, show: boolean | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (count !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const countTmpValue = count! + thisSerializer.writeNumber(countTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (show !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const showTmpValue = show! + thisSerializer.writeBoolean(showTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._GridAttribute_setCachedCount1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface GridLayoutOptions { + regularSize: [ number, number ]; + irregularIndexes?: Array; + onGetIrregularSizeByIndex?: ((index: number) => [ number, number ]); + onGetRectByIndex?: ((index: number) => [ number, number, number, number ]); +} +export enum GridDirection { + ROW = 0, + Row = 0, + COLUMN = 1, + Column = 1, + ROW_REVERSE = 2, + RowReverse = 2, + COLUMN_REVERSE = 3, + ColumnReverse = 3 +} +export enum GridItemAlignment { + DEFAULT = 0, + STRETCH = 1 +} +export interface ComputedBarAttribute { + totalOffset: number; + totalLength: number; +} +export interface GridAttribute extends ScrollableCommonMethod { + columnsTemplate(value: string | undefined): this { + throw new Error("Unimplemented method columnsTemplate") + } + rowsTemplate(value: string | undefined): this { + throw new Error("Unimplemented method rowsTemplate") + } + columnsGap(value: Length | undefined): this { + throw new Error("Unimplemented method columnsGap") + } + rowsGap(value: Length | undefined): this { + throw new Error("Unimplemented method rowsGap") + } + onScrollBarUpdate(value: ((index: number,offset: number) => ComputedBarAttribute) | undefined): this { + throw new Error("Unimplemented method onScrollBarUpdate") + } + onScrollIndex(value: ((first: number,last: number) => void) | undefined): this { + throw new Error("Unimplemented method onScrollIndex") + } + cachedCount(value: number | undefined): this { + throw new Error("Unimplemented method cachedCount") + } + editMode(value: boolean | undefined): this { + throw new Error("Unimplemented method editMode") + } + multiSelectable(value: boolean | undefined): this { + throw new Error("Unimplemented method multiSelectable") + } + maxCount(value: number | undefined): this { + throw new Error("Unimplemented method maxCount") + } + minCount(value: number | undefined): this { + throw new Error("Unimplemented method minCount") + } + cellLength(value: number | undefined): this { + throw new Error("Unimplemented method cellLength") + } + layoutDirection(value: GridDirection | undefined): this { + throw new Error("Unimplemented method layoutDirection") + } + supportAnimation(value: boolean | undefined): this { + throw new Error("Unimplemented method supportAnimation") + } + onItemDragStart(value: OnItemDragStartCallback | undefined): this { + throw new Error("Unimplemented method onItemDragStart") + } + onItemDragEnter(value: ((event: ItemDragInfo) => void) | undefined): this { + throw new Error("Unimplemented method onItemDragEnter") + } + onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined): this { + throw new Error("Unimplemented method onItemDragMove") + } + onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void) | undefined): this { + throw new Error("Unimplemented method onItemDragLeave") + } + onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined): this { + throw new Error("Unimplemented method onItemDrop") + } + alignItems(value: GridItemAlignment | undefined): this { + throw new Error("Unimplemented method alignItems") + } + onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { + throw new Error("Unimplemented method onScrollFrameBegin") + } + onWillScroll(value: OnWillScrollCallback | undefined): this { + throw new Error("Unimplemented method onWillScroll") + } + onDidScroll(value: OnScrollCallback | undefined): this { + throw new Error("Unimplemented method onDidScroll") + } + cachedCount(count: number | undefined, show: boolean | undefined): this { + throw new Error("Unimplemented method cachedCount") + } + attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Unimplemented method attributeModifier") + } +} +export class ArkGridStyle extends ArkScrollableCommonMethodStyle implements GridAttribute { + columnsTemplate_value?: string | undefined + rowsTemplate_value?: string | undefined + columnsGap_value?: Length | undefined + rowsGap_value?: Length | undefined + onScrollBarUpdate_value?: ((index: number,offset: number) => ComputedBarAttribute) | undefined + onScrollIndex_value?: ((first: number,last: number) => void) | undefined + cachedCount_value?: number | undefined + editMode_value?: boolean | undefined + multiSelectable_value?: boolean | undefined + maxCount_value?: number | undefined + minCount_value?: number | undefined + cellLength_value?: number | undefined + layoutDirection_value?: GridDirection | undefined + supportAnimation_value?: boolean | undefined + onItemDragStart_value?: OnItemDragStartCallback | undefined + onItemDragEnter_value?: ((event: ItemDragInfo) => void) | undefined + onItemDragMove_value?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined + onItemDragLeave_value?: ((event: ItemDragInfo,itemIndex: number) => void) | undefined + onItemDrop_value?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined + alignItems_value?: GridItemAlignment | undefined + onScrollFrameBegin_value?: OnScrollFrameBeginCallback | undefined + onWillScroll_value?: OnWillScrollCallback | undefined + onDidScroll_value?: OnScrollCallback | undefined + attributeModifier_value?: AttributeModifier | AttributeModifier | undefined + public columnsTemplate(value: string | undefined): this { + return this + } + public rowsTemplate(value: string | undefined): this { + return this + } + public columnsGap(value: Length | undefined): this { + return this + } + public rowsGap(value: Length | undefined): this { + return this + } + public onScrollBarUpdate(value: ((index: number,offset: number) => ComputedBarAttribute) | undefined): this { + return this + } + public onScrollIndex(value: ((first: number,last: number) => void) | undefined): this { + return this + } + public cachedCount(value: number | undefined): this { + return this + } + public editMode(value: boolean | undefined): this { + return this + } + public multiSelectable(value: boolean | undefined): this { + return this + } + public maxCount(value: number | undefined): this { + return this + } + public minCount(value: number | undefined): this { + return this + } + public cellLength(value: number | undefined): this { + return this + } + public layoutDirection(value: GridDirection | undefined): this { + return this + } + public supportAnimation(value: boolean | undefined): this { + return this + } + public onItemDragStart(value: OnItemDragStartCallback | undefined): this { + return this + } + public onItemDragEnter(value: ((event: ItemDragInfo) => void) | undefined): this { + return this + } + public onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined): this { + return this + } + public onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void) | undefined): this { + return this + } + public onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined): this { + return this + } + public alignItems(value: GridItemAlignment | undefined): this { + return this + } + public onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { + return this + } + public onWillScroll(value: OnWillScrollCallback | undefined): this { + return this + } + public onDidScroll(value: OnScrollCallback | undefined): this { + return this + } + public cachedCount(count: number | undefined, show: boolean | undefined): this { + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} + +export class ArkGridComponent extends ArkScrollableCommonMethodComponent implements GridAttribute { + getPeer(): ArkGridPeer { + return (this.peer as ArkGridPeer) + } + public setGridOptions(scroller?: Scroller, layoutOptions?: GridLayoutOptions): this { + if (this.checkPriority("setGridOptions")) { + const scroller_casted = scroller as (Scroller | undefined) + const layoutOptions_casted = layoutOptions as (GridLayoutOptions | undefined) + this.getPeer()?.setGridOptionsAttribute(scroller_casted, layoutOptions_casted) + return this + } + return this + } + public columnsTemplate(value: string | undefined): this { + if (this.checkPriority("columnsTemplate")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setColumnsTemplateAttribute(value_casted) + return this + } + return this + } + public rowsTemplate(value: string | undefined): this { + if (this.checkPriority("rowsTemplate")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setRowsTemplateAttribute(value_casted) + return this + } + return this + } + public columnsGap(value: Length | undefined): this { + if (this.checkPriority("columnsGap")) { + const value_casted = value as (Length | undefined) + this.getPeer()?.setColumnsGapAttribute(value_casted) + return this + } + return this + } + public rowsGap(value: Length | undefined): this { + if (this.checkPriority("rowsGap")) { + const value_casted = value as (Length | undefined) + this.getPeer()?.setRowsGapAttribute(value_casted) + return this + } + return this + } + public onScrollBarUpdate(value: ((index: number,offset: number) => ComputedBarAttribute) | undefined): this { + if (this.checkPriority("onScrollBarUpdate")) { + const value_casted = value as (((index: number,offset: number) => ComputedBarAttribute) | undefined) + this.getPeer()?.setOnScrollBarUpdateAttribute(value_casted) + return this + } + return this + } + public onScrollIndex(value: ((first: number,last: number) => void) | undefined): this { + if (this.checkPriority("onScrollIndex")) { + const value_casted = value as (((first: number,last: number) => void) | undefined) + this.getPeer()?.setOnScrollIndexAttribute(value_casted) + return this + } + return this + } + public cachedCount(value: number | undefined): this { + if (this.checkPriority("cachedCount")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setCachedCount0Attribute(value_casted) + return this + } + return this + } + public editMode(value: boolean | undefined): this { + if (this.checkPriority("editMode")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEditModeAttribute(value_casted) + return this + } + return this + } + public multiSelectable(value: boolean | undefined): this { + if (this.checkPriority("multiSelectable")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setMultiSelectableAttribute(value_casted) + return this + } + return this + } + public maxCount(value: number | undefined): this { + if (this.checkPriority("maxCount")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setMaxCountAttribute(value_casted) + return this + } + return this + } + public minCount(value: number | undefined): this { + if (this.checkPriority("minCount")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setMinCountAttribute(value_casted) + return this + } + return this + } + public cellLength(value: number | undefined): this { + if (this.checkPriority("cellLength")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setCellLengthAttribute(value_casted) + return this + } + return this + } + public layoutDirection(value: GridDirection | undefined): this { + if (this.checkPriority("layoutDirection")) { + const value_casted = value as (GridDirection | undefined) + this.getPeer()?.setLayoutDirectionAttribute(value_casted) + return this + } + return this + } + public supportAnimation(value: boolean | undefined): this { + if (this.checkPriority("supportAnimation")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setSupportAnimationAttribute(value_casted) + return this + } + return this + } + public onItemDragStart(value: OnItemDragStartCallback | undefined): this { + if (this.checkPriority("onItemDragStart")) { + const value_casted = value as (OnItemDragStartCallback | undefined) + this.getPeer()?.setOnItemDragStartAttribute(value_casted) + return this + } + return this + } + public onItemDragEnter(value: ((event: ItemDragInfo) => void) | undefined): this { + if (this.checkPriority("onItemDragEnter")) { + const value_casted = value as (((event: ItemDragInfo) => void) | undefined) + this.getPeer()?.setOnItemDragEnterAttribute(value_casted) + return this + } + return this + } + public onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined): this { + if (this.checkPriority("onItemDragMove")) { + const value_casted = value as (((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined) + this.getPeer()?.setOnItemDragMoveAttribute(value_casted) + return this + } + return this + } + public onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void) | undefined): this { + if (this.checkPriority("onItemDragLeave")) { + const value_casted = value as (((event: ItemDragInfo,itemIndex: number) => void) | undefined) + this.getPeer()?.setOnItemDragLeaveAttribute(value_casted) + return this + } + return this + } + public onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined): this { + if (this.checkPriority("onItemDrop")) { + const value_casted = value as (((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined) + this.getPeer()?.setOnItemDropAttribute(value_casted) + return this + } + return this + } + public alignItems(value: GridItemAlignment | undefined): this { + if (this.checkPriority("alignItems")) { + const value_casted = value as (GridItemAlignment | undefined) + this.getPeer()?.setAlignItemsAttribute(value_casted) + return this + } + return this + } + public onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { + if (this.checkPriority("onScrollFrameBegin")) { + const value_casted = value as (OnScrollFrameBeginCallback | undefined) + this.getPeer()?.setOnScrollFrameBeginAttribute(value_casted) + return this + } + return this + } + public onWillScroll(value: OnWillScrollCallback | undefined): this { + if (this.checkPriority("onWillScroll")) { + const value_casted = value as (OnWillScrollCallback | undefined) + this.getPeer()?.setOnWillScrollAttribute(value_casted) + return this + } + return this + } + public onDidScroll(value: OnScrollCallback | undefined): this { + if (this.checkPriority("onDidScroll")) { + const value_casted = value as (OnScrollCallback | undefined) + this.getPeer()?.setOnDidScrollAttribute(value_casted) + return this + } + return this + } + public cachedCount(count: number | undefined, show: boolean | undefined): this { + if (this.checkPriority("cachedCount")) { + const count_casted = count as (number | undefined) + const show_casted = show as (boolean | undefined) + this.getPeer()?.setCachedCount1Attribute(count_casted, show_casted) + return this + } + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { + return this + } + public applyAttributesFinish(): void { + // we call this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +@memo +export function Grid( + @memo + style: ((attributes: GridAttribute) => void) | undefined, + scroller?: Scroller, layoutOptions?: GridLayoutOptions, + @memo + content_?: () => void, +): void { + const receiver = remember((): ArkGridComponent => { + return new ArkGridComponent() + }) + NodeAttach((): ArkGridPeer => ArkGridPeer.create(receiver), (_: ArkGridPeer): void => { + receiver.setGridOptions(scroller,layoutOptions) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} + +export class ComputedBarAttribute_serializer { + public static write(buffer: SerializerBase, value: ComputedBarAttribute): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForTotalOffset = value.totalOffset + valueSerializer.writeNumber(valueHolderForTotalOffset) + const valueHolderForTotalLength = value.totalLength + valueSerializer.writeNumber(valueHolderForTotalLength) + } + public static read(buffer: DeserializerBase): ComputedBarAttribute { + let valueDeserializer : DeserializerBase = buffer + const totalOffsetTmpResult : number = (valueDeserializer.readNumber() as number) + const totalLengthTmpResult : number = (valueDeserializer.readNumber() as number) + let value : ComputedBarAttribute = ({totalOffset: totalOffsetTmpResult, totalLength: totalLengthTmpResult} as ComputedBarAttribute) + return value + } +} +export class GridLayoutOptions_serializer { + public static write(buffer: SerializerBase, value: GridLayoutOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForRegularSize = value.regularSize + const valueHolderForRegularSize_0 = valueHolderForRegularSize[0] + valueSerializer.writeNumber(valueHolderForRegularSize_0) + const valueHolderForRegularSize_1 = valueHolderForRegularSize[1] + valueSerializer.writeNumber(valueHolderForRegularSize_1) + const valueHolderForIrregularIndexes = value.irregularIndexes + if (valueHolderForIrregularIndexes !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForIrregularIndexesTmpValue = valueHolderForIrregularIndexes! + valueSerializer.writeInt32((valueHolderForIrregularIndexesTmpValue.length).toInt()) + for (let valueHolderForIrregularIndexesTmpValueCounterI = 0; valueHolderForIrregularIndexesTmpValueCounterI < valueHolderForIrregularIndexesTmpValue.length; valueHolderForIrregularIndexesTmpValueCounterI++) { + const valueHolderForIrregularIndexesTmpValueTmpElement : number = valueHolderForIrregularIndexesTmpValue[valueHolderForIrregularIndexesTmpValueCounterI] + valueSerializer.writeNumber(valueHolderForIrregularIndexesTmpValueTmpElement) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnGetIrregularSizeByIndex = value.onGetIrregularSizeByIndex + if (valueHolderForOnGetIrregularSizeByIndex !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnGetIrregularSizeByIndexTmpValue = valueHolderForOnGetIrregularSizeByIndex! + valueSerializer.holdAndWriteCallback(valueHolderForOnGetIrregularSizeByIndexTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForOnGetRectByIndex = value.onGetRectByIndex + if (valueHolderForOnGetRectByIndex !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForOnGetRectByIndexTmpValue = valueHolderForOnGetRectByIndex! + valueSerializer.holdAndWriteCallback(valueHolderForOnGetRectByIndexTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): GridLayoutOptions { + let valueDeserializer : DeserializerBase = buffer + const regularSizeTmpBufValue0 : number = (valueDeserializer.readNumber() as number) + const regularSizeTmpBufValue1 : number = (valueDeserializer.readNumber() as number) + const regularSizeTmpResult : [ number, number ] = ([regularSizeTmpBufValue0, regularSizeTmpBufValue1] as [ number, number ]) + const irregularIndexesTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let irregularIndexesTmpBuf : Array | undefined + if ((irregularIndexesTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const irregularIndexesTmpBuf_Length : int32 = valueDeserializer.readInt32() + let irregularIndexesTmpBuf_ : Array = new Array(irregularIndexesTmpBuf_Length) + for (let irregularIndexesTmpBuf_BufCounterI = 0; irregularIndexesTmpBuf_BufCounterI < irregularIndexesTmpBuf_Length; irregularIndexesTmpBuf_BufCounterI++) { + irregularIndexesTmpBuf_[irregularIndexesTmpBuf_BufCounterI] = (valueDeserializer.readNumber() as number) + } + irregularIndexesTmpBuf = irregularIndexesTmpBuf_ + } + const irregularIndexesTmpResult : Array | undefined = irregularIndexesTmpBuf + const onGetIrregularSizeByIndexTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onGetIrregularSizeByIndexTmpBuf : ((index: number) => [ number, number ]) | undefined + if ((onGetIrregularSizeByIndexTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onGetIrregularSizeByIndexTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onGetIrregularSizeByIndexTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onGetIrregularSizeByIndexTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onGetIrregularSizeByIndexTmpBuf = (index: number):[ number, number ] => { + const onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.writeInt32(onGetIrregularSizeByIndexTmpBuf_BufResource.resourceId); + onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.writePointer(onGetIrregularSizeByIndexTmpBuf_BufCall); + onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.writePointer(onGetIrregularSizeByIndexTmpBuf_BufCallSync); + onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.writeNumber(index); + let onGetIrregularSizeByIndexTmpBuf_BufContinuationValue : [ number, number ] | undefined; + const onGetIrregularSizeByIndexTmpBuf_BufContinuationCallback : ((value: [ number, number ]) => void) = (value: [ number, number ]):void => { + onGetIrregularSizeByIndexTmpBuf_BufContinuationValue = value; + } + onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.holdAndWriteCallback(onGetIrregularSizeByIndexTmpBuf_BufContinuationCallback); + InteropNativeModule._CallCallback(1602877440, onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.asBuffer(), onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.length()); + onGetIrregularSizeByIndexTmpBuf_BufArgsSerializer.release(); + return (onGetIrregularSizeByIndexTmpBuf_BufContinuationValue as [ number, number ]); + } + } + const onGetIrregularSizeByIndexTmpResult : ((index: number) => [ number, number ]) | undefined = onGetIrregularSizeByIndexTmpBuf + const onGetRectByIndexTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let onGetRectByIndexTmpBuf : ((index: number) => [ number, number, number, number ]) | undefined + if ((onGetRectByIndexTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const onGetRectByIndexTmpBuf_BufResource : CallbackResource = valueDeserializer.readCallbackResource() + const onGetRectByIndexTmpBuf_BufCall : KPointer = valueDeserializer.readPointer() + const onGetRectByIndexTmpBuf_BufCallSync : KPointer = valueDeserializer.readPointer() + onGetRectByIndexTmpBuf = (index: number):[ number, number, number, number ] => { + const onGetRectByIndexTmpBuf_BufArgsSerializer : SerializerBase = SerializerBase.hold(); + onGetRectByIndexTmpBuf_BufArgsSerializer.writeInt32(onGetRectByIndexTmpBuf_BufResource.resourceId); + onGetRectByIndexTmpBuf_BufArgsSerializer.writePointer(onGetRectByIndexTmpBuf_BufCall); + onGetRectByIndexTmpBuf_BufArgsSerializer.writePointer(onGetRectByIndexTmpBuf_BufCallSync); + onGetRectByIndexTmpBuf_BufArgsSerializer.writeNumber(index); + let onGetRectByIndexTmpBuf_BufContinuationValue : [ number, number, number, number ] | undefined; + const onGetRectByIndexTmpBuf_BufContinuationCallback : ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]):void => { + onGetRectByIndexTmpBuf_BufContinuationValue = value; + } + onGetRectByIndexTmpBuf_BufArgsSerializer.holdAndWriteCallback(onGetRectByIndexTmpBuf_BufContinuationCallback); + InteropNativeModule._CallCallback(1618565120, onGetRectByIndexTmpBuf_BufArgsSerializer.asBuffer(), onGetRectByIndexTmpBuf_BufArgsSerializer.length()); + onGetRectByIndexTmpBuf_BufArgsSerializer.release(); + return (onGetRectByIndexTmpBuf_BufContinuationValue as [ number, number, number, number ]); + } + } + const onGetRectByIndexTmpResult : ((index: number) => [ number, number, number, number ]) | undefined = onGetRectByIndexTmpBuf + let value : GridLayoutOptions = ({regularSize: regularSizeTmpResult, irregularIndexes: irregularIndexesTmpResult, onGetIrregularSizeByIndex: onGetIrregularSizeByIndexTmpResult, onGetRectByIndex: onGetRectByIndexTmpResult} as GridLayoutOptions) + return value + } +} diff --git a/arkoala-arkts/arkui/src/component/gridCol.ets b/arkoala-arkts/arkui/generated/component/gridCol.ets similarity index 76% rename from arkoala-arkts/arkui/src/component/gridCol.ets rename to arkoala-arkts/arkui/generated/component/gridCol.ets index 4c81ce55b7d82f1bb8bfc02da5db3228fab1f06a..0b016ddd18dad71d00367deefb1d0a9bdeebdfbf 100644 --- a/arkoala-arkts/arkui/src/component/gridCol.ets +++ b/arkoala-arkts/arkui/generated/component/gridCol.ets @@ -21,14 +21,13 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkGridColPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -223,153 +222,6 @@ export function GridCol( }) } -export class GridColModifier extends CommonMethodModifier implements GridColAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _span_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _span_0_0value?: number | GridColColumnOption | undefined - _gridColOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _gridColOffset_0_0value?: number | GridColColumnOption | undefined - _order_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _order_0_0value?: number | GridColColumnOption | undefined - applyModifierPatch(peer: ArkGridColPeer): void { - super.applyModifierPatch(peer) - if (this._span_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._span_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSpanAttribute((this._span_0_0value as number | GridColColumnOption | undefined)); - this._span_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._span_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._span_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSpanAttribute((undefined as number | GridColColumnOption | undefined)); - } - } - } - if (this._gridColOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._gridColOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGridColOffsetAttribute((this._gridColOffset_0_0value as number | GridColColumnOption | undefined)); - this._gridColOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._gridColOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._gridColOffset_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setGridColOffsetAttribute((undefined as number | GridColColumnOption | undefined)); - } - } - } - if (this._order_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._order_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOrderAttribute((this._order_0_0value as number | GridColColumnOption | undefined)); - this._order_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._order_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._order_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOrderAttribute((undefined as number | GridColColumnOption | undefined)); - } - } - } - } - mergeModifier(modifier: GridColModifier): void { - super.mergeModifier(modifier) - if (modifier._span_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._span_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.span(modifier._span_0_0value); - break; - } - default: { - this.span((undefined as number | GridColColumnOption | undefined)); - } - } - } - if (modifier._gridColOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._gridColOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.gridColOffset(modifier._gridColOffset_0_0value); - break; - } - default: { - this.gridColOffset((undefined as number | GridColColumnOption | undefined)); - } - } - } - if (modifier._order_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._order_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.order(modifier._order_0_0value); - break; - } - default: { - this.order((undefined as number | GridColColumnOption | undefined)); - } - } - } - } - span(value: number | GridColColumnOption | undefined): this { - if (((this._span_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._span_0_flag = AttributeUpdaterFlag.UPDATE - this._span_0_0value = value - } else - { - this._span_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - gridColOffset(value: number | GridColColumnOption | undefined): this { - if (((this._gridColOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._gridColOffset_0_flag = AttributeUpdaterFlag.UPDATE - this._gridColOffset_0_0value = value - } else - { - this._gridColOffset_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - order(value: number | GridColColumnOption | undefined): this { - if (((this._order_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._order_0_flag = AttributeUpdaterFlag.UPDATE - this._order_0_0value = value - } else - { - this._order_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class GridColColumnOption_serializer { public static write(buffer: SerializerBase, value: GridColColumnOption): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/gridItem.ets b/arkoala-arkts/arkui/generated/component/gridItem.ets similarity index 51% rename from arkoala-arkts/arkui/src/component/gridItem.ets rename to arkoala-arkts/arkui/generated/component/gridItem.ets index 35792dc479ed76aa10eadab4ecb24bebb38ae7c5..8dbb73291bb4bfaecf29d16d7da5cb208d658b94 100644 --- a/arkoala-arkts/arkui/src/component/gridItem.ets +++ b/arkoala-arkts/arkui/generated/component/gridItem.ets @@ -17,18 +17,17 @@ // 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 { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkGridItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -309,329 +308,6 @@ export function GridItem( }) } -export class GridItemModifier extends CommonMethodModifier implements GridItemAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _rowStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _rowStart_0_0value?: number | undefined - _rowEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _rowEnd_0_0value?: number | undefined - _columnStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _columnStart_0_0value?: number | undefined - _columnEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _columnEnd_0_0value?: number | undefined - _selectable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectable_0_0value?: boolean | undefined - _selected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selected_0_0value?: boolean | Bindable | undefined - _onSelect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSelect_0_0value?: ((isSelected: boolean) => void) | undefined - applyModifierPatch(peer: ArkGridItemPeer): void { - super.applyModifierPatch(peer) - if (this._rowStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._rowStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRowStartAttribute((this._rowStart_0_0value as number | undefined)); - this._rowStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._rowStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._rowStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRowStartAttribute((undefined as number | undefined)); - } - } - } - if (this._rowEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._rowEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRowEndAttribute((this._rowEnd_0_0value as number | undefined)); - this._rowEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._rowEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._rowEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRowEndAttribute((undefined as number | undefined)); - } - } - } - if (this._columnStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._columnStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColumnStartAttribute((this._columnStart_0_0value as number | undefined)); - this._columnStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._columnStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._columnStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColumnStartAttribute((undefined as number | undefined)); - } - } - } - if (this._columnEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._columnEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColumnEndAttribute((this._columnEnd_0_0value as number | undefined)); - this._columnEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._columnEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._columnEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColumnEndAttribute((undefined as number | undefined)); - } - } - } - if (this._selectable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectableAttribute((this._selectable_0_0value as boolean | undefined)); - this._selectable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._selected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedAttribute((this._selected_0_0value as boolean | Bindable | undefined)); - this._selected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedAttribute((undefined as boolean | Bindable | undefined)); - } - } - } - if (this._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSelect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSelectAttribute((this._onSelect_0_0value as ((isSelected: boolean) => void) | undefined)); - this._onSelect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSelect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSelect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSelectAttribute((undefined as ((isSelected: boolean) => void) | undefined)); - } - } - } - } - mergeModifier(modifier: GridItemModifier): void { - super.mergeModifier(modifier) - if (modifier._rowStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._rowStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.rowStart(modifier._rowStart_0_0value); - break; - } - default: { - this.rowStart((undefined as number | undefined)); - } - } - } - if (modifier._rowEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._rowEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.rowEnd(modifier._rowEnd_0_0value); - break; - } - default: { - this.rowEnd((undefined as number | undefined)); - } - } - } - if (modifier._columnStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._columnStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.columnStart(modifier._columnStart_0_0value); - break; - } - default: { - this.columnStart((undefined as number | undefined)); - } - } - } - if (modifier._columnEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._columnEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.columnEnd(modifier._columnEnd_0_0value); - break; - } - default: { - this.columnEnd((undefined as number | undefined)); - } - } - } - if (modifier._selectable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectable(modifier._selectable_0_0value); - break; - } - default: { - this.selectable((undefined as boolean | undefined)); - } - } - } - if (modifier._selected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selected(modifier._selected_0_0value); - break; - } - default: { - this.selected((undefined as boolean | Bindable | undefined)); - } - } - } - if (modifier._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSelect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSelect(modifier._onSelect_0_0value); - break; - } - default: { - this.onSelect((undefined as ((isSelected: boolean) => void) | undefined)); - } - } - } - } - rowStart(value: number | undefined): this { - if (((this._rowStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._rowStart_0_0value) !== (value))) - { - this._rowStart_0_flag = AttributeUpdaterFlag.UPDATE - this._rowStart_0_0value = value - } else - { - this._rowStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - rowEnd(value: number | undefined): this { - if (((this._rowEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._rowEnd_0_0value) !== (value))) - { - this._rowEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._rowEnd_0_0value = value - } else - { - this._rowEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - columnStart(value: number | undefined): this { - if (((this._columnStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._columnStart_0_0value) !== (value))) - { - this._columnStart_0_flag = AttributeUpdaterFlag.UPDATE - this._columnStart_0_0value = value - } else - { - this._columnStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - columnEnd(value: number | undefined): this { - if (((this._columnEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._columnEnd_0_0value) !== (value))) - { - this._columnEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._columnEnd_0_0value = value - } else - { - this._columnEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectable(value: boolean | undefined): this { - if (((this._selectable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectable_0_0value) !== (value))) - { - this._selectable_0_flag = AttributeUpdaterFlag.UPDATE - this._selectable_0_0value = value - } else - { - this._selectable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selected(value: boolean | Bindable | undefined): this { - if (((this._selected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selected_0_flag = AttributeUpdaterFlag.UPDATE - this._selected_0_0value = value - } else - { - this._selected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSelect(value: ((isSelected: boolean) => void) | undefined): this { - if (((this._onSelect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSelect_0_flag = AttributeUpdaterFlag.UPDATE - this._onSelect_0_0value = value - } else - { - this._onSelect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class GridItemOptions_serializer { public static write(buffer: SerializerBase, value: GridItemOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/gridRow.ets b/arkoala-arkts/arkui/generated/component/gridRow.ets similarity index 90% rename from arkoala-arkts/arkui/src/component/gridRow.ets rename to arkoala-arkts/arkui/generated/component/gridRow.ets index b8fa29ad59a9e7c30d8a2c8721a04e603bf8c761..d1346023b446314f18bd1c376efcfd875a394337 100644 --- a/arkoala-arkts/arkui/src/component/gridRow.ets +++ b/arkoala-arkts/arkui/generated/component/gridRow.ets @@ -21,17 +21,17 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ItemAlign } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource } from "global.resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkGridRowPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -204,109 +204,6 @@ export function GridRow( }) } -export class GridRowModifier extends CommonMethodModifier implements GridRowAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onBreakpointChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onBreakpointChange_0_0value?: ((breakpoints: string) => void) | undefined - _alignItems_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alignItems_0_0value?: ItemAlign | undefined - applyModifierPatch(peer: ArkGridRowPeer): void { - super.applyModifierPatch(peer) - if (this._onBreakpointChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onBreakpointChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnBreakpointChangeAttribute((this._onBreakpointChange_0_0value as ((breakpoints: string) => void) | undefined)); - this._onBreakpointChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onBreakpointChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onBreakpointChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnBreakpointChangeAttribute((undefined as ((breakpoints: string) => void) | undefined)); - } - } - } - if (this._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alignItems_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignItemsAttribute((this._alignItems_0_0value as ItemAlign | undefined)); - this._alignItems_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alignItems_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alignItems_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignItemsAttribute((undefined as ItemAlign | undefined)); - } - } - } - } - mergeModifier(modifier: GridRowModifier): void { - super.mergeModifier(modifier) - if (modifier._onBreakpointChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onBreakpointChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onBreakpointChange(modifier._onBreakpointChange_0_0value); - break; - } - default: { - this.onBreakpointChange((undefined as ((breakpoints: string) => void) | undefined)); - } - } - } - if (modifier._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alignItems_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alignItems(modifier._alignItems_0_0value); - break; - } - default: { - this.alignItems((undefined as ItemAlign | undefined)); - } - } - } - } - onBreakpointChange(value: ((breakpoints: string) => void) | undefined): this { - if (((this._onBreakpointChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onBreakpointChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onBreakpointChange_0_0value = value - } else - { - this._onBreakpointChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - alignItems(value: ItemAlign | undefined): this { - if (((this._alignItems_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alignItems_0_flag = AttributeUpdaterFlag.UPDATE - this._alignItems_0_0value = value - } else - { - this._alignItems_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class BreakPoints_serializer { public static write(buffer: SerializerBase, value: BreakPoints): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/hyperlink.ets b/arkoala-arkts/arkui/generated/component/hyperlink.ets similarity index 73% rename from arkoala-arkts/arkui/src/component/hyperlink.ets rename to arkoala-arkts/arkui/generated/component/hyperlink.ets index fea8183797c4c752436afe24a8514610ceead430..f7511388ef83193e354b244cfdbb558c7a238afe 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 } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.resource" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkHyperlinkPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -168,62 +168,3 @@ export function Hyperlink( }) } -export class HyperlinkModifier extends CommonMethodModifier implements HyperlinkAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _color_0_0value?: Color | number | string | Resource | undefined - applyModifierPatch(peer: ArkHyperlinkPeer): void { - super.applyModifierPatch(peer) - if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorAttribute((this._color_0_0value as Color | number | string | Resource | undefined)); - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._color_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorAttribute((undefined as Color | number | string | Resource | undefined)); - } - } - } - } - mergeModifier(modifier: HyperlinkModifier): void { - super.mergeModifier(modifier) - if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.color(modifier._color_0_0value); - break; - } - default: { - this.color((undefined as Color | number | string | Resource | undefined)); - } - } - } - } - color(value: Color | number | string | Resource | undefined): this { - if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._color_0_flag = AttributeUpdaterFlag.UPDATE - this._color_0_0value = value - } else - { - this._color_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/idlize.ets b/arkoala-arkts/arkui/generated/component/idlize.ets similarity index 97% rename from arkoala-arkts/arkui/src/component/idlize.ets rename to arkoala-arkts/arkui/generated/component/idlize.ets index 20755c00e5f235758e8f36f0c075d4b6bb94ab74..80f10797cbb471510ad9e49c16c5702a649b0de4 100644 --- a/arkoala-arkts/arkui/src/component/idlize.ets +++ b/arkoala-arkts/arkui/generated/component/idlize.ets @@ -21,10 +21,11 @@ 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 } from "./../framework/resource" import { SizeOptions_serializer, Length, SizeOptions, Position_serializer, Position, ResourceColor, ResourceStr, ConstraintSizeOptions } from "./units" +import { Resource } from "global.resource" import { Color } from "./enums" -import { ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, AttributeUpdater, extractors } from "#handwritten" import { ButtonConfiguration } from "./button" import { CheckBoxConfiguration } from "./checkbox" import { DataPanelConfiguration } from "./dataPanel" @@ -38,22 +39,21 @@ 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 "./../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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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 { 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) @@ -1041,9 +1041,9 @@ export class RestrictedWorker implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._RestrictedWorker_getFinalizer() } - public postMessage(message: Object, transfer: Array): void { + public postMessage(message: Object, transfer: Array): void { const message_casted = message as (Object) - const transfer_casted = transfer as (Array) + const transfer_casted = transfer as (Array) this.postMessage0_serialize(message_casted, transfer_casted) return } @@ -1053,9 +1053,9 @@ export class RestrictedWorker implements MaterializedBase { this.postMessage1_serialize(message_casted, options_casted) return } - public postMessageWithSharedSendable(message: Object, transfer?: Array): void { + public postMessageWithSharedSendable(message: Object, transfer?: Array): void { const message_casted = message as (Object) - const transfer_casted = transfer as (Array | undefined) + const transfer_casted = transfer as (Array | undefined) this.postMessageWithSharedSendable_serialize(message_casted, transfer_casted) return } @@ -1144,12 +1144,12 @@ export class RestrictedWorker implements MaterializedBase { this.setOnmessageerror_serialize(onmessageerror_casted) return } - private postMessage0_serialize(message: Object, transfer: Array): void { + private postMessage0_serialize(message: Object, transfer: Array): void { const thisSerializer : SerializerBase = SerializerBase.hold() thisSerializer.holdAndWriteObject(message) thisSerializer.writeInt32((transfer.length).toInt()) for (let transferCounterI = 0; transferCounterI < transfer.length; transferCounterI++) { - const transferTmpElement : NativeBuffer = transfer[transferCounterI] + const transferTmpElement : ArrayBuffer = transfer[transferCounterI] thisSerializer.writeBuffer(transferTmpElement) } ArkUIGeneratedNativeModule._RestrictedWorker_postMessage0(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) @@ -1168,7 +1168,7 @@ export class RestrictedWorker implements MaterializedBase { ArkUIGeneratedNativeModule._RestrictedWorker_postMessage1(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) thisSerializer.release() } - private postMessageWithSharedSendable_serialize(message: Object, transfer?: Array): void { + private postMessageWithSharedSendable_serialize(message: Object, transfer?: Array): void { const thisSerializer : SerializerBase = SerializerBase.hold() thisSerializer.holdAndWriteObject(message) if (transfer !== undefined) { @@ -1176,7 +1176,7 @@ export class RestrictedWorker implements MaterializedBase { const transferTmpValue = transfer! thisSerializer.writeInt32((transferTmpValue.length).toInt()) for (let transferTmpValueCounterI = 0; transferTmpValueCounterI < transferTmpValue.length; transferTmpValueCounterI++) { - const transferTmpValueTmpElement : NativeBuffer = transferTmpValue[transferTmpValueCounterI] + const transferTmpValueTmpElement : ArrayBuffer = transferTmpValue[transferTmpValueCounterI] thisSerializer.writeBuffer(transferTmpValueTmpElement) } } else { @@ -1923,55 +1923,6 @@ export class ArkCustomLayoutRootComponent extends ComponentBase implements Custo super.applyAttributesFinish() } } -export class RootModifier implements Root { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkRootPeer): void { - } - mergeModifier(modifier: RootModifier): void { - } - public attributeModifier(value: AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export class ComponentRootModifier implements ComponentRoot { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkComponentRootPeer): void { - } - mergeModifier(modifier: ComponentRootModifier): void { - } - public attributeModifier(value: AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export class CustomLayoutRootModifier implements CustomLayoutRoot { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _subscribeOnMeasureSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _subscribeOnMeasureSize_0_0value?: Callback_onMeasureSize_SizeResult - _subscribeOnPlaceChildren_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _subscribeOnPlaceChildren_0_0value?: Callback_onPlaceChildren_Void - applyModifierPatch(peer: ArkCustomLayoutRootPeer): void { - } - mergeModifier(modifier: CustomLayoutRootModifier): void { - } - subscribeOnMeasureSize(value: Callback_onMeasureSize_SizeResult): this { - throw new Error("Not implemented") - } - subscribeOnPlaceChildren(value: Callback_onPlaceChildren_Void): this { - throw new Error("Not implemented") - } - public attributeModifier(value: AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export function getRectangleById(id: string): ComponentInfo { return GlobalScope.getRectangleById(id) } diff --git a/arkoala-arkts/arkui/src/component/image.ets b/arkoala-arkts/arkui/generated/component/image.ets similarity index 51% rename from arkoala-arkts/arkui/src/component/image.ets rename to arkoala-arkts/arkui/generated/component/image.ets index e5ccdbef8628c4fbfb1d577e007357899a4b48cf..e89dcf3b46dea1761429a35a384ca46036242773 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, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 } 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 "./../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 { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { drawing_ColorFilter_serializer, drawing, drawing_Lattice_serializer } from "./../framework/ohos.graphics.drawing" +import { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" +import { Resource } from "global.resource" import { Color, ImageFit, ImageRepeat, CopyOptions } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { BusinessError, BusinessError_serializer } from "./../framework/ohos.base" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ColorContentInternal { public static fromPtr(ptr: KPointer): ColorContent { return new ColorContent(ptr) @@ -1063,1209 +1063,6 @@ export function Image( }) } -export class ImageModifier extends CommonMethodModifier implements ImageAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _alt_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alt_0_0value?: string | Resource | image.PixelMap | undefined - _matchTextDirection_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _matchTextDirection_0_0value?: boolean | undefined - _fitOriginalSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fitOriginalSize_0_0value?: boolean | undefined - _fillColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fillColor_0_0value?: ResourceColor | ColorContent | ColorMetrics | undefined - _objectFit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _objectFit_0_0value?: ImageFit | undefined - _imageMatrix_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _imageMatrix_0_0value?: matrix4.Matrix4Transit | undefined - _objectRepeat_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _objectRepeat_0_0value?: ImageRepeat | undefined - _autoResize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _autoResize_0_0value?: boolean | undefined - _renderMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _renderMode_0_0value?: ImageRenderMode | undefined - _dynamicRangeMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _dynamicRangeMode_0_0value?: DynamicRangeMode | undefined - _interpolation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _interpolation_0_0value?: ImageInterpolation | undefined - _sourceSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sourceSize_0_0value?: ImageSourceSize | undefined - _syncLoad_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _syncLoad_0_0value?: boolean | undefined - _colorFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _colorFilter_0_0value?: ColorFilter | drawing.ColorFilter | undefined - _copyOption_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _copyOption_0_0value?: CopyOptions | undefined - _draggable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _draggable_0_0value?: boolean | undefined - _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pointLight_0_0value?: PointLightStyle | undefined - _edgeAntialiasing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _edgeAntialiasing_0_0value?: number | undefined - _onComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onComplete_0_0value?: ImageOnCompleteCallback | undefined - _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onError_0_0value?: ImageErrorCallback | undefined - _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFinish_0_0value?: (() => void) | undefined - _enableAnalyzer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableAnalyzer_0_0value?: boolean | undefined - _analyzerConfig_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _analyzerConfig_0_0value?: ImageAnalyzerConfig | undefined - _resizable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _resizable_0_0value?: ResizableOptions | undefined - _privacySensitive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _privacySensitive_0_0value?: boolean | undefined - _enhancedImageQuality_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enhancedImageQuality_0_0value?: image.ResolutionQuality | undefined - _orientation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _orientation_0_0value?: ImageRotateOrientation | undefined - applyModifierPatch(peer: ArkImagePeer): void { - super.applyModifierPatch(peer) - if (this._alt_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alt_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAltAttribute((this._alt_0_0value as string | Resource | image.PixelMap | undefined)); - this._alt_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alt_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alt_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAltAttribute((undefined as string | Resource | image.PixelMap | undefined)); - } - } - } - if (this._matchTextDirection_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._matchTextDirection_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMatchTextDirectionAttribute((this._matchTextDirection_0_0value as boolean | undefined)); - this._matchTextDirection_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._matchTextDirection_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._matchTextDirection_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMatchTextDirectionAttribute((undefined as boolean | undefined)); - } - } - } - if (this._fitOriginalSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fitOriginalSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFitOriginalSizeAttribute((this._fitOriginalSize_0_0value as boolean | undefined)); - this._fitOriginalSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fitOriginalSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fitOriginalSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFitOriginalSizeAttribute((undefined as boolean | undefined)); - } - } - } - if (this._fillColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fillColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFillColorAttribute((this._fillColor_0_0value as ResourceColor | ColorContent | ColorMetrics | undefined)); - this._fillColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fillColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fillColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFillColorAttribute((undefined as ResourceColor | ColorContent | ColorMetrics | undefined)); - } - } - } - if (this._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._objectFit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setObjectFitAttribute((this._objectFit_0_0value as ImageFit | undefined)); - this._objectFit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._objectFit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._objectFit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setObjectFitAttribute((undefined as ImageFit | undefined)); - } - } - } - if (this._imageMatrix_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._imageMatrix_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setImageMatrixAttribute((this._imageMatrix_0_0value as matrix4.Matrix4Transit | undefined)); - this._imageMatrix_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._imageMatrix_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._imageMatrix_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setImageMatrixAttribute((undefined as matrix4.Matrix4Transit | undefined)); - } - } - } - if (this._objectRepeat_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._objectRepeat_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setObjectRepeatAttribute((this._objectRepeat_0_0value as ImageRepeat | undefined)); - this._objectRepeat_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._objectRepeat_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._objectRepeat_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setObjectRepeatAttribute((undefined as ImageRepeat | undefined)); - } - } - } - if (this._autoResize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._autoResize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAutoResizeAttribute((this._autoResize_0_0value as boolean | undefined)); - this._autoResize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._autoResize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._autoResize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAutoResizeAttribute((undefined as boolean | undefined)); - } - } - } - if (this._renderMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._renderMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRenderModeAttribute((this._renderMode_0_0value as ImageRenderMode | undefined)); - this._renderMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._renderMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._renderMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRenderModeAttribute((undefined as ImageRenderMode | undefined)); - } - } - } - if (this._dynamicRangeMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._dynamicRangeMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDynamicRangeModeAttribute((this._dynamicRangeMode_0_0value as DynamicRangeMode | undefined)); - this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDynamicRangeModeAttribute((undefined as DynamicRangeMode | undefined)); - } - } - } - if (this._interpolation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._interpolation_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setInterpolationAttribute((this._interpolation_0_0value as ImageInterpolation | undefined)); - this._interpolation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._interpolation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._interpolation_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setInterpolationAttribute((undefined as ImageInterpolation | undefined)); - } - } - } - if (this._sourceSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sourceSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSourceSizeAttribute((this._sourceSize_0_0value as ImageSourceSize | undefined)); - this._sourceSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sourceSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sourceSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSourceSizeAttribute((undefined as ImageSourceSize | undefined)); - } - } - } - if (this._syncLoad_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._syncLoad_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSyncLoadAttribute((this._syncLoad_0_0value as boolean | undefined)); - this._syncLoad_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._syncLoad_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._syncLoad_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSyncLoadAttribute((undefined as boolean | undefined)); - } - } - } - if (this._colorFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._colorFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorFilterAttribute((this._colorFilter_0_0value as ColorFilter | drawing.ColorFilter | undefined)); - this._colorFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._colorFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._colorFilter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorFilterAttribute((undefined as ColorFilter | drawing.ColorFilter | undefined)); - } - } - } - if (this._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._copyOption_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCopyOptionAttribute((this._copyOption_0_0value as CopyOptions | undefined)); - this._copyOption_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._copyOption_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._copyOption_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCopyOptionAttribute((undefined as CopyOptions | 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._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); - } - } - } - if (this._edgeAntialiasing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._edgeAntialiasing_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEdgeAntialiasingAttribute((this._edgeAntialiasing_0_0value as number | undefined)); - this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEdgeAntialiasingAttribute((undefined as number | undefined)); - } - } - } - if (this._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCompleteAttribute((this._onComplete_0_0value as ImageOnCompleteCallback | undefined)); - this._onComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onComplete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCompleteAttribute((undefined as ImageOnCompleteCallback | undefined)); - } - } - } - if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnErrorAttribute((this._onError_0_0value as ImageErrorCallback | undefined)); - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onError_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnErrorAttribute((undefined as ImageErrorCallback | undefined)); - } - } - } - if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFinishAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableAnalyzer_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableAnalyzerAttribute((this._enableAnalyzer_0_0value as boolean | undefined)); - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableAnalyzerAttribute((undefined as boolean | undefined)); - } - } - } - if (this._analyzerConfig_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._analyzerConfig_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAnalyzerConfigAttribute((this._analyzerConfig_0_0value as ImageAnalyzerConfig | undefined)); - this._analyzerConfig_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._analyzerConfig_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._analyzerConfig_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAnalyzerConfigAttribute((undefined as ImageAnalyzerConfig | undefined)); - } - } - } - if (this._resizable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._resizable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setResizableAttribute((this._resizable_0_0value as ResizableOptions | undefined)); - this._resizable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._resizable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._resizable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setResizableAttribute((undefined as ResizableOptions | undefined)); - } - } - } - if (this._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._privacySensitive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPrivacySensitiveAttribute((this._privacySensitive_0_0value as boolean | undefined)); - this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._privacySensitive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPrivacySensitiveAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enhancedImageQuality_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enhancedImageQuality_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnhancedImageQualityAttribute((this._enhancedImageQuality_0_0value as image.ResolutionQuality | undefined)); - this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnhancedImageQualityAttribute((undefined as image.ResolutionQuality | undefined)); - } - } - } - if (this._orientation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._orientation_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOrientationAttribute((this._orientation_0_0value as ImageRotateOrientation | undefined)); - this._orientation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._orientation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._orientation_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOrientationAttribute((undefined as ImageRotateOrientation | undefined)); - } - } - } - } - mergeModifier(modifier: ImageModifier): void { - super.mergeModifier(modifier) - if (modifier._alt_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alt_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alt(modifier._alt_0_0value); - break; - } - default: { - this.alt((undefined as string | Resource | image.PixelMap | undefined)); - } - } - } - if (modifier._matchTextDirection_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._matchTextDirection_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.matchTextDirection(modifier._matchTextDirection_0_0value); - break; - } - default: { - this.matchTextDirection((undefined as boolean | undefined)); - } - } - } - if (modifier._fitOriginalSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fitOriginalSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fitOriginalSize(modifier._fitOriginalSize_0_0value); - break; - } - default: { - this.fitOriginalSize((undefined as boolean | undefined)); - } - } - } - if (modifier._fillColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fillColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fillColor(modifier._fillColor_0_0value); - break; - } - default: { - this.fillColor((undefined as ResourceColor | ColorContent | ColorMetrics | undefined)); - } - } - } - if (modifier._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._objectFit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.objectFit(modifier._objectFit_0_0value); - break; - } - default: { - this.objectFit((undefined as ImageFit | undefined)); - } - } - } - if (modifier._imageMatrix_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._imageMatrix_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.imageMatrix(modifier._imageMatrix_0_0value); - break; - } - default: { - this.imageMatrix((undefined as matrix4.Matrix4Transit | undefined)); - } - } - } - if (modifier._objectRepeat_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._objectRepeat_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.objectRepeat(modifier._objectRepeat_0_0value); - break; - } - default: { - this.objectRepeat((undefined as ImageRepeat | undefined)); - } - } - } - if (modifier._autoResize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._autoResize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.autoResize(modifier._autoResize_0_0value); - break; - } - default: { - this.autoResize((undefined as boolean | undefined)); - } - } - } - if (modifier._renderMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._renderMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.renderMode(modifier._renderMode_0_0value); - break; - } - default: { - this.renderMode((undefined as ImageRenderMode | undefined)); - } - } - } - if (modifier._dynamicRangeMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._dynamicRangeMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.dynamicRangeMode(modifier._dynamicRangeMode_0_0value); - break; - } - default: { - this.dynamicRangeMode((undefined as DynamicRangeMode | undefined)); - } - } - } - if (modifier._interpolation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._interpolation_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.interpolation(modifier._interpolation_0_0value); - break; - } - default: { - this.interpolation((undefined as ImageInterpolation | undefined)); - } - } - } - if (modifier._sourceSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sourceSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sourceSize(modifier._sourceSize_0_0value); - break; - } - default: { - this.sourceSize((undefined as ImageSourceSize | undefined)); - } - } - } - if (modifier._syncLoad_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._syncLoad_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.syncLoad(modifier._syncLoad_0_0value); - break; - } - default: { - this.syncLoad((undefined as boolean | undefined)); - } - } - } - if (modifier._colorFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._colorFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.colorFilter(modifier._colorFilter_0_0value); - break; - } - default: { - this.colorFilter((undefined as ColorFilter | drawing.ColorFilter | undefined)); - } - } - } - if (modifier._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._copyOption_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.copyOption(modifier._copyOption_0_0value); - break; - } - default: { - this.copyOption((undefined as CopyOptions | 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._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pointLight(modifier._pointLight_0_0value); - break; - } - default: { - this.pointLight((undefined as PointLightStyle | undefined)); - } - } - } - if (modifier._edgeAntialiasing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._edgeAntialiasing_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.edgeAntialiasing(modifier._edgeAntialiasing_0_0value); - break; - } - default: { - this.edgeAntialiasing((undefined as number | undefined)); - } - } - } - if (modifier._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onComplete(modifier._onComplete_0_0value); - break; - } - default: { - this.onComplete((undefined as ImageOnCompleteCallback | undefined)); - } - } - } - if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onError(modifier._onError_0_0value); - break; - } - default: { - this.onError((undefined as ImageErrorCallback | undefined)); - } - } - } - if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFinish(modifier._onFinish_0_0value); - break; - } - default: { - this.onFinish((undefined as (() => void) | undefined)); - } - } - } - if (modifier._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableAnalyzer_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableAnalyzer(modifier._enableAnalyzer_0_0value); - break; - } - default: { - this.enableAnalyzer((undefined as boolean | undefined)); - } - } - } - if (modifier._analyzerConfig_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._analyzerConfig_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.analyzerConfig(modifier._analyzerConfig_0_0value); - break; - } - default: { - this.analyzerConfig((undefined as ImageAnalyzerConfig | undefined)); - } - } - } - if (modifier._resizable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._resizable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.resizable(modifier._resizable_0_0value); - break; - } - default: { - this.resizable((undefined as ResizableOptions | undefined)); - } - } - } - if (modifier._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._privacySensitive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.privacySensitive(modifier._privacySensitive_0_0value); - break; - } - default: { - this.privacySensitive((undefined as boolean | undefined)); - } - } - } - if (modifier._enhancedImageQuality_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enhancedImageQuality_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enhancedImageQuality(modifier._enhancedImageQuality_0_0value); - break; - } - default: { - this.enhancedImageQuality((undefined as image.ResolutionQuality | undefined)); - } - } - } - if (modifier._orientation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._orientation_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.orientation(modifier._orientation_0_0value); - break; - } - default: { - this.orientation((undefined as ImageRotateOrientation | undefined)); - } - } - } - } - alt(value: string | Resource | image.PixelMap | undefined): this { - if (((this._alt_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alt_0_flag = AttributeUpdaterFlag.UPDATE - this._alt_0_0value = value - } else - { - this._alt_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - matchTextDirection(value: boolean | undefined): this { - if (((this._matchTextDirection_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._matchTextDirection_0_0value) !== (value))) - { - this._matchTextDirection_0_flag = AttributeUpdaterFlag.UPDATE - this._matchTextDirection_0_0value = value - } else - { - this._matchTextDirection_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fitOriginalSize(value: boolean | undefined): this { - if (((this._fitOriginalSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fitOriginalSize_0_0value) !== (value))) - { - this._fitOriginalSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fitOriginalSize_0_0value = value - } else - { - this._fitOriginalSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fillColor(value: ResourceColor | ColorContent | ColorMetrics | undefined): this { - if (((this._fillColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fillColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fillColor_0_0value = value - } else - { - this._fillColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - objectFit(value: ImageFit | undefined): this { - if (((this._objectFit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._objectFit_0_flag = AttributeUpdaterFlag.UPDATE - this._objectFit_0_0value = value - } else - { - this._objectFit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - imageMatrix(value: matrix4.Matrix4Transit | undefined): this { - if (((this._imageMatrix_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._imageMatrix_0_flag = AttributeUpdaterFlag.UPDATE - this._imageMatrix_0_0value = value - } else - { - this._imageMatrix_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - objectRepeat(value: ImageRepeat | undefined): this { - if (((this._objectRepeat_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._objectRepeat_0_flag = AttributeUpdaterFlag.UPDATE - this._objectRepeat_0_0value = value - } else - { - this._objectRepeat_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - autoResize(value: boolean | undefined): this { - if (((this._autoResize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoResize_0_0value) !== (value))) - { - this._autoResize_0_flag = AttributeUpdaterFlag.UPDATE - this._autoResize_0_0value = value - } else - { - this._autoResize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - renderMode(value: ImageRenderMode | undefined): this { - if (((this._renderMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._renderMode_0_flag = AttributeUpdaterFlag.UPDATE - this._renderMode_0_0value = value - } else - { - this._renderMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - dynamicRangeMode(value: DynamicRangeMode | undefined): this { - if (((this._dynamicRangeMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.UPDATE - this._dynamicRangeMode_0_0value = value - } else - { - this._dynamicRangeMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - interpolation(value: ImageInterpolation | undefined): this { - if (((this._interpolation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._interpolation_0_flag = AttributeUpdaterFlag.UPDATE - this._interpolation_0_0value = value - } else - { - this._interpolation_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sourceSize(value: ImageSourceSize | undefined): this { - if (((this._sourceSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._sourceSize_0_flag = AttributeUpdaterFlag.UPDATE - this._sourceSize_0_0value = value - } else - { - this._sourceSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - syncLoad(value: boolean | undefined): this { - if (((this._syncLoad_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._syncLoad_0_0value) !== (value))) - { - this._syncLoad_0_flag = AttributeUpdaterFlag.UPDATE - this._syncLoad_0_0value = value - } else - { - this._syncLoad_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - colorFilter(value: ColorFilter | drawing.ColorFilter | undefined): this { - if (((this._colorFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._colorFilter_0_flag = AttributeUpdaterFlag.UPDATE - this._colorFilter_0_0value = value - } else - { - this._colorFilter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - copyOption(value: CopyOptions | undefined): this { - if (((this._copyOption_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._copyOption_0_flag = AttributeUpdaterFlag.UPDATE - this._copyOption_0_0value = value - } else - { - this._copyOption_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 - } - pointLight(value: PointLightStyle | undefined): this { - if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE - this._pointLight_0_0value = value - } else - { - this._pointLight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - edgeAntialiasing(value: number | undefined): this { - if (((this._edgeAntialiasing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._edgeAntialiasing_0_0value) !== (value))) - { - this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.UPDATE - this._edgeAntialiasing_0_0value = value - } else - { - this._edgeAntialiasing_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onComplete(value: ImageOnCompleteCallback | undefined): this { - if (((this._onComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onComplete_0_flag = AttributeUpdaterFlag.UPDATE - this._onComplete_0_0value = value - } else - { - this._onComplete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onError(value: ImageErrorCallback | undefined): this { - if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onError_0_flag = AttributeUpdaterFlag.UPDATE - this._onError_0_0value = value - } else - { - this._onError_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFinish(value: (() => void) | undefined): this { - if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE - this._onFinish_0_0value = value - } else - { - this._onFinish_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableAnalyzer(value: boolean | undefined): this { - if (((this._enableAnalyzer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnalyzer_0_0value) !== (value))) - { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.UPDATE - this._enableAnalyzer_0_0value = value - } else - { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - analyzerConfig(value: ImageAnalyzerConfig | undefined): this { - if (((this._analyzerConfig_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._analyzerConfig_0_flag = AttributeUpdaterFlag.UPDATE - this._analyzerConfig_0_0value = value - } else - { - this._analyzerConfig_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - resizable(value: ResizableOptions | undefined): this { - if (((this._resizable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._resizable_0_flag = AttributeUpdaterFlag.UPDATE - this._resizable_0_0value = value - } else - { - this._resizable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - privacySensitive(value: boolean | undefined): this { - if (((this._privacySensitive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._privacySensitive_0_0value) !== (value))) - { - this._privacySensitive_0_flag = AttributeUpdaterFlag.UPDATE - this._privacySensitive_0_0value = value - } else - { - this._privacySensitive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enhancedImageQuality(value: image.ResolutionQuality | undefined): this { - if (((this._enhancedImageQuality_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.UPDATE - this._enhancedImageQuality_0_0value = value - } else - { - this._enhancedImageQuality_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - orientation(value: ImageRotateOrientation | undefined): this { - if (((this._orientation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._orientation_0_flag = AttributeUpdaterFlag.UPDATE - this._orientation_0_0value = value - } else - { - this._orientation_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ColorContent_serializer { public static write(buffer: SerializerBase, value: ColorContent): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/imageAnimator.ets b/arkoala-arkts/arkui/generated/component/imageAnimator.ets similarity index 55% rename from arkoala-arkts/arkui/src/component/imageAnimator.ets rename to arkoala-arkts/arkui/generated/component/imageAnimator.ets index 6cf3fc499a4adc5ba1374b46f220849ea1b272c9..5480e6ec7d9ffd2200ae8668ab02428c8aa9045f 100644 --- a/arkoala-arkts/arkui/src/component/imageAnimator.ets +++ b/arkoala-arkts/arkui/generated/component/imageAnimator.ets @@ -21,17 +21,17 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { AnimationStatus, FillMode } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" +import { image, image_PixelMap_serializer } from "./../framework/ohos.multimedia.image" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkImageAnimatorPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -461,593 +461,6 @@ export function ImageAnimator( }) } -export class ImageAnimatorModifier extends CommonMethodModifier implements ImageAnimatorAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _images_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _images_0_0value?: Array | undefined - _state_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _state_0_0value?: AnimationStatus | undefined - _duration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _duration_0_0value?: number | undefined - _reverse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _reverse_0_0value?: boolean | undefined - _fixedSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fixedSize_0_0value?: boolean | undefined - _fillMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fillMode_0_0value?: FillMode | undefined - _iterations_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _iterations_0_0value?: number | undefined - _monitorInvisibleArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _monitorInvisibleArea_0_0value?: boolean | undefined - _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onStart_0_0value?: (() => void) | undefined - _onPause_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPause_0_0value?: (() => void) | undefined - _onRepeat_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRepeat_0_0value?: (() => void) | undefined - _onCancel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onCancel_0_0value?: (() => void) | undefined - _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFinish_0_0value?: (() => void) | undefined - applyModifierPatch(peer: ArkImageAnimatorPeer): void { - super.applyModifierPatch(peer) - if (this._images_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._images_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setImagesAttribute((this._images_0_0value as Array | undefined)); - this._images_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._images_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._images_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setImagesAttribute((undefined as Array | undefined)); - } - } - } - if (this._state_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._state_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStateAttribute((this._state_0_0value as AnimationStatus | undefined)); - this._state_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._state_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._state_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStateAttribute((undefined as AnimationStatus | undefined)); - } - } - } - if (this._duration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._duration_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDurationAttribute((this._duration_0_0value as number | undefined)); - this._duration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._duration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._duration_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDurationAttribute((undefined as number | undefined)); - } - } - } - if (this._reverse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._reverse_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setReverseAttribute((this._reverse_0_0value as boolean | undefined)); - this._reverse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._reverse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._reverse_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setReverseAttribute((undefined as boolean | undefined)); - } - } - } - if (this._fixedSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fixedSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFixedSizeAttribute((this._fixedSize_0_0value as boolean | undefined)); - this._fixedSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fixedSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fixedSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFixedSizeAttribute((undefined as boolean | undefined)); - } - } - } - if (this._fillMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fillMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFillModeAttribute((this._fillMode_0_0value as FillMode | undefined)); - this._fillMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fillMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fillMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFillModeAttribute((undefined as FillMode | undefined)); - } - } - } - if (this._iterations_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._iterations_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIterationsAttribute((this._iterations_0_0value as number | undefined)); - this._iterations_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._iterations_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._iterations_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIterationsAttribute((undefined as number | undefined)); - } - } - } - if (this._monitorInvisibleArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._monitorInvisibleArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMonitorInvisibleAreaAttribute((this._monitorInvisibleArea_0_0value as boolean | undefined)); - this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMonitorInvisibleAreaAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnStartAttribute((this._onStart_0_0value as (() => void) | undefined)); - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnStartAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onPause_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPause_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPauseAttribute((this._onPause_0_0value as (() => void) | undefined)); - this._onPause_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPause_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPause_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPauseAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onRepeat_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRepeat_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRepeatAttribute((this._onRepeat_0_0value as (() => void) | undefined)); - this._onRepeat_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRepeat_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRepeat_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRepeatAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onCancel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onCancel_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCancelAttribute((this._onCancel_0_0value as (() => void) | undefined)); - this._onCancel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onCancel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onCancel_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCancelAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFinishAttribute((undefined as (() => void) | undefined)); - } - } - } - } - mergeModifier(modifier: ImageAnimatorModifier): void { - super.mergeModifier(modifier) - if (modifier._images_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._images_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.images(modifier._images_0_0value); - break; - } - default: { - this.images((undefined as Array | undefined)); - } - } - } - if (modifier._state_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._state_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.state(modifier._state_0_0value); - break; - } - default: { - this.state((undefined as AnimationStatus | undefined)); - } - } - } - if (modifier._duration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._duration_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.duration(modifier._duration_0_0value); - break; - } - default: { - this.duration((undefined as number | undefined)); - } - } - } - if (modifier._reverse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._reverse_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.reverse(modifier._reverse_0_0value); - break; - } - default: { - this.reverse((undefined as boolean | undefined)); - } - } - } - if (modifier._fixedSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fixedSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fixedSize(modifier._fixedSize_0_0value); - break; - } - default: { - this.fixedSize((undefined as boolean | undefined)); - } - } - } - if (modifier._fillMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fillMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fillMode(modifier._fillMode_0_0value); - break; - } - default: { - this.fillMode((undefined as FillMode | undefined)); - } - } - } - if (modifier._iterations_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._iterations_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.iterations(modifier._iterations_0_0value); - break; - } - default: { - this.iterations((undefined as number | undefined)); - } - } - } - if (modifier._monitorInvisibleArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._monitorInvisibleArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.monitorInvisibleArea(modifier._monitorInvisibleArea_0_0value); - break; - } - default: { - this.monitorInvisibleArea((undefined as boolean | undefined)); - } - } - } - if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onStart(modifier._onStart_0_0value); - break; - } - default: { - this.onStart((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onPause_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPause_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPause(modifier._onPause_0_0value); - break; - } - default: { - this.onPause((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onRepeat_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRepeat_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRepeat(modifier._onRepeat_0_0value); - break; - } - default: { - this.onRepeat((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onCancel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onCancel_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onCancel(modifier._onCancel_0_0value); - break; - } - default: { - this.onCancel((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFinish(modifier._onFinish_0_0value); - break; - } - default: { - this.onFinish((undefined as (() => void) | undefined)); - } - } - } - } - images(value: Array | undefined): this { - if (((this._images_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._images_0_flag = AttributeUpdaterFlag.UPDATE - this._images_0_0value = value - } else - { - this._images_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - state(value: AnimationStatus | undefined): this { - if (((this._state_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._state_0_flag = AttributeUpdaterFlag.UPDATE - this._state_0_0value = value - } else - { - this._state_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - duration(value: number | undefined): this { - if (((this._duration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._duration_0_0value) !== (value))) - { - this._duration_0_flag = AttributeUpdaterFlag.UPDATE - this._duration_0_0value = value - } else - { - this._duration_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - reverse(value: boolean | undefined): this { - if (((this._reverse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._reverse_0_0value) !== (value))) - { - this._reverse_0_flag = AttributeUpdaterFlag.UPDATE - this._reverse_0_0value = value - } else - { - this._reverse_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fixedSize(value: boolean | undefined): this { - if (((this._fixedSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fixedSize_0_0value) !== (value))) - { - this._fixedSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fixedSize_0_0value = value - } else - { - this._fixedSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fillMode(value: FillMode | undefined): this { - if (((this._fillMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fillMode_0_flag = AttributeUpdaterFlag.UPDATE - this._fillMode_0_0value = value - } else - { - this._fillMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - iterations(value: number | undefined): this { - if (((this._iterations_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._iterations_0_0value) !== (value))) - { - this._iterations_0_flag = AttributeUpdaterFlag.UPDATE - this._iterations_0_0value = value - } else - { - this._iterations_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - monitorInvisibleArea(value: boolean | undefined): this { - if (((this._monitorInvisibleArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._monitorInvisibleArea_0_0value) !== (value))) - { - this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.UPDATE - this._monitorInvisibleArea_0_0value = value - } else - { - this._monitorInvisibleArea_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onStart(value: (() => void) | undefined): this { - if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onStart_0_0value = value - } else - { - this._onStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPause(value: (() => void) | undefined): this { - if (((this._onPause_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPause_0_flag = AttributeUpdaterFlag.UPDATE - this._onPause_0_0value = value - } else - { - this._onPause_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onRepeat(value: (() => void) | undefined): this { - if (((this._onRepeat_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRepeat_0_flag = AttributeUpdaterFlag.UPDATE - this._onRepeat_0_0value = value - } else - { - this._onRepeat_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onCancel(value: (() => void) | undefined): this { - if (((this._onCancel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onCancel_0_flag = AttributeUpdaterFlag.UPDATE - this._onCancel_0_0value = value - } else - { - this._onCancel_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFinish(value: (() => void) | undefined): this { - if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE - this._onFinish_0_0value = value - } else - { - this._onFinish_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ImageFrameInfo_serializer { public static write(buffer: SerializerBase, value: ImageFrameInfo): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/imageCommon.ets b/arkoala-arkts/arkui/generated/component/imageCommon.ets similarity index 98% rename from arkoala-arkts/arkui/src/component/imageCommon.ets rename to arkoala-arkts/arkui/generated/component/imageCommon.ets index 12f6faca4472183fe3a2b8c22cecb0614f9b1f33..b375e0d2b8fd7189550dcefd6f870e6af017b611 100644 --- a/arkoala-arkts/arkui/src/component/imageCommon.ets +++ b/arkoala-arkts/arkui/generated/component/imageCommon.ets @@ -21,7 +21,8 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" export class ImageAnalyzerControllerInternal { public static fromPtr(ptr: KPointer): ImageAnalyzerController { return new ImageAnalyzerController(ptr) diff --git a/arkoala-arkts/arkui/src/component/imageSpan.ets b/arkoala-arkts/arkui/generated/component/imageSpan.ets similarity index 57% rename from arkoala-arkts/arkui/src/component/imageSpan.ets rename to arkoala-arkts/arkui/generated/component/imageSpan.ets index 9d36fb55a4e9fc319cc49f30f75b1d741d2d6c8a..66bc28a32412e8657f9bd8587db7ba6a4ae2d8a0 100644 --- a/arkoala-arkts/arkui/src/component/imageSpan.ets +++ b/arkoala-arkts/arkui/generated/component/imageSpan.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 { image_PixelMap_serializer, image } from "./../generated/ohos.multimedia.image" +import { Resource_serializer } 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" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkBaseSpanPeer, BaseSpan, ArkBaseSpanComponent, ArkBaseSpanStyle, BaseSpanModifier } from "./span" +import { ArkBaseSpanPeer, BaseSpan, ArkBaseSpanComponent, ArkBaseSpanStyle } from "./span" import { ImageSpanAlignment, ImageFit } from "./enums" import { ImageErrorCallback, ImageError } from "./image" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Resource } from "global.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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkImageSpanPeer extends ArkBaseSpanPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -304,285 +304,6 @@ export function ImageSpan( }) } -export class ImageSpanModifier extends BaseSpanModifier implements ImageSpanAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _verticalAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _verticalAlign_0_0value?: ImageSpanAlignment | undefined - _colorFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _colorFilter_0_0value?: ColorFilter | drawing.ColorFilter | undefined - _objectFit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _objectFit_0_0value?: ImageFit | undefined - _onComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onComplete_0_0value?: ImageCompleteCallback | undefined - _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onError_0_0value?: ImageErrorCallback | undefined - _alt_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alt_0_0value?: image.PixelMap | undefined - applyModifierPatch(peer: ArkImageSpanPeer): void { - super.applyModifierPatch(peer) - if (this._verticalAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._verticalAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setVerticalAlignAttribute((this._verticalAlign_0_0value as ImageSpanAlignment | undefined)); - this._verticalAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._verticalAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._verticalAlign_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setVerticalAlignAttribute((undefined as ImageSpanAlignment | undefined)); - } - } - } - if (this._colorFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._colorFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorFilterAttribute((this._colorFilter_0_0value as ColorFilter | drawing.ColorFilter | undefined)); - this._colorFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._colorFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._colorFilter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorFilterAttribute((undefined as ColorFilter | drawing.ColorFilter | undefined)); - } - } - } - if (this._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._objectFit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setObjectFitAttribute((this._objectFit_0_0value as ImageFit | undefined)); - this._objectFit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._objectFit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._objectFit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setObjectFitAttribute((undefined as ImageFit | undefined)); - } - } - } - if (this._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCompleteAttribute((this._onComplete_0_0value as ImageCompleteCallback | undefined)); - this._onComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onComplete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCompleteAttribute((undefined as ImageCompleteCallback | undefined)); - } - } - } - if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnErrorAttribute((this._onError_0_0value as ImageErrorCallback | undefined)); - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onError_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnErrorAttribute((undefined as ImageErrorCallback | undefined)); - } - } - } - if (this._alt_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alt_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAltAttribute((this._alt_0_0value as image.PixelMap | undefined)); - this._alt_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alt_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alt_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAltAttribute((undefined as image.PixelMap | undefined)); - } - } - } - } - mergeModifier(modifier: ImageSpanModifier): void { - super.mergeModifier(modifier) - if (modifier._verticalAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._verticalAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.verticalAlign(modifier._verticalAlign_0_0value); - break; - } - default: { - this.verticalAlign((undefined as ImageSpanAlignment | undefined)); - } - } - } - if (modifier._colorFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._colorFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.colorFilter(modifier._colorFilter_0_0value); - break; - } - default: { - this.colorFilter((undefined as ColorFilter | drawing.ColorFilter | undefined)); - } - } - } - if (modifier._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._objectFit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.objectFit(modifier._objectFit_0_0value); - break; - } - default: { - this.objectFit((undefined as ImageFit | undefined)); - } - } - } - if (modifier._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onComplete(modifier._onComplete_0_0value); - break; - } - default: { - this.onComplete((undefined as ImageCompleteCallback | undefined)); - } - } - } - if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onError(modifier._onError_0_0value); - break; - } - default: { - this.onError((undefined as ImageErrorCallback | undefined)); - } - } - } - if (modifier._alt_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alt_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alt(modifier._alt_0_0value); - break; - } - default: { - this.alt((undefined as image.PixelMap | undefined)); - } - } - } - } - verticalAlign(value: ImageSpanAlignment | undefined): this { - if (((this._verticalAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._verticalAlign_0_flag = AttributeUpdaterFlag.UPDATE - this._verticalAlign_0_0value = value - } else - { - this._verticalAlign_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - colorFilter(value: ColorFilter | drawing.ColorFilter | undefined): this { - if (((this._colorFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._colorFilter_0_flag = AttributeUpdaterFlag.UPDATE - this._colorFilter_0_0value = value - } else - { - this._colorFilter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - objectFit(value: ImageFit | undefined): this { - if (((this._objectFit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._objectFit_0_flag = AttributeUpdaterFlag.UPDATE - this._objectFit_0_0value = value - } else - { - this._objectFit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onComplete(value: ImageCompleteCallback | undefined): this { - if (((this._onComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onComplete_0_flag = AttributeUpdaterFlag.UPDATE - this._onComplete_0_0value = value - } else - { - this._onComplete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onError(value: ImageErrorCallback | undefined): this { - if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onError_0_flag = AttributeUpdaterFlag.UPDATE - this._onError_0_0value = value - } else - { - this._onError_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - alt(value: image.PixelMap | undefined): this { - if (((this._alt_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alt_0_flag = AttributeUpdaterFlag.UPDATE - this._alt_0_0value = value - } else - { - this._alt_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ImageLoadResult_serializer { public static write(buffer: SerializerBase, value: ImageLoadResult): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/indicatorcomponent.ets b/arkoala-arkts/arkui/generated/component/indicatorcomponent.ets similarity index 56% rename from arkoala-arkts/arkui/src/component/indicatorcomponent.ets rename to arkoala-arkts/arkui/generated/component/indicatorcomponent.ets index 5927e51ad48f586abfb944eb152859dcb3f0a0cc..e253d5826ab47d48dea3275ee58c00f65f9b3b50 100644 --- a/arkoala-arkts/arkui/src/component/indicatorcomponent.ets +++ b/arkoala-arkts/arkui/generated/component/indicatorcomponent.ets @@ -23,13 +23,12 @@ import { CallbackTransformer } from "./../CallbackTransformer" import { DotIndicator_serializer, DigitIndicator_serializer, DotIndicator, DigitIndicator } from "./swiper" 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class IndicatorComponentControllerInternal { public static fromPtr(ptr: KPointer): IndicatorComponentController { return new IndicatorComponentController(ptr) @@ -332,285 +331,6 @@ export function IndicatorComponent( }) } -export class IndicatorComponentModifier extends CommonMethodModifier implements IndicatorComponentAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _initialIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _initialIndex_0_0value?: number | undefined - _count_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _count_0_0value?: number | undefined - _style_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _style_0_0value?: DotIndicator | DigitIndicator | undefined - _loop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _loop_0_0value?: boolean | undefined - _vertical_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _vertical_0_0value?: boolean | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: ((value0: number) => void) | undefined - applyModifierPatch(peer: ArkIndicatorComponentPeer): void { - super.applyModifierPatch(peer) - if (this._initialIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._initialIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setInitialIndexAttribute((this._initialIndex_0_0value as number | undefined)); - this._initialIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._initialIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._initialIndex_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setInitialIndexAttribute((undefined as number | undefined)); - } - } - } - if (this._count_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._count_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCountAttribute((this._count_0_0value as number | undefined)); - this._count_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._count_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._count_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCountAttribute((undefined as number | undefined)); - } - } - } - if (this._style_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._style_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStyleAttribute((this._style_0_0value as DotIndicator | DigitIndicator | undefined)); - this._style_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._style_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._style_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStyleAttribute((undefined as DotIndicator | DigitIndicator | undefined)); - } - } - } - if (this._loop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._loop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLoopAttribute((this._loop_0_0value as boolean | undefined)); - this._loop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._loop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._loop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLoopAttribute((undefined as boolean | undefined)); - } - } - } - if (this._vertical_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._vertical_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setVerticalAttribute((this._vertical_0_0value as boolean | undefined)); - this._vertical_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._vertical_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._vertical_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setVerticalAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: number) => void) | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - } - mergeModifier(modifier: IndicatorComponentModifier): void { - super.mergeModifier(modifier) - if (modifier._initialIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._initialIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.initialIndex(modifier._initialIndex_0_0value); - break; - } - default: { - this.initialIndex((undefined as number | undefined)); - } - } - } - if (modifier._count_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._count_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.count(modifier._count_0_0value); - break; - } - default: { - this.count((undefined as number | undefined)); - } - } - } - if (modifier._style_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._style_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.style(modifier._style_0_0value); - break; - } - default: { - this.style((undefined as DotIndicator | DigitIndicator | undefined)); - } - } - } - if (modifier._loop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._loop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.loop(modifier._loop_0_0value); - break; - } - default: { - this.loop((undefined as boolean | undefined)); - } - } - } - if (modifier._vertical_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._vertical_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.vertical(modifier._vertical_0_0value); - break; - } - default: { - this.vertical((undefined as boolean | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as ((value0: number) => void) | undefined)); - } - } - } - } - initialIndex(value: number | undefined): this { - if (((this._initialIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._initialIndex_0_0value) !== (value))) - { - this._initialIndex_0_flag = AttributeUpdaterFlag.UPDATE - this._initialIndex_0_0value = value - } else - { - this._initialIndex_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - count(value: number | undefined): this { - if (((this._count_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._count_0_0value) !== (value))) - { - this._count_0_flag = AttributeUpdaterFlag.UPDATE - this._count_0_0value = value - } else - { - this._count_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - style(value: DotIndicator | DigitIndicator | undefined): this { - if (((this._style_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._style_0_flag = AttributeUpdaterFlag.UPDATE - this._style_0_0value = value - } else - { - this._style_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - loop(value: boolean | undefined): this { - if (((this._loop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._loop_0_0value) !== (value))) - { - this._loop_0_flag = AttributeUpdaterFlag.UPDATE - this._loop_0_0value = value - } else - { - this._loop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - vertical(value: boolean | undefined): this { - if (((this._vertical_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._vertical_0_0value) !== (value))) - { - this._vertical_0_flag = AttributeUpdaterFlag.UPDATE - this._vertical_0_0value = value - } else - { - this._vertical_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: ((value0: number) => void) | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class IndicatorComponentController_serializer { public static write(buffer: SerializerBase, value: IndicatorComponentController): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/inspector.ets b/arkoala-arkts/arkui/generated/component/inspector.ets similarity index 91% rename from arkoala-arkts/arkui/src/component/inspector.ets rename to arkoala-arkts/arkui/generated/component/inspector.ets index 86cdcdd9cce90316169372c98e48ec340b4e0b60..7790279fa774a9cb7d014789351d8fc220372fbb 100644 --- a/arkoala-arkts/arkui/src/component/inspector.ets +++ b/arkoala-arkts/arkui/generated/component/inspector.ets @@ -18,9 +18,9 @@ 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" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export function setAppBgColor(value: string): void { GlobalScope.setAppBgColor(value) } diff --git a/arkoala-arkts/arkui/src/component/lazyForEach.ets b/arkoala-arkts/arkui/generated/component/lazyForEach.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/lazyForEach.ets rename to arkoala-arkts/arkui/generated/component/lazyForEach.ets index 14292484d760ec8e06e0a6097ec1518127f80629..fab5135763d3559326aee296dad7dad2449e401c 100644 --- a/arkoala-arkts/arkui/src/component/lazyForEach.ets +++ b/arkoala-arkts/arkui/generated/component/lazyForEach.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum DataOperationType { ADD = "'add'", DELETE = "'delete'", diff --git a/arkoala-arkts/arkui/src/component/lazyGridLayout.ets b/arkoala-arkts/arkui/generated/component/lazyGridLayout.ets similarity index 93% rename from arkoala-arkts/arkui/src/component/lazyGridLayout.ets rename to arkoala-arkts/arkui/generated/component/lazyGridLayout.ets index 75ded057c661a17e36d6c69434ab84098f5d0f3f..5a4cee03cf1e8a5322c8c6353e5835c33281b0cd 100644 --- a/arkoala-arkts/arkui/src/component/lazyGridLayout.ets +++ b/arkoala-arkts/arkui/generated/component/lazyGridLayout.ets @@ -19,4 +19,4 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" diff --git a/arkoala-arkts/arkui/src/component/line.ets b/arkoala-arkts/arkui/generated/component/line.ets similarity index 69% rename from arkoala-arkts/arkui/src/component/line.ets rename to arkoala-arkts/arkui/generated/component/line.ets index 29af3d08a510498691405835b6bc0e535e375d9b..4eb6a0921af52bbca9c3e1928e79832f2649bf87 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 } 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 { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { Length } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkLinePeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -221,109 +221,6 @@ export function Line( }) } -export class LineModifier extends CommonShapeMethodModifier implements LineAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _startPoint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _startPoint_0_0value?: ShapePoint | undefined - _endPoint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _endPoint_0_0value?: ShapePoint | undefined - applyModifierPatch(peer: ArkLinePeer): void { - super.applyModifierPatch(peer) - if (this._startPoint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._startPoint_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStartPointAttribute((this._startPoint_0_0value as ShapePoint | undefined)); - this._startPoint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._startPoint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._startPoint_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStartPointAttribute((undefined as ShapePoint | undefined)); - } - } - } - if (this._endPoint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._endPoint_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEndPointAttribute((this._endPoint_0_0value as ShapePoint | undefined)); - this._endPoint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._endPoint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._endPoint_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEndPointAttribute((undefined as ShapePoint | undefined)); - } - } - } - } - mergeModifier(modifier: LineModifier): void { - super.mergeModifier(modifier) - if (modifier._startPoint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._startPoint_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.startPoint(modifier._startPoint_0_0value); - break; - } - default: { - this.startPoint((undefined as ShapePoint | undefined)); - } - } - } - if (modifier._endPoint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._endPoint_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.endPoint(modifier._endPoint_0_0value); - break; - } - default: { - this.endPoint((undefined as ShapePoint | undefined)); - } - } - } - } - startPoint(value: ShapePoint | undefined): this { - if (((this._startPoint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._startPoint_0_flag = AttributeUpdaterFlag.UPDATE - this._startPoint_0_0value = value - } else - { - this._startPoint_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - endPoint(value: ShapePoint | undefined): this { - if (((this._endPoint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._endPoint_0_flag = AttributeUpdaterFlag.UPDATE - this._endPoint_0_0value = value - } else - { - this._endPoint_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class LineOptions_serializer { public static write(buffer: SerializerBase, value: LineOptions): void { } diff --git a/arkoala-arkts/arkui/src/component/linearindicator.ets b/arkoala-arkts/arkui/generated/component/linearindicator.ets similarity index 74% rename from arkoala-arkts/arkui/src/component/linearindicator.ets rename to arkoala-arkts/arkui/generated/component/linearindicator.ets index c0fced8374415a5816d91240b201f1d38f00eb11..1691da3a09a4f512811ee8a12f5cf40401841f88 100644 --- a/arkoala-arkts/arkui/src/component/linearindicator.ets +++ b/arkoala-arkts/arkui/generated/component/linearindicator.ets @@ -22,14 +22,13 @@ import { unsafeCast, int32, int64, float32 } from "@koalaui/common" 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetrics, ColorMetrics, LengthMetrics_serializer, ColorMetrics_serializer } from "./../Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class LinearIndicatorControllerInternal { public static fromPtr(ptr: KPointer): LinearIndicatorController { return new LinearIndicatorController(ptr) @@ -271,153 +270,6 @@ export function LinearIndicator( }) } -export class LinearIndicatorModifier extends CommonMethodModifier implements LinearIndicatorAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _indicatorStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _indicatorStyle_0_0value?: LinearIndicatorStyle | undefined - _indicatorLoop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _indicatorLoop_0_0value?: boolean | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: OnLinearIndicatorChangeCallback | undefined - applyModifierPatch(peer: ArkLinearIndicatorPeer): void { - super.applyModifierPatch(peer) - if (this._indicatorStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._indicatorStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIndicatorStyleAttribute((this._indicatorStyle_0_0value as LinearIndicatorStyle | undefined)); - this._indicatorStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._indicatorStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._indicatorStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIndicatorStyleAttribute((undefined as LinearIndicatorStyle | undefined)); - } - } - } - if (this._indicatorLoop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._indicatorLoop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIndicatorLoopAttribute((this._indicatorLoop_0_0value as boolean | undefined)); - this._indicatorLoop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._indicatorLoop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._indicatorLoop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIndicatorLoopAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as OnLinearIndicatorChangeCallback | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as OnLinearIndicatorChangeCallback | undefined)); - } - } - } - } - mergeModifier(modifier: LinearIndicatorModifier): void { - super.mergeModifier(modifier) - if (modifier._indicatorStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._indicatorStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.indicatorStyle(modifier._indicatorStyle_0_0value); - break; - } - default: { - this.indicatorStyle((undefined as LinearIndicatorStyle | undefined)); - } - } - } - if (modifier._indicatorLoop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._indicatorLoop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.indicatorLoop(modifier._indicatorLoop_0_0value); - break; - } - default: { - this.indicatorLoop((undefined as boolean | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as OnLinearIndicatorChangeCallback | undefined)); - } - } - } - } - indicatorStyle(value: LinearIndicatorStyle | undefined): this { - if (((this._indicatorStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._indicatorStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._indicatorStyle_0_0value = value - } else - { - this._indicatorStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - indicatorLoop(value: boolean | undefined): this { - if (((this._indicatorLoop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._indicatorLoop_0_0value) !== (value))) - { - this._indicatorLoop_0_flag = AttributeUpdaterFlag.UPDATE - this._indicatorLoop_0_0value = value - } else - { - this._indicatorLoop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: OnLinearIndicatorChangeCallback | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class LinearIndicatorController_serializer { public static write(buffer: SerializerBase, value: LinearIndicatorController): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/list.ets b/arkoala-arkts/arkui/generated/component/list.ets similarity index 57% rename from arkoala-arkts/arkui/src/component/list.ets rename to arkoala-arkts/arkui/generated/component/list.ets index 3fc8aafa2ebcc94f711a60346171c92fcf7ede28..c31bf5482237e8d70cf8a8e402d1b21cc46886c1 100644 --- a/arkoala-arkts/arkui/src/component/list.ets +++ b/arkoala-arkts/arkui/generated/component/list.ets @@ -17,22 +17,22 @@ // 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 { ChildrenMainSize_serializer, ArkScrollableCommonMethodPeer, ScrollableCommonMethod, ChildrenMainSize, OnItemDragStartCallback, ItemDragInfo, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, ScrollableCommonMethodModifier, CommonMethodModifier, RectResult_serializer, RectResult } from "./common" +import { ChildrenMainSize_serializer, ArkScrollableCommonMethodPeer, ScrollableCommonMethod, ChildrenMainSize, OnItemDragStartCallback, ItemDragInfo, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, RectResult_serializer, RectResult } from "./common" import { LengthConstrain_serializer, LengthConstrain, Dimension, Length, ResourceColor } from "./units" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer } 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, AttributeUpdater, extractors } from "#handwritten" +import { Resource } from "global.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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkListPeer extends ArkScrollableCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -941,1213 +941,6 @@ export function List( }) } -export class ListModifier extends ScrollableCommonMethodModifier implements ListAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _alignListItem_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alignListItem_0_0value?: ListItemAlign | undefined - _listDirection_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _listDirection_0_0value?: Axis | undefined - _contentStartOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _contentStartOffset_0_0value?: number | undefined - _contentEndOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _contentEndOffset_0_0value?: number | undefined - _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _divider_0_0value?: ListDividerOptions | undefined - _multiSelectable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _multiSelectable_0_0value?: boolean | undefined - _cachedCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cachedCount_0_0value?: number | undefined - _chainAnimation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _chainAnimation_0_0value?: boolean | undefined - _chainAnimationOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _chainAnimationOptions_0_0value?: ChainAnimationOptions | undefined - _sticky_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sticky_0_0value?: StickyStyle | undefined - _scrollSnapAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _scrollSnapAlign_0_0value?: ScrollSnapAlign | undefined - _childrenMainSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _childrenMainSize_0_0value?: ChildrenMainSize | undefined - _maintainVisibleContentPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maintainVisibleContentPosition_0_0value?: boolean | undefined - _stackFromEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stackFromEnd_0_0value?: boolean | undefined - _onScrollIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollIndex_0_0value?: ((start: number,end: number,center: number) => void) | undefined - _onScrollVisibleContentChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollVisibleContentChange_0_0value?: OnScrollVisibleContentChangeCallback | undefined - _onItemMove_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onItemMove_0_0value?: ((from: number,to: number) => boolean) | undefined - _onItemDragStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onItemDragStart_0_0value?: OnItemDragStartCallback | undefined - _onItemDragEnter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onItemDragEnter_0_0value?: ((event: ItemDragInfo) => void) | undefined - _onItemDragMove_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onItemDragMove_0_0value?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined - _onItemDragLeave_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onItemDragLeave_0_0value?: ((event: ItemDragInfo,itemIndex: number) => void) | undefined - _onItemDrop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onItemDrop_0_0value?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined - _onScrollFrameBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollFrameBegin_0_0value?: OnScrollFrameBeginCallback | undefined - _onWillScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillScroll_0_0value?: OnWillScrollCallback | undefined - _onDidScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDidScroll_0_0value?: OnScrollCallback | undefined - _lanes_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _lanes_0_0value?: number | LengthConstrain | undefined - _lanes_0_1value?: Dimension | undefined - _cachedCount_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cachedCount_1_0value?: number | undefined - _cachedCount_1_1value?: boolean | undefined - applyModifierPatch(peer: ArkListPeer): void { - super.applyModifierPatch(peer) - if (this._alignListItem_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alignListItem_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignListItemAttribute((this._alignListItem_0_0value as ListItemAlign | undefined)); - this._alignListItem_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alignListItem_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alignListItem_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignListItemAttribute((undefined as ListItemAlign | undefined)); - } - } - } - if (this._listDirection_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._listDirection_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setListDirectionAttribute((this._listDirection_0_0value as Axis | undefined)); - this._listDirection_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._listDirection_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._listDirection_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setListDirectionAttribute((undefined as Axis | undefined)); - } - } - } - if (this._contentStartOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._contentStartOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setContentStartOffsetAttribute((this._contentStartOffset_0_0value as number | undefined)); - this._contentStartOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._contentStartOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._contentStartOffset_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setContentStartOffsetAttribute((undefined as number | undefined)); - } - } - } - if (this._contentEndOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._contentEndOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setContentEndOffsetAttribute((this._contentEndOffset_0_0value as number | undefined)); - this._contentEndOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._contentEndOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._contentEndOffset_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setContentEndOffsetAttribute((undefined as number | undefined)); - } - } - } - if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDividerAttribute((this._divider_0_0value as ListDividerOptions | undefined)); - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._divider_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDividerAttribute((undefined as ListDividerOptions | undefined)); - } - } - } - if (this._multiSelectable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._multiSelectable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMultiSelectableAttribute((this._multiSelectable_0_0value as boolean | undefined)); - this._multiSelectable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._multiSelectable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._multiSelectable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMultiSelectableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cachedCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCachedCount0Attribute((this._cachedCount_0_0value as number | undefined)); - this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cachedCount_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCachedCount0Attribute((undefined as number | undefined)); - } - } - } - if (this._chainAnimation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._chainAnimation_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setChainAnimationAttribute((this._chainAnimation_0_0value as boolean | undefined)); - this._chainAnimation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._chainAnimation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._chainAnimation_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setChainAnimationAttribute((undefined as boolean | undefined)); - } - } - } - if (this._chainAnimationOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._chainAnimationOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setChainAnimationOptionsAttribute((this._chainAnimationOptions_0_0value as ChainAnimationOptions | undefined)); - this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setChainAnimationOptionsAttribute((undefined as ChainAnimationOptions | undefined)); - } - } - } - if (this._sticky_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sticky_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStickyAttribute((this._sticky_0_0value as StickyStyle | undefined)); - this._sticky_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sticky_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sticky_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStickyAttribute((undefined as StickyStyle | undefined)); - } - } - } - if (this._scrollSnapAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._scrollSnapAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setScrollSnapAlignAttribute((this._scrollSnapAlign_0_0value as ScrollSnapAlign | undefined)); - this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setScrollSnapAlignAttribute((undefined as ScrollSnapAlign | undefined)); - } - } - } - if (this._childrenMainSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._childrenMainSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setChildrenMainSizeAttribute((this._childrenMainSize_0_0value as ChildrenMainSize | undefined)); - this._childrenMainSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._childrenMainSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._childrenMainSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setChildrenMainSizeAttribute((undefined as ChildrenMainSize | undefined)); - } - } - } - if (this._maintainVisibleContentPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maintainVisibleContentPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaintainVisibleContentPositionAttribute((this._maintainVisibleContentPosition_0_0value as boolean | undefined)); - this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaintainVisibleContentPositionAttribute((undefined as boolean | undefined)); - } - } - } - if (this._stackFromEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stackFromEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStackFromEndAttribute((this._stackFromEnd_0_0value as boolean | undefined)); - this._stackFromEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stackFromEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stackFromEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStackFromEndAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onScrollIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollIndexAttribute((this._onScrollIndex_0_0value as ((start: number,end: number,center: number) => void) | undefined)); - this._onScrollIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScrollIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScrollIndex_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollIndexAttribute((undefined as ((start: number,end: number,center: number) => void) | undefined)); - } - } - } - if (this._onScrollVisibleContentChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollVisibleContentChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollVisibleContentChangeAttribute((this._onScrollVisibleContentChange_0_0value as OnScrollVisibleContentChangeCallback | undefined)); - this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollVisibleContentChangeAttribute((undefined as OnScrollVisibleContentChangeCallback | undefined)); - } - } - } - if (this._onItemMove_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onItemMove_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnItemMoveAttribute((this._onItemMove_0_0value as ((from: number,to: number) => boolean) | undefined)); - this._onItemMove_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onItemMove_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onItemMove_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnItemMoveAttribute((undefined as ((from: number,to: number) => boolean) | undefined)); - } - } - } - if (this._onItemDragStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onItemDragStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnItemDragStartAttribute((this._onItemDragStart_0_0value as OnItemDragStartCallback | undefined)); - this._onItemDragStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onItemDragStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onItemDragStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnItemDragStartAttribute((undefined as OnItemDragStartCallback | undefined)); - } - } - } - if (this._onItemDragEnter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onItemDragEnter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnItemDragEnterAttribute((this._onItemDragEnter_0_0value as ((event: ItemDragInfo) => void) | undefined)); - this._onItemDragEnter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onItemDragEnter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onItemDragEnter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnItemDragEnterAttribute((undefined as ((event: ItemDragInfo) => void) | undefined)); - } - } - } - if (this._onItemDragMove_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onItemDragMove_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnItemDragMoveAttribute((this._onItemDragMove_0_0value as ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined)); - this._onItemDragMove_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onItemDragMove_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onItemDragMove_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnItemDragMoveAttribute((undefined as ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined)); - } - } - } - if (this._onItemDragLeave_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onItemDragLeave_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnItemDragLeaveAttribute((this._onItemDragLeave_0_0value as ((event: ItemDragInfo,itemIndex: number) => void) | undefined)); - this._onItemDragLeave_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onItemDragLeave_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onItemDragLeave_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnItemDragLeaveAttribute((undefined as ((event: ItemDragInfo,itemIndex: number) => void) | undefined)); - } - } - } - if (this._onItemDrop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onItemDrop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnItemDropAttribute((this._onItemDrop_0_0value as ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined)); - this._onItemDrop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onItemDrop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onItemDrop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnItemDropAttribute((undefined as ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined)); - } - } - } - if (this._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollFrameBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollFrameBeginAttribute((this._onScrollFrameBegin_0_0value as OnScrollFrameBeginCallback | undefined)); - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollFrameBeginAttribute((undefined as OnScrollFrameBeginCallback | undefined)); - } - } - } - if (this._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillScrollAttribute((this._onWillScroll_0_0value as OnWillScrollCallback | undefined)); - this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillScrollAttribute((undefined as OnWillScrollCallback | undefined)); - } - } - } - if (this._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDidScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDidScrollAttribute((this._onDidScroll_0_0value as OnScrollCallback | undefined)); - this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDidScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDidScrollAttribute((undefined as OnScrollCallback | undefined)); - } - } - } - if (this._lanes_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._lanes_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLanesAttribute((this._lanes_0_0value as number | LengthConstrain | undefined), (this._lanes_0_1value as Dimension | undefined)); - this._lanes_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._lanes_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._lanes_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLanesAttribute((undefined as number | LengthConstrain | undefined), (undefined as Dimension | undefined | undefined)); - } - } - } - if (this._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cachedCount_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCachedCount1Attribute((this._cachedCount_1_0value as number | undefined), (this._cachedCount_1_1value as boolean | undefined)); - this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cachedCount_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setCachedCount1Attribute((undefined as number | undefined), (undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: ListModifier): void { - super.mergeModifier(modifier) - if (modifier._alignListItem_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alignListItem_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alignListItem(modifier._alignListItem_0_0value); - break; - } - default: { - this.alignListItem((undefined as ListItemAlign | undefined)); - } - } - } - if (modifier._listDirection_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._listDirection_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.listDirection(modifier._listDirection_0_0value); - break; - } - default: { - this.listDirection((undefined as Axis | undefined)); - } - } - } - if (modifier._contentStartOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._contentStartOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.contentStartOffset(modifier._contentStartOffset_0_0value); - break; - } - default: { - this.contentStartOffset((undefined as number | undefined)); - } - } - } - if (modifier._contentEndOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._contentEndOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.contentEndOffset(modifier._contentEndOffset_0_0value); - break; - } - default: { - this.contentEndOffset((undefined as number | undefined)); - } - } - } - if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.divider(modifier._divider_0_0value); - break; - } - default: { - this.divider((undefined as ListDividerOptions | undefined)); - } - } - } - if (modifier._multiSelectable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._multiSelectable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.multiSelectable(modifier._multiSelectable_0_0value); - break; - } - default: { - this.multiSelectable((undefined as boolean | undefined)); - } - } - } - if (modifier._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cachedCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cachedCount(modifier._cachedCount_0_0value); - break; - } - default: { - this.cachedCount((undefined as number | undefined)); - } - } - } - if (modifier._chainAnimation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._chainAnimation_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.chainAnimation(modifier._chainAnimation_0_0value); - break; - } - default: { - this.chainAnimation((undefined as boolean | undefined)); - } - } - } - if (modifier._chainAnimationOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._chainAnimationOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.chainAnimationOptions(modifier._chainAnimationOptions_0_0value); - break; - } - default: { - this.chainAnimationOptions((undefined as ChainAnimationOptions | undefined)); - } - } - } - if (modifier._sticky_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sticky_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sticky(modifier._sticky_0_0value); - break; - } - default: { - this.sticky((undefined as StickyStyle | undefined)); - } - } - } - if (modifier._scrollSnapAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._scrollSnapAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.scrollSnapAlign(modifier._scrollSnapAlign_0_0value); - break; - } - default: { - this.scrollSnapAlign((undefined as ScrollSnapAlign | undefined)); - } - } - } - if (modifier._childrenMainSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._childrenMainSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.childrenMainSize(modifier._childrenMainSize_0_0value); - break; - } - default: { - this.childrenMainSize((undefined as ChildrenMainSize | undefined)); - } - } - } - if (modifier._maintainVisibleContentPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maintainVisibleContentPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maintainVisibleContentPosition(modifier._maintainVisibleContentPosition_0_0value); - break; - } - default: { - this.maintainVisibleContentPosition((undefined as boolean | undefined)); - } - } - } - if (modifier._stackFromEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stackFromEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stackFromEnd(modifier._stackFromEnd_0_0value); - break; - } - default: { - this.stackFromEnd((undefined as boolean | undefined)); - } - } - } - if (modifier._onScrollIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScrollIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScrollIndex(modifier._onScrollIndex_0_0value); - break; - } - default: { - this.onScrollIndex((undefined as ((start: number,end: number,center: number) => void) | undefined)); - } - } - } - if (modifier._onScrollVisibleContentChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScrollVisibleContentChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScrollVisibleContentChange(modifier._onScrollVisibleContentChange_0_0value); - break; - } - default: { - this.onScrollVisibleContentChange((undefined as OnScrollVisibleContentChangeCallback | undefined)); - } - } - } - if (modifier._onItemMove_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onItemMove_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onItemMove(modifier._onItemMove_0_0value); - break; - } - default: { - this.onItemMove((undefined as ((from: number,to: number) => boolean) | undefined)); - } - } - } - if (modifier._onItemDragStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onItemDragStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onItemDragStart(modifier._onItemDragStart_0_0value); - break; - } - default: { - this.onItemDragStart((undefined as OnItemDragStartCallback | undefined)); - } - } - } - if (modifier._onItemDragEnter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onItemDragEnter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onItemDragEnter(modifier._onItemDragEnter_0_0value); - break; - } - default: { - this.onItemDragEnter((undefined as ((event: ItemDragInfo) => void) | undefined)); - } - } - } - if (modifier._onItemDragMove_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onItemDragMove_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onItemDragMove(modifier._onItemDragMove_0_0value); - break; - } - default: { - this.onItemDragMove((undefined as ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined)); - } - } - } - if (modifier._onItemDragLeave_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onItemDragLeave_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onItemDragLeave(modifier._onItemDragLeave_0_0value); - break; - } - default: { - this.onItemDragLeave((undefined as ((event: ItemDragInfo,itemIndex: number) => void) | undefined)); - } - } - } - if (modifier._onItemDrop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onItemDrop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onItemDrop(modifier._onItemDrop_0_0value); - break; - } - default: { - this.onItemDrop((undefined as ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined)); - } - } - } - if (modifier._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScrollFrameBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScrollFrameBegin(modifier._onScrollFrameBegin_0_0value); - break; - } - default: { - this.onScrollFrameBegin((undefined as OnScrollFrameBeginCallback | undefined)); - } - } - } - if (modifier._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillScroll(modifier._onWillScroll_0_0value); - break; - } - default: { - this.onWillScroll((undefined as OnWillScrollCallback | undefined)); - } - } - } - if (modifier._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDidScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDidScroll(modifier._onDidScroll_0_0value); - break; - } - default: { - this.onDidScroll((undefined as OnScrollCallback | undefined)); - } - } - } - if (modifier._lanes_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._lanes_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.lanes(modifier._lanes_0_0value, modifier._lanes_0_1value); - break; - } - default: { - this.lanes((undefined as number | LengthConstrain | undefined), (undefined as Dimension | undefined | undefined)); - } - } - } - if (modifier._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cachedCount_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cachedCount(modifier._cachedCount_1_0value, modifier._cachedCount_1_1value); - break; - } - default: { - this.cachedCount((undefined as number | undefined), (undefined as boolean | undefined)); - } - } - } - } - alignListItem(value: ListItemAlign | undefined): this { - if (((this._alignListItem_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alignListItem_0_flag = AttributeUpdaterFlag.UPDATE - this._alignListItem_0_0value = value - } else - { - this._alignListItem_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - listDirection(value: Axis | undefined): this { - if (((this._listDirection_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._listDirection_0_flag = AttributeUpdaterFlag.UPDATE - this._listDirection_0_0value = value - } else - { - this._listDirection_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - contentStartOffset(value: number | undefined): this { - if (((this._contentStartOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._contentStartOffset_0_0value) !== (value))) - { - this._contentStartOffset_0_flag = AttributeUpdaterFlag.UPDATE - this._contentStartOffset_0_0value = value - } else - { - this._contentStartOffset_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - contentEndOffset(value: number | undefined): this { - if (((this._contentEndOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._contentEndOffset_0_0value) !== (value))) - { - this._contentEndOffset_0_flag = AttributeUpdaterFlag.UPDATE - this._contentEndOffset_0_0value = value - } else - { - this._contentEndOffset_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - divider(value: ListDividerOptions | undefined): this { - if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._divider_0_flag = AttributeUpdaterFlag.UPDATE - this._divider_0_0value = value - } else - { - this._divider_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - multiSelectable(value: boolean | undefined): this { - if (((this._multiSelectable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._multiSelectable_0_0value) !== (value))) - { - this._multiSelectable_0_flag = AttributeUpdaterFlag.UPDATE - this._multiSelectable_0_0value = value - } else - { - this._multiSelectable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cachedCount(value: number | undefined): this { - if (((this._cachedCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_0_0value) !== (value))) - { - this._cachedCount_0_flag = AttributeUpdaterFlag.UPDATE - this._cachedCount_0_0value = value - } else - { - this._cachedCount_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - chainAnimation(value: boolean | undefined): this { - if (((this._chainAnimation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._chainAnimation_0_0value) !== (value))) - { - this._chainAnimation_0_flag = AttributeUpdaterFlag.UPDATE - this._chainAnimation_0_0value = value - } else - { - this._chainAnimation_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - chainAnimationOptions(value: ChainAnimationOptions | undefined): this { - if (((this._chainAnimationOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._chainAnimationOptions_0_0value = value - } else - { - this._chainAnimationOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sticky(value: StickyStyle | undefined): this { - if (((this._sticky_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._sticky_0_flag = AttributeUpdaterFlag.UPDATE - this._sticky_0_0value = value - } else - { - this._sticky_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - scrollSnapAlign(value: ScrollSnapAlign | undefined): this { - if (((this._scrollSnapAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.UPDATE - this._scrollSnapAlign_0_0value = value - } else - { - this._scrollSnapAlign_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - childrenMainSize(value: ChildrenMainSize | undefined): this { - if (((this._childrenMainSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._childrenMainSize_0_flag = AttributeUpdaterFlag.UPDATE - this._childrenMainSize_0_0value = value - } else - { - this._childrenMainSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maintainVisibleContentPosition(value: boolean | undefined): this { - if (((this._maintainVisibleContentPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maintainVisibleContentPosition_0_0value) !== (value))) - { - this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.UPDATE - this._maintainVisibleContentPosition_0_0value = value - } else - { - this._maintainVisibleContentPosition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - stackFromEnd(value: boolean | undefined): this { - if (((this._stackFromEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stackFromEnd_0_0value) !== (value))) - { - this._stackFromEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._stackFromEnd_0_0value = value - } else - { - this._stackFromEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollIndex(value: ((start: number,end: number,center: number) => void) | undefined): this { - if (((this._onScrollIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScrollIndex_0_flag = AttributeUpdaterFlag.UPDATE - this._onScrollIndex_0_0value = value - } else - { - this._onScrollIndex_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollVisibleContentChange(value: OnScrollVisibleContentChangeCallback | undefined): this { - if (((this._onScrollVisibleContentChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onScrollVisibleContentChange_0_0value = value - } else - { - this._onScrollVisibleContentChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onItemMove(value: ((from: number,to: number) => boolean) | undefined): this { - if (((this._onItemMove_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onItemMove_0_flag = AttributeUpdaterFlag.UPDATE - this._onItemMove_0_0value = value - } else - { - this._onItemMove_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onItemDragStart(value: OnItemDragStartCallback | undefined): this { - if (((this._onItemDragStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onItemDragStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onItemDragStart_0_0value = value - } else - { - this._onItemDragStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onItemDragEnter(value: ((event: ItemDragInfo) => void) | undefined): this { - if (((this._onItemDragEnter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onItemDragEnter_0_flag = AttributeUpdaterFlag.UPDATE - this._onItemDragEnter_0_0value = value - } else - { - this._onItemDragEnter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) | undefined): this { - if (((this._onItemDragMove_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onItemDragMove_0_flag = AttributeUpdaterFlag.UPDATE - this._onItemDragMove_0_0value = value - } else - { - this._onItemDragMove_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void) | undefined): this { - if (((this._onItemDragLeave_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onItemDragLeave_0_flag = AttributeUpdaterFlag.UPDATE - this._onItemDragLeave_0_0value = value - } else - { - this._onItemDragLeave_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) | undefined): this { - if (((this._onItemDrop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onItemDrop_0_flag = AttributeUpdaterFlag.UPDATE - this._onItemDrop_0_0value = value - } else - { - this._onItemDrop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { - if (((this._onScrollFrameBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.UPDATE - this._onScrollFrameBegin_0_0value = value - } else - { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillScroll(value: OnWillScrollCallback | undefined): this { - if (((this._onWillScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillScroll_0_0value = value - } else - { - this._onWillScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDidScroll(value: OnScrollCallback | undefined): this { - if (((this._onDidScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDidScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onDidScroll_0_0value = value - } else - { - this._onDidScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - lanes(value: number | LengthConstrain | undefined, gutter?: Dimension): this { - if (((this._lanes_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._lanes_0_flag = AttributeUpdaterFlag.UPDATE - this._lanes_0_0value = value - this._lanes_0_1value = gutter - } else - { - this._lanes_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cachedCount(count: number | undefined, show: boolean | undefined): this { - if (((this._cachedCount_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_1_0value) !== (count)) || ((this._cachedCount_1_1value) !== (show))) - { - this._cachedCount_1_flag = AttributeUpdaterFlag.UPDATE - this._cachedCount_1_0value = count - this._cachedCount_1_1value = show - } else - { - this._cachedCount_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ListScroller_serializer { public static write(buffer: SerializerBase, value: ListScroller): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/listItem.ets b/arkoala-arkts/arkui/generated/component/listItem.ets similarity index 80% rename from arkoala-arkts/arkui/src/component/listItem.ets rename to arkoala-arkts/arkui/generated/component/listItem.ets index e5a3a2afd9fbb915cd38661ee170b4e7d71063fa..9fec86f6134614e78d978582064f5b122dfe4bb6 100644 --- a/arkoala-arkts/arkui/src/component/listItem.ets +++ b/arkoala-arkts/arkui/generated/component/listItem.ets @@ -17,22 +17,22 @@ // 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 { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent, ComponentContent_serializer } from "./../generated/arkui.ComponentContent" +import { ComponentContent, ComponentContent_serializer } from "./../ComponentContent" import { Length } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource } from "global.resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkListItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -258,197 +258,6 @@ export function ListItem( }) } -export class ListItemModifier extends CommonMethodModifier implements ListItemAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _selectable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectable_0_0value?: boolean | undefined - _selected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selected_0_0value?: boolean | Bindable | undefined - _swipeAction_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _swipeAction_0_0value?: SwipeActionOptions | undefined - _onSelect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSelect_0_0value?: ((isSelected: boolean) => void) | undefined - applyModifierPatch(peer: ArkListItemPeer): void { - super.applyModifierPatch(peer) - if (this._selectable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectableAttribute((this._selectable_0_0value as boolean | undefined)); - this._selectable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._selected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedAttribute((this._selected_0_0value as boolean | Bindable | undefined)); - this._selected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedAttribute((undefined as boolean | Bindable | undefined)); - } - } - } - if (this._swipeAction_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._swipeAction_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSwipeActionAttribute((this._swipeAction_0_0value as SwipeActionOptions | undefined)); - this._swipeAction_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._swipeAction_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._swipeAction_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSwipeActionAttribute((undefined as SwipeActionOptions | undefined)); - } - } - } - if (this._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSelect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSelectAttribute((this._onSelect_0_0value as ((isSelected: boolean) => void) | undefined)); - this._onSelect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSelect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSelect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSelectAttribute((undefined as ((isSelected: boolean) => void) | undefined)); - } - } - } - } - mergeModifier(modifier: ListItemModifier): void { - super.mergeModifier(modifier) - if (modifier._selectable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectable(modifier._selectable_0_0value); - break; - } - default: { - this.selectable((undefined as boolean | undefined)); - } - } - } - if (modifier._selected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selected(modifier._selected_0_0value); - break; - } - default: { - this.selected((undefined as boolean | Bindable | undefined)); - } - } - } - if (modifier._swipeAction_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._swipeAction_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.swipeAction(modifier._swipeAction_0_0value); - break; - } - default: { - this.swipeAction((undefined as SwipeActionOptions | undefined)); - } - } - } - if (modifier._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSelect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSelect(modifier._onSelect_0_0value); - break; - } - default: { - this.onSelect((undefined as ((isSelected: boolean) => void) | undefined)); - } - } - } - } - selectable(value: boolean | undefined): this { - if (((this._selectable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectable_0_0value) !== (value))) - { - this._selectable_0_flag = AttributeUpdaterFlag.UPDATE - this._selectable_0_0value = value - } else - { - this._selectable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selected(value: boolean | Bindable | undefined): this { - if (((this._selected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selected_0_flag = AttributeUpdaterFlag.UPDATE - this._selected_0_0value = value - } else - { - this._selected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - swipeAction(value: SwipeActionOptions | undefined): this { - if (((this._swipeAction_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._swipeAction_0_flag = AttributeUpdaterFlag.UPDATE - this._swipeAction_0_0value = value - } else - { - this._swipeAction_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSelect(value: ((isSelected: boolean) => void) | undefined): this { - if (((this._onSelect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSelect_0_flag = AttributeUpdaterFlag.UPDATE - this._onSelect_0_0value = value - } else - { - this._onSelect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ListItemOptions_serializer { public static write(buffer: SerializerBase, value: ListItemOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/listItemGroup.ets b/arkoala-arkts/arkui/generated/component/listItemGroup.ets similarity index 77% rename from arkoala-arkts/arkui/src/component/listItemGroup.ets rename to arkoala-arkts/arkui/generated/component/listItemGroup.ets index 3fd316719f2bf7f0f06270a25612a00eb084f94d..858c807f6069dc572141fa0838c9844d7ae91f0e 100644 --- a/arkoala-arkts/arkui/src/component/listItemGroup.ets +++ b/arkoala-arkts/arkui/generated/component/listItemGroup.ets @@ -18,20 +18,19 @@ import { SerializerBase, DeserializerBase, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { ListDividerOptions_serializer, ListDividerOptions } from "./list" -import { ChildrenMainSize_serializer, ArkCommonMethodPeer, CommonMethod, ChildrenMainSize, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ChildrenMainSize_serializer, ArkCommonMethodPeer, CommonMethod, ChildrenMainSize, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent, ComponentContent_serializer } from "./../generated/arkui.ComponentContent" +import { ComponentContent, ComponentContent_serializer } from "./../ComponentContent" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkListItemGroupPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -174,109 +173,6 @@ export function ListItemGroup( }) } -export class ListItemGroupModifier extends CommonMethodModifier implements ListItemGroupAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _divider_0_0value?: ListDividerOptions | undefined - _childrenMainSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _childrenMainSize_0_0value?: ChildrenMainSize | undefined - applyModifierPatch(peer: ArkListItemGroupPeer): void { - super.applyModifierPatch(peer) - if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDividerAttribute((this._divider_0_0value as ListDividerOptions | undefined)); - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._divider_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDividerAttribute((undefined as ListDividerOptions | undefined)); - } - } - } - if (this._childrenMainSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._childrenMainSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setChildrenMainSizeAttribute((this._childrenMainSize_0_0value as ChildrenMainSize | undefined)); - this._childrenMainSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._childrenMainSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._childrenMainSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setChildrenMainSizeAttribute((undefined as ChildrenMainSize | undefined)); - } - } - } - } - mergeModifier(modifier: ListItemGroupModifier): void { - super.mergeModifier(modifier) - if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.divider(modifier._divider_0_0value); - break; - } - default: { - this.divider((undefined as ListDividerOptions | undefined)); - } - } - } - if (modifier._childrenMainSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._childrenMainSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.childrenMainSize(modifier._childrenMainSize_0_0value); - break; - } - default: { - this.childrenMainSize((undefined as ChildrenMainSize | undefined)); - } - } - } - } - divider(value: ListDividerOptions | undefined): this { - if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._divider_0_flag = AttributeUpdaterFlag.UPDATE - this._divider_0_0value = value - } else - { - this._divider_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - childrenMainSize(value: ChildrenMainSize | undefined): this { - if (((this._childrenMainSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._childrenMainSize_0_flag = AttributeUpdaterFlag.UPDATE - this._childrenMainSize_0_0value = value - } else - { - this._childrenMainSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ListItemGroupOptions_serializer { public static write(buffer: SerializerBase, value: ListItemGroupOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/loadingProgress.ets b/arkoala-arkts/arkui/generated/component/loadingProgress.ets similarity index 67% rename from arkoala-arkts/arkui/src/component/loadingProgress.ets rename to arkoala-arkts/arkui/generated/component/loadingProgress.ets index 4f29b039d42b18d13065886980a02d21812a04ad..d7ad6bb2d4a4360def06c92e2b93b68f7fae6484 100644 --- a/arkoala-arkts/arkui/src/component/loadingProgress.ets +++ b/arkoala-arkts/arkui/generated/component/loadingProgress.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 } 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, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, hookLoadingProgressContentModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkLoadingProgressPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -192,109 +192,6 @@ export function LoadingProgress( }) } -export class LoadingProgressModifier extends CommonMethodModifier implements LoadingProgressAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _color_0_0value?: ResourceColor | undefined - _enableLoading_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableLoading_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkLoadingProgressPeer): void { - super.applyModifierPatch(peer) - if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorAttribute((this._color_0_0value as ResourceColor | undefined)); - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._color_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._enableLoading_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableLoading_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableLoadingAttribute((this._enableLoading_0_0value as boolean | undefined)); - this._enableLoading_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableLoading_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableLoading_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableLoadingAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: LoadingProgressModifier): void { - super.mergeModifier(modifier) - if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.color(modifier._color_0_0value); - break; - } - default: { - this.color((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._enableLoading_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableLoading_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableLoading(modifier._enableLoading_0_0value); - break; - } - default: { - this.enableLoading((undefined as boolean | undefined)); - } - } - } - } - color(value: ResourceColor | undefined): this { - if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._color_0_flag = AttributeUpdaterFlag.UPDATE - this._color_0_0value = value - } else - { - this._color_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableLoading(value: boolean | undefined): this { - if (((this._enableLoading_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableLoading_0_0value) !== (value))) - { - this._enableLoading_0_flag = AttributeUpdaterFlag.UPDATE - this._enableLoading_0_0value = value - } else - { - this._enableLoading_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class LoadingProgressConfiguration_serializer { public static write(buffer: SerializerBase, value: LoadingProgressConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/marquee.ets b/arkoala-arkts/arkui/generated/component/marquee.ets similarity index 54% rename from arkoala-arkts/arkui/src/component/marquee.ets rename to arkoala-arkts/arkui/generated/component/marquee.ets index 8ab8d37b33367b1f954dba09076bc410bbbd5c23..8b4c600054ed997e9f9630484840d59a11b3f198 100644 --- a/arkoala-arkts/arkui/src/component/marquee.ets +++ b/arkoala-arkts/arkui/generated/component/marquee.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 } 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, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkMarqueePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -400,417 +400,6 @@ export function Marquee( }) } -export class MarqueeModifier extends CommonMethodModifier implements MarqueeAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: ResourceColor | undefined - _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontSize_0_0value?: Length | undefined - _allowScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _allowScale_0_0value?: boolean | undefined - _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontWeight_0_0value?: number | FontWeight | string | undefined - _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontFamily_0_0value?: string | Resource | undefined - _marqueeUpdateStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _marqueeUpdateStrategy_0_0value?: MarqueeUpdateStrategy | undefined - _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onStart_0_0value?: (() => void) | undefined - _onBounce_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onBounce_0_0value?: (() => void) | undefined - _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFinish_0_0value?: (() => void) | undefined - applyModifierPatch(peer: ArkMarqueePeer): void { - super.applyModifierPatch(peer) - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontSizeAttribute((undefined as Length | undefined)); - } - } - } - if (this._allowScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._allowScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAllowScaleAttribute((this._allowScale_0_0value as boolean | undefined)); - this._allowScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._allowScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._allowScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAllowScaleAttribute((undefined as boolean | undefined)); - } - } - } - if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); - } - } - } - if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontFamilyAttribute((this._fontFamily_0_0value as string | Resource | undefined)); - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontFamilyAttribute((undefined as string | Resource | undefined)); - } - } - } - if (this._marqueeUpdateStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._marqueeUpdateStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMarqueeUpdateStrategyAttribute((this._marqueeUpdateStrategy_0_0value as MarqueeUpdateStrategy | undefined)); - this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMarqueeUpdateStrategyAttribute((undefined as MarqueeUpdateStrategy | undefined)); - } - } - } - if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnStartAttribute((this._onStart_0_0value as (() => void) | undefined)); - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnStartAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onBounce_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onBounce_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnBounceAttribute((this._onBounce_0_0value as (() => void) | undefined)); - this._onBounce_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onBounce_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onBounce_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnBounceAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFinishAttribute((undefined as (() => void) | undefined)); - } - } - } - } - mergeModifier(modifier: MarqueeModifier): void { - super.mergeModifier(modifier) - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontSize(modifier._fontSize_0_0value); - break; - } - default: { - this.fontSize((undefined as Length | undefined)); - } - } - } - if (modifier._allowScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._allowScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.allowScale(modifier._allowScale_0_0value); - break; - } - default: { - this.allowScale((undefined as boolean | undefined)); - } - } - } - if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontWeight(modifier._fontWeight_0_0value); - break; - } - default: { - this.fontWeight((undefined as number | FontWeight | string | undefined)); - } - } - } - if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontFamily(modifier._fontFamily_0_0value); - break; - } - default: { - this.fontFamily((undefined as string | Resource | undefined)); - } - } - } - if (modifier._marqueeUpdateStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._marqueeUpdateStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.marqueeUpdateStrategy(modifier._marqueeUpdateStrategy_0_0value); - break; - } - default: { - this.marqueeUpdateStrategy((undefined as MarqueeUpdateStrategy | undefined)); - } - } - } - if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onStart(modifier._onStart_0_0value); - break; - } - default: { - this.onStart((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onBounce_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onBounce_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onBounce(modifier._onBounce_0_0value); - break; - } - default: { - this.onBounce((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFinish(modifier._onFinish_0_0value); - break; - } - default: { - this.onFinish((undefined as (() => void) | undefined)); - } - } - } - } - fontColor(value: ResourceColor | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontSize(value: Length | undefined): this { - if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fontSize_0_0value = value - } else - { - this._fontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - allowScale(value: boolean | undefined): this { - if (((this._allowScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._allowScale_0_0value) !== (value))) - { - this._allowScale_0_flag = AttributeUpdaterFlag.UPDATE - this._allowScale_0_0value = value - } else - { - this._allowScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontWeight(value: number | FontWeight | string | undefined): this { - if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._fontWeight_0_0value = value - } else - { - this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontFamily(value: string | Resource | undefined): this { - if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE - this._fontFamily_0_0value = value - } else - { - this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - marqueeUpdateStrategy(value: MarqueeUpdateStrategy | undefined): this { - if (((this._marqueeUpdateStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.UPDATE - this._marqueeUpdateStrategy_0_0value = value - } else - { - this._marqueeUpdateStrategy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onStart(value: (() => void) | undefined): this { - if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onStart_0_0value = value - } else - { - this._onStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onBounce(value: (() => void) | undefined): this { - if (((this._onBounce_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onBounce_0_flag = AttributeUpdaterFlag.UPDATE - this._onBounce_0_0value = value - } else - { - this._onBounce_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFinish(value: (() => void) | undefined): this { - if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE - this._onFinish_0_0value = value - } else - { - this._onFinish_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class MarqueeOptions_serializer { public static write(buffer: SerializerBase, value: MarqueeOptions): void { let valueSerializer : SerializerBase = buffer 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..a7b491c062c4a3fe5f2f83f8970f69465e4b199d 100644 --- a/arkoala-arkts/arkui/src/component/matrix2d.ets +++ b/arkoala-arkts/arkui/generated/component/matrix2d.ets @@ -17,10 +17,11 @@ // 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 "./../Graphics" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" +import { extractors } from "#handwritten" export class Matrix2DInternal { public static fromPtr(ptr: KPointer): Matrix2D { return new Matrix2D(false, ptr) diff --git a/arkoala-arkts/arkui/src/component/mediaCachedImage.ets b/arkoala-arkts/arkui/generated/component/mediaCachedImage.ets similarity index 86% rename from arkoala-arkts/arkui/src/component/mediaCachedImage.ets rename to arkoala-arkts/arkui/generated/component/mediaCachedImage.ets index 6b4b9708dc3d618071bb754b08dd29d8c7b58544..32105e74ff0bc68cb782e979654b3be95c57ab82 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 } 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 { CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkImagePeer, ImageAttribute, ArkImageComponent, ArkImageStyle } from "./image" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ResourceStr } from "./units" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkMediaCachedImagePeer extends ArkImagePeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -130,21 +130,6 @@ export function MediaCachedImage( }) } -export class MediaCachedImageModifier extends ImageModifier implements MediaCachedImageAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkMediaCachedImagePeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: MediaCachedImageModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ASTCResource_serializer { public static write(buffer: SerializerBase, value: ASTCResource): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/menu.ets b/arkoala-arkts/arkui/generated/component/menu.ets similarity index 52% rename from arkoala-arkts/arkui/src/component/menu.ets rename to arkoala-arkts/arkui/generated/component/menu.ets index 79824b0e880d630e9b354a7b010218c31fc17b0a..d58f91536bc81bfb050a2ad65192161cbf5c4476 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 } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.resource" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkMenuPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -301,282 +301,3 @@ export function Menu( }) } -export class MenuModifier extends CommonMethodModifier implements MenuAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _font_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _font_0_0value?: Font | undefined - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: ResourceColor | undefined - _radius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _radius_0_0value?: Dimension | BorderRadiuses | undefined - _menuItemDivider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menuItemDivider_0_0value?: DividerStyleOptions | undefined - _menuItemGroupDivider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menuItemGroupDivider_0_0value?: DividerStyleOptions | undefined - _subMenuExpandingMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _subMenuExpandingMode_0_0value?: SubMenuExpandingMode | undefined - applyModifierPatch(peer: ArkMenuPeer): void { - super.applyModifierPatch(peer) - if (this._font_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._font_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontAttribute((this._font_0_0value as Font | undefined)); - this._font_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._font_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._font_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._radius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._radius_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRadiusAttribute((this._radius_0_0value as Dimension | BorderRadiuses | undefined)); - this._radius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._radius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._radius_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRadiusAttribute((undefined as Dimension | BorderRadiuses | undefined)); - } - } - } - if (this._menuItemDivider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menuItemDivider_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenuItemDividerAttribute((this._menuItemDivider_0_0value as DividerStyleOptions | undefined)); - this._menuItemDivider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menuItemDivider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menuItemDivider_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenuItemDividerAttribute((undefined as DividerStyleOptions | undefined)); - } - } - } - if (this._menuItemGroupDivider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menuItemGroupDivider_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenuItemGroupDividerAttribute((this._menuItemGroupDivider_0_0value as DividerStyleOptions | undefined)); - this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenuItemGroupDividerAttribute((undefined as DividerStyleOptions | undefined)); - } - } - } - if (this._subMenuExpandingMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._subMenuExpandingMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSubMenuExpandingModeAttribute((this._subMenuExpandingMode_0_0value as SubMenuExpandingMode | undefined)); - this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSubMenuExpandingModeAttribute((undefined as SubMenuExpandingMode | undefined)); - } - } - } - } - mergeModifier(modifier: MenuModifier): void { - super.mergeModifier(modifier) - if (modifier._font_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._font_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.font(modifier._font_0_0value); - break; - } - default: { - this.font((undefined as Font | undefined)); - } - } - } - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._radius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._radius_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.radius(modifier._radius_0_0value); - break; - } - default: { - this.radius((undefined as Dimension | BorderRadiuses | undefined)); - } - } - } - if (modifier._menuItemDivider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menuItemDivider_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menuItemDivider(modifier._menuItemDivider_0_0value); - break; - } - default: { - this.menuItemDivider((undefined as DividerStyleOptions | undefined)); - } - } - } - if (modifier._menuItemGroupDivider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menuItemGroupDivider_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menuItemGroupDivider(modifier._menuItemGroupDivider_0_0value); - break; - } - default: { - this.menuItemGroupDivider((undefined as DividerStyleOptions | undefined)); - } - } - } - if (modifier._subMenuExpandingMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._subMenuExpandingMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.subMenuExpandingMode(modifier._subMenuExpandingMode_0_0value); - break; - } - default: { - this.subMenuExpandingMode((undefined as SubMenuExpandingMode | undefined)); - } - } - } - } - font(value: Font | undefined): this { - if (((this._font_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._font_0_flag = AttributeUpdaterFlag.UPDATE - this._font_0_0value = value - } else - { - this._font_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontColor(value: ResourceColor | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - radius(value: Dimension | BorderRadiuses | undefined): this { - if (((this._radius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._radius_0_flag = AttributeUpdaterFlag.UPDATE - this._radius_0_0value = value - } else - { - this._radius_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menuItemDivider(value: DividerStyleOptions | undefined): this { - if (((this._menuItemDivider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._menuItemDivider_0_flag = AttributeUpdaterFlag.UPDATE - this._menuItemDivider_0_0value = value - } else - { - this._menuItemDivider_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menuItemGroupDivider(value: DividerStyleOptions | undefined): this { - if (((this._menuItemGroupDivider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.UPDATE - this._menuItemGroupDivider_0_0value = value - } else - { - this._menuItemGroupDivider_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - subMenuExpandingMode(value: SubMenuExpandingMode | undefined): this { - if (((this._subMenuExpandingMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.UPDATE - this._subMenuExpandingMode_0_0value = value - } else - { - this._subMenuExpandingMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/menuItem.ets b/arkoala-arkts/arkui/generated/component/menuItem.ets similarity index 67% rename from arkoala-arkts/arkui/src/component/menuItem.ets rename to arkoala-arkts/arkui/generated/component/menuItem.ets index 93fa3fac111229447facdef64fabf99d66de5cce..ff5f8c1cfe3c52f49d968a1a0f9b7b1bb351b299 100644 --- a/arkoala-arkts/arkui/src/component/menuItem.ets +++ b/arkoala-arkts/arkui/generated/component/menuItem.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 { 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 { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Resource_serializer } from "./../framework/resource" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../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 { Resource } from "global.resource" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkMenuItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -376,329 +376,6 @@ export function MenuItem( }) } -export class MenuItemModifier extends CommonMethodModifier implements MenuItemAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _selected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selected_0_0value?: boolean | Bindable | undefined - _selectIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectIcon_0_0value?: boolean | ResourceStr | SymbolGlyphModifier | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: ((selected: boolean) => void) | undefined - _contentFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _contentFont_0_0value?: Font | undefined - _contentFontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _contentFontColor_0_0value?: ResourceColor | undefined - _labelFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _labelFont_0_0value?: Font | undefined - _labelFontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _labelFontColor_0_0value?: ResourceColor | undefined - applyModifierPatch(peer: ArkMenuItemPeer): void { - super.applyModifierPatch(peer) - if (this._selected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedAttribute((this._selected_0_0value as boolean | Bindable | undefined)); - this._selected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedAttribute((undefined as boolean | Bindable | undefined)); - } - } - } - if (this._selectIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectIconAttribute((this._selectIcon_0_0value as boolean | ResourceStr | SymbolGlyphModifier | undefined)); - this._selectIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectIcon_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectIconAttribute((undefined as boolean | ResourceStr | SymbolGlyphModifier | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as ((selected: boolean) => void) | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as ((selected: boolean) => void) | undefined)); - } - } - } - if (this._contentFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._contentFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setContentFontAttribute((this._contentFont_0_0value as Font | undefined)); - this._contentFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._contentFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._contentFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setContentFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._contentFontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._contentFontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setContentFontColorAttribute((this._contentFontColor_0_0value as ResourceColor | undefined)); - this._contentFontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._contentFontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._contentFontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setContentFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._labelFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._labelFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLabelFontAttribute((this._labelFont_0_0value as Font | undefined)); - this._labelFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._labelFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._labelFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLabelFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._labelFontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._labelFontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLabelFontColorAttribute((this._labelFontColor_0_0value as ResourceColor | undefined)); - this._labelFontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._labelFontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._labelFontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLabelFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - } - mergeModifier(modifier: MenuItemModifier): void { - super.mergeModifier(modifier) - if (modifier._selected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selected(modifier._selected_0_0value); - break; - } - default: { - this.selected((undefined as boolean | Bindable | undefined)); - } - } - } - if (modifier._selectIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectIcon(modifier._selectIcon_0_0value); - break; - } - default: { - this.selectIcon((undefined as boolean | ResourceStr | SymbolGlyphModifier | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as ((selected: boolean) => void) | undefined)); - } - } - } - if (modifier._contentFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._contentFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.contentFont(modifier._contentFont_0_0value); - break; - } - default: { - this.contentFont((undefined as Font | undefined)); - } - } - } - if (modifier._contentFontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._contentFontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.contentFontColor(modifier._contentFontColor_0_0value); - break; - } - default: { - this.contentFontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._labelFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._labelFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.labelFont(modifier._labelFont_0_0value); - break; - } - default: { - this.labelFont((undefined as Font | undefined)); - } - } - } - if (modifier._labelFontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._labelFontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.labelFontColor(modifier._labelFontColor_0_0value); - break; - } - default: { - this.labelFontColor((undefined as ResourceColor | undefined)); - } - } - } - } - selected(value: boolean | Bindable | undefined): this { - if (((this._selected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selected_0_flag = AttributeUpdaterFlag.UPDATE - this._selected_0_0value = value - } else - { - this._selected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectIcon(value: boolean | ResourceStr | SymbolGlyphModifier | undefined): this { - if (((this._selectIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectIcon_0_flag = AttributeUpdaterFlag.UPDATE - this._selectIcon_0_0value = value - } else - { - this._selectIcon_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: ((selected: boolean) => void) | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - contentFont(value: Font | undefined): this { - if (((this._contentFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._contentFont_0_flag = AttributeUpdaterFlag.UPDATE - this._contentFont_0_0value = value - } else - { - this._contentFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - contentFontColor(value: ResourceColor | undefined): this { - if (((this._contentFontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._contentFontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._contentFontColor_0_0value = value - } else - { - this._contentFontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - labelFont(value: Font | undefined): this { - if (((this._labelFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._labelFont_0_flag = AttributeUpdaterFlag.UPDATE - this._labelFont_0_0value = value - } else - { - this._labelFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - labelFontColor(value: ResourceColor | undefined): this { - if (((this._labelFontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._labelFontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._labelFontColor_0_0value = value - } else - { - this._labelFontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class MenuItemOptions_serializer { public static write(buffer: SerializerBase, value: MenuItemOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/menuItemGroup.ets b/arkoala-arkts/arkui/generated/component/menuItemGroup.ets similarity index 93% rename from arkoala-arkts/arkui/src/component/menuItemGroup.ets rename to arkoala-arkts/arkui/generated/component/menuItemGroup.ets index f062085cc8fd1f493e1cd9eb34b0e5a319623dd6..d883a1f99f06509d7568bf1d2e4fd4b028a75400 100644 --- a/arkoala-arkts/arkui/src/component/menuItemGroup.ets +++ b/arkoala-arkts/arkui/generated/component/menuItemGroup.ets @@ -21,17 +21,17 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceStr } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource } from "global.resource" import { CustomBuilder } from "./builder" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkMenuItemGroupPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -112,21 +112,6 @@ export function MenuItemGroup( }) } -export class MenuItemGroupModifier extends CommonMethodModifier implements MenuItemGroupAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkMenuItemGroupPeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: MenuItemGroupModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class MenuItemGroupOptions_serializer { public static write(buffer: SerializerBase, value: MenuItemGroupOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/navDestination.ets b/arkoala-arkts/arkui/generated/component/navDestination.ets similarity index 54% rename from arkoala-arkts/arkui/src/component/navDestination.ets rename to arkoala-arkts/arkui/generated/component/navDestination.ets index 9009dd72f511d921a4af82dfea61b1d9bdb1f741..12a860c417f1425f7dfc7ca77be138a1fa538bbe 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 } from "./../framework/resource" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../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 { ArkCommonMethodPeer, CommonMethod, LayoutSafeAreaType, LayoutSafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ResourceStr, Length, ResourceColor } from "./units" +import { Resource } from "global.resource" import { CustomBuilder } from "./builder" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater, extractors } 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 "./../Graphics" +import { TextModifier } from "./../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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { curves } from "./../framework/ohos.curves" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export interface NavDestinationContext { pathInfo: NavPathInfo pathStack: NavPathStack @@ -1346,1489 +1346,6 @@ export function NavDestination( }) } -export class NavDestinationModifier extends CommonMethodModifier implements NavDestinationAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _hideTitleBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideTitleBar_0_0value?: boolean | undefined - _hideBackButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideBackButton_0_0value?: boolean | undefined - _onShown_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onShown_0_0value?: (() => void) | undefined - _onHidden_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onHidden_0_0value?: (() => void) | undefined - _onBackPressed_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onBackPressed_0_0value?: (() => boolean) | undefined - _onResult_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onResult_0_0value?: ((value0: Object | undefined) => void) | undefined - _mode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mode_0_0value?: NavDestinationMode | undefined - _backButtonIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backButtonIcon_0_0value?: ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined - _menus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menus_0_0value?: Array | CustomBuilder | undefined - _onReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onReady_0_0value?: ((value0: NavDestinationContext) => void) | undefined - _onWillAppear_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillAppear_0_0value?: (() => void) | undefined - _onWillDisappear_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillDisappear_0_0value?: (() => void) | undefined - _onWillShow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillShow_0_0value?: (() => void) | undefined - _onWillHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillHide_0_0value?: (() => void) | undefined - _systemBarStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _systemBarStyle_0_0value?: window.SystemBarStyle | undefined - _recoverable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _recoverable_0_0value?: boolean | undefined - _systemTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _systemTransition_0_0value?: NavigationSystemTransitionType | undefined - _bindToScrollable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindToScrollable_0_0value?: Array | undefined - _bindToNestedScrollable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindToNestedScrollable_0_0value?: Array | undefined - _onActive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onActive_0_0value?: ((value0: NavDestinationActiveReason) => void) | undefined - _onInactive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onInactive_0_0value?: ((value0: NavDestinationActiveReason) => void) | undefined - _customTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _customTransition_0_0value?: NavDestinationTransitionDelegate | undefined - _onNewParam_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onNewParam_0_0value?: ((value0: Object | undefined) => void) | undefined - _preferredOrientation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _preferredOrientation_0_0value?: Orientation | undefined - _enableNavigationIndicator_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableNavigationIndicator_0_0value?: boolean | undefined - _title_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _title_0_0value?: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined - _title_0_1value?: NavigationTitleOptions | undefined - _hideTitleBar_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideTitleBar_1_0value?: boolean | undefined - _hideTitleBar_1_1value?: boolean | undefined - _backButtonIcon_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backButtonIcon_1_0value?: ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined - _backButtonIcon_1_1value?: ResourceStr | undefined - _menus_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menus_1_0value?: Array | CustomBuilder | undefined - _menus_1_1value?: NavigationMenuOptions | undefined - _toolbarConfiguration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _toolbarConfiguration_0_0value?: Array | CustomBuilder | undefined - _toolbarConfiguration_0_1value?: NavigationToolbarOptions | undefined - _hideToolBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideToolBar_0_0value?: boolean | undefined - _hideToolBar_0_1value?: boolean | undefined - _ignoreLayoutSafeArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _ignoreLayoutSafeArea_0_0value?: Array | undefined - _ignoreLayoutSafeArea_0_1value?: Array | undefined - _enableStatusBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableStatusBar_0_0value?: boolean | undefined - _enableStatusBar_0_1value?: boolean | undefined - applyModifierPatch(peer: ArkNavDestinationPeer): void { - super.applyModifierPatch(peer) - if (this._hideTitleBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideTitleBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideTitleBar0Attribute((this._hideTitleBar_0_0value as boolean | undefined)); - this._hideTitleBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideTitleBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideTitleBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideTitleBar0Attribute((undefined as boolean | undefined)); - } - } - } - if (this._hideBackButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideBackButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideBackButtonAttribute((this._hideBackButton_0_0value as boolean | undefined)); - this._hideBackButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideBackButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideBackButton_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideBackButtonAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onShown_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onShown_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnShownAttribute((this._onShown_0_0value as (() => void) | undefined)); - this._onShown_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onShown_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onShown_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnShownAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onHidden_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onHidden_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnHiddenAttribute((this._onHidden_0_0value as (() => void) | undefined)); - this._onHidden_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onHidden_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onHidden_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnHiddenAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onBackPressed_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onBackPressed_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnBackPressedAttribute((this._onBackPressed_0_0value as (() => boolean) | undefined)); - this._onBackPressed_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onBackPressed_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onBackPressed_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnBackPressedAttribute((undefined as (() => boolean) | undefined)); - } - } - } - if (this._onResult_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onResult_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnResultAttribute((this._onResult_0_0value as ((value0: Object | undefined) => void) | undefined)); - this._onResult_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onResult_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onResult_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnResultAttribute((undefined as ((value0: Object | undefined) => void) | undefined)); - } - } - } - if (this._mode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setModeAttribute((this._mode_0_0value as NavDestinationMode | undefined)); - this._mode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setModeAttribute((undefined as NavDestinationMode | undefined)); - } - } - } - if (this._backButtonIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backButtonIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackButtonIcon0Attribute((this._backButtonIcon_0_0value as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined)); - this._backButtonIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backButtonIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backButtonIcon_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackButtonIcon0Attribute((undefined as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined)); - } - } - } - if (this._menus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenus0Attribute((this._menus_0_0value as Array | CustomBuilder | undefined)); - this._menus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenus0Attribute((undefined as Array | CustomBuilder | undefined)); - } - } - } - if (this._onReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnReadyAttribute((this._onReady_0_0value as ((value0: NavDestinationContext) => void) | undefined)); - this._onReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onReady_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnReadyAttribute((undefined as ((value0: NavDestinationContext) => void) | undefined)); - } - } - } - if (this._onWillAppear_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillAppear_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillAppearAttribute((this._onWillAppear_0_0value as (() => void) | undefined)); - this._onWillAppear_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillAppear_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillAppear_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillAppearAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onWillDisappear_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillDisappear_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillDisappearAttribute((this._onWillDisappear_0_0value as (() => void) | undefined)); - this._onWillDisappear_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillDisappear_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillDisappear_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillDisappearAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onWillShow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillShow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillShowAttribute((this._onWillShow_0_0value as (() => void) | undefined)); - this._onWillShow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillShow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillShow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillShowAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onWillHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillHideAttribute((this._onWillHide_0_0value as (() => void) | undefined)); - this._onWillHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillHide_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillHideAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._systemBarStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._systemBarStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSystemBarStyleAttribute((this._systemBarStyle_0_0value as window.SystemBarStyle | undefined)); - this._systemBarStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._systemBarStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._systemBarStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSystemBarStyleAttribute((undefined as window.SystemBarStyle | undefined)); - } - } - } - if (this._recoverable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._recoverable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRecoverableAttribute((this._recoverable_0_0value as boolean | undefined)); - this._recoverable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._recoverable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._recoverable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRecoverableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._systemTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._systemTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSystemTransitionAttribute((this._systemTransition_0_0value as NavigationSystemTransitionType | undefined)); - this._systemTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._systemTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._systemTransition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSystemTransitionAttribute((undefined as NavigationSystemTransitionType | undefined)); - } - } - } - if (this._bindToScrollable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindToScrollable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindToScrollableAttribute((this._bindToScrollable_0_0value as Array | undefined)); - this._bindToScrollable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindToScrollable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindToScrollable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindToScrollableAttribute((undefined as Array | undefined)); - } - } - } - if (this._bindToNestedScrollable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindToNestedScrollable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindToNestedScrollableAttribute((this._bindToNestedScrollable_0_0value as Array | undefined)); - this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindToNestedScrollableAttribute((undefined as Array | undefined)); - } - } - } - if (this._onActive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onActive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnActiveAttribute((this._onActive_0_0value as ((value0: NavDestinationActiveReason) => void) | undefined)); - this._onActive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onActive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onActive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnActiveAttribute((undefined as ((value0: NavDestinationActiveReason) => void) | undefined)); - } - } - } - if (this._onInactive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onInactive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnInactiveAttribute((this._onInactive_0_0value as ((value0: NavDestinationActiveReason) => void) | undefined)); - this._onInactive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onInactive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onInactive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnInactiveAttribute((undefined as ((value0: NavDestinationActiveReason) => void) | undefined)); - } - } - } - if (this._customTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._customTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCustomTransitionAttribute((this._customTransition_0_0value as NavDestinationTransitionDelegate | undefined)); - this._customTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._customTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._customTransition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCustomTransitionAttribute((undefined as NavDestinationTransitionDelegate | undefined)); - } - } - } - if (this._onNewParam_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onNewParam_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnNewParamAttribute((this._onNewParam_0_0value as ((value0: Object | undefined) => void) | undefined)); - this._onNewParam_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onNewParam_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onNewParam_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnNewParamAttribute((undefined as ((value0: Object | undefined) => void) | undefined)); - } - } - } - if (this._preferredOrientation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._preferredOrientation_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPreferredOrientationAttribute((this._preferredOrientation_0_0value as Orientation | undefined)); - this._preferredOrientation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._preferredOrientation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._preferredOrientation_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPreferredOrientationAttribute((undefined as Orientation | undefined)); - } - } - } - if (this._enableNavigationIndicator_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableNavigationIndicator_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableNavigationIndicatorAttribute((this._enableNavigationIndicator_0_0value as boolean | undefined)); - this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableNavigationIndicatorAttribute((undefined as boolean | undefined)); - } - } - } - if (this._title_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._title_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTitleAttribute((this._title_0_0value as string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined), (this._title_0_1value as NavigationTitleOptions | undefined)); - this._title_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._title_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._title_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTitleAttribute((undefined as string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined), (undefined as NavigationTitleOptions | undefined | undefined)); - } - } - } - if (this._hideTitleBar_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideTitleBar_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideTitleBar1Attribute((this._hideTitleBar_1_0value as boolean | undefined), (this._hideTitleBar_1_1value as boolean | undefined)); - this._hideTitleBar_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideTitleBar_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideTitleBar_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideTitleBar1Attribute((undefined as boolean | undefined), (undefined as boolean | undefined)); - } - } - } - if (this._backButtonIcon_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backButtonIcon_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackButtonIcon1Attribute((this._backButtonIcon_1_0value as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined), (this._backButtonIcon_1_1value as ResourceStr | undefined)); - this._backButtonIcon_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backButtonIcon_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backButtonIcon_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackButtonIcon1Attribute((undefined as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined), (undefined as ResourceStr | undefined | undefined)); - } - } - } - if (this._menus_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menus_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenus1Attribute((this._menus_1_0value as Array | CustomBuilder | undefined), (this._menus_1_1value as NavigationMenuOptions | undefined)); - this._menus_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menus_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menus_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenus1Attribute((undefined as Array | CustomBuilder | undefined), (undefined as NavigationMenuOptions | undefined | undefined)); - } - } - } - if (this._toolbarConfiguration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._toolbarConfiguration_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setToolbarConfigurationAttribute((this._toolbarConfiguration_0_0value as Array | CustomBuilder | undefined), (this._toolbarConfiguration_0_1value as NavigationToolbarOptions | undefined)); - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setToolbarConfigurationAttribute((undefined as Array | CustomBuilder | undefined), (undefined as NavigationToolbarOptions | undefined | undefined)); - } - } - } - if (this._hideToolBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideToolBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideToolBarAttribute((this._hideToolBar_0_0value as boolean | undefined), (this._hideToolBar_0_1value as boolean | undefined)); - this._hideToolBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideToolBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideToolBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideToolBarAttribute((undefined as boolean | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (this._ignoreLayoutSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._ignoreLayoutSafeArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIgnoreLayoutSafeAreaAttribute((this._ignoreLayoutSafeArea_0_0value as Array | undefined), (this._ignoreLayoutSafeArea_0_1value as Array | undefined)); - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIgnoreLayoutSafeAreaAttribute((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); - } - } - } - if (this._enableStatusBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableStatusBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableStatusBarAttribute((this._enableStatusBar_0_0value as boolean | undefined), (this._enableStatusBar_0_1value as boolean | undefined)); - this._enableStatusBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableStatusBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableStatusBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableStatusBarAttribute((undefined as boolean | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: NavDestinationModifier): void { - super.mergeModifier(modifier) - if (modifier._hideTitleBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideTitleBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideTitleBar(modifier._hideTitleBar_0_0value); - break; - } - default: { - this.hideTitleBar((undefined as boolean | undefined)); - } - } - } - if (modifier._hideBackButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideBackButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideBackButton(modifier._hideBackButton_0_0value); - break; - } - default: { - this.hideBackButton((undefined as boolean | undefined)); - } - } - } - if (modifier._onShown_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onShown_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onShown(modifier._onShown_0_0value); - break; - } - default: { - this.onShown((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onHidden_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onHidden_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onHidden(modifier._onHidden_0_0value); - break; - } - default: { - this.onHidden((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onBackPressed_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onBackPressed_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onBackPressed(modifier._onBackPressed_0_0value); - break; - } - default: { - this.onBackPressed((undefined as (() => boolean) | undefined)); - } - } - } - if (modifier._onResult_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onResult_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onResult(modifier._onResult_0_0value); - break; - } - default: { - this.onResult((undefined as ((value0: Object | undefined) => void) | undefined)); - } - } - } - if (modifier._mode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mode(modifier._mode_0_0value); - break; - } - default: { - this.mode((undefined as NavDestinationMode | undefined)); - } - } - } - if (modifier._backButtonIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backButtonIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backButtonIcon(modifier._backButtonIcon_0_0value); - break; - } - default: { - this.backButtonIcon((undefined as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined)); - } - } - } - if (modifier._menus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menus(modifier._menus_0_0value); - break; - } - default: { - this.menus((undefined as Array | CustomBuilder | undefined)); - } - } - } - if (modifier._onReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onReady(modifier._onReady_0_0value); - break; - } - default: { - this.onReady((undefined as ((value0: NavDestinationContext) => void) | undefined)); - } - } - } - if (modifier._onWillAppear_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillAppear_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillAppear(modifier._onWillAppear_0_0value); - break; - } - default: { - this.onWillAppear((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onWillDisappear_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillDisappear_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillDisappear(modifier._onWillDisappear_0_0value); - break; - } - default: { - this.onWillDisappear((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onWillShow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillShow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillShow(modifier._onWillShow_0_0value); - break; - } - default: { - this.onWillShow((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onWillHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillHide(modifier._onWillHide_0_0value); - break; - } - default: { - this.onWillHide((undefined as (() => void) | undefined)); - } - } - } - if (modifier._systemBarStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._systemBarStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.systemBarStyle(modifier._systemBarStyle_0_0value); - break; - } - default: { - this.systemBarStyle((undefined as window.SystemBarStyle | undefined)); - } - } - } - if (modifier._recoverable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._recoverable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.recoverable(modifier._recoverable_0_0value); - break; - } - default: { - this.recoverable((undefined as boolean | undefined)); - } - } - } - if (modifier._systemTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._systemTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.systemTransition(modifier._systemTransition_0_0value); - break; - } - default: { - this.systemTransition((undefined as NavigationSystemTransitionType | undefined)); - } - } - } - if (modifier._bindToScrollable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindToScrollable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindToScrollable(modifier._bindToScrollable_0_0value); - break; - } - default: { - this.bindToScrollable((undefined as Array | undefined)); - } - } - } - if (modifier._bindToNestedScrollable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindToNestedScrollable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindToNestedScrollable(modifier._bindToNestedScrollable_0_0value); - break; - } - default: { - this.bindToNestedScrollable((undefined as Array | undefined)); - } - } - } - if (modifier._onActive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onActive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onActive(modifier._onActive_0_0value); - break; - } - default: { - this.onActive((undefined as ((value0: NavDestinationActiveReason) => void) | undefined)); - } - } - } - if (modifier._onInactive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onInactive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onInactive(modifier._onInactive_0_0value); - break; - } - default: { - this.onInactive((undefined as ((value0: NavDestinationActiveReason) => void) | undefined)); - } - } - } - if (modifier._customTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._customTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.customTransition(modifier._customTransition_0_0value); - break; - } - default: { - this.customTransition((undefined as NavDestinationTransitionDelegate | undefined)); - } - } - } - if (modifier._onNewParam_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onNewParam_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onNewParam(modifier._onNewParam_0_0value); - break; - } - default: { - this.onNewParam((undefined as ((value0: Object | undefined) => void) | undefined)); - } - } - } - if (modifier._preferredOrientation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._preferredOrientation_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.preferredOrientation(modifier._preferredOrientation_0_0value); - break; - } - default: { - this.preferredOrientation((undefined as Orientation | undefined)); - } - } - } - if (modifier._enableNavigationIndicator_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableNavigationIndicator_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableNavigationIndicator(modifier._enableNavigationIndicator_0_0value); - break; - } - default: { - this.enableNavigationIndicator((undefined as boolean | undefined)); - } - } - } - if (modifier._title_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._title_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.title(modifier._title_0_0value, modifier._title_0_1value); - break; - } - default: { - this.title((undefined as string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined), (undefined as NavigationTitleOptions | undefined | undefined)); - } - } - } - if (modifier._hideTitleBar_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideTitleBar_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideTitleBar(modifier._hideTitleBar_1_0value, modifier._hideTitleBar_1_1value); - break; - } - default: { - this.hideTitleBar((undefined as boolean | undefined), (undefined as boolean | undefined)); - } - } - } - if (modifier._backButtonIcon_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backButtonIcon_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backButtonIcon(modifier._backButtonIcon_1_0value, modifier._backButtonIcon_1_1value); - break; - } - default: { - this.backButtonIcon((undefined as ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined), (undefined as ResourceStr | undefined | undefined)); - } - } - } - if (modifier._menus_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menus_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menus(modifier._menus_1_0value, modifier._menus_1_1value); - break; - } - default: { - this.menus((undefined as Array | CustomBuilder | undefined), (undefined as NavigationMenuOptions | undefined | undefined)); - } - } - } - if (modifier._toolbarConfiguration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._toolbarConfiguration_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.toolbarConfiguration(modifier._toolbarConfiguration_0_0value, modifier._toolbarConfiguration_0_1value); - break; - } - default: { - this.toolbarConfiguration((undefined as Array | CustomBuilder | undefined), (undefined as NavigationToolbarOptions | undefined | undefined)); - } - } - } - if (modifier._hideToolBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideToolBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideToolBar(modifier._hideToolBar_0_0value, modifier._hideToolBar_0_1value); - break; - } - default: { - this.hideToolBar((undefined as boolean | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (modifier._ignoreLayoutSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._ignoreLayoutSafeArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.ignoreLayoutSafeArea(modifier._ignoreLayoutSafeArea_0_0value, modifier._ignoreLayoutSafeArea_0_1value); - break; - } - default: { - this.ignoreLayoutSafeArea((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); - } - } - } - if (modifier._enableStatusBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableStatusBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableStatusBar(modifier._enableStatusBar_0_0value, modifier._enableStatusBar_0_1value); - break; - } - default: { - this.enableStatusBar((undefined as boolean | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - } - hideTitleBar(value: boolean | undefined): this { - if (((this._hideTitleBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideTitleBar_0_0value) !== (value))) - { - this._hideTitleBar_0_flag = AttributeUpdaterFlag.UPDATE - this._hideTitleBar_0_0value = value - } else - { - this._hideTitleBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hideBackButton(value: boolean | undefined): this { - if (((this._hideBackButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideBackButton_0_0value) !== (value))) - { - this._hideBackButton_0_flag = AttributeUpdaterFlag.UPDATE - this._hideBackButton_0_0value = value - } else - { - this._hideBackButton_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onShown(value: (() => void) | undefined): this { - if (((this._onShown_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onShown_0_flag = AttributeUpdaterFlag.UPDATE - this._onShown_0_0value = value - } else - { - this._onShown_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onHidden(value: (() => void) | undefined): this { - if (((this._onHidden_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onHidden_0_flag = AttributeUpdaterFlag.UPDATE - this._onHidden_0_0value = value - } else - { - this._onHidden_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onBackPressed(value: (() => boolean) | undefined): this { - if (((this._onBackPressed_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onBackPressed_0_flag = AttributeUpdaterFlag.UPDATE - this._onBackPressed_0_0value = value - } else - { - this._onBackPressed_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onResult(value: ((value0: Object | undefined) => void) | undefined): this { - if (((this._onResult_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onResult_0_flag = AttributeUpdaterFlag.UPDATE - this._onResult_0_0value = value - } else - { - this._onResult_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - mode(value: NavDestinationMode | undefined): this { - if (((this._mode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._mode_0_flag = AttributeUpdaterFlag.UPDATE - this._mode_0_0value = value - } else - { - this._mode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backButtonIcon(value: ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined): this { - if (((this._backButtonIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._backButtonIcon_0_flag = AttributeUpdaterFlag.UPDATE - this._backButtonIcon_0_0value = value - } else - { - this._backButtonIcon_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menus(value: Array | CustomBuilder | undefined): this { - if (((this._menus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._menus_0_flag = AttributeUpdaterFlag.UPDATE - this._menus_0_0value = value - } else - { - this._menus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onReady(value: ((value0: NavDestinationContext) => void) | undefined): this { - if (((this._onReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onReady_0_flag = AttributeUpdaterFlag.UPDATE - this._onReady_0_0value = value - } else - { - this._onReady_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillAppear(value: (() => void) | undefined): this { - if (((this._onWillAppear_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillAppear_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillAppear_0_0value = value - } else - { - this._onWillAppear_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillDisappear(value: (() => void) | undefined): this { - if (((this._onWillDisappear_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillDisappear_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillDisappear_0_0value = value - } else - { - this._onWillDisappear_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillShow(value: (() => void) | undefined): this { - if (((this._onWillShow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillShow_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillShow_0_0value = value - } else - { - this._onWillShow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillHide(value: (() => void) | undefined): this { - if (((this._onWillHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillHide_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillHide_0_0value = value - } else - { - this._onWillHide_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - systemBarStyle(value: window.SystemBarStyle | undefined): this { - if (((this._systemBarStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._systemBarStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._systemBarStyle_0_0value = value - } else - { - this._systemBarStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - recoverable(value: boolean | undefined): this { - if (((this._recoverable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._recoverable_0_0value) !== (value))) - { - this._recoverable_0_flag = AttributeUpdaterFlag.UPDATE - this._recoverable_0_0value = value - } else - { - this._recoverable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - systemTransition(value: NavigationSystemTransitionType | undefined): this { - if (((this._systemTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._systemTransition_0_flag = AttributeUpdaterFlag.UPDATE - this._systemTransition_0_0value = value - } else - { - this._systemTransition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindToScrollable(value: Array | undefined): this { - if (((this._bindToScrollable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._bindToScrollable_0_flag = AttributeUpdaterFlag.UPDATE - this._bindToScrollable_0_0value = value - } else - { - this._bindToScrollable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindToNestedScrollable(value: Array | undefined): this { - if (((this._bindToNestedScrollable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.UPDATE - this._bindToNestedScrollable_0_0value = value - } else - { - this._bindToNestedScrollable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onActive(value: ((value0: NavDestinationActiveReason) => void) | undefined): this { - if (((this._onActive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onActive_0_flag = AttributeUpdaterFlag.UPDATE - this._onActive_0_0value = value - } else - { - this._onActive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onInactive(value: ((value0: NavDestinationActiveReason) => void) | undefined): this { - if (((this._onInactive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onInactive_0_flag = AttributeUpdaterFlag.UPDATE - this._onInactive_0_0value = value - } else - { - this._onInactive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - customTransition(value: NavDestinationTransitionDelegate | undefined): this { - if (((this._customTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._customTransition_0_flag = AttributeUpdaterFlag.UPDATE - this._customTransition_0_0value = value - } else - { - this._customTransition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onNewParam(value: ((value0: Object | undefined) => void) | undefined): this { - if (((this._onNewParam_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onNewParam_0_flag = AttributeUpdaterFlag.UPDATE - this._onNewParam_0_0value = value - } else - { - this._onNewParam_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - preferredOrientation(value: Orientation | undefined): this { - if (((this._preferredOrientation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._preferredOrientation_0_flag = AttributeUpdaterFlag.UPDATE - this._preferredOrientation_0_0value = value - } else - { - this._preferredOrientation_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableNavigationIndicator(value: boolean | undefined): this { - if (((this._enableNavigationIndicator_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableNavigationIndicator_0_0value) !== (value))) - { - this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.UPDATE - this._enableNavigationIndicator_0_0value = value - } else - { - this._enableNavigationIndicator_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined, options?: NavigationTitleOptions): this { - if (((this._title_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._title_0_flag = AttributeUpdaterFlag.UPDATE - this._title_0_0value = value - this._title_0_1value = options - } else - { - this._title_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hideTitleBar(hide: boolean | undefined, animated: boolean | undefined): this { - if (((this._hideTitleBar_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideTitleBar_1_0value) !== (hide)) || ((this._hideTitleBar_1_1value) !== (animated))) - { - this._hideTitleBar_1_flag = AttributeUpdaterFlag.UPDATE - this._hideTitleBar_1_0value = hide - this._hideTitleBar_1_1value = animated - } else - { - this._hideTitleBar_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backButtonIcon(icon: ResourceStr | image.PixelMap | SymbolGlyphModifier | undefined, accessibilityText?: ResourceStr): this { - if (((this._backButtonIcon_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._backButtonIcon_1_flag = AttributeUpdaterFlag.UPDATE - this._backButtonIcon_1_0value = icon - this._backButtonIcon_1_1value = accessibilityText - } else - { - this._backButtonIcon_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menus(items: Array | CustomBuilder | undefined, options?: NavigationMenuOptions): this { - if (((this._menus_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._menus_1_flag = AttributeUpdaterFlag.UPDATE - this._menus_1_0value = items - this._menus_1_1value = options - } else - { - this._menus_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - toolbarConfiguration(toolbarParam: Array | CustomBuilder | undefined, options?: NavigationToolbarOptions): this { - if (((this._toolbarConfiguration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.UPDATE - this._toolbarConfiguration_0_0value = toolbarParam - this._toolbarConfiguration_0_1value = options - } else - { - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hideToolBar(hide: boolean | undefined, animated?: boolean): this { - if (((this._hideToolBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideToolBar_0_0value) !== (hide)) || ((this._hideToolBar_0_1value) !== (animated))) - { - this._hideToolBar_0_flag = AttributeUpdaterFlag.UPDATE - this._hideToolBar_0_0value = hide - this._hideToolBar_0_1value = animated - } else - { - this._hideToolBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - ignoreLayoutSafeArea(types?: Array, edges?: Array): this { - if (((this._ignoreLayoutSafeArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.UPDATE - this._ignoreLayoutSafeArea_0_0value = types - this._ignoreLayoutSafeArea_0_1value = edges - } else - { - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableStatusBar(enabled: boolean | undefined, animated?: boolean): this { - if (((this._enableStatusBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableStatusBar_0_0value) !== (enabled)) || ((this._enableStatusBar_0_1value) !== (animated))) - { - this._enableStatusBar_0_flag = AttributeUpdaterFlag.UPDATE - this._enableStatusBar_0_0value = enabled - this._enableStatusBar_0_1value = animated - } else - { - this._enableStatusBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class NavDestinationTransition_serializer { public static write(buffer: SerializerBase, value: NavDestinationTransition): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/navigation.ets b/arkoala-arkts/arkui/generated/component/navigation.ets similarity index 75% rename from arkoala-arkts/arkui/src/component/navigation.ets rename to arkoala-arkts/arkui/generated/component/navigation.ets index 4a9c603bfb42005f38e6fa6125f4cff90a5acb86..32a4c9dcfd71d68734bcf4fc78f47bd63d6f066b 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 { 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 { Resource_serializer } from "./../framework/resource" +import { Bindable_Arkui_Component_Units_Length_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, LayoutSafeAreaType, LayoutSafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ArkCommonMethodComponent, ArkCommonMethodStyle, BackgroundBlurStyleOptions_serializer, BackgroundEffectOptions_serializer } from "./common" +import { image_PixelMap_serializer, image } from "./../framework/ohos.multimedia.image" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../SymbolGlyphModifier" +import { window_SystemBarStyle_serializer, window } from "./../framework/ohos.window" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" +import { Resource } from "global.resource" import { CustomBuilder, PageMapBuilder } from "./builder" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater, extractors } 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 "./../Graphics" +import { TextModifier, TextModifier_serializer } from "./../TextModifier" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NavDestinationContext, NavDestinationMode, NavDestinationContext_serializer } from "./navDestination" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export interface NavigationTransitionProxy { from: NavContentInfo to: NavContentInfo @@ -2336,1311 +2336,6 @@ export function Navigation( }) } -export class NavigationModifier extends CommonMethodModifier implements NavigationAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _navBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _navBarWidth_0_0value?: Length | Bindable | undefined - _navBarPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _navBarPosition_0_0value?: NavBarPosition | undefined - _navBarWidthRange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _navBarWidthRange_0_0value?: [ Dimension, Dimension ] | undefined - _minContentWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minContentWidth_0_0value?: Dimension | undefined - _mode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mode_0_0value?: NavigationMode | undefined - _backButtonIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backButtonIcon_0_0value?: string | image.PixelMap | Resource | SymbolGlyphModifier | undefined - _hideNavBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideNavBar_0_0value?: boolean | undefined - _hideTitleBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideTitleBar_0_0value?: boolean | undefined - _hideBackButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideBackButton_0_0value?: boolean | undefined - _titleMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _titleMode_0_0value?: NavigationTitleMode | undefined - _menus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menus_0_0value?: Array | CustomBuilder | undefined - _hideToolBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideToolBar_0_0value?: boolean | undefined - _enableToolBarAdaptation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableToolBarAdaptation_0_0value?: boolean | undefined - _onTitleModeChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTitleModeChange_0_0value?: ((titleMode: NavigationTitleMode) => void) | undefined - _onNavBarStateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onNavBarStateChange_0_0value?: ((isVisible: boolean) => void) | undefined - _onNavigationModeChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onNavigationModeChange_0_0value?: ((mode: NavigationMode) => void) | undefined - _navDestination_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _navDestination_0_0value?: PageMapBuilder | undefined - _customNavContentTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _customNavContentTransition_0_0value?: ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined - _systemBarStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _systemBarStyle_0_0value?: window.SystemBarStyle | undefined - _recoverable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _recoverable_0_0value?: boolean | undefined - _enableDragBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableDragBar_0_0value?: boolean | undefined - _enableModeChangeAnimation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableModeChangeAnimation_0_0value?: boolean | undefined - _backButtonIcon_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backButtonIcon_1_0value?: string | image.PixelMap | Resource | SymbolGlyphModifier | undefined - _backButtonIcon_1_1value?: ResourceStr | undefined - _title_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _title_0_0value?: ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined - _title_0_1value?: NavigationTitleOptions | undefined - _hideTitleBar_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideTitleBar_1_0value?: boolean | undefined - _hideTitleBar_1_1value?: boolean | undefined - _menus_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menus_1_0value?: Array | CustomBuilder | undefined - _menus_1_1value?: NavigationMenuOptions | undefined - _toolbarConfiguration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _toolbarConfiguration_0_0value?: Array | CustomBuilder | undefined - _toolbarConfiguration_0_1value?: NavigationToolbarOptions | undefined - _hideToolBar_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hideToolBar_1_0value?: boolean | undefined - _hideToolBar_1_1value?: boolean | undefined - _ignoreLayoutSafeArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _ignoreLayoutSafeArea_0_0value?: Array | undefined - _ignoreLayoutSafeArea_0_1value?: Array | undefined - applyModifierPatch(peer: ArkNavigationPeer): void { - super.applyModifierPatch(peer) - if (this._navBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._navBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNavBarWidthAttribute((this._navBarWidth_0_0value as Length | Bindable | undefined)); - this._navBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._navBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._navBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setNavBarWidthAttribute((undefined as Length | Bindable | undefined)); - } - } - } - if (this._navBarPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._navBarPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNavBarPositionAttribute((this._navBarPosition_0_0value as NavBarPosition | undefined)); - this._navBarPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._navBarPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._navBarPosition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setNavBarPositionAttribute((undefined as NavBarPosition | undefined)); - } - } - } - if (this._navBarWidthRange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._navBarWidthRange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNavBarWidthRangeAttribute((this._navBarWidthRange_0_0value as [ Dimension, Dimension ] | undefined)); - this._navBarWidthRange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._navBarWidthRange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._navBarWidthRange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setNavBarWidthRangeAttribute((undefined as [ Dimension, Dimension ] | undefined)); - } - } - } - if (this._minContentWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minContentWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinContentWidthAttribute((this._minContentWidth_0_0value as Dimension | undefined)); - this._minContentWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minContentWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minContentWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinContentWidthAttribute((undefined as Dimension | undefined)); - } - } - } - if (this._mode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setModeAttribute((this._mode_0_0value as NavigationMode | undefined)); - this._mode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setModeAttribute((undefined as NavigationMode | undefined)); - } - } - } - if (this._backButtonIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backButtonIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackButtonIcon0Attribute((this._backButtonIcon_0_0value as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined)); - this._backButtonIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backButtonIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backButtonIcon_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackButtonIcon0Attribute((undefined as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined)); - } - } - } - if (this._hideNavBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideNavBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideNavBarAttribute((this._hideNavBar_0_0value as boolean | undefined)); - this._hideNavBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideNavBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideNavBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideNavBarAttribute((undefined as boolean | undefined)); - } - } - } - if (this._hideTitleBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideTitleBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideTitleBar0Attribute((this._hideTitleBar_0_0value as boolean | undefined)); - this._hideTitleBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideTitleBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideTitleBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideTitleBar0Attribute((undefined as boolean | undefined)); - } - } - } - if (this._hideBackButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideBackButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideBackButtonAttribute((this._hideBackButton_0_0value as boolean | undefined)); - this._hideBackButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideBackButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideBackButton_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideBackButtonAttribute((undefined as boolean | undefined)); - } - } - } - if (this._titleMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._titleMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTitleModeAttribute((this._titleMode_0_0value as NavigationTitleMode | undefined)); - this._titleMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._titleMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._titleMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTitleModeAttribute((undefined as NavigationTitleMode | undefined)); - } - } - } - if (this._menus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenus0Attribute((this._menus_0_0value as Array | CustomBuilder | undefined)); - this._menus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenus0Attribute((undefined as Array | CustomBuilder | undefined)); - } - } - } - if (this._hideToolBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideToolBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideToolBar0Attribute((this._hideToolBar_0_0value as boolean | undefined)); - this._hideToolBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideToolBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideToolBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideToolBar0Attribute((undefined as boolean | undefined)); - } - } - } - if (this._enableToolBarAdaptation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableToolBarAdaptation_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableToolBarAdaptationAttribute((this._enableToolBarAdaptation_0_0value as boolean | undefined)); - this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableToolBarAdaptationAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onTitleModeChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTitleModeChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTitleModeChangeAttribute((this._onTitleModeChange_0_0value as ((titleMode: NavigationTitleMode) => void) | undefined)); - this._onTitleModeChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTitleModeChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTitleModeChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTitleModeChangeAttribute((undefined as ((titleMode: NavigationTitleMode) => void) | undefined)); - } - } - } - if (this._onNavBarStateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onNavBarStateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnNavBarStateChangeAttribute((this._onNavBarStateChange_0_0value as ((isVisible: boolean) => void) | undefined)); - this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnNavBarStateChangeAttribute((undefined as ((isVisible: boolean) => void) | undefined)); - } - } - } - if (this._onNavigationModeChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onNavigationModeChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnNavigationModeChangeAttribute((this._onNavigationModeChange_0_0value as ((mode: NavigationMode) => void) | undefined)); - this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnNavigationModeChangeAttribute((undefined as ((mode: NavigationMode) => void) | undefined)); - } - } - } - if (this._navDestination_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._navDestination_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNavDestinationAttribute((this._navDestination_0_0value as PageMapBuilder | undefined)); - this._navDestination_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._navDestination_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._navDestination_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setNavDestinationAttribute((undefined as PageMapBuilder | undefined)); - } - } - } - if (this._customNavContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._customNavContentTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCustomNavContentTransitionAttribute((this._customNavContentTransition_0_0value as ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined)); - this._customNavContentTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._customNavContentTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._customNavContentTransition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCustomNavContentTransitionAttribute((undefined as ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined)); - } - } - } - if (this._systemBarStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._systemBarStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSystemBarStyleAttribute((this._systemBarStyle_0_0value as window.SystemBarStyle | undefined)); - this._systemBarStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._systemBarStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._systemBarStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSystemBarStyleAttribute((undefined as window.SystemBarStyle | undefined)); - } - } - } - if (this._recoverable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._recoverable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRecoverableAttribute((this._recoverable_0_0value as boolean | undefined)); - this._recoverable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._recoverable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._recoverable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRecoverableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableDragBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableDragBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableDragBarAttribute((this._enableDragBar_0_0value as boolean | undefined)); - this._enableDragBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableDragBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableDragBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableDragBarAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableModeChangeAnimation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableModeChangeAnimation_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableModeChangeAnimationAttribute((this._enableModeChangeAnimation_0_0value as boolean | undefined)); - this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableModeChangeAnimationAttribute((undefined as boolean | undefined)); - } - } - } - if (this._backButtonIcon_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._backButtonIcon_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBackButtonIcon1Attribute((this._backButtonIcon_1_0value as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined), (this._backButtonIcon_1_1value as ResourceStr | undefined)); - this._backButtonIcon_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._backButtonIcon_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._backButtonIcon_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setBackButtonIcon1Attribute((undefined as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined), (undefined as ResourceStr | undefined | undefined)); - } - } - } - if (this._title_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._title_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTitleAttribute((this._title_0_0value as ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined), (this._title_0_1value as NavigationTitleOptions | undefined)); - this._title_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._title_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._title_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTitleAttribute((undefined as ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined), (undefined as NavigationTitleOptions | undefined | undefined)); - } - } - } - if (this._hideTitleBar_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideTitleBar_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideTitleBar1Attribute((this._hideTitleBar_1_0value as boolean | undefined), (this._hideTitleBar_1_1value as boolean | undefined)); - this._hideTitleBar_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideTitleBar_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideTitleBar_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideTitleBar1Attribute((undefined as boolean | undefined), (undefined as boolean | undefined)); - } - } - } - if (this._menus_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menus_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenus1Attribute((this._menus_1_0value as Array | CustomBuilder | undefined), (this._menus_1_1value as NavigationMenuOptions | undefined)); - this._menus_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menus_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menus_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenus1Attribute((undefined as Array | CustomBuilder | undefined), (undefined as NavigationMenuOptions | undefined | undefined)); - } - } - } - if (this._toolbarConfiguration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._toolbarConfiguration_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setToolbarConfigurationAttribute((this._toolbarConfiguration_0_0value as Array | CustomBuilder | undefined), (this._toolbarConfiguration_0_1value as NavigationToolbarOptions | undefined)); - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setToolbarConfigurationAttribute((undefined as Array | CustomBuilder | undefined), (undefined as NavigationToolbarOptions | undefined | undefined)); - } - } - } - if (this._hideToolBar_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hideToolBar_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHideToolBar1Attribute((this._hideToolBar_1_0value as boolean | undefined), (this._hideToolBar_1_1value as boolean | undefined)); - this._hideToolBar_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hideToolBar_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hideToolBar_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setHideToolBar1Attribute((undefined as boolean | undefined), (undefined as boolean | undefined)); - } - } - } - if (this._ignoreLayoutSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._ignoreLayoutSafeArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIgnoreLayoutSafeAreaAttribute((this._ignoreLayoutSafeArea_0_0value as Array | undefined), (this._ignoreLayoutSafeArea_0_1value as Array | undefined)); - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIgnoreLayoutSafeAreaAttribute((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: NavigationModifier): void { - super.mergeModifier(modifier) - if (modifier._navBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._navBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.navBarWidth(modifier._navBarWidth_0_0value); - break; - } - default: { - this.navBarWidth((undefined as Length | Bindable | undefined)); - } - } - } - if (modifier._navBarPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._navBarPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.navBarPosition(modifier._navBarPosition_0_0value); - break; - } - default: { - this.navBarPosition((undefined as NavBarPosition | undefined)); - } - } - } - if (modifier._navBarWidthRange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._navBarWidthRange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.navBarWidthRange(modifier._navBarWidthRange_0_0value); - break; - } - default: { - this.navBarWidthRange((undefined as [ Dimension, Dimension ] | undefined)); - } - } - } - if (modifier._minContentWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minContentWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minContentWidth(modifier._minContentWidth_0_0value); - break; - } - default: { - this.minContentWidth((undefined as Dimension | undefined)); - } - } - } - if (modifier._mode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mode(modifier._mode_0_0value); - break; - } - default: { - this.mode((undefined as NavigationMode | undefined)); - } - } - } - if (modifier._backButtonIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backButtonIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backButtonIcon(modifier._backButtonIcon_0_0value); - break; - } - default: { - this.backButtonIcon((undefined as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined)); - } - } - } - if (modifier._hideNavBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideNavBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideNavBar(modifier._hideNavBar_0_0value); - break; - } - default: { - this.hideNavBar((undefined as boolean | undefined)); - } - } - } - if (modifier._hideTitleBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideTitleBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideTitleBar(modifier._hideTitleBar_0_0value); - break; - } - default: { - this.hideTitleBar((undefined as boolean | undefined)); - } - } - } - if (modifier._hideBackButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideBackButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideBackButton(modifier._hideBackButton_0_0value); - break; - } - default: { - this.hideBackButton((undefined as boolean | undefined)); - } - } - } - if (modifier._titleMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._titleMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.titleMode(modifier._titleMode_0_0value); - break; - } - default: { - this.titleMode((undefined as NavigationTitleMode | undefined)); - } - } - } - if (modifier._menus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menus(modifier._menus_0_0value); - break; - } - default: { - this.menus((undefined as Array | CustomBuilder | undefined)); - } - } - } - if (modifier._hideToolBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideToolBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideToolBar(modifier._hideToolBar_0_0value); - break; - } - default: { - this.hideToolBar((undefined as boolean | undefined)); - } - } - } - if (modifier._enableToolBarAdaptation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableToolBarAdaptation_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableToolBarAdaptation(modifier._enableToolBarAdaptation_0_0value); - break; - } - default: { - this.enableToolBarAdaptation((undefined as boolean | undefined)); - } - } - } - if (modifier._onTitleModeChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTitleModeChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTitleModeChange(modifier._onTitleModeChange_0_0value); - break; - } - default: { - this.onTitleModeChange((undefined as ((titleMode: NavigationTitleMode) => void) | undefined)); - } - } - } - if (modifier._onNavBarStateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onNavBarStateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onNavBarStateChange(modifier._onNavBarStateChange_0_0value); - break; - } - default: { - this.onNavBarStateChange((undefined as ((isVisible: boolean) => void) | undefined)); - } - } - } - if (modifier._onNavigationModeChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onNavigationModeChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onNavigationModeChange(modifier._onNavigationModeChange_0_0value); - break; - } - default: { - this.onNavigationModeChange((undefined as ((mode: NavigationMode) => void) | undefined)); - } - } - } - if (modifier._navDestination_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._navDestination_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.navDestination(modifier._navDestination_0_0value); - break; - } - default: { - this.navDestination((undefined as PageMapBuilder | undefined)); - } - } - } - if (modifier._customNavContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._customNavContentTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.customNavContentTransition(modifier._customNavContentTransition_0_0value); - break; - } - default: { - this.customNavContentTransition((undefined as ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined)); - } - } - } - if (modifier._systemBarStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._systemBarStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.systemBarStyle(modifier._systemBarStyle_0_0value); - break; - } - default: { - this.systemBarStyle((undefined as window.SystemBarStyle | undefined)); - } - } - } - if (modifier._recoverable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._recoverable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.recoverable(modifier._recoverable_0_0value); - break; - } - default: { - this.recoverable((undefined as boolean | undefined)); - } - } - } - if (modifier._enableDragBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableDragBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableDragBar(modifier._enableDragBar_0_0value); - break; - } - default: { - this.enableDragBar((undefined as boolean | undefined)); - } - } - } - if (modifier._enableModeChangeAnimation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableModeChangeAnimation_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableModeChangeAnimation(modifier._enableModeChangeAnimation_0_0value); - break; - } - default: { - this.enableModeChangeAnimation((undefined as boolean | undefined)); - } - } - } - if (modifier._backButtonIcon_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._backButtonIcon_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backButtonIcon(modifier._backButtonIcon_1_0value, modifier._backButtonIcon_1_1value); - break; - } - default: { - this.backButtonIcon((undefined as string | image.PixelMap | Resource | SymbolGlyphModifier | undefined), (undefined as ResourceStr | undefined | undefined)); - } - } - } - if (modifier._title_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._title_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.title(modifier._title_0_0value, modifier._title_0_1value); - break; - } - default: { - this.title((undefined as ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined), (undefined as NavigationTitleOptions | undefined | undefined)); - } - } - } - if (modifier._hideTitleBar_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideTitleBar_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideTitleBar(modifier._hideTitleBar_1_0value, modifier._hideTitleBar_1_1value); - break; - } - default: { - this.hideTitleBar((undefined as boolean | undefined), (undefined as boolean | undefined)); - } - } - } - if (modifier._menus_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menus_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menus(modifier._menus_1_0value, modifier._menus_1_1value); - break; - } - default: { - this.menus((undefined as Array | CustomBuilder | undefined), (undefined as NavigationMenuOptions | undefined | undefined)); - } - } - } - if (modifier._toolbarConfiguration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._toolbarConfiguration_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.toolbarConfiguration(modifier._toolbarConfiguration_0_0value, modifier._toolbarConfiguration_0_1value); - break; - } - default: { - this.toolbarConfiguration((undefined as Array | CustomBuilder | undefined), (undefined as NavigationToolbarOptions | undefined | undefined)); - } - } - } - if (modifier._hideToolBar_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hideToolBar_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hideToolBar(modifier._hideToolBar_1_0value, modifier._hideToolBar_1_1value); - break; - } - default: { - this.hideToolBar((undefined as boolean | undefined), (undefined as boolean | undefined)); - } - } - } - if (modifier._ignoreLayoutSafeArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._ignoreLayoutSafeArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.ignoreLayoutSafeArea(modifier._ignoreLayoutSafeArea_0_0value, modifier._ignoreLayoutSafeArea_0_1value); - break; - } - default: { - this.ignoreLayoutSafeArea((undefined as Array | undefined | undefined), (undefined as Array | undefined | undefined)); - } - } - } - } - navBarWidth(value: Length | Bindable | undefined): this { - if (((this._navBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._navBarWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._navBarWidth_0_0value = value - } else - { - this._navBarWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - navBarPosition(value: NavBarPosition | undefined): this { - if (((this._navBarPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._navBarPosition_0_flag = AttributeUpdaterFlag.UPDATE - this._navBarPosition_0_0value = value - } else - { - this._navBarPosition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - navBarWidthRange(value: [ Dimension, Dimension ] | undefined): this { - if (((this._navBarWidthRange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._navBarWidthRange_0_flag = AttributeUpdaterFlag.UPDATE - this._navBarWidthRange_0_0value = value - } else - { - this._navBarWidthRange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minContentWidth(value: Dimension | undefined): this { - if (((this._minContentWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minContentWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._minContentWidth_0_0value = value - } else - { - this._minContentWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - mode(value: NavigationMode | undefined): this { - if (((this._mode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._mode_0_flag = AttributeUpdaterFlag.UPDATE - this._mode_0_0value = value - } else - { - this._mode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backButtonIcon(value: string | image.PixelMap | Resource | SymbolGlyphModifier | undefined): this { - if (((this._backButtonIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._backButtonIcon_0_flag = AttributeUpdaterFlag.UPDATE - this._backButtonIcon_0_0value = value - } else - { - this._backButtonIcon_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hideNavBar(value: boolean | undefined): this { - if (((this._hideNavBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideNavBar_0_0value) !== (value))) - { - this._hideNavBar_0_flag = AttributeUpdaterFlag.UPDATE - this._hideNavBar_0_0value = value - } else - { - this._hideNavBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hideTitleBar(value: boolean | undefined): this { - if (((this._hideTitleBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideTitleBar_0_0value) !== (value))) - { - this._hideTitleBar_0_flag = AttributeUpdaterFlag.UPDATE - this._hideTitleBar_0_0value = value - } else - { - this._hideTitleBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hideBackButton(value: boolean | undefined): this { - if (((this._hideBackButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideBackButton_0_0value) !== (value))) - { - this._hideBackButton_0_flag = AttributeUpdaterFlag.UPDATE - this._hideBackButton_0_0value = value - } else - { - this._hideBackButton_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - titleMode(value: NavigationTitleMode | undefined): this { - if (((this._titleMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._titleMode_0_flag = AttributeUpdaterFlag.UPDATE - this._titleMode_0_0value = value - } else - { - this._titleMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menus(value: Array | CustomBuilder | undefined): this { - if (((this._menus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._menus_0_flag = AttributeUpdaterFlag.UPDATE - this._menus_0_0value = value - } else - { - this._menus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hideToolBar(value: boolean | undefined): this { - if (((this._hideToolBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideToolBar_0_0value) !== (value))) - { - this._hideToolBar_0_flag = AttributeUpdaterFlag.UPDATE - this._hideToolBar_0_0value = value - } else - { - this._hideToolBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableToolBarAdaptation(value: boolean | undefined): this { - if (((this._enableToolBarAdaptation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableToolBarAdaptation_0_0value) !== (value))) - { - this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.UPDATE - this._enableToolBarAdaptation_0_0value = value - } else - { - this._enableToolBarAdaptation_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTitleModeChange(value: ((titleMode: NavigationTitleMode) => void) | undefined): this { - if (((this._onTitleModeChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTitleModeChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onTitleModeChange_0_0value = value - } else - { - this._onTitleModeChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onNavBarStateChange(value: ((isVisible: boolean) => void) | undefined): this { - if (((this._onNavBarStateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onNavBarStateChange_0_0value = value - } else - { - this._onNavBarStateChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onNavigationModeChange(value: ((mode: NavigationMode) => void) | undefined): this { - if (((this._onNavigationModeChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onNavigationModeChange_0_0value = value - } else - { - this._onNavigationModeChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - navDestination(value: PageMapBuilder | undefined): this { - if (((this._navDestination_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._navDestination_0_flag = AttributeUpdaterFlag.UPDATE - this._navDestination_0_0value = value - } else - { - this._navDestination_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - customNavContentTransition(value: ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined): this { - if (((this._customNavContentTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._customNavContentTransition_0_flag = AttributeUpdaterFlag.UPDATE - this._customNavContentTransition_0_0value = value - } else - { - this._customNavContentTransition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - systemBarStyle(value: window.SystemBarStyle | undefined): this { - if (((this._systemBarStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._systemBarStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._systemBarStyle_0_0value = value - } else - { - this._systemBarStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - recoverable(value: boolean | undefined): this { - if (((this._recoverable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._recoverable_0_0value) !== (value))) - { - this._recoverable_0_flag = AttributeUpdaterFlag.UPDATE - this._recoverable_0_0value = value - } else - { - this._recoverable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableDragBar(value: boolean | undefined): this { - if (((this._enableDragBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableDragBar_0_0value) !== (value))) - { - this._enableDragBar_0_flag = AttributeUpdaterFlag.UPDATE - this._enableDragBar_0_0value = value - } else - { - this._enableDragBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableModeChangeAnimation(value: boolean | undefined): this { - if (((this._enableModeChangeAnimation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableModeChangeAnimation_0_0value) !== (value))) - { - this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.UPDATE - this._enableModeChangeAnimation_0_0value = value - } else - { - this._enableModeChangeAnimation_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - backButtonIcon(icon: string | image.PixelMap | Resource | SymbolGlyphModifier | undefined, accessibilityText?: ResourceStr): this { - if (((this._backButtonIcon_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._backButtonIcon_1_flag = AttributeUpdaterFlag.UPDATE - this._backButtonIcon_1_0value = icon - this._backButtonIcon_1_1value = accessibilityText - } else - { - this._backButtonIcon_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - title(value: ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined, options?: NavigationTitleOptions): this { - if (((this._title_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._title_0_flag = AttributeUpdaterFlag.UPDATE - this._title_0_0value = value - this._title_0_1value = options - } else - { - this._title_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hideTitleBar(hide: boolean | undefined, animated: boolean | undefined): this { - if (((this._hideTitleBar_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideTitleBar_1_0value) !== (hide)) || ((this._hideTitleBar_1_1value) !== (animated))) - { - this._hideTitleBar_1_flag = AttributeUpdaterFlag.UPDATE - this._hideTitleBar_1_0value = hide - this._hideTitleBar_1_1value = animated - } else - { - this._hideTitleBar_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menus(items: Array | CustomBuilder | undefined, options?: NavigationMenuOptions): this { - if (((this._menus_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._menus_1_flag = AttributeUpdaterFlag.UPDATE - this._menus_1_0value = items - this._menus_1_1value = options - } else - { - this._menus_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - toolbarConfiguration(value: Array | CustomBuilder | undefined, options?: NavigationToolbarOptions): this { - if (((this._toolbarConfiguration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.UPDATE - this._toolbarConfiguration_0_0value = value - this._toolbarConfiguration_0_1value = options - } else - { - this._toolbarConfiguration_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hideToolBar(hide: boolean | undefined, animated: boolean | undefined): this { - if (((this._hideToolBar_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hideToolBar_1_0value) !== (hide)) || ((this._hideToolBar_1_1value) !== (animated))) - { - this._hideToolBar_1_flag = AttributeUpdaterFlag.UPDATE - this._hideToolBar_1_0value = hide - this._hideToolBar_1_1value = animated - } else - { - this._hideToolBar_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - ignoreLayoutSafeArea(types?: Array, edges?: Array): this { - if (((this._ignoreLayoutSafeArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.UPDATE - this._ignoreLayoutSafeArea_0_0value = types - this._ignoreLayoutSafeArea_0_1value = edges - } else - { - this._ignoreLayoutSafeArea_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class NavPathStack_serializer { public static write(buffer: SerializerBase, value: NavPathStack): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/navigator.ets b/arkoala-arkts/arkui/generated/component/navigator.ets similarity index 93% rename from arkoala-arkts/arkui/src/component/navigator.ets rename to arkoala-arkts/arkui/generated/component/navigator.ets index 151d3c311bf1c339939b4c19b83631f63e5c48ed..ce3c2d0b9715ede4874f9c2e48dd4ba92034320d 100644 --- a/arkoala-arkts/arkui/src/component/navigator.ets +++ b/arkoala-arkts/arkui/generated/component/navigator.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum NavigationType { PUSH = 0, BACK = 1, diff --git a/arkoala-arkts/arkui/src/component/nodeContainer.ets b/arkoala-arkts/arkui/generated/component/nodeContainer.ets similarity index 82% rename from arkoala-arkts/arkui/src/component/nodeContainer.ets rename to arkoala-arkts/arkui/generated/component/nodeContainer.ets index f4f127a6fc87ee9cbe52d86193c38eedc9777854..e9ddfe5ece95005f37e8f6f3c935488acf737a77 100644 --- a/arkoala-arkts/arkui/src/component/nodeContainer.ets +++ b/arkoala-arkts/arkui/generated/component/nodeContainer.ets @@ -17,19 +17,18 @@ // 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkNodeContainerPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -100,18 +99,3 @@ export function NodeContainer( }) } -export class NodeContainerModifier extends CommonMethodModifier implements NodeContainerAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkNodeContainerPeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: NodeContainerModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/pageTransition.ets b/arkoala-arkts/arkui/generated/component/pageTransition.ets similarity index 92% rename from arkoala-arkts/arkui/src/component/pageTransition.ets rename to arkoala-arkts/arkui/generated/component/pageTransition.ets index 19fea1e29a5ae0983212916c14f65366264bedfb..d7c037fca1ceec67eb6e3612eee03b8d01854b6c 100644 --- a/arkoala-arkts/arkui/src/component/pageTransition.ets +++ b/arkoala-arkts/arkui/generated/component/pageTransition.ets @@ -19,8 +19,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 { curves } from "./../generated/ohos.curves" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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 93% rename from arkoala-arkts/arkui/src/component/particle.ets rename to arkoala-arkts/arkui/generated/component/particle.ets index de53e307f25a0e8e046154eb27bb0e854182b717..902bf9ec1365ec6b4c9549d99af356ac18ed749c 100644 --- a/arkoala-arkts/arkui/src/component/particle.ets +++ b/arkoala-arkts/arkui/generated/component/particle.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { VP, Dimension, ResourceStr, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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 "./../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 95% rename from arkoala-arkts/arkui/src/component/pasteButton.ets rename to arkoala-arkts/arkui/generated/component/pasteButton.ets index edba65060661705efa59febc3db1f539f7d6189f..1b2e457c73ecd958906fee5e2cd351f0f380a061 100644 --- a/arkoala-arkts/arkui/src/component/pasteButton.ets +++ b/arkoala-arkts/arkui/generated/component/pasteButton.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ButtonType } from "./button" import { ClickEvent } from "./common" import { SecurityComponentMethod } from "./securityComponent" diff --git a/arkoala-arkts/arkui/src/component/path.ets b/arkoala-arkts/arkui/generated/component/path.ets similarity index 83% rename from arkoala-arkts/arkui/src/component/path.ets rename to arkoala-arkts/arkui/generated/component/path.ets index e8e8a0989343d3d3d0a73704e94e34b311ca5ea3..d6b9f3297b3a0060fc58e7ccdff9eea4a88743bf 100644 --- a/arkoala-arkts/arkui/src/component/path.ets +++ b/arkoala-arkts/arkui/generated/component/path.ets @@ -21,14 +21,13 @@ 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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkPathPeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -107,21 +106,6 @@ export function Path( }) } -export class PathModifier extends CommonShapeMethodModifier implements PathAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkPathPeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: PathModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class PathOptions_serializer { public static write(buffer: SerializerBase, value: PathOptions): void { } diff --git a/arkoala-arkts/arkui/src/component/patternLock.ets b/arkoala-arkts/arkui/generated/component/patternLock.ets similarity index 57% rename from arkoala-arkts/arkui/src/component/patternLock.ets rename to arkoala-arkts/arkui/generated/component/patternLock.ets index 6bcf879150983cbd22a6e326256734d7baffb323..1a8fd27c7533c4cff960755abd2c302f790ebc33 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, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { Length, ResourceColor } from "./units" +import { Resource } from "global.resource" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetrics, LengthMetrics_serializer } from "./../Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class PatternLockControllerInternal { public static fromPtr(ptr: KPointer): PatternLockController { return new PatternLockController(ptr) @@ -619,593 +619,6 @@ export function PatternLock( }) } -export class PatternLockModifier extends CommonMethodModifier implements PatternLockAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _sideLength_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sideLength_0_0value?: Length | undefined - _circleRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _circleRadius_0_0value?: Length | undefined - _backgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundColor_0_0value?: ResourceColor | undefined - _regularColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _regularColor_0_0value?: ResourceColor | undefined - _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedColor_0_0value?: ResourceColor | undefined - _activeColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _activeColor_0_0value?: ResourceColor | undefined - _pathColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pathColor_0_0value?: ResourceColor | undefined - _pathStrokeWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pathStrokeWidth_0_0value?: number | string | undefined - _onPatternComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPatternComplete_0_0value?: ((input: Array) => void) | undefined - _autoReset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _autoReset_0_0value?: boolean | undefined - _onDotConnect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDotConnect_0_0value?: ((value0: number) => void) | undefined - _activateCircleStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _activateCircleStyle_0_0value?: CircleStyleOptions | undefined - _skipUnselectedPoint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _skipUnselectedPoint_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkPatternLockPeer): void { - super.applyModifierPatch(peer) - if (this._sideLength_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sideLength_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSideLengthAttribute((this._sideLength_0_0value as Length | undefined)); - this._sideLength_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sideLength_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sideLength_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSideLengthAttribute((undefined as Length | undefined)); - } - } - } - if (this._circleRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._circleRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCircleRadiusAttribute((this._circleRadius_0_0value as Length | undefined)); - this._circleRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._circleRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._circleRadius_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCircleRadiusAttribute((undefined as Length | 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._regularColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._regularColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRegularColorAttribute((this._regularColor_0_0value as ResourceColor | undefined)); - this._regularColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._regularColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._regularColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRegularColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | undefined)); - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._activeColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._activeColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setActiveColorAttribute((this._activeColor_0_0value as ResourceColor | undefined)); - this._activeColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._activeColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._activeColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setActiveColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._pathColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pathColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPathColorAttribute((this._pathColor_0_0value as ResourceColor | undefined)); - this._pathColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pathColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pathColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPathColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._pathStrokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pathStrokeWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPathStrokeWidthAttribute((this._pathStrokeWidth_0_0value as number | string | undefined)); - this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPathStrokeWidthAttribute((undefined as number | string | undefined)); - } - } - } - if (this._onPatternComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPatternComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPatternCompleteAttribute((this._onPatternComplete_0_0value as ((input: Array) => void) | undefined)); - this._onPatternComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPatternComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPatternComplete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPatternCompleteAttribute((undefined as ((input: Array) => void) | undefined)); - } - } - } - if (this._autoReset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._autoReset_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAutoResetAttribute((this._autoReset_0_0value as boolean | undefined)); - this._autoReset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._autoReset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._autoReset_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAutoResetAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onDotConnect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDotConnect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDotConnectAttribute((this._onDotConnect_0_0value as ((value0: number) => void) | undefined)); - this._onDotConnect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDotConnect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDotConnect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDotConnectAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (this._activateCircleStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._activateCircleStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setActivateCircleStyleAttribute((this._activateCircleStyle_0_0value as CircleStyleOptions | undefined)); - this._activateCircleStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._activateCircleStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._activateCircleStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setActivateCircleStyleAttribute((undefined as CircleStyleOptions | undefined)); - } - } - } - if (this._skipUnselectedPoint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._skipUnselectedPoint_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSkipUnselectedPointAttribute((this._skipUnselectedPoint_0_0value as boolean | undefined)); - this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSkipUnselectedPointAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: PatternLockModifier): void { - super.mergeModifier(modifier) - if (modifier._sideLength_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sideLength_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sideLength(modifier._sideLength_0_0value); - break; - } - default: { - this.sideLength((undefined as Length | undefined)); - } - } - } - if (modifier._circleRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._circleRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.circleRadius(modifier._circleRadius_0_0value); - break; - } - default: { - this.circleRadius((undefined as Length | 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._regularColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._regularColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.regularColor(modifier._regularColor_0_0value); - break; - } - default: { - this.regularColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedColor(modifier._selectedColor_0_0value); - break; - } - default: { - this.selectedColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._activeColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._activeColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.activeColor(modifier._activeColor_0_0value); - break; - } - default: { - this.activeColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._pathColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pathColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pathColor(modifier._pathColor_0_0value); - break; - } - default: { - this.pathColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._pathStrokeWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pathStrokeWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pathStrokeWidth(modifier._pathStrokeWidth_0_0value); - break; - } - default: { - this.pathStrokeWidth((undefined as number | string | undefined)); - } - } - } - if (modifier._onPatternComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPatternComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPatternComplete(modifier._onPatternComplete_0_0value); - break; - } - default: { - this.onPatternComplete((undefined as ((input: Array) => void) | undefined)); - } - } - } - if (modifier._autoReset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._autoReset_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.autoReset(modifier._autoReset_0_0value); - break; - } - default: { - this.autoReset((undefined as boolean | undefined)); - } - } - } - if (modifier._onDotConnect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDotConnect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDotConnect(modifier._onDotConnect_0_0value); - break; - } - default: { - this.onDotConnect((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (modifier._activateCircleStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._activateCircleStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.activateCircleStyle(modifier._activateCircleStyle_0_0value); - break; - } - default: { - this.activateCircleStyle((undefined as CircleStyleOptions | undefined)); - } - } - } - if (modifier._skipUnselectedPoint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._skipUnselectedPoint_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.skipUnselectedPoint(modifier._skipUnselectedPoint_0_0value); - break; - } - default: { - this.skipUnselectedPoint((undefined as boolean | undefined)); - } - } - } - } - sideLength(value: Length | undefined): this { - if (((this._sideLength_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._sideLength_0_flag = AttributeUpdaterFlag.UPDATE - this._sideLength_0_0value = value - } else - { - this._sideLength_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - circleRadius(value: Length | undefined): this { - if (((this._circleRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._circleRadius_0_flag = AttributeUpdaterFlag.UPDATE - this._circleRadius_0_0value = value - } else - { - this._circleRadius_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 - } - regularColor(value: ResourceColor | undefined): this { - if (((this._regularColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._regularColor_0_flag = AttributeUpdaterFlag.UPDATE - this._regularColor_0_0value = value - } else - { - this._regularColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedColor(value: ResourceColor | undefined): this { - if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedColor_0_0value = value - } else - { - this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - activeColor(value: ResourceColor | undefined): this { - if (((this._activeColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._activeColor_0_flag = AttributeUpdaterFlag.UPDATE - this._activeColor_0_0value = value - } else - { - this._activeColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pathColor(value: ResourceColor | undefined): this { - if (((this._pathColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pathColor_0_flag = AttributeUpdaterFlag.UPDATE - this._pathColor_0_0value = value - } else - { - this._pathColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pathStrokeWidth(value: number | string | undefined): this { - if (((this._pathStrokeWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._pathStrokeWidth_0_0value) !== (value))) - { - this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._pathStrokeWidth_0_0value = value - } else - { - this._pathStrokeWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPatternComplete(value: ((input: Array) => void) | undefined): this { - if (((this._onPatternComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPatternComplete_0_flag = AttributeUpdaterFlag.UPDATE - this._onPatternComplete_0_0value = value - } else - { - this._onPatternComplete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - autoReset(value: boolean | undefined): this { - if (((this._autoReset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoReset_0_0value) !== (value))) - { - this._autoReset_0_flag = AttributeUpdaterFlag.UPDATE - this._autoReset_0_0value = value - } else - { - this._autoReset_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDotConnect(value: ((value0: number) => void) | undefined): this { - if (((this._onDotConnect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDotConnect_0_flag = AttributeUpdaterFlag.UPDATE - this._onDotConnect_0_0value = value - } else - { - this._onDotConnect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - activateCircleStyle(value: CircleStyleOptions | undefined): this { - if (((this._activateCircleStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._activateCircleStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._activateCircleStyle_0_0value = value - } else - { - this._activateCircleStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - skipUnselectedPoint(value: boolean | undefined): this { - if (((this._skipUnselectedPoint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._skipUnselectedPoint_0_0value) !== (value))) - { - this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.UPDATE - this._skipUnselectedPoint_0_0value = value - } else - { - this._skipUnselectedPoint_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class PatternLockController_serializer { public static write(buffer: SerializerBase, value: PatternLockController): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/pluginComponent.ets b/arkoala-arkts/arkui/generated/component/pluginComponent.ets similarity index 69% rename from arkoala-arkts/arkui/src/component/pluginComponent.ets rename to arkoala-arkts/arkui/generated/component/pluginComponent.ets index 6d88de006f6ec53b9108596abf1f34df9a210d47..bd61f951378478d91383255c2c593905097f21a5 100644 --- a/arkoala-arkts/arkui/src/component/pluginComponent.ets +++ b/arkoala-arkts/arkui/generated/component/pluginComponent.ets @@ -21,15 +21,14 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkPluginComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -167,109 +166,6 @@ export function PluginComponent( }) } -export class PluginComponentModifier extends CommonMethodModifier implements PluginComponentAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onComplete_0_0value?: VoidCallback | undefined - _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onError_0_0value?: PluginErrorCallback | undefined - applyModifierPatch(peer: ArkPluginComponentPeer): void { - super.applyModifierPatch(peer) - if (this._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCompleteAttribute((this._onComplete_0_0value as VoidCallback | undefined)); - this._onComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onComplete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCompleteAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnErrorAttribute((this._onError_0_0value as PluginErrorCallback | undefined)); - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onError_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnErrorAttribute((undefined as PluginErrorCallback | undefined)); - } - } - } - } - mergeModifier(modifier: PluginComponentModifier): void { - super.mergeModifier(modifier) - if (modifier._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onComplete(modifier._onComplete_0_0value); - break; - } - default: { - this.onComplete((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onError(modifier._onError_0_0value); - break; - } - default: { - this.onError((undefined as PluginErrorCallback | undefined)); - } - } - } - } - onComplete(value: VoidCallback | undefined): this { - if (((this._onComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onComplete_0_flag = AttributeUpdaterFlag.UPDATE - this._onComplete_0_0value = value - } else - { - this._onComplete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onError(value: PluginErrorCallback | undefined): this { - if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onError_0_flag = AttributeUpdaterFlag.UPDATE - this._onError_0_0value = value - } else - { - this._onError_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class PluginComponentTemplate_serializer { public static write(buffer: SerializerBase, value: PluginComponentTemplate): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/polygon.ets b/arkoala-arkts/arkui/generated/component/polygon.ets similarity index 75% rename from arkoala-arkts/arkui/src/component/polygon.ets rename to arkoala-arkts/arkui/generated/component/polygon.ets index 25f4aba7598a2fb812ff847bf58d9b74b986d8c6..703739ab22cc0e455f5b55ae9bc7de47b5349c6c 100644 --- a/arkoala-arkts/arkui/src/component/polygon.ets +++ b/arkoala-arkts/arkui/generated/component/polygon.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 } 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 { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ShapePoint } from "./line" import { Length } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkPolygonPeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -168,65 +168,6 @@ export function Polygon( }) } -export class PolygonModifier extends CommonShapeMethodModifier implements PolygonAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _points_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _points_0_0value?: Array | undefined - applyModifierPatch(peer: ArkPolygonPeer): void { - super.applyModifierPatch(peer) - if (this._points_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._points_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPointsAttribute((this._points_0_0value as Array | undefined)); - this._points_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._points_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._points_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPointsAttribute((undefined as Array | undefined)); - } - } - } - } - mergeModifier(modifier: PolygonModifier): void { - super.mergeModifier(modifier) - if (modifier._points_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._points_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.points(modifier._points_0_0value); - break; - } - default: { - this.points((undefined as Array | undefined)); - } - } - } - } - points(value: Array | undefined): this { - if (((this._points_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._points_0_flag = AttributeUpdaterFlag.UPDATE - this._points_0_0value = value - } else - { - this._points_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class PolygonOptions_serializer { public static write(buffer: SerializerBase, value: PolygonOptions): void { } diff --git a/arkoala-arkts/arkui/src/component/polyline.ets b/arkoala-arkts/arkui/generated/component/polyline.ets similarity index 75% rename from arkoala-arkts/arkui/src/component/polyline.ets rename to arkoala-arkts/arkui/generated/component/polyline.ets index 8b2935b23cd424965d16cce33aacd379aae0fa6c..e5724a3c2e38a991ff0e989481796fc465445215 100644 --- a/arkoala-arkts/arkui/src/component/polyline.ets +++ b/arkoala-arkts/arkui/generated/component/polyline.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 } 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 { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ShapePoint } from "./line" import { Length } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkPolylinePeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -168,65 +168,6 @@ export function Polyline( }) } -export class PolylineModifier extends CommonShapeMethodModifier implements PolylineAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _points_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _points_0_0value?: Array | undefined - applyModifierPatch(peer: ArkPolylinePeer): void { - super.applyModifierPatch(peer) - if (this._points_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._points_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPointsAttribute((this._points_0_0value as Array | undefined)); - this._points_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._points_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._points_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPointsAttribute((undefined as Array | undefined)); - } - } - } - } - mergeModifier(modifier: PolylineModifier): void { - super.mergeModifier(modifier) - if (modifier._points_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._points_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.points(modifier._points_0_0value); - break; - } - default: { - this.points((undefined as Array | undefined)); - } - } - } - } - points(value: Array | undefined): this { - if (((this._points_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._points_0_flag = AttributeUpdaterFlag.UPDATE - this._points_0_0value = value - } else - { - this._points_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class PolylineOptions_serializer { public static write(buffer: SerializerBase, value: PolylineOptions): void { } diff --git a/arkoala-arkts/arkui/src/component/progress.ets b/arkoala-arkts/arkui/generated/component/progress.ets similarity index 85% rename from arkoala-arkts/arkui/src/component/progress.ets rename to arkoala-arkts/arkui/generated/component/progress.ets index 6dc9787ae5de29721da25a350574897ee2b737de..c13c040ab0ee96984e3114f871e0987f127518f1 100644 --- a/arkoala-arkts/arkui/src/component/progress.ets +++ b/arkoala-arkts/arkui/generated/component/progress.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 { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer } from "./../framework/resource" import { LinearGradient_serializer, LinearGradient } from "./dataPanel" 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, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, hookProgressContentModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetrics, LengthMetrics_serializer } from "./../Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkProgressPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -339,197 +339,6 @@ export function Progress( }) } -export class ProgressModifier extends CommonMethodModifier implements ProgressAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _value_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _value_0_0value?: number | undefined - _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _color_0_0value?: ResourceColor | LinearGradient | undefined - _style_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _style_0_0value?: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined - _privacySensitive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _privacySensitive_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkProgressPeer): void { - super.applyModifierPatch(peer) - if (this._value_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._value_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setValueAttribute((this._value_0_0value as number | undefined)); - this._value_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._value_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._value_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setValueAttribute((undefined as number | undefined)); - } - } - } - if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorAttribute((this._color_0_0value as ResourceColor | LinearGradient | undefined)); - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._color_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorAttribute((undefined as ResourceColor | LinearGradient | undefined)); - } - } - } - if (this._style_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._style_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStyleAttribute((this._style_0_0value as LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined)); - this._style_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._style_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._style_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStyleAttribute((undefined as LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined)); - } - } - } - if (this._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._privacySensitive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPrivacySensitiveAttribute((this._privacySensitive_0_0value as boolean | undefined)); - this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._privacySensitive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._privacySensitive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPrivacySensitiveAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: ProgressModifier): void { - super.mergeModifier(modifier) - if (modifier._value_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._value_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.value(modifier._value_0_0value); - break; - } - default: { - this.value((undefined as number | undefined)); - } - } - } - if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.color(modifier._color_0_0value); - break; - } - default: { - this.color((undefined as ResourceColor | LinearGradient | undefined)); - } - } - } - if (modifier._style_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._style_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.style(modifier._style_0_0value); - break; - } - default: { - this.style((undefined as LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined)); - } - } - } - if (modifier._privacySensitive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._privacySensitive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.privacySensitive(modifier._privacySensitive_0_0value); - break; - } - default: { - this.privacySensitive((undefined as boolean | undefined)); - } - } - } - } - value(value: number | undefined): this { - if (((this._value_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._value_0_0value) !== (value))) - { - this._value_0_flag = AttributeUpdaterFlag.UPDATE - this._value_0_0value = value - } else - { - this._value_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - color(value: ResourceColor | LinearGradient | undefined): this { - if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._color_0_flag = AttributeUpdaterFlag.UPDATE - this._color_0_0value = value - } else - { - this._color_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - style(value: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions | undefined): this { - if (((this._style_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._style_0_flag = AttributeUpdaterFlag.UPDATE - this._style_0_0value = value - } else - { - this._style_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - privacySensitive(value: boolean | undefined): this { - if (((this._privacySensitive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._privacySensitive_0_0value) !== (value))) - { - this._privacySensitive_0_flag = AttributeUpdaterFlag.UPDATE - this._privacySensitive_0_0value = value - } else - { - this._privacySensitive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ProgressConfiguration_serializer { public static write(buffer: SerializerBase, value: ProgressConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/qrcode.ets b/arkoala-arkts/arkui/generated/component/qrcode.ets similarity index 61% rename from arkoala-arkts/arkui/src/component/qrcode.ets rename to arkoala-arkts/arkui/generated/component/qrcode.ets index d761b33801e832807ac1b004ed902645997cc7e2..5952af45aeadd50425d71d6546fa5f1f6aae2f23 100644 --- a/arkoala-arkts/arkui/src/component/qrcode.ets +++ b/arkoala-arkts/arkui/generated/component/qrcode.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 { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ResourceColor, ResourceStr } from "./units" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.resource" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkQRCodePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -229,150 +229,3 @@ export function QRCode( }) } -export class QRCodeModifier extends CommonMethodModifier implements QRCodeAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _color_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _color_0_0value?: ResourceColor | undefined - _backgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _backgroundColor_0_0value?: ResourceColor | undefined - _contentOpacity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _contentOpacity_0_0value?: number | Resource | undefined - applyModifierPatch(peer: ArkQRCodePeer): void { - super.applyModifierPatch(peer) - if (this._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColorAttribute((this._color_0_0value as ResourceColor | undefined)); - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._color_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._color_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColorAttribute((undefined as ResourceColor | 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._contentOpacity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._contentOpacity_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setContentOpacityAttribute((this._contentOpacity_0_0value as number | Resource | undefined)); - this._contentOpacity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._contentOpacity_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._contentOpacity_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setContentOpacityAttribute((undefined as number | Resource | undefined)); - } - } - } - } - mergeModifier(modifier: QRCodeModifier): void { - super.mergeModifier(modifier) - if (modifier._color_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._color_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.color(modifier._color_0_0value); - break; - } - default: { - this.color((undefined as ResourceColor | 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._contentOpacity_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._contentOpacity_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.contentOpacity(modifier._contentOpacity_0_0value); - break; - } - default: { - this.contentOpacity((undefined as number | Resource | undefined)); - } - } - } - } - color(value: ResourceColor | undefined): this { - if (((this._color_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._color_0_flag = AttributeUpdaterFlag.UPDATE - this._color_0_0value = value - } else - { - this._color_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 - } - contentOpacity(value: number | Resource | undefined): this { - if (((this._contentOpacity_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._contentOpacity_0_flag = AttributeUpdaterFlag.UPDATE - this._contentOpacity_0_0value = value - } else - { - this._contentOpacity_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/radio.ets b/arkoala-arkts/arkui/generated/component/radio.ets similarity index 80% rename from arkoala-arkts/arkui/src/component/radio.ets rename to arkoala-arkts/arkui/generated/component/radio.ets index 1545e83beec5025710ca4c5f4ffc0aff5fc31c2d..54a4deb868e186636d3f36a488191cd9a753fe89 100644 --- a/arkoala-arkts/arkui/src/component/radio.ets +++ b/arkoala-arkts/arkui/generated/component/radio.ets @@ -17,22 +17,22 @@ // 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 { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { Bindable_Boolean_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" import { ResourceColor } from "./units" import { Color } from "./enums" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource } from "global.resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkRadioPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -227,153 +227,6 @@ export function Radio( }) } -export class RadioModifier extends CommonMethodModifier implements RadioAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _checked_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _checked_0_0value?: boolean | Bindable | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: OnRadioChangeCallback | undefined - _radioStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _radioStyle_0_0value?: RadioStyle | undefined - applyModifierPatch(peer: ArkRadioPeer): void { - super.applyModifierPatch(peer) - if (this._checked_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._checked_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCheckedAttribute((this._checked_0_0value as boolean | Bindable | undefined)); - this._checked_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._checked_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._checked_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCheckedAttribute((undefined as boolean | Bindable | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as OnRadioChangeCallback | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as OnRadioChangeCallback | undefined)); - } - } - } - if (this._radioStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._radioStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRadioStyleAttribute((this._radioStyle_0_0value as RadioStyle | undefined)); - this._radioStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._radioStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._radioStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRadioStyleAttribute((undefined as RadioStyle | undefined)); - } - } - } - } - mergeModifier(modifier: RadioModifier): void { - super.mergeModifier(modifier) - if (modifier._checked_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._checked_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.checked(modifier._checked_0_0value); - break; - } - default: { - this.checked((undefined as boolean | Bindable | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as OnRadioChangeCallback | undefined)); - } - } - } - if (modifier._radioStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._radioStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.radioStyle(modifier._radioStyle_0_0value); - break; - } - default: { - this.radioStyle((undefined as RadioStyle | undefined)); - } - } - } - } - checked(value: boolean | Bindable | undefined): this { - if (((this._checked_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._checked_0_flag = AttributeUpdaterFlag.UPDATE - this._checked_0_0value = value - } else - { - this._checked_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: OnRadioChangeCallback | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - radioStyle(value: RadioStyle | undefined): this { - if (((this._radioStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._radioStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._radioStyle_0_0value = value - } else - { - this._radioStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class RadioConfiguration_serializer { public static write(buffer: SerializerBase, value: RadioConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/rating.ets b/arkoala-arkts/arkui/generated/component/rating.ets similarity index 72% rename from arkoala-arkts/arkui/src/component/rating.ets rename to arkoala-arkts/arkui/generated/component/rating.ets index 491592d726b8605979515cc886ab46e0c37c2eb3..3083b434539aaaf46b10f3accd36cc23d54aa703 100644 --- a/arkoala-arkts/arkui/src/component/rating.ets +++ b/arkoala-arkts/arkui/generated/component/rating.ets @@ -21,16 +21,16 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" 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 { ArkCommonMethodPeer, CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable_Number_serializer } from "./common" +import { ContentModifier, AttributeModifier, hookRatingContentModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceStr } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource } from "global.resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkRatingPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -245,197 +245,6 @@ export function Rating( }) } -export class RatingModifier extends CommonMethodModifier implements RatingAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _stars_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stars_0_0value?: number | undefined - _stepSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stepSize_0_0value?: number | undefined - _starStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _starStyle_0_0value?: StarStyleOptions | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: OnRatingChangeCallback | undefined - applyModifierPatch(peer: ArkRatingPeer): void { - super.applyModifierPatch(peer) - if (this._stars_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stars_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStarsAttribute((this._stars_0_0value as number | undefined)); - this._stars_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stars_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stars_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStarsAttribute((undefined as number | undefined)); - } - } - } - if (this._stepSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stepSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStepSizeAttribute((this._stepSize_0_0value as number | undefined)); - this._stepSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stepSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stepSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStepSizeAttribute((undefined as number | undefined)); - } - } - } - if (this._starStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._starStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStarStyleAttribute((this._starStyle_0_0value as StarStyleOptions | undefined)); - this._starStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._starStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._starStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStarStyleAttribute((undefined as StarStyleOptions | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as OnRatingChangeCallback | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as OnRatingChangeCallback | undefined)); - } - } - } - } - mergeModifier(modifier: RatingModifier): void { - super.mergeModifier(modifier) - if (modifier._stars_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stars_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stars(modifier._stars_0_0value); - break; - } - default: { - this.stars((undefined as number | undefined)); - } - } - } - if (modifier._stepSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stepSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stepSize(modifier._stepSize_0_0value); - break; - } - default: { - this.stepSize((undefined as number | undefined)); - } - } - } - if (modifier._starStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._starStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.starStyle(modifier._starStyle_0_0value); - break; - } - default: { - this.starStyle((undefined as StarStyleOptions | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as OnRatingChangeCallback | undefined)); - } - } - } - } - stars(value: number | undefined): this { - if (((this._stars_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stars_0_0value) !== (value))) - { - this._stars_0_flag = AttributeUpdaterFlag.UPDATE - this._stars_0_0value = value - } else - { - this._stars_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - stepSize(value: number | undefined): this { - if (((this._stepSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stepSize_0_0value) !== (value))) - { - this._stepSize_0_flag = AttributeUpdaterFlag.UPDATE - this._stepSize_0_0value = value - } else - { - this._stepSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - starStyle(value: StarStyleOptions | undefined): this { - if (((this._starStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._starStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._starStyle_0_0value = value - } else - { - this._starStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: OnRatingChangeCallback | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class RatingConfiguration_serializer { public static write(buffer: SerializerBase, value: RatingConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/rect.ets b/arkoala-arkts/arkui/generated/component/rect.ets similarity index 88% rename from arkoala-arkts/arkui/src/component/rect.ets rename to arkoala-arkts/arkui/generated/component/rect.ets index 9b5b3c4964f23ebd97d4293c93a782ec056730c9..3988950b6e5d818281234fd667b44742973498b5 100644 --- a/arkoala-arkts/arkui/src/component/rect.ets +++ b/arkoala-arkts/arkui/generated/component/rect.ets @@ -21,16 +21,16 @@ 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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ArkCommonShapeMethodPeer, CommonShapeMethod, CommonMethod, ArkCommonShapeMethodComponent, ArkCommonShapeMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource } from "global.resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkRectPeer extends ArkCommonShapeMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -177,65 +177,6 @@ export function Rect( }) } -export class RectModifier extends CommonShapeMethodModifier implements RectAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _radius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _radius_0_0value?: number | string | Array | undefined - applyModifierPatch(peer: ArkRectPeer): void { - super.applyModifierPatch(peer) - if (this._radius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._radius_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRadiusAttribute((this._radius_0_0value as number | string | Array | undefined)); - this._radius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._radius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._radius_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRadiusAttribute((undefined as number | string | Array | undefined)); - } - } - } - } - mergeModifier(modifier: RectModifier): void { - super.mergeModifier(modifier) - if (modifier._radius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._radius_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.radius(modifier._radius_0_0value); - break; - } - default: { - this.radius((undefined as number | string | Array | undefined)); - } - } - } - } - radius(value: number | string | Array | undefined): this { - if (((this._radius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._radius_0_0value) !== (value))) - { - this._radius_0_flag = AttributeUpdaterFlag.UPDATE - this._radius_0_0value = value - } else - { - this._radius_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class RoundedRectOptions_serializer { public static write(buffer: SerializerBase, value: RoundedRectOptions): void { } diff --git a/arkoala-arkts/arkui/src/component/refresh.ets b/arkoala-arkts/arkui/generated/component/refresh.ets similarity index 59% rename from arkoala-arkts/arkui/src/component/refresh.ets rename to arkoala-arkts/arkui/generated/component/refresh.ets index 020780efacd13bc62ca9b5cabe7d2b1ef6cd85a2..7634d84f3fbc7844ccf1867f2b77d2bad071da4f 100644 --- a/arkoala-arkts/arkui/src/component/refresh.ets +++ b/arkoala-arkts/arkui/generated/component/refresh.ets @@ -21,18 +21,18 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" 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 { ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable_Boolean_serializer } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceStr } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource } from "global.resource" import { CustomBuilder } from "./builder" -import { ComponentContent, ComponentContent_serializer } from "./../generated/arkui.ComponentContent" +import { ComponentContent, ComponentContent_serializer } from "./../ComponentContent" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkRefreshPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -283,285 +283,6 @@ export function Refresh( }) } -export class RefreshModifier extends CommonMethodModifier implements RefreshAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onStateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onStateChange_0_0value?: ((state: RefreshStatus) => void) | undefined - _onRefreshing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRefreshing_0_0value?: (() => void) | undefined - _refreshOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _refreshOffset_0_0value?: number | undefined - _pullToRefresh_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pullToRefresh_0_0value?: boolean | undefined - _onOffsetChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onOffsetChange_0_0value?: ((value0: number) => void) | undefined - _pullDownRatio_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pullDownRatio_0_0value?: number | undefined - applyModifierPatch(peer: ArkRefreshPeer): void { - super.applyModifierPatch(peer) - if (this._onStateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onStateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnStateChangeAttribute((this._onStateChange_0_0value as ((state: RefreshStatus) => void) | undefined)); - this._onStateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onStateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onStateChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnStateChangeAttribute((undefined as ((state: RefreshStatus) => void) | undefined)); - } - } - } - if (this._onRefreshing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRefreshing_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRefreshingAttribute((this._onRefreshing_0_0value as (() => void) | undefined)); - this._onRefreshing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRefreshing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRefreshing_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRefreshingAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._refreshOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._refreshOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRefreshOffsetAttribute((this._refreshOffset_0_0value as number | undefined)); - this._refreshOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._refreshOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._refreshOffset_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRefreshOffsetAttribute((undefined as number | undefined)); - } - } - } - if (this._pullToRefresh_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pullToRefresh_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPullToRefreshAttribute((this._pullToRefresh_0_0value as boolean | undefined)); - this._pullToRefresh_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pullToRefresh_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pullToRefresh_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPullToRefreshAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onOffsetChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onOffsetChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnOffsetChangeAttribute((this._onOffsetChange_0_0value as ((value0: number) => void) | undefined)); - this._onOffsetChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onOffsetChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onOffsetChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnOffsetChangeAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (this._pullDownRatio_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pullDownRatio_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPullDownRatioAttribute((this._pullDownRatio_0_0value as number | undefined)); - this._pullDownRatio_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pullDownRatio_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pullDownRatio_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPullDownRatioAttribute((undefined as number | undefined)); - } - } - } - } - mergeModifier(modifier: RefreshModifier): void { - super.mergeModifier(modifier) - if (modifier._onStateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onStateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onStateChange(modifier._onStateChange_0_0value); - break; - } - default: { - this.onStateChange((undefined as ((state: RefreshStatus) => void) | undefined)); - } - } - } - if (modifier._onRefreshing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRefreshing_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRefreshing(modifier._onRefreshing_0_0value); - break; - } - default: { - this.onRefreshing((undefined as (() => void) | undefined)); - } - } - } - if (modifier._refreshOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._refreshOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.refreshOffset(modifier._refreshOffset_0_0value); - break; - } - default: { - this.refreshOffset((undefined as number | undefined)); - } - } - } - if (modifier._pullToRefresh_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pullToRefresh_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pullToRefresh(modifier._pullToRefresh_0_0value); - break; - } - default: { - this.pullToRefresh((undefined as boolean | undefined)); - } - } - } - if (modifier._onOffsetChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onOffsetChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onOffsetChange(modifier._onOffsetChange_0_0value); - break; - } - default: { - this.onOffsetChange((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (modifier._pullDownRatio_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pullDownRatio_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pullDownRatio(modifier._pullDownRatio_0_0value); - break; - } - default: { - this.pullDownRatio((undefined as number | undefined)); - } - } - } - } - onStateChange(value: ((state: RefreshStatus) => void) | undefined): this { - if (((this._onStateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onStateChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onStateChange_0_0value = value - } else - { - this._onStateChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onRefreshing(value: (() => void) | undefined): this { - if (((this._onRefreshing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRefreshing_0_flag = AttributeUpdaterFlag.UPDATE - this._onRefreshing_0_0value = value - } else - { - this._onRefreshing_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - refreshOffset(value: number | undefined): this { - if (((this._refreshOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._refreshOffset_0_0value) !== (value))) - { - this._refreshOffset_0_flag = AttributeUpdaterFlag.UPDATE - this._refreshOffset_0_0value = value - } else - { - this._refreshOffset_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pullToRefresh(value: boolean | undefined): this { - if (((this._pullToRefresh_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._pullToRefresh_0_0value) !== (value))) - { - this._pullToRefresh_0_flag = AttributeUpdaterFlag.UPDATE - this._pullToRefresh_0_0value = value - } else - { - this._pullToRefresh_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onOffsetChange(value: ((value0: number) => void) | undefined): this { - if (((this._onOffsetChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onOffsetChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onOffsetChange_0_0value = value - } else - { - this._onOffsetChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pullDownRatio(value: number | undefined): this { - if (((this._pullDownRatio_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._pullDownRatio_0_0value) !== (value))) - { - this._pullDownRatio_0_flag = AttributeUpdaterFlag.UPDATE - this._pullDownRatio_0_0value = value - } else - { - this._pullDownRatio_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class RefreshOptions_serializer { public static write(buffer: SerializerBase, value: RefreshOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/relativeContainer.ets b/arkoala-arkts/arkui/generated/component/relativeContainer.ets similarity index 77% rename from arkoala-arkts/arkui/src/component/relativeContainer.ets rename to arkoala-arkts/arkui/generated/component/relativeContainer.ets index 3e5e04a1ac60394bde0854dfa32cd55142a5cb78..71d7c58d6c09bf82bd4a39d9ed6a0f513f0d4e2f 100644 --- a/arkoala-arkts/arkui/src/component/relativeContainer.ets +++ b/arkoala-arkts/arkui/generated/component/relativeContainer.ets @@ -21,17 +21,17 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Dimension } from "./units" -import { Resource, Resource_serializer } from "./../generated/resource" +import { Resource } from "global.resource" import { Axis } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class ArkRelativeContainerPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -191,109 +191,6 @@ export function RelativeContainer( }) } -export class RelativeContainerModifier extends CommonMethodModifier implements RelativeContainerAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _guideLine_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _guideLine_0_0value?: Array | undefined - _barrier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barrier_0_0value?: Array | undefined - applyModifierPatch(peer: ArkRelativeContainerPeer): void { - super.applyModifierPatch(peer) - if (this._guideLine_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._guideLine_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGuideLineAttribute((this._guideLine_0_0value as Array | undefined)); - this._guideLine_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._guideLine_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._guideLine_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setGuideLineAttribute((undefined as Array | undefined)); - } - } - } - if (this._barrier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barrier_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarrierAttribute((this._barrier_0_0value as Array | undefined)); - this._barrier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barrier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barrier_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarrierAttribute((undefined as Array | undefined)); - } - } - } - } - mergeModifier(modifier: RelativeContainerModifier): void { - super.mergeModifier(modifier) - if (modifier._guideLine_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._guideLine_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.guideLine(modifier._guideLine_0_0value); - break; - } - default: { - this.guideLine((undefined as Array | undefined)); - } - } - } - if (modifier._barrier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barrier_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barrier(modifier._barrier_0_0value); - break; - } - default: { - this.barrier((undefined as Array | undefined)); - } - } - } - } - guideLine(value: Array | undefined): this { - if (((this._guideLine_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._guideLine_0_flag = AttributeUpdaterFlag.UPDATE - this._guideLine_0_0value = value - } else - { - this._guideLine_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barrier(value: Array | undefined): this { - if (((this._barrier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barrier_0_flag = AttributeUpdaterFlag.UPDATE - this._barrier_0_0value = value - } else - { - this._barrier_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class BarrierStyle_serializer { public static write(buffer: SerializerBase, value: BarrierStyle): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/remoteWindow.ets b/arkoala-arkts/arkui/generated/component/remoteWindow.ets similarity index 89% rename from arkoala-arkts/arkui/src/component/remoteWindow.ets rename to arkoala-arkts/arkui/generated/component/remoteWindow.ets index fcdd9e886a3a3d9481685fc99adea902e2652cd0..9dfbd897ace2a01e86c7892fa34087cbea4f0e00 100644 --- a/arkoala-arkts/arkui/src/component/remoteWindow.ets +++ b/arkoala-arkts/arkui/generated/component/remoteWindow.ets @@ -21,14 +21,13 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkRemoteWindowPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -112,21 +111,6 @@ export function RemoteWindow( }) } -export class RemoteWindowModifier extends CommonMethodModifier implements RemoteWindowAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkRemoteWindowPeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: RemoteWindowModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class RRect_serializer { public static write(buffer: SerializerBase, value: RRect): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/repeat.ets b/arkoala-arkts/arkui/generated/component/repeat.ets similarity index 95% rename from arkoala-arkts/arkui/src/component/repeat.ets rename to arkoala-arkts/arkui/generated/component/repeat.ets index da867077eff99a5d15e422e57ab19f3a5b44fe9e..5a11b4be0630afa85fb7a747784f9b574cb52adf 100644 --- a/arkoala-arkts/arkui/src/component/repeat.ets +++ b/arkoala-arkts/arkui/generated/component/repeat.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export type RepeatArray = Array; export type OnLazyLoadingFunc = (index: number) => void; export type KeyGeneratorFunc = (item: T, index: number) => string; diff --git a/arkoala-arkts/arkui/src/component/richEditor.ets b/arkoala-arkts/arkui/generated/component/richEditor.ets similarity index 79% rename from arkoala-arkts/arkui/src/component/richEditor.ets rename to arkoala-arkts/arkui/generated/component/richEditor.ets index 2a173a6fca3d0b4184ab6ea259e4ef72a85dc931..546fcabe5737ccd848732d74a8629a9b43c7447d 100644 --- a/arkoala-arkts/arkui/src/component/richEditor.ets +++ b/arkoala-arkts/arkui/generated/component/richEditor.ets @@ -17,30 +17,30 @@ // 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 { SelectionOptions_serializer, RectResult_serializer, SelectionOptions, RectResult, ArkCommonMethodPeer, CommonMethod, ShadowOptions, ClickEvent, HoverEvent, HapticFeedbackMode, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, ClickEvent_serializer, ShadowOptions_serializer, HoverEvent_serializer } from "./common" +import { SelectionOptions_serializer, RectResult_serializer, SelectionOptions, RectResult, ArkCommonMethodPeer, CommonMethod, ShadowOptions, ClickEvent, HoverEvent, HapticFeedbackMode, ArkCommonMethodComponent, ArkCommonMethodStyle, ClickEvent_serializer, ShadowOptions_serializer, HoverEvent_serializer } from "./common" import { PreviewText_serializer, TextEditControllerEx, TextEditControllerExInternal, LayoutManager, LayoutManagerInternal, PreviewText, TextDataDetectorConfig_serializer, EditMenuOptions_serializer, TextRange, TextDataDetectorConfig, OnDidChangeCallback, EditMenuOptions, KeyboardAppearance, MenuType, DecorationStyleResult, TextRange_serializer, DecorationStyleResult_serializer, StyledStringChangedListener_serializer, StyledStringController, StyledStringControllerInternal, StyledStringChangedListener } from "./textCommon" 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 } 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 { Resource } from "global.resource" import { EnterKeyType, SubmitEvent } from "./textInput" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } 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 "./../Graphics" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" import { CustomNodeBuilder } from "./idlize" export class RichEditorBaseControllerInternal { public static fromPtr(ptr: KPointer): RichEditorBaseController { @@ -1483,1483 +1483,6 @@ export function RichEditor( }) } -export class RichEditorModifier extends CommonMethodModifier implements RichEditorAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onReady_0_0value?: VoidCallback | undefined - _onSelect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSelect_0_0value?: ((value0: RichEditorSelection) => void) | undefined - _onSelectionChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSelectionChange_0_0value?: ((value0: RichEditorRange) => void) | undefined - _aboutToIMEInput_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _aboutToIMEInput_0_0value?: ((value0: RichEditorInsertValue) => boolean) | undefined - _onIMEInputComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onIMEInputComplete_0_0value?: ((value0: RichEditorTextSpanResult) => void) | undefined - _onDidIMEInput_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDidIMEInput_0_0value?: ((value0: TextRange) => void) | undefined - _aboutToDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _aboutToDelete_0_0value?: ((value0: RichEditorDeleteValue) => boolean) | undefined - _onDeleteComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDeleteComplete_0_0value?: VoidCallback | undefined - _copyOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _copyOptions_0_0value?: CopyOptions | undefined - _onPaste_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPaste_0_0value?: PasteEventCallback | undefined - _enableDataDetector_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableDataDetector_0_0value?: boolean | undefined - _enablePreviewText_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enablePreviewText_0_0value?: boolean | undefined - _dataDetectorConfig_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _dataDetectorConfig_0_0value?: TextDataDetectorConfig | undefined - _caretColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _caretColor_0_0value?: ResourceColor | undefined - _selectedBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedBackgroundColor_0_0value?: ResourceColor | undefined - _onEditingChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onEditingChange_0_0value?: ((value0: boolean) => void) | undefined - _enterKeyType_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enterKeyType_0_0value?: EnterKeyType | undefined - _onSubmit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSubmit_0_0value?: SubmitCallback | undefined - _onWillChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillChange_0_0value?: ((value0: RichEditorChangeValue) => boolean) | undefined - _onDidChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDidChange_0_0value?: OnDidChangeCallback | undefined - _onCut_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onCut_0_0value?: ((value0: CutEvent) => void) | undefined - _onCopy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onCopy_0_0value?: ((value0: CopyEvent) => void) | undefined - _editMenuOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _editMenuOptions_0_0value?: EditMenuOptions | undefined - _enableKeyboardOnFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableKeyboardOnFocus_0_0value?: boolean | undefined - _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableHapticFeedback_0_0value?: boolean | undefined - _barState_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barState_0_0value?: BarState | undefined - _maxLength_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxLength_0_0value?: number | undefined - _maxLines_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxLines_0_0value?: number | undefined - _keyboardAppearance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _keyboardAppearance_0_0value?: KeyboardAppearance | undefined - _stopBackPress_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stopBackPress_0_0value?: boolean | undefined - _bindSelectionMenu_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindSelectionMenu_0_0value?: RichEditorSpanType | undefined - _bindSelectionMenu_0_1value?: CustomBuilder | undefined - _bindSelectionMenu_0_2value?: ResponseType | RichEditorResponseType | undefined - _bindSelectionMenu_0_3value?: SelectionMenuOptions | undefined - _customKeyboard_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _customKeyboard_0_0value?: CustomBuilder | undefined - _customKeyboard_0_1value?: KeyboardOptions | undefined - _placeholder_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _placeholder_0_0value?: ResourceStr | undefined - _placeholder_0_1value?: PlaceholderStyle | undefined - applyModifierPatch(peer: ArkRichEditorPeer): void { - super.applyModifierPatch(peer) - if (this._onReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnReadyAttribute((this._onReady_0_0value as VoidCallback | undefined)); - this._onReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onReady_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnReadyAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSelect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSelectAttribute((this._onSelect_0_0value as ((value0: RichEditorSelection) => void) | undefined)); - this._onSelect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSelect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSelect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSelectAttribute((undefined as ((value0: RichEditorSelection) => void) | undefined)); - } - } - } - if (this._onSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSelectionChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSelectionChangeAttribute((this._onSelectionChange_0_0value as ((value0: RichEditorRange) => void) | undefined)); - this._onSelectionChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSelectionChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSelectionChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSelectionChangeAttribute((undefined as ((value0: RichEditorRange) => void) | undefined)); - } - } - } - if (this._aboutToIMEInput_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._aboutToIMEInput_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAboutToIMEInputAttribute((this._aboutToIMEInput_0_0value as ((value0: RichEditorInsertValue) => boolean) | undefined)); - this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAboutToIMEInputAttribute((undefined as ((value0: RichEditorInsertValue) => boolean) | undefined)); - } - } - } - if (this._onIMEInputComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onIMEInputComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnIMEInputCompleteAttribute((this._onIMEInputComplete_0_0value as ((value0: RichEditorTextSpanResult) => void) | undefined)); - this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnIMEInputCompleteAttribute((undefined as ((value0: RichEditorTextSpanResult) => void) | undefined)); - } - } - } - if (this._onDidIMEInput_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDidIMEInput_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDidIMEInputAttribute((this._onDidIMEInput_0_0value as ((value0: TextRange) => void) | undefined)); - this._onDidIMEInput_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDidIMEInput_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDidIMEInput_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDidIMEInputAttribute((undefined as ((value0: TextRange) => void) | undefined)); - } - } - } - if (this._aboutToDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._aboutToDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAboutToDeleteAttribute((this._aboutToDelete_0_0value as ((value0: RichEditorDeleteValue) => boolean) | undefined)); - this._aboutToDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._aboutToDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._aboutToDelete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAboutToDeleteAttribute((undefined as ((value0: RichEditorDeleteValue) => boolean) | undefined)); - } - } - } - if (this._onDeleteComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDeleteComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDeleteCompleteAttribute((this._onDeleteComplete_0_0value as VoidCallback | undefined)); - this._onDeleteComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDeleteComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDeleteComplete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDeleteCompleteAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._copyOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._copyOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCopyOptionsAttribute((this._copyOptions_0_0value as CopyOptions | undefined)); - this._copyOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._copyOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._copyOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCopyOptionsAttribute((undefined as CopyOptions | undefined)); - } - } - } - if (this._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPaste_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPasteAttribute((this._onPaste_0_0value as PasteEventCallback | undefined)); - this._onPaste_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPaste_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPaste_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPasteAttribute((undefined as PasteEventCallback | undefined)); - } - } - } - if (this._enableDataDetector_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableDataDetector_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableDataDetectorAttribute((this._enableDataDetector_0_0value as boolean | undefined)); - this._enableDataDetector_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableDataDetector_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableDataDetector_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableDataDetectorAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enablePreviewText_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnablePreviewTextAttribute((this._enablePreviewText_0_0value as boolean | undefined)); - this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnablePreviewTextAttribute((undefined as boolean | undefined)); - } - } - } - if (this._dataDetectorConfig_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._dataDetectorConfig_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDataDetectorConfigAttribute((this._dataDetectorConfig_0_0value as TextDataDetectorConfig | undefined)); - this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDataDetectorConfigAttribute((undefined as TextDataDetectorConfig | undefined)); - } - } - } - if (this._caretColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._caretColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCaretColorAttribute((this._caretColor_0_0value as ResourceColor | undefined)); - this._caretColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._caretColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._caretColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCaretColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedBackgroundColorAttribute((this._selectedBackgroundColor_0_0value as ResourceColor | undefined)); - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedBackgroundColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._onEditingChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onEditingChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnEditingChangeAttribute((this._onEditingChange_0_0value as ((value0: boolean) => void) | undefined)); - this._onEditingChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onEditingChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onEditingChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnEditingChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (this._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enterKeyType_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnterKeyTypeAttribute((this._enterKeyType_0_0value as EnterKeyType | undefined)); - this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enterKeyType_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnterKeyTypeAttribute((undefined as EnterKeyType | undefined)); - } - } - } - if (this._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSubmit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSubmitAttribute((this._onSubmit_0_0value as SubmitCallback | undefined)); - this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSubmit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSubmitAttribute((undefined as SubmitCallback | undefined)); - } - } - } - if (this._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillChangeAttribute((this._onWillChange_0_0value as ((value0: RichEditorChangeValue) => boolean) | undefined)); - this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillChangeAttribute((undefined as ((value0: RichEditorChangeValue) => boolean) | undefined)); - } - } - } - if (this._onDidChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDidChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDidChangeAttribute((this._onDidChange_0_0value as OnDidChangeCallback | undefined)); - this._onDidChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDidChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDidChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDidChangeAttribute((undefined as OnDidChangeCallback | undefined)); - } - } - } - if (this._onCut_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onCut_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCutAttribute((this._onCut_0_0value as ((value0: CutEvent) => void) | undefined)); - this._onCut_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onCut_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onCut_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCutAttribute((undefined as ((value0: CutEvent) => void) | undefined)); - } - } - } - if (this._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onCopy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCopyAttribute((this._onCopy_0_0value as ((value0: CopyEvent) => void) | undefined)); - this._onCopy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onCopy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onCopy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCopyAttribute((undefined as ((value0: CopyEvent) => void) | undefined)); - } - } - } - if (this._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._editMenuOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEditMenuOptionsAttribute((this._editMenuOptions_0_0value as EditMenuOptions | undefined)); - this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEditMenuOptionsAttribute((undefined as EditMenuOptions | undefined)); - } - } - } - if (this._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableKeyboardOnFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableKeyboardOnFocusAttribute((this._enableKeyboardOnFocus_0_0value as boolean | undefined)); - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableKeyboardOnFocusAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); - } - } - } - if (this._barState_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barState_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarStateAttribute((this._barState_0_0value as BarState | undefined)); - this._barState_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barState_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barState_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarStateAttribute((undefined as BarState | undefined)); - } - } - } - if (this._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxLength_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxLengthAttribute((this._maxLength_0_0value as number | undefined)); - this._maxLength_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxLength_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxLength_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxLengthAttribute((undefined as number | undefined)); - } - } - } - if (this._maxLines_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxLines_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxLinesAttribute((this._maxLines_0_0value as number | undefined)); - this._maxLines_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxLines_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxLines_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxLinesAttribute((undefined as number | undefined)); - } - } - } - if (this._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._keyboardAppearance_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setKeyboardAppearanceAttribute((this._keyboardAppearance_0_0value as KeyboardAppearance | undefined)); - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setKeyboardAppearanceAttribute((undefined as KeyboardAppearance | undefined)); - } - } - } - if (this._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stopBackPress_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStopBackPressAttribute((this._stopBackPress_0_0value as boolean | undefined)); - this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stopBackPress_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStopBackPressAttribute((undefined as boolean | undefined)); - } - } - } - if (this._bindSelectionMenu_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindSelectionMenu_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindSelectionMenuAttribute((this._bindSelectionMenu_0_0value as RichEditorSpanType | undefined), (this._bindSelectionMenu_0_1value as CustomBuilder | undefined), (this._bindSelectionMenu_0_2value as ResponseType | RichEditorResponseType | undefined), (this._bindSelectionMenu_0_3value as SelectionMenuOptions | undefined)); - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindSelectionMenuAttribute((undefined as RichEditorSpanType | undefined), (undefined as CustomBuilder | undefined), (undefined as ResponseType | RichEditorResponseType | undefined), (undefined as SelectionMenuOptions | undefined | undefined)); - } - } - } - if (this._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._customKeyboard_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCustomKeyboardAttribute((this._customKeyboard_0_0value as CustomBuilder | undefined), (this._customKeyboard_0_1value as KeyboardOptions | undefined)); - this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._customKeyboard_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCustomKeyboardAttribute((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); - } - } - } - if (this._placeholder_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._placeholder_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPlaceholderAttribute((this._placeholder_0_0value as ResourceStr | undefined), (this._placeholder_0_1value as PlaceholderStyle | undefined)); - this._placeholder_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._placeholder_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._placeholder_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPlaceholderAttribute((undefined as ResourceStr | undefined), (undefined as PlaceholderStyle | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: RichEditorModifier): void { - super.mergeModifier(modifier) - if (modifier._onReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onReady(modifier._onReady_0_0value); - break; - } - default: { - this.onReady((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSelect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSelect(modifier._onSelect_0_0value); - break; - } - default: { - this.onSelect((undefined as ((value0: RichEditorSelection) => void) | undefined)); - } - } - } - if (modifier._onSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSelectionChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSelectionChange(modifier._onSelectionChange_0_0value); - break; - } - default: { - this.onSelectionChange((undefined as ((value0: RichEditorRange) => void) | undefined)); - } - } - } - if (modifier._aboutToIMEInput_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._aboutToIMEInput_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.aboutToIMEInput(modifier._aboutToIMEInput_0_0value); - break; - } - default: { - this.aboutToIMEInput((undefined as ((value0: RichEditorInsertValue) => boolean) | undefined)); - } - } - } - if (modifier._onIMEInputComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onIMEInputComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onIMEInputComplete(modifier._onIMEInputComplete_0_0value); - break; - } - default: { - this.onIMEInputComplete((undefined as ((value0: RichEditorTextSpanResult) => void) | undefined)); - } - } - } - if (modifier._onDidIMEInput_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDidIMEInput_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDidIMEInput(modifier._onDidIMEInput_0_0value); - break; - } - default: { - this.onDidIMEInput((undefined as ((value0: TextRange) => void) | undefined)); - } - } - } - if (modifier._aboutToDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._aboutToDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.aboutToDelete(modifier._aboutToDelete_0_0value); - break; - } - default: { - this.aboutToDelete((undefined as ((value0: RichEditorDeleteValue) => boolean) | undefined)); - } - } - } - if (modifier._onDeleteComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDeleteComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDeleteComplete(modifier._onDeleteComplete_0_0value); - break; - } - default: { - this.onDeleteComplete((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._copyOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._copyOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.copyOptions(modifier._copyOptions_0_0value); - break; - } - default: { - this.copyOptions((undefined as CopyOptions | undefined)); - } - } - } - if (modifier._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPaste_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPaste(modifier._onPaste_0_0value); - break; - } - default: { - this.onPaste((undefined as PasteEventCallback | undefined)); - } - } - } - if (modifier._enableDataDetector_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableDataDetector_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableDataDetector(modifier._enableDataDetector_0_0value); - break; - } - default: { - this.enableDataDetector((undefined as boolean | undefined)); - } - } - } - if (modifier._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enablePreviewText_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enablePreviewText(modifier._enablePreviewText_0_0value); - break; - } - default: { - this.enablePreviewText((undefined as boolean | undefined)); - } - } - } - if (modifier._dataDetectorConfig_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._dataDetectorConfig_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.dataDetectorConfig(modifier._dataDetectorConfig_0_0value); - break; - } - default: { - this.dataDetectorConfig((undefined as TextDataDetectorConfig | undefined)); - } - } - } - if (modifier._caretColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._caretColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.caretColor(modifier._caretColor_0_0value); - break; - } - default: { - this.caretColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedBackgroundColor(modifier._selectedBackgroundColor_0_0value); - break; - } - default: { - this.selectedBackgroundColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._onEditingChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onEditingChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onEditingChange(modifier._onEditingChange_0_0value); - break; - } - default: { - this.onEditingChange((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (modifier._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enterKeyType_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enterKeyType(modifier._enterKeyType_0_0value); - break; - } - default: { - this.enterKeyType((undefined as EnterKeyType | undefined)); - } - } - } - if (modifier._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSubmit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSubmit(modifier._onSubmit_0_0value); - break; - } - default: { - this.onSubmit((undefined as SubmitCallback | undefined)); - } - } - } - if (modifier._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillChange(modifier._onWillChange_0_0value); - break; - } - default: { - this.onWillChange((undefined as ((value0: RichEditorChangeValue) => boolean) | undefined)); - } - } - } - if (modifier._onDidChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDidChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDidChange(modifier._onDidChange_0_0value); - break; - } - default: { - this.onDidChange((undefined as OnDidChangeCallback | undefined)); - } - } - } - if (modifier._onCut_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onCut_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onCut(modifier._onCut_0_0value); - break; - } - default: { - this.onCut((undefined as ((value0: CutEvent) => void) | undefined)); - } - } - } - if (modifier._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onCopy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onCopy(modifier._onCopy_0_0value); - break; - } - default: { - this.onCopy((undefined as ((value0: CopyEvent) => void) | undefined)); - } - } - } - if (modifier._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._editMenuOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.editMenuOptions(modifier._editMenuOptions_0_0value); - break; - } - default: { - this.editMenuOptions((undefined as EditMenuOptions | undefined)); - } - } - } - if (modifier._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableKeyboardOnFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableKeyboardOnFocus(modifier._enableKeyboardOnFocus_0_0value); - break; - } - default: { - this.enableKeyboardOnFocus((undefined as boolean | undefined)); - } - } - } - if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); - break; - } - default: { - this.enableHapticFeedback((undefined as boolean | undefined)); - } - } - } - if (modifier._barState_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barState_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barState(modifier._barState_0_0value); - break; - } - default: { - this.barState((undefined as BarState | undefined)); - } - } - } - if (modifier._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxLength_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxLength(modifier._maxLength_0_0value); - break; - } - default: { - this.maxLength((undefined as number | undefined)); - } - } - } - if (modifier._maxLines_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxLines_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxLines(modifier._maxLines_0_0value); - break; - } - default: { - this.maxLines((undefined as number | undefined)); - } - } - } - if (modifier._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._keyboardAppearance_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.keyboardAppearance(modifier._keyboardAppearance_0_0value); - break; - } - default: { - this.keyboardAppearance((undefined as KeyboardAppearance | undefined)); - } - } - } - if (modifier._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stopBackPress_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stopBackPress(modifier._stopBackPress_0_0value); - break; - } - default: { - this.stopBackPress((undefined as boolean | undefined)); - } - } - } - if (modifier._bindSelectionMenu_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindSelectionMenu_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindSelectionMenu(modifier._bindSelectionMenu_0_0value, modifier._bindSelectionMenu_0_1value, modifier._bindSelectionMenu_0_2value, modifier._bindSelectionMenu_0_3value); - break; - } - default: { - this.bindSelectionMenu((undefined as RichEditorSpanType | undefined), (undefined as CustomBuilder | undefined), (undefined as ResponseType | RichEditorResponseType | undefined), (undefined as SelectionMenuOptions | undefined | undefined)); - } - } - } - if (modifier._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._customKeyboard_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.customKeyboard(modifier._customKeyboard_0_0value, modifier._customKeyboard_0_1value); - break; - } - default: { - this.customKeyboard((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); - } - } - } - if (modifier._placeholder_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._placeholder_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.placeholder(modifier._placeholder_0_0value, modifier._placeholder_0_1value); - break; - } - default: { - this.placeholder((undefined as ResourceStr | undefined), (undefined as PlaceholderStyle | undefined | undefined)); - } - } - } - } - onReady(value: VoidCallback | undefined): this { - if (((this._onReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onReady_0_flag = AttributeUpdaterFlag.UPDATE - this._onReady_0_0value = value - } else - { - this._onReady_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSelect(value: ((value0: RichEditorSelection) => void) | undefined): this { - if (((this._onSelect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSelect_0_flag = AttributeUpdaterFlag.UPDATE - this._onSelect_0_0value = value - } else - { - this._onSelect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSelectionChange(value: ((value0: RichEditorRange) => void) | undefined): this { - if (((this._onSelectionChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSelectionChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onSelectionChange_0_0value = value - } else - { - this._onSelectionChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - aboutToIMEInput(value: ((value0: RichEditorInsertValue) => boolean) | undefined): this { - if (((this._aboutToIMEInput_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.UPDATE - this._aboutToIMEInput_0_0value = value - } else - { - this._aboutToIMEInput_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onIMEInputComplete(value: ((value0: RichEditorTextSpanResult) => void) | undefined): this { - if (((this._onIMEInputComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.UPDATE - this._onIMEInputComplete_0_0value = value - } else - { - this._onIMEInputComplete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDidIMEInput(value: ((value0: TextRange) => void) | undefined): this { - if (((this._onDidIMEInput_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDidIMEInput_0_flag = AttributeUpdaterFlag.UPDATE - this._onDidIMEInput_0_0value = value - } else - { - this._onDidIMEInput_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - aboutToDelete(value: ((value0: RichEditorDeleteValue) => boolean) | undefined): this { - if (((this._aboutToDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._aboutToDelete_0_flag = AttributeUpdaterFlag.UPDATE - this._aboutToDelete_0_0value = value - } else - { - this._aboutToDelete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDeleteComplete(value: VoidCallback | undefined): this { - if (((this._onDeleteComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDeleteComplete_0_flag = AttributeUpdaterFlag.UPDATE - this._onDeleteComplete_0_0value = value - } else - { - this._onDeleteComplete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - copyOptions(value: CopyOptions | undefined): this { - if (((this._copyOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._copyOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._copyOptions_0_0value = value - } else - { - this._copyOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPaste(value: PasteEventCallback | undefined): this { - if (((this._onPaste_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPaste_0_flag = AttributeUpdaterFlag.UPDATE - this._onPaste_0_0value = value - } else - { - this._onPaste_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableDataDetector(value: boolean | undefined): this { - if (((this._enableDataDetector_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableDataDetector_0_0value) !== (value))) - { - this._enableDataDetector_0_flag = AttributeUpdaterFlag.UPDATE - this._enableDataDetector_0_0value = value - } else - { - this._enableDataDetector_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enablePreviewText(value: boolean | undefined): this { - if (((this._enablePreviewText_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enablePreviewText_0_0value) !== (value))) - { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.UPDATE - this._enablePreviewText_0_0value = value - } else - { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - dataDetectorConfig(value: TextDataDetectorConfig | undefined): this { - if (((this._dataDetectorConfig_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.UPDATE - this._dataDetectorConfig_0_0value = value - } else - { - this._dataDetectorConfig_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - caretColor(value: ResourceColor | undefined): this { - if (((this._caretColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._caretColor_0_flag = AttributeUpdaterFlag.UPDATE - this._caretColor_0_0value = value - } else - { - this._caretColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedBackgroundColor(value: ResourceColor | undefined): this { - if (((this._selectedBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedBackgroundColor_0_0value = value - } else - { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onEditingChange(value: ((value0: boolean) => void) | undefined): this { - if (((this._onEditingChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onEditingChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onEditingChange_0_0value = value - } else - { - this._onEditingChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enterKeyType(value: EnterKeyType | undefined): this { - if (((this._enterKeyType_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._enterKeyType_0_flag = AttributeUpdaterFlag.UPDATE - this._enterKeyType_0_0value = value - } else - { - this._enterKeyType_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSubmit(value: SubmitCallback | undefined): this { - if (((this._onSubmit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSubmit_0_flag = AttributeUpdaterFlag.UPDATE - this._onSubmit_0_0value = value - } else - { - this._onSubmit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillChange(value: ((value0: RichEditorChangeValue) => boolean) | undefined): this { - if (((this._onWillChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillChange_0_0value = value - } else - { - this._onWillChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDidChange(value: OnDidChangeCallback | undefined): this { - if (((this._onDidChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDidChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onDidChange_0_0value = value - } else - { - this._onDidChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onCut(value: ((value0: CutEvent) => void) | undefined): this { - if (((this._onCut_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onCut_0_flag = AttributeUpdaterFlag.UPDATE - this._onCut_0_0value = value - } else - { - this._onCut_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onCopy(value: ((value0: CopyEvent) => void) | undefined): this { - if (((this._onCopy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onCopy_0_flag = AttributeUpdaterFlag.UPDATE - this._onCopy_0_0value = value - } else - { - this._onCopy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - editMenuOptions(value: EditMenuOptions | undefined): this { - if (((this._editMenuOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._editMenuOptions_0_0value = value - } else - { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableKeyboardOnFocus(value: boolean | undefined): this { - if (((this._enableKeyboardOnFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableKeyboardOnFocus_0_0value) !== (value))) - { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.UPDATE - this._enableKeyboardOnFocus_0_0value = value - } else - { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableHapticFeedback(value: boolean | undefined): this { - if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE - this._enableHapticFeedback_0_0value = value - } else - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barState(value: BarState | undefined): this { - if (((this._barState_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barState_0_flag = AttributeUpdaterFlag.UPDATE - this._barState_0_0value = value - } else - { - this._barState_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxLength(value: number | undefined): this { - if (((this._maxLength_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLength_0_0value) !== (value))) - { - this._maxLength_0_flag = AttributeUpdaterFlag.UPDATE - this._maxLength_0_0value = value - } else - { - this._maxLength_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxLines(value: number | undefined): this { - if (((this._maxLines_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLines_0_0value) !== (value))) - { - this._maxLines_0_flag = AttributeUpdaterFlag.UPDATE - this._maxLines_0_0value = value - } else - { - this._maxLines_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - keyboardAppearance(value: KeyboardAppearance | undefined): this { - if (((this._keyboardAppearance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.UPDATE - this._keyboardAppearance_0_0value = value - } else - { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - stopBackPress(value: boolean | undefined): this { - if (((this._stopBackPress_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stopBackPress_0_0value) !== (value))) - { - this._stopBackPress_0_flag = AttributeUpdaterFlag.UPDATE - this._stopBackPress_0_0value = value - } else - { - this._stopBackPress_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindSelectionMenu(spanType: RichEditorSpanType | undefined, content: CustomBuilder | undefined, responseType: ResponseType | RichEditorResponseType | undefined, options?: SelectionMenuOptions): this { - if (((this._bindSelectionMenu_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true) || (true)) - { - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.UPDATE - this._bindSelectionMenu_0_0value = spanType - this._bindSelectionMenu_0_1value = content - this._bindSelectionMenu_0_2value = responseType - this._bindSelectionMenu_0_3value = options - } else - { - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { - if (((this._customKeyboard_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._customKeyboard_0_flag = AttributeUpdaterFlag.UPDATE - this._customKeyboard_0_0value = value - this._customKeyboard_0_1value = options - } else - { - this._customKeyboard_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - placeholder(value: ResourceStr | undefined, style?: PlaceholderStyle): this { - if (((this._placeholder_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._placeholder_0_flag = AttributeUpdaterFlag.UPDATE - this._placeholder_0_0value = value - this._placeholder_0_1value = style - } else - { - this._placeholder_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class RichEditorBaseController_serializer { public static write(buffer: SerializerBase, value: RichEditorBaseController): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/richText.ets b/arkoala-arkts/arkui/generated/component/richText.ets similarity index 58% rename from arkoala-arkts/arkui/src/component/richText.ets rename to arkoala-arkts/arkui/generated/component/richText.ets index 0586c850c53b325ad8bf5718bea0772aefebf45e..ad67b2717999c5d156364facc066e82804b2f417 100644 --- a/arkoala-arkts/arkui/src/component/richText.ets +++ b/arkoala-arkts/arkui/generated/component/richText.ets @@ -21,14 +21,13 @@ 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkRichTextPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -150,106 +149,3 @@ export function RichText( }) } -export class RichTextModifier extends CommonMethodModifier implements RichTextAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onStart_0_0value?: (() => void) | undefined - _onComplete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onComplete_0_0value?: (() => void) | undefined - applyModifierPatch(peer: ArkRichTextPeer): void { - super.applyModifierPatch(peer) - if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnStartAttribute((this._onStart_0_0value as (() => void) | undefined)); - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnStartAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCompleteAttribute((this._onComplete_0_0value as (() => void) | undefined)); - this._onComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onComplete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onComplete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCompleteAttribute((undefined as (() => void) | undefined)); - } - } - } - } - mergeModifier(modifier: RichTextModifier): void { - super.mergeModifier(modifier) - if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onStart(modifier._onStart_0_0value); - break; - } - default: { - this.onStart((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onComplete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onComplete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onComplete(modifier._onComplete_0_0value); - break; - } - default: { - this.onComplete((undefined as (() => void) | undefined)); - } - } - } - } - onStart(value: (() => void) | undefined): this { - if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onStart_0_0value = value - } else - { - this._onStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onComplete(value: (() => void) | undefined): this { - if (((this._onComplete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onComplete_0_flag = AttributeUpdaterFlag.UPDATE - this._onComplete_0_0value = value - } else - { - this._onComplete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/rootScene.ets b/arkoala-arkts/arkui/generated/component/rootScene.ets similarity index 83% rename from arkoala-arkts/arkui/src/component/rootScene.ets rename to arkoala-arkts/arkui/generated/component/rootScene.ets index 0ea86ec3e2504f1f5d2deda4669f8fe0b1cb4d6a..5901133dca1e72d7661751cf55733b27c06cd5dd 100644 --- a/arkoala-arkts/arkui/src/component/rootScene.ets +++ b/arkoala-arkts/arkui/generated/component/rootScene.ets @@ -21,14 +21,13 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkRootScenePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -101,21 +100,6 @@ export function RootScene( }) } -export class RootSceneModifier extends CommonMethodModifier implements RootSceneAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkRootScenePeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: RootSceneModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class RootSceneSession_serializer { public static write(buffer: SerializerBase, value: RootSceneSession): void { } diff --git a/arkoala-arkts/arkui/src/component/row.ets b/arkoala-arkts/arkui/generated/component/row.ets similarity index 60% rename from arkoala-arkts/arkui/src/component/row.ets rename to arkoala-arkts/arkui/generated/component/row.ets index 509d64cef9a96fa57c4a64d70b8fbd13e314652f..c58a8e67a8454ded1e1111734f3350445105da2d 100644 --- a/arkoala-arkts/arkui/src/component/row.ets +++ b/arkoala-arkts/arkui/generated/component/row.ets @@ -17,19 +17,18 @@ // 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 { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { int32, int64, float32, unsafeCast } from "@koalaui/common" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkRowPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -228,197 +227,6 @@ export function Row( }) } -export class RowModifier extends CommonMethodModifier implements RowAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _alignItems_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alignItems_0_0value?: VerticalAlign | undefined - _justifyContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _justifyContent_0_0value?: FlexAlign | undefined - _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pointLight_0_0value?: PointLightStyle | undefined - _reverse_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _reverse_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkRowPeer): void { - super.applyModifierPatch(peer) - if (this._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alignItems_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignItemsAttribute((this._alignItems_0_0value as VerticalAlign | undefined)); - this._alignItems_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alignItems_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alignItems_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignItemsAttribute((undefined as VerticalAlign | undefined)); - } - } - } - if (this._justifyContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._justifyContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setJustifyContentAttribute((this._justifyContent_0_0value as FlexAlign | undefined)); - this._justifyContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._justifyContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._justifyContent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setJustifyContentAttribute((undefined as FlexAlign | undefined)); - } - } - } - if (this._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); - } - } - } - if (this._reverse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._reverse_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setReverseAttribute((this._reverse_0_0value as boolean | undefined)); - this._reverse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._reverse_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._reverse_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setReverseAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: RowModifier): void { - super.mergeModifier(modifier) - if (modifier._alignItems_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alignItems_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alignItems(modifier._alignItems_0_0value); - break; - } - default: { - this.alignItems((undefined as VerticalAlign | undefined)); - } - } - } - if (modifier._justifyContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._justifyContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.justifyContent(modifier._justifyContent_0_0value); - break; - } - default: { - this.justifyContent((undefined as FlexAlign | undefined)); - } - } - } - if (modifier._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pointLight(modifier._pointLight_0_0value); - break; - } - default: { - this.pointLight((undefined as PointLightStyle | undefined)); - } - } - } - if (modifier._reverse_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._reverse_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.reverse(modifier._reverse_0_0value); - break; - } - default: { - this.reverse((undefined as boolean | undefined)); - } - } - } - } - alignItems(value: VerticalAlign | undefined): this { - if (((this._alignItems_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alignItems_0_flag = AttributeUpdaterFlag.UPDATE - this._alignItems_0_0value = value - } else - { - this._alignItems_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - justifyContent(value: FlexAlign | undefined): this { - if (((this._justifyContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._justifyContent_0_flag = AttributeUpdaterFlag.UPDATE - this._justifyContent_0_0value = value - } else - { - this._justifyContent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pointLight(value: PointLightStyle | undefined): this { - if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE - this._pointLight_0_0value = value - } else - { - this._pointLight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - reverse(value: boolean | undefined): this { - if (((this._reverse_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._reverse_0_0value) !== (value))) - { - this._reverse_0_flag = AttributeUpdaterFlag.UPDATE - this._reverse_0_0value = value - } else - { - this._reverse_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class RowOptionsV2_serializer { public static write(buffer: SerializerBase, value: RowOptionsV2): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/rowSplit.ets b/arkoala-arkts/arkui/generated/component/rowSplit.ets similarity index 64% rename from arkoala-arkts/arkui/src/component/rowSplit.ets rename to arkoala-arkts/arkui/generated/component/rowSplit.ets index 6e3d5bdb6b443e53813e71d34d49f065743a3438..782444b04a628b64ebb1d66dec7ef9e534e276c6 100644 --- a/arkoala-arkts/arkui/src/component/rowSplit.ets +++ b/arkoala-arkts/arkui/generated/component/rowSplit.ets @@ -21,14 +21,13 @@ 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkRowSplitPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -122,62 +121,3 @@ export function RowSplit( }) } -export class RowSplitModifier extends CommonMethodModifier implements RowSplitAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _resizeable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _resizeable_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkRowSplitPeer): void { - super.applyModifierPatch(peer) - if (this._resizeable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._resizeable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setResizeableAttribute((this._resizeable_0_0value as boolean | undefined)); - this._resizeable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._resizeable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._resizeable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setResizeableAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: RowSplitModifier): void { - super.mergeModifier(modifier) - if (modifier._resizeable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._resizeable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.resizeable(modifier._resizeable_0_0value); - break; - } - default: { - this.resizeable((undefined as boolean | undefined)); - } - } - } - } - resizeable(value: boolean | undefined): this { - if (((this._resizeable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._resizeable_0_0value) !== (value))) - { - this._resizeable_0_flag = AttributeUpdaterFlag.UPDATE - this._resizeable_0_0value = value - } else - { - this._resizeable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/saveButton.ets b/arkoala-arkts/arkui/generated/component/saveButton.ets similarity index 96% rename from arkoala-arkts/arkui/src/component/saveButton.ets rename to arkoala-arkts/arkui/generated/component/saveButton.ets index 24dd3d4ce5b79e1ae1d451b8c12b84f3ee5f1907..2ad9d5efab687b80ddbedcb1ac9e3987c67ac47d 100644 --- a/arkoala-arkts/arkui/src/component/saveButton.ets +++ b/arkoala-arkts/arkui/generated/component/saveButton.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ButtonType } from "./button" import { ClickEvent } from "./common" import { SecurityComponentMethod } from "./securityComponent" diff --git a/arkoala-arkts/arkui/src/component/screen.ets b/arkoala-arkts/arkui/generated/component/screen.ets similarity index 81% rename from arkoala-arkts/arkui/src/component/screen.ets rename to arkoala-arkts/arkui/generated/component/screen.ets index acdd34b229fabdfe62b040ca8327659e9b058d03..18c1ea90c5499a0cedd39a26bdb59cfd626616af 100644 --- a/arkoala-arkts/arkui/src/component/screen.ets +++ b/arkoala-arkts/arkui/generated/component/screen.ets @@ -21,14 +21,13 @@ import { nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkScreenPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -96,18 +95,3 @@ export function Screen( }) } -export class ScreenModifier extends CommonMethodModifier implements ScreenAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkScreenPeer): void { - super.applyModifierPatch(peer) - } - mergeModifier(modifier: ScreenModifier): void { - super.mergeModifier(modifier) - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/scroll.ets b/arkoala-arkts/arkui/generated/component/scroll.ets similarity index 66% rename from arkoala-arkts/arkui/src/component/scroll.ets rename to arkoala-arkts/arkui/generated/component/scroll.ets index 326037ec6587420c1930eb2b31c471434fec1b57..c5399701d0846fd61412ca3f1bd4509d9b47e7a8 100644 --- a/arkoala-arkts/arkui/src/component/scroll.ets +++ b/arkoala-arkts/arkui/generated/component/scroll.ets @@ -17,24 +17,24 @@ // 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 { RectResult_serializer, RectResult, NestedScrollOptions_serializer, EdgeEffectOptions_serializer, ArkScrollableCommonMethodPeer, ScrollableCommonMethod, NestedScrollOptions, CommonMethod, EdgeEffectOptions, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, ScrollableCommonMethodModifier, CommonMethodModifier } from "./common" +import { Resource_serializer } from "./../framework/resource" +import { RectResult_serializer, RectResult, NestedScrollOptions_serializer, EdgeEffectOptions_serializer, ArkScrollableCommonMethodPeer, ScrollableCommonMethod, NestedScrollOptions, CommonMethod, EdgeEffectOptions, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { Edge, ScrollSource, BarState, Color, EdgeEffect } from "./enums" import { Length, VoidCallback, Dimension } from "./units" +import { Resource } from "global.resource" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetrics, LengthMetrics_serializer } from "./../Graphics" +import { curves, curves_ICurve_serializer } from "./../framework/ohos.curves" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ScrollerInternal { public static fromPtr(ptr: KPointer): Scroller { return new Scroller(ptr) @@ -822,771 +822,6 @@ export function Scroll( }) } -export class ScrollModifier extends ScrollableCommonMethodModifier implements ScrollAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _scrollable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _scrollable_0_0value?: ScrollDirection | undefined - _onWillScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillScroll_0_0value?: ScrollOnWillScrollCallback | undefined - _onDidScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDidScroll_0_0value?: ScrollOnScrollCallback | undefined - _onScrollEdge_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollEdge_0_0value?: OnScrollEdgeCallback | undefined - _onScrollStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollStart_0_0value?: VoidCallback | undefined - _onScrollStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollStop_0_0value?: VoidCallback | undefined - _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 - _onScrollFrameBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollFrameBegin_0_0value?: OnScrollFrameBeginCallback | 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 - _scrollSnap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _scrollSnap_0_0value?: ScrollSnapOptions | undefined - _enablePaging_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enablePaging_0_0value?: boolean | undefined - _initialOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _initialOffset_0_0value?: OffsetOptions | undefined - _edgeEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _edgeEffect_0_0value?: EdgeEffect | undefined - _edgeEffect_0_1value?: EdgeEffectOptions | undefined - applyModifierPatch(peer: ArkScrollPeer): void { - super.applyModifierPatch(peer) - if (this._scrollable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._scrollable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setScrollableAttribute((this._scrollable_0_0value as ScrollDirection | undefined)); - this._scrollable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._scrollable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._scrollable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setScrollableAttribute((undefined as ScrollDirection | undefined)); - } - } - } - if (this._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillScrollAttribute((this._onWillScroll_0_0value as ScrollOnWillScrollCallback | undefined)); - this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillScrollAttribute((undefined as ScrollOnWillScrollCallback | undefined)); - } - } - } - if (this._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDidScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDidScrollAttribute((this._onDidScroll_0_0value as ScrollOnScrollCallback | undefined)); - this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDidScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDidScrollAttribute((undefined as ScrollOnScrollCallback | undefined)); - } - } - } - if (this._onScrollEdge_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollEdge_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollEdgeAttribute((this._onScrollEdge_0_0value as OnScrollEdgeCallback | undefined)); - this._onScrollEdge_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScrollEdge_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScrollEdge_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollEdgeAttribute((undefined as OnScrollEdgeCallback | undefined)); - } - } - } - if (this._onScrollStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollStartAttribute((this._onScrollStart_0_0value as VoidCallback | 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 VoidCallback | undefined)); - } - } - } - if (this._onScrollStop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollStop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollStopAttribute((this._onScrollStop_0_0value as VoidCallback | 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 VoidCallback | undefined)); - } - } - } - 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._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollFrameBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollFrameBeginAttribute((this._onScrollFrameBegin_0_0value as OnScrollFrameBeginCallback | undefined)); - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollFrameBeginAttribute((undefined as OnScrollFrameBeginCallback | 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._scrollSnap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._scrollSnap_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setScrollSnapAttribute((this._scrollSnap_0_0value as ScrollSnapOptions | undefined)); - this._scrollSnap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._scrollSnap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._scrollSnap_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setScrollSnapAttribute((undefined as ScrollSnapOptions | undefined)); - } - } - } - if (this._enablePaging_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enablePaging_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnablePagingAttribute((this._enablePaging_0_0value as boolean | undefined)); - this._enablePaging_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enablePaging_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enablePaging_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnablePagingAttribute((undefined as boolean | undefined)); - } - } - } - if (this._initialOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._initialOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setInitialOffsetAttribute((this._initialOffset_0_0value as OffsetOptions | undefined)); - this._initialOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._initialOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._initialOffset_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setInitialOffsetAttribute((undefined as OffsetOptions | 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)); - } - } - } - } - mergeModifier(modifier: ScrollModifier): void { - super.mergeModifier(modifier) - if (modifier._scrollable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._scrollable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.scrollable(modifier._scrollable_0_0value); - break; - } - default: { - this.scrollable((undefined as ScrollDirection | undefined)); - } - } - } - if (modifier._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillScroll(modifier._onWillScroll_0_0value); - break; - } - default: { - this.onWillScroll((undefined as ScrollOnWillScrollCallback | undefined)); - } - } - } - if (modifier._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDidScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDidScroll(modifier._onDidScroll_0_0value); - break; - } - default: { - this.onDidScroll((undefined as ScrollOnScrollCallback | undefined)); - } - } - } - if (modifier._onScrollEdge_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScrollEdge_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScrollEdge(modifier._onScrollEdge_0_0value); - break; - } - default: { - this.onScrollEdge((undefined as OnScrollEdgeCallback | 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 VoidCallback | 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 VoidCallback | undefined)); - } - } - } - 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._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScrollFrameBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScrollFrameBegin(modifier._onScrollFrameBegin_0_0value); - break; - } - default: { - this.onScrollFrameBegin((undefined as OnScrollFrameBeginCallback | 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._scrollSnap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._scrollSnap_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.scrollSnap(modifier._scrollSnap_0_0value); - break; - } - default: { - this.scrollSnap((undefined as ScrollSnapOptions | undefined)); - } - } - } - if (modifier._enablePaging_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enablePaging_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enablePaging(modifier._enablePaging_0_0value); - break; - } - default: { - this.enablePaging((undefined as boolean | undefined)); - } - } - } - if (modifier._initialOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._initialOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.initialOffset(modifier._initialOffset_0_0value); - break; - } - default: { - this.initialOffset((undefined as OffsetOptions | 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)); - } - } - } - } - scrollable(value: ScrollDirection | undefined): this { - if (((this._scrollable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._scrollable_0_flag = AttributeUpdaterFlag.UPDATE - this._scrollable_0_0value = value - } else - { - this._scrollable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillScroll(value: ScrollOnWillScrollCallback | undefined): this { - if (((this._onWillScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillScroll_0_0value = value - } else - { - this._onWillScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDidScroll(value: ScrollOnScrollCallback | undefined): this { - if (((this._onDidScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDidScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onDidScroll_0_0value = value - } else - { - this._onDidScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollEdge(value: OnScrollEdgeCallback | undefined): this { - if (((this._onScrollEdge_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScrollEdge_0_flag = AttributeUpdaterFlag.UPDATE - this._onScrollEdge_0_0value = value - } else - { - this._onScrollEdge_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollStart(value: VoidCallback | 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: VoidCallback | 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 - } - 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 - } - onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { - if (((this._onScrollFrameBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.UPDATE - this._onScrollFrameBegin_0_0value = value - } else - { - this._onScrollFrameBegin_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 - } - scrollSnap(value: ScrollSnapOptions | undefined): this { - if (((this._scrollSnap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._scrollSnap_0_flag = AttributeUpdaterFlag.UPDATE - this._scrollSnap_0_0value = value - } else - { - this._scrollSnap_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enablePaging(value: boolean | undefined): this { - if (((this._enablePaging_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enablePaging_0_0value) !== (value))) - { - this._enablePaging_0_flag = AttributeUpdaterFlag.UPDATE - this._enablePaging_0_0value = value - } else - { - this._enablePaging_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - initialOffset(value: OffsetOptions | undefined): this { - if (((this._initialOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._initialOffset_0_flag = AttributeUpdaterFlag.UPDATE - this._initialOffset_0_0value = value - } else - { - this._initialOffset_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 - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class OffsetResult_serializer { public static write(buffer: SerializerBase, value: OffsetResult): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/scrollBar.ets b/arkoala-arkts/arkui/generated/component/scrollBar.ets similarity index 74% rename from arkoala-arkts/arkui/src/component/scrollBar.ets rename to arkoala-arkts/arkui/generated/component/scrollBar.ets index a8e5a8b645e3b6b729adb282bacb52b4851d1d81..18acd216b1ff22e35bc283abc726c6743e39a363 100644 --- a/arkoala-arkts/arkui/src/component/scrollBar.ets +++ b/arkoala-arkts/arkui/generated/component/scrollBar.ets @@ -21,16 +21,15 @@ import { int32, int64, float32, unsafeCast } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Scroller, Scroller_serializer } from "./scroll" import { BarState } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkScrollBarPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -139,65 +138,6 @@ export function ScrollBar( }) } -export class ScrollBarModifier extends CommonMethodModifier implements ScrollBarAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _enableNestedScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableNestedScroll_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkScrollBarPeer): void { - super.applyModifierPatch(peer) - if (this._enableNestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableNestedScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableNestedScrollAttribute((this._enableNestedScroll_0_0value as boolean | undefined)); - this._enableNestedScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableNestedScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableNestedScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableNestedScrollAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: ScrollBarModifier): void { - super.mergeModifier(modifier) - if (modifier._enableNestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableNestedScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableNestedScroll(modifier._enableNestedScroll_0_0value); - break; - } - default: { - this.enableNestedScroll((undefined as boolean | undefined)); - } - } - } - } - enableNestedScroll(value: boolean | undefined): this { - if (((this._enableNestedScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableNestedScroll_0_0value) !== (value))) - { - this._enableNestedScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._enableNestedScroll_0_0value = value - } else - { - this._enableNestedScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ScrollBarOptions_serializer { public static write(buffer: SerializerBase, value: ScrollBarOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/search.ets b/arkoala-arkts/arkui/generated/component/search.ets similarity index 52% rename from arkoala-arkts/arkui/src/component/search.ets rename to arkoala-arkts/arkui/generated/component/search.ets index 047ca2202be39d87995269fba246961363eb8a59..d3ba34692bd26e4f0602dd9b1dd90fddd3c197f0 100644 --- a/arkoala-arkts/arkui/src/component/search.ets +++ b/arkoala-arkts/arkui/generated/component/search.ets @@ -17,26 +17,26 @@ // 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 } from "./../framework/resource" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../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" +import { TextDecorationOptions_serializer, ArkCommonMethodPeer, CommonMethod, TextDecorationOptions, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable_String_serializer, SelectionOptions_serializer, TextContentControllerBase, TextContentControllerBaseInternal, SelectionOptions } from "./common" import { KeyboardOptions_serializer, PasteEvent, KeyboardOptions } from "./richEditor" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" import { Color, CopyOptions, TextAlign } from "./enums" +import { Resource } from "global.resource" import { EnterKeyType, SubmitEvent, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./textInput" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkSearchPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -1605,2095 +1605,6 @@ export function Search( }) } -export class SearchModifier extends CommonMethodModifier implements SearchAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: ResourceColor | undefined - _searchIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _searchIcon_0_0value?: IconOptions | SymbolGlyphModifier | undefined - _cancelButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cancelButton_0_0value?: CancelButtonOptions | CancelButtonSymbolOptions | undefined - _textIndent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textIndent_0_0value?: Dimension | undefined - _onEditChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onEditChange_0_0value?: ((value0: boolean) => void) | undefined - _selectedBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedBackgroundColor_0_0value?: ResourceColor | undefined - _caretStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _caretStyle_0_0value?: CaretStyle | undefined - _placeholderColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _placeholderColor_0_0value?: ResourceColor | undefined - _placeholderFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _placeholderFont_0_0value?: Font | undefined - _textFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textFont_0_0value?: Font | undefined - _enterKeyType_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enterKeyType_0_0value?: EnterKeyType | undefined - _onSubmit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSubmit_0_0value?: ((value0: string) => void) | SearchSubmitCallback | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: EditableTextOnChangeCallback | undefined - _onTextSelectionChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTextSelectionChange_0_0value?: OnTextSelectionChangeCallback | undefined - _onContentScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onContentScroll_0_0value?: OnContentScrollCallback | undefined - _onCopy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onCopy_0_0value?: ((value0: string) => void) | undefined - _onCut_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onCut_0_0value?: ((value0: string) => void) | undefined - _onPaste_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPaste_0_0value?: OnPasteCallback | undefined - _copyOption_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _copyOption_0_0value?: CopyOptions | undefined - _maxLength_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxLength_0_0value?: number | undefined - _textAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textAlign_0_0value?: TextAlign | undefined - _enableKeyboardOnFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableKeyboardOnFocus_0_0value?: boolean | undefined - _selectionMenuHidden_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectionMenuHidden_0_0value?: boolean | undefined - _minFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minFontSize_0_0value?: number | string | Resource | undefined - _maxFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxFontSize_0_0value?: number | string | Resource | undefined - _minFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minFontScale_0_0value?: number | Resource | undefined - _maxFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxFontScale_0_0value?: number | Resource | undefined - _decoration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _decoration_0_0value?: TextDecorationOptions | undefined - _letterSpacing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _letterSpacing_0_0value?: number | string | Resource | undefined - _lineHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _lineHeight_0_0value?: number | string | Resource | undefined - _type_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _type_0_0value?: SearchType | undefined - _fontFeature_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontFeature_0_0value?: string | undefined - _onWillInsert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillInsert_0_0value?: ((value0: InsertValue) => boolean) | undefined - _onDidInsert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDidInsert_0_0value?: ((value0: InsertValue) => void) | undefined - _onWillDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillDelete_0_0value?: ((value0: DeleteValue) => boolean) | undefined - _onDidDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDidDelete_0_0value?: ((value0: DeleteValue) => void) | undefined - _editMenuOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _editMenuOptions_0_0value?: EditMenuOptions | undefined - _enablePreviewText_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enablePreviewText_0_0value?: boolean | undefined - _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableHapticFeedback_0_0value?: boolean | undefined - _autoCapitalizationMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _autoCapitalizationMode_0_0value?: AutoCapitalizationMode | undefined - _halfLeading_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _halfLeading_0_0value?: boolean | undefined - _stopBackPress_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stopBackPress_0_0value?: boolean | undefined - _onWillChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillChange_0_0value?: ((value0: EditableTextChangeValue) => boolean) | undefined - _keyboardAppearance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _keyboardAppearance_0_0value?: KeyboardAppearance | undefined - _searchButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _searchButton_0_0value?: ResourceStr | undefined - _searchButton_0_1value?: SearchButtonOptions | undefined - _inputFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _inputFilter_0_0value?: ResourceStr | undefined - _inputFilter_0_1value?: ((value0: string) => void) | undefined - _customKeyboard_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _customKeyboard_0_0value?: CustomBuilder | undefined - _customKeyboard_0_1value?: KeyboardOptions | undefined - applyModifierPatch(peer: ArkSearchPeer): void { - super.applyModifierPatch(peer) - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._searchIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._searchIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSearchIconAttribute((this._searchIcon_0_0value as IconOptions | SymbolGlyphModifier | undefined)); - this._searchIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._searchIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._searchIcon_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSearchIconAttribute((undefined as IconOptions | SymbolGlyphModifier | undefined)); - } - } - } - if (this._cancelButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cancelButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCancelButtonAttribute((this._cancelButton_0_0value as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); - this._cancelButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cancelButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cancelButton_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCancelButtonAttribute((undefined as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); - } - } - } - if (this._textIndent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textIndent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextIndentAttribute((this._textIndent_0_0value as Dimension | undefined)); - this._textIndent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textIndent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textIndent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextIndentAttribute((undefined as Dimension | undefined)); - } - } - } - if (this._onEditChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onEditChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnEditChangeAttribute((this._onEditChange_0_0value as ((value0: boolean) => void) | undefined)); - this._onEditChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onEditChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onEditChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnEditChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (this._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedBackgroundColorAttribute((this._selectedBackgroundColor_0_0value as ResourceColor | undefined)); - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedBackgroundColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._caretStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._caretStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCaretStyleAttribute((this._caretStyle_0_0value as CaretStyle | undefined)); - this._caretStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._caretStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._caretStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCaretStyleAttribute((undefined as CaretStyle | undefined)); - } - } - } - if (this._placeholderColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._placeholderColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPlaceholderColorAttribute((this._placeholderColor_0_0value as ResourceColor | undefined)); - this._placeholderColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._placeholderColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._placeholderColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPlaceholderColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._placeholderFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._placeholderFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPlaceholderFontAttribute((this._placeholderFont_0_0value as Font | undefined)); - this._placeholderFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._placeholderFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._placeholderFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPlaceholderFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._textFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextFontAttribute((this._textFont_0_0value as Font | undefined)); - this._textFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enterKeyType_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnterKeyTypeAttribute((this._enterKeyType_0_0value as EnterKeyType | undefined)); - this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enterKeyType_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnterKeyTypeAttribute((undefined as EnterKeyType | undefined)); - } - } - } - if (this._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSubmit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSubmitAttribute((this._onSubmit_0_0value as ((value0: string) => void) | SearchSubmitCallback | undefined)); - this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSubmit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSubmitAttribute((undefined as ((value0: string) => void) | SearchSubmitCallback | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as EditableTextOnChangeCallback | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as EditableTextOnChangeCallback | undefined)); - } - } - } - if (this._onTextSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTextSelectionChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTextSelectionChangeAttribute((this._onTextSelectionChange_0_0value as OnTextSelectionChangeCallback | undefined)); - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTextSelectionChangeAttribute((undefined as OnTextSelectionChangeCallback | undefined)); - } - } - } - if (this._onContentScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onContentScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnContentScrollAttribute((this._onContentScroll_0_0value as OnContentScrollCallback | undefined)); - this._onContentScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onContentScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onContentScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnContentScrollAttribute((undefined as OnContentScrollCallback | undefined)); - } - } - } - if (this._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onCopy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCopyAttribute((this._onCopy_0_0value as ((value0: string) => void) | undefined)); - this._onCopy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onCopy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onCopy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCopyAttribute((undefined as ((value0: string) => void) | undefined)); - } - } - } - if (this._onCut_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onCut_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCutAttribute((this._onCut_0_0value as ((value0: string) => void) | undefined)); - this._onCut_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onCut_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onCut_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCutAttribute((undefined as ((value0: string) => void) | undefined)); - } - } - } - if (this._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPaste_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPasteAttribute((this._onPaste_0_0value as OnPasteCallback | undefined)); - this._onPaste_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPaste_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPaste_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPasteAttribute((undefined as OnPasteCallback | undefined)); - } - } - } - if (this._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._copyOption_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCopyOptionAttribute((this._copyOption_0_0value as CopyOptions | undefined)); - this._copyOption_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._copyOption_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._copyOption_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCopyOptionAttribute((undefined as CopyOptions | undefined)); - } - } - } - if (this._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxLength_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxLengthAttribute((this._maxLength_0_0value as number | undefined)); - this._maxLength_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxLength_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxLength_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxLengthAttribute((undefined as number | undefined)); - } - } - } - if (this._textAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextAlignAttribute((this._textAlign_0_0value as TextAlign | undefined)); - this._textAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textAlign_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextAlignAttribute((undefined as TextAlign | undefined)); - } - } - } - if (this._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableKeyboardOnFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableKeyboardOnFocusAttribute((this._enableKeyboardOnFocus_0_0value as boolean | undefined)); - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableKeyboardOnFocusAttribute((undefined as boolean | undefined)); - } - } - } - if (this._selectionMenuHidden_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectionMenuHidden_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectionMenuHiddenAttribute((this._selectionMenuHidden_0_0value as boolean | undefined)); - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectionMenuHiddenAttribute((undefined as boolean | undefined)); - } - } - } - if (this._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinFontSizeAttribute((this._minFontSize_0_0value as number | string | Resource | undefined)); - this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minFontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinFontSizeAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._maxFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxFontSizeAttribute((this._maxFontSize_0_0value as number | string | Resource | undefined)); - this._maxFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxFontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxFontSizeAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinFontScaleAttribute((this._minFontScale_0_0value as number | Resource | undefined)); - this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minFontScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinFontScaleAttribute((undefined as number | Resource | undefined)); - } - } - } - if (this._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxFontScaleAttribute((this._maxFontScale_0_0value as number | Resource | undefined)); - this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxFontScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxFontScaleAttribute((undefined as number | Resource | undefined)); - } - } - } - if (this._decoration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._decoration_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDecorationAttribute((this._decoration_0_0value as TextDecorationOptions | undefined)); - this._decoration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._decoration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._decoration_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDecorationAttribute((undefined as TextDecorationOptions | undefined)); - } - } - } - if (this._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._letterSpacing_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLetterSpacingAttribute((this._letterSpacing_0_0value as number | string | Resource | undefined)); - this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._letterSpacing_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLetterSpacingAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._lineHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLineHeightAttribute((this._lineHeight_0_0value as number | string | Resource | undefined)); - this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._lineHeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLineHeightAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._type_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._type_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTypeAttribute((this._type_0_0value as SearchType | undefined)); - this._type_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._type_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._type_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTypeAttribute((undefined as SearchType | undefined)); - } - } - } - if (this._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontFeature_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontFeatureAttribute((this._fontFeature_0_0value as string | undefined)); - this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontFeature_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontFeatureAttribute((undefined as string | undefined)); - } - } - } - if (this._onWillInsert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillInsert_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillInsertAttribute((this._onWillInsert_0_0value as ((value0: InsertValue) => boolean) | undefined)); - this._onWillInsert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillInsert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillInsert_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillInsertAttribute((undefined as ((value0: InsertValue) => boolean) | undefined)); - } - } - } - if (this._onDidInsert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDidInsert_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDidInsertAttribute((this._onDidInsert_0_0value as ((value0: InsertValue) => void) | undefined)); - this._onDidInsert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDidInsert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDidInsert_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDidInsertAttribute((undefined as ((value0: InsertValue) => void) | undefined)); - } - } - } - if (this._onWillDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillDeleteAttribute((this._onWillDelete_0_0value as ((value0: DeleteValue) => boolean) | undefined)); - this._onWillDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillDelete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillDeleteAttribute((undefined as ((value0: DeleteValue) => boolean) | undefined)); - } - } - } - if (this._onDidDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDidDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDidDeleteAttribute((this._onDidDelete_0_0value as ((value0: DeleteValue) => void) | undefined)); - this._onDidDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDidDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDidDelete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDidDeleteAttribute((undefined as ((value0: DeleteValue) => void) | undefined)); - } - } - } - if (this._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._editMenuOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEditMenuOptionsAttribute((this._editMenuOptions_0_0value as EditMenuOptions | undefined)); - this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEditMenuOptionsAttribute((undefined as EditMenuOptions | undefined)); - } - } - } - if (this._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enablePreviewText_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnablePreviewTextAttribute((this._enablePreviewText_0_0value as boolean | undefined)); - this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnablePreviewTextAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); - } - } - } - if (this._autoCapitalizationMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._autoCapitalizationMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAutoCapitalizationModeAttribute((this._autoCapitalizationMode_0_0value as AutoCapitalizationMode | undefined)); - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAutoCapitalizationModeAttribute((undefined as AutoCapitalizationMode | undefined)); - } - } - } - if (this._halfLeading_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._halfLeading_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHalfLeadingAttribute((this._halfLeading_0_0value as boolean | undefined)); - this._halfLeading_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._halfLeading_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._halfLeading_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHalfLeadingAttribute((undefined as boolean | undefined)); - } - } - } - if (this._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stopBackPress_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStopBackPressAttribute((this._stopBackPress_0_0value as boolean | undefined)); - this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stopBackPress_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStopBackPressAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillChangeAttribute((this._onWillChange_0_0value as ((value0: EditableTextChangeValue) => boolean) | undefined)); - this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillChangeAttribute((undefined as ((value0: EditableTextChangeValue) => boolean) | undefined)); - } - } - } - if (this._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._keyboardAppearance_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setKeyboardAppearanceAttribute((this._keyboardAppearance_0_0value as KeyboardAppearance | undefined)); - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setKeyboardAppearanceAttribute((undefined as KeyboardAppearance | undefined)); - } - } - } - if (this._searchButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._searchButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSearchButtonAttribute((this._searchButton_0_0value as ResourceStr | undefined), (this._searchButton_0_1value as SearchButtonOptions | undefined)); - this._searchButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._searchButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._searchButton_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSearchButtonAttribute((undefined as ResourceStr | undefined), (undefined as SearchButtonOptions | undefined | undefined)); - } - } - } - if (this._inputFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._inputFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setInputFilterAttribute((this._inputFilter_0_0value as ResourceStr | undefined), (this._inputFilter_0_1value as ((value0: string) => void) | undefined)); - this._inputFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._inputFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._inputFilter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setInputFilterAttribute((undefined as ResourceStr | undefined), (undefined as ((value0: string) => void) | undefined | undefined)); - } - } - } - if (this._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._customKeyboard_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCustomKeyboardAttribute((this._customKeyboard_0_0value as CustomBuilder | undefined), (this._customKeyboard_0_1value as KeyboardOptions | undefined)); - this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._customKeyboard_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCustomKeyboardAttribute((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: SearchModifier): void { - super.mergeModifier(modifier) - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._searchIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._searchIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.searchIcon(modifier._searchIcon_0_0value); - break; - } - default: { - this.searchIcon((undefined as IconOptions | SymbolGlyphModifier | undefined)); - } - } - } - if (modifier._cancelButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cancelButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cancelButton(modifier._cancelButton_0_0value); - break; - } - default: { - this.cancelButton((undefined as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); - } - } - } - if (modifier._textIndent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textIndent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textIndent(modifier._textIndent_0_0value); - break; - } - default: { - this.textIndent((undefined as Dimension | undefined)); - } - } - } - if (modifier._onEditChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onEditChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onEditChange(modifier._onEditChange_0_0value); - break; - } - default: { - this.onEditChange((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (modifier._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedBackgroundColor(modifier._selectedBackgroundColor_0_0value); - break; - } - default: { - this.selectedBackgroundColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._caretStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._caretStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.caretStyle(modifier._caretStyle_0_0value); - break; - } - default: { - this.caretStyle((undefined as CaretStyle | undefined)); - } - } - } - if (modifier._placeholderColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._placeholderColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.placeholderColor(modifier._placeholderColor_0_0value); - break; - } - default: { - this.placeholderColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._placeholderFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._placeholderFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.placeholderFont(modifier._placeholderFont_0_0value); - break; - } - default: { - this.placeholderFont((undefined as Font | undefined)); - } - } - } - if (modifier._textFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textFont(modifier._textFont_0_0value); - break; - } - default: { - this.textFont((undefined as Font | undefined)); - } - } - } - if (modifier._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enterKeyType_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enterKeyType(modifier._enterKeyType_0_0value); - break; - } - default: { - this.enterKeyType((undefined as EnterKeyType | undefined)); - } - } - } - if (modifier._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSubmit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSubmit(modifier._onSubmit_0_0value); - break; - } - default: { - this.onSubmit((undefined as ((value0: string) => void) | SearchSubmitCallback | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as EditableTextOnChangeCallback | undefined)); - } - } - } - if (modifier._onTextSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTextSelectionChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTextSelectionChange(modifier._onTextSelectionChange_0_0value); - break; - } - default: { - this.onTextSelectionChange((undefined as OnTextSelectionChangeCallback | undefined)); - } - } - } - if (modifier._onContentScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onContentScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onContentScroll(modifier._onContentScroll_0_0value); - break; - } - default: { - this.onContentScroll((undefined as OnContentScrollCallback | undefined)); - } - } - } - if (modifier._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onCopy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onCopy(modifier._onCopy_0_0value); - break; - } - default: { - this.onCopy((undefined as ((value0: string) => void) | undefined)); - } - } - } - if (modifier._onCut_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onCut_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onCut(modifier._onCut_0_0value); - break; - } - default: { - this.onCut((undefined as ((value0: string) => void) | undefined)); - } - } - } - if (modifier._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPaste_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPaste(modifier._onPaste_0_0value); - break; - } - default: { - this.onPaste((undefined as OnPasteCallback | undefined)); - } - } - } - if (modifier._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._copyOption_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.copyOption(modifier._copyOption_0_0value); - break; - } - default: { - this.copyOption((undefined as CopyOptions | undefined)); - } - } - } - if (modifier._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxLength_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxLength(modifier._maxLength_0_0value); - break; - } - default: { - this.maxLength((undefined as number | undefined)); - } - } - } - if (modifier._textAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textAlign(modifier._textAlign_0_0value); - break; - } - default: { - this.textAlign((undefined as TextAlign | undefined)); - } - } - } - if (modifier._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableKeyboardOnFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableKeyboardOnFocus(modifier._enableKeyboardOnFocus_0_0value); - break; - } - default: { - this.enableKeyboardOnFocus((undefined as boolean | undefined)); - } - } - } - if (modifier._selectionMenuHidden_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectionMenuHidden_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectionMenuHidden(modifier._selectionMenuHidden_0_0value); - break; - } - default: { - this.selectionMenuHidden((undefined as boolean | undefined)); - } - } - } - if (modifier._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minFontSize(modifier._minFontSize_0_0value); - break; - } - default: { - this.minFontSize((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._maxFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxFontSize(modifier._maxFontSize_0_0value); - break; - } - default: { - this.maxFontSize((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minFontScale(modifier._minFontScale_0_0value); - break; - } - default: { - this.minFontScale((undefined as number | Resource | undefined)); - } - } - } - if (modifier._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxFontScale(modifier._maxFontScale_0_0value); - break; - } - default: { - this.maxFontScale((undefined as number | Resource | undefined)); - } - } - } - if (modifier._decoration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._decoration_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.decoration(modifier._decoration_0_0value); - break; - } - default: { - this.decoration((undefined as TextDecorationOptions | undefined)); - } - } - } - if (modifier._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._letterSpacing_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.letterSpacing(modifier._letterSpacing_0_0value); - break; - } - default: { - this.letterSpacing((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._lineHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.lineHeight(modifier._lineHeight_0_0value); - break; - } - default: { - this.lineHeight((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._type_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._type_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.type(modifier._type_0_0value); - break; - } - default: { - this.type((undefined as SearchType | undefined)); - } - } - } - if (modifier._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontFeature_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontFeature(modifier._fontFeature_0_0value); - break; - } - default: { - this.fontFeature((undefined as string | undefined)); - } - } - } - if (modifier._onWillInsert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillInsert_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillInsert(modifier._onWillInsert_0_0value); - break; - } - default: { - this.onWillInsert((undefined as ((value0: InsertValue) => boolean) | undefined)); - } - } - } - if (modifier._onDidInsert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDidInsert_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDidInsert(modifier._onDidInsert_0_0value); - break; - } - default: { - this.onDidInsert((undefined as ((value0: InsertValue) => void) | undefined)); - } - } - } - if (modifier._onWillDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillDelete(modifier._onWillDelete_0_0value); - break; - } - default: { - this.onWillDelete((undefined as ((value0: DeleteValue) => boolean) | undefined)); - } - } - } - if (modifier._onDidDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDidDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDidDelete(modifier._onDidDelete_0_0value); - break; - } - default: { - this.onDidDelete((undefined as ((value0: DeleteValue) => void) | undefined)); - } - } - } - if (modifier._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._editMenuOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.editMenuOptions(modifier._editMenuOptions_0_0value); - break; - } - default: { - this.editMenuOptions((undefined as EditMenuOptions | undefined)); - } - } - } - if (modifier._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enablePreviewText_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enablePreviewText(modifier._enablePreviewText_0_0value); - break; - } - default: { - this.enablePreviewText((undefined as boolean | undefined)); - } - } - } - if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); - break; - } - default: { - this.enableHapticFeedback((undefined as boolean | undefined)); - } - } - } - if (modifier._autoCapitalizationMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._autoCapitalizationMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.autoCapitalizationMode(modifier._autoCapitalizationMode_0_0value); - break; - } - default: { - this.autoCapitalizationMode((undefined as AutoCapitalizationMode | undefined)); - } - } - } - if (modifier._halfLeading_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._halfLeading_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.halfLeading(modifier._halfLeading_0_0value); - break; - } - default: { - this.halfLeading((undefined as boolean | undefined)); - } - } - } - if (modifier._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stopBackPress_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stopBackPress(modifier._stopBackPress_0_0value); - break; - } - default: { - this.stopBackPress((undefined as boolean | undefined)); - } - } - } - if (modifier._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillChange(modifier._onWillChange_0_0value); - break; - } - default: { - this.onWillChange((undefined as ((value0: EditableTextChangeValue) => boolean) | undefined)); - } - } - } - if (modifier._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._keyboardAppearance_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.keyboardAppearance(modifier._keyboardAppearance_0_0value); - break; - } - default: { - this.keyboardAppearance((undefined as KeyboardAppearance | undefined)); - } - } - } - if (modifier._searchButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._searchButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.searchButton(modifier._searchButton_0_0value, modifier._searchButton_0_1value); - break; - } - default: { - this.searchButton((undefined as ResourceStr | undefined), (undefined as SearchButtonOptions | undefined | undefined)); - } - } - } - if (modifier._inputFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._inputFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.inputFilter(modifier._inputFilter_0_0value, modifier._inputFilter_0_1value); - break; - } - default: { - this.inputFilter((undefined as ResourceStr | undefined), (undefined as ((value0: string) => void) | undefined | undefined)); - } - } - } - if (modifier._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._customKeyboard_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.customKeyboard(modifier._customKeyboard_0_0value, modifier._customKeyboard_0_1value); - break; - } - default: { - this.customKeyboard((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); - } - } - } - } - fontColor(value: ResourceColor | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - searchIcon(value: IconOptions | SymbolGlyphModifier | undefined): this { - if (((this._searchIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._searchIcon_0_flag = AttributeUpdaterFlag.UPDATE - this._searchIcon_0_0value = value - } else - { - this._searchIcon_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions | undefined): this { - if (((this._cancelButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._cancelButton_0_flag = AttributeUpdaterFlag.UPDATE - this._cancelButton_0_0value = value - } else - { - this._cancelButton_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textIndent(value: Dimension | undefined): this { - if (((this._textIndent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textIndent_0_flag = AttributeUpdaterFlag.UPDATE - this._textIndent_0_0value = value - } else - { - this._textIndent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onEditChange(value: ((value0: boolean) => void) | undefined): this { - if (((this._onEditChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onEditChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onEditChange_0_0value = value - } else - { - this._onEditChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedBackgroundColor(value: ResourceColor | undefined): this { - if (((this._selectedBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedBackgroundColor_0_0value = value - } else - { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - caretStyle(value: CaretStyle | undefined): this { - if (((this._caretStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._caretStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._caretStyle_0_0value = value - } else - { - this._caretStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - placeholderColor(value: ResourceColor | undefined): this { - if (((this._placeholderColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._placeholderColor_0_flag = AttributeUpdaterFlag.UPDATE - this._placeholderColor_0_0value = value - } else - { - this._placeholderColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - placeholderFont(value: Font | undefined): this { - if (((this._placeholderFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._placeholderFont_0_flag = AttributeUpdaterFlag.UPDATE - this._placeholderFont_0_0value = value - } else - { - this._placeholderFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textFont(value: Font | undefined): this { - if (((this._textFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textFont_0_flag = AttributeUpdaterFlag.UPDATE - this._textFont_0_0value = value - } else - { - this._textFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enterKeyType(value: EnterKeyType | undefined): this { - if (((this._enterKeyType_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._enterKeyType_0_flag = AttributeUpdaterFlag.UPDATE - this._enterKeyType_0_0value = value - } else - { - this._enterKeyType_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSubmit(value: ((value0: string) => void) | SearchSubmitCallback | undefined): this { - if (((this._onSubmit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSubmit_0_flag = AttributeUpdaterFlag.UPDATE - this._onSubmit_0_0value = value - } else - { - this._onSubmit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: EditableTextOnChangeCallback | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTextSelectionChange(value: OnTextSelectionChangeCallback | undefined): this { - if (((this._onTextSelectionChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onTextSelectionChange_0_0value = value - } else - { - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onContentScroll(value: OnContentScrollCallback | undefined): this { - if (((this._onContentScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onContentScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onContentScroll_0_0value = value - } else - { - this._onContentScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onCopy(value: ((value0: string) => void) | undefined): this { - if (((this._onCopy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onCopy_0_flag = AttributeUpdaterFlag.UPDATE - this._onCopy_0_0value = value - } else - { - this._onCopy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onCut(value: ((value0: string) => void) | undefined): this { - if (((this._onCut_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onCut_0_flag = AttributeUpdaterFlag.UPDATE - this._onCut_0_0value = value - } else - { - this._onCut_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPaste(value: OnPasteCallback | undefined): this { - if (((this._onPaste_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPaste_0_flag = AttributeUpdaterFlag.UPDATE - this._onPaste_0_0value = value - } else - { - this._onPaste_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - copyOption(value: CopyOptions | undefined): this { - if (((this._copyOption_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._copyOption_0_flag = AttributeUpdaterFlag.UPDATE - this._copyOption_0_0value = value - } else - { - this._copyOption_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxLength(value: number | undefined): this { - if (((this._maxLength_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLength_0_0value) !== (value))) - { - this._maxLength_0_flag = AttributeUpdaterFlag.UPDATE - this._maxLength_0_0value = value - } else - { - this._maxLength_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textAlign(value: TextAlign | undefined): this { - if (((this._textAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textAlign_0_flag = AttributeUpdaterFlag.UPDATE - this._textAlign_0_0value = value - } else - { - this._textAlign_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableKeyboardOnFocus(value: boolean | undefined): this { - if (((this._enableKeyboardOnFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableKeyboardOnFocus_0_0value) !== (value))) - { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.UPDATE - this._enableKeyboardOnFocus_0_0value = value - } else - { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectionMenuHidden(value: boolean | undefined): this { - if (((this._selectionMenuHidden_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectionMenuHidden_0_0value) !== (value))) - { - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.UPDATE - this._selectionMenuHidden_0_0value = value - } else - { - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minFontSize(value: number | string | Resource | undefined): this { - if (((this._minFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minFontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._minFontSize_0_0value = value - } else - { - this._minFontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxFontSize(value: number | string | Resource | undefined): this { - if (((this._maxFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._maxFontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._maxFontSize_0_0value = value - } else - { - this._maxFontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minFontScale(value: number | Resource | undefined): this { - if (((this._minFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minFontScale_0_flag = AttributeUpdaterFlag.UPDATE - this._minFontScale_0_0value = value - } else - { - this._minFontScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxFontScale(value: number | Resource | undefined): this { - if (((this._maxFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._maxFontScale_0_flag = AttributeUpdaterFlag.UPDATE - this._maxFontScale_0_0value = value - } else - { - this._maxFontScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - decoration(value: TextDecorationOptions | undefined): this { - if (((this._decoration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._decoration_0_flag = AttributeUpdaterFlag.UPDATE - this._decoration_0_0value = value - } else - { - this._decoration_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - letterSpacing(value: number | string | Resource | undefined): this { - if (((this._letterSpacing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._letterSpacing_0_flag = AttributeUpdaterFlag.UPDATE - this._letterSpacing_0_0value = value - } else - { - this._letterSpacing_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - lineHeight(value: number | string | Resource | undefined): this { - if (((this._lineHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._lineHeight_0_flag = AttributeUpdaterFlag.UPDATE - this._lineHeight_0_0value = value - } else - { - this._lineHeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - type(value: SearchType | undefined): this { - if (((this._type_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._type_0_flag = AttributeUpdaterFlag.UPDATE - this._type_0_0value = value - } else - { - this._type_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontFeature(value: string | undefined): this { - if (((this._fontFeature_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fontFeature_0_0value) !== (value))) - { - this._fontFeature_0_flag = AttributeUpdaterFlag.UPDATE - this._fontFeature_0_0value = value - } else - { - this._fontFeature_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { - if (((this._onWillInsert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillInsert_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillInsert_0_0value = value - } else - { - this._onWillInsert_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { - if (((this._onDidInsert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDidInsert_0_flag = AttributeUpdaterFlag.UPDATE - this._onDidInsert_0_0value = value - } else - { - this._onDidInsert_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { - if (((this._onWillDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillDelete_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillDelete_0_0value = value - } else - { - this._onWillDelete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { - if (((this._onDidDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDidDelete_0_flag = AttributeUpdaterFlag.UPDATE - this._onDidDelete_0_0value = value - } else - { - this._onDidDelete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - editMenuOptions(value: EditMenuOptions | undefined): this { - if (((this._editMenuOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._editMenuOptions_0_0value = value - } else - { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enablePreviewText(value: boolean | undefined): this { - if (((this._enablePreviewText_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enablePreviewText_0_0value) !== (value))) - { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.UPDATE - this._enablePreviewText_0_0value = value - } else - { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableHapticFeedback(value: boolean | undefined): this { - if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE - this._enableHapticFeedback_0_0value = value - } else - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { - if (((this._autoCapitalizationMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.UPDATE - this._autoCapitalizationMode_0_0value = value - } else - { - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - halfLeading(value: boolean | undefined): this { - if (((this._halfLeading_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._halfLeading_0_0value) !== (value))) - { - this._halfLeading_0_flag = AttributeUpdaterFlag.UPDATE - this._halfLeading_0_0value = value - } else - { - this._halfLeading_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - stopBackPress(value: boolean | undefined): this { - if (((this._stopBackPress_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stopBackPress_0_0value) !== (value))) - { - this._stopBackPress_0_flag = AttributeUpdaterFlag.UPDATE - this._stopBackPress_0_0value = value - } else - { - this._stopBackPress_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { - if (((this._onWillChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillChange_0_0value = value - } else - { - this._onWillChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - keyboardAppearance(value: KeyboardAppearance | undefined): this { - if (((this._keyboardAppearance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.UPDATE - this._keyboardAppearance_0_0value = value - } else - { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - searchButton(value: ResourceStr | undefined, option?: SearchButtonOptions): this { - if (((this._searchButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._searchButton_0_flag = AttributeUpdaterFlag.UPDATE - this._searchButton_0_0value = value - this._searchButton_0_1value = option - } else - { - this._searchButton_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - inputFilter(value: ResourceStr | undefined, error?: ((value0: string) => void)): this { - if (((this._inputFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._inputFilter_0_flag = AttributeUpdaterFlag.UPDATE - this._inputFilter_0_0value = value - this._inputFilter_0_1value = error - } else - { - this._inputFilter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { - if (((this._customKeyboard_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._customKeyboard_0_flag = AttributeUpdaterFlag.UPDATE - this._customKeyboard_0_0value = value - this._customKeyboard_0_1value = options - } else - { - this._customKeyboard_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class SearchController_serializer { public static write(buffer: SerializerBase, value: SearchController): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/securityComponent.ets b/arkoala-arkts/arkui/generated/component/securityComponent.ets similarity index 91% rename from arkoala-arkts/arkui/src/component/securityComponent.ets rename to arkoala-arkts/arkui/generated/component/securityComponent.ets index 0be835616b1ba1f4307387876c773f6370d4a0b9..bf8df60ba897ebba0d068e243d5f7f82be1e6aad 100644 --- a/arkoala-arkts/arkui/src/component/securityComponent.ets +++ b/arkoala-arkts/arkui/generated/component/securityComponent.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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 56% rename from arkoala-arkts/arkui/src/component/select.ets rename to arkoala-arkts/arkui/generated/component/select.ets index 6f53b353f181c948c0bce22a8e1d1e2c3d946f37..1f2747fd3e0235849f5a34b93b7a751435fc4983 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 { Bindable_Number_serializer, Bindable_Global_Resource_Resource_serializer, Bindable_String_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, BlurStyle, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { Resource_serializer } from "./../framework/resource" +import { Bindable_Number_serializer, Bindable_Global_Resource_Resource_serializer, Bindable_String_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, BlurStyle, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 "./../TextModifier" +import { SymbolGlyphModifier_serializer, SymbolGlyphModifier } from "./../SymbolGlyphModifier" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" +import { Resource } from "global.resource" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkSelectPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -1065,1211 +1065,6 @@ export function Select( }) } -export class SelectModifier extends CommonMethodModifier implements SelectAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _selected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selected_0_0value?: number | Resource | Bindable | Bindable | undefined - _value_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _value_0_0value?: ResourceStr | Bindable | Bindable | undefined - _font_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _font_0_0value?: Font | undefined - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: ResourceColor | undefined - _selectedOptionBgColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedOptionBgColor_0_0value?: ResourceColor | undefined - _selectedOptionFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedOptionFont_0_0value?: Font | undefined - _selectedOptionFontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedOptionFontColor_0_0value?: ResourceColor | undefined - _optionBgColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _optionBgColor_0_0value?: ResourceColor | undefined - _optionFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _optionFont_0_0value?: Font | undefined - _optionFontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _optionFontColor_0_0value?: ResourceColor | undefined - _onSelect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSelect_0_0value?: OnSelectCallback | undefined - _space_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _space_0_0value?: Length | undefined - _arrowPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _arrowPosition_0_0value?: ArrowPosition | undefined - _optionWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _optionWidth_0_0value?: Dimension | OptionWidthMode | undefined - _optionHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _optionHeight_0_0value?: Dimension | undefined - _menuBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menuBackgroundColor_0_0value?: ResourceColor | undefined - _menuBackgroundBlurStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menuBackgroundBlurStyle_0_0value?: BlurStyle | undefined - _controlSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _controlSize_0_0value?: ControlSize | undefined - _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _divider_0_0value?: DividerOptions | undefined - _textModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textModifier_0_0value?: TextModifier | undefined - _arrowModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _arrowModifier_0_0value?: SymbolGlyphModifier | undefined - _optionTextModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _optionTextModifier_0_0value?: TextModifier | undefined - _selectedOptionTextModifier_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedOptionTextModifier_0_0value?: TextModifier | undefined - _dividerStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _dividerStyle_0_0value?: DividerStyleOptions | undefined - _avoidance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _avoidance_0_0value?: AvoidanceMode | undefined - _menuOutline_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menuOutline_0_0value?: MenuOutlineOptions | undefined - _menuAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _menuAlign_0_0value?: MenuAlignType | undefined - _menuAlign_0_1value?: Offset | undefined - applyModifierPatch(peer: ArkSelectPeer): void { - super.applyModifierPatch(peer) - if (this._selected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedAttribute((this._selected_0_0value as number | Resource | Bindable | Bindable | undefined)); - this._selected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedAttribute((undefined as number | Resource | Bindable | Bindable | undefined)); - } - } - } - if (this._value_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._value_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setValueAttribute((this._value_0_0value as ResourceStr | Bindable | Bindable | undefined)); - this._value_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._value_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._value_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setValueAttribute((undefined as ResourceStr | Bindable | Bindable | undefined)); - } - } - } - if (this._font_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._font_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontAttribute((this._font_0_0value as Font | undefined)); - this._font_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._font_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._font_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._selectedOptionBgColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedOptionBgColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedOptionBgColorAttribute((this._selectedOptionBgColor_0_0value as ResourceColor | undefined)); - this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedOptionBgColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._selectedOptionFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedOptionFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedOptionFontAttribute((this._selectedOptionFont_0_0value as Font | undefined)); - this._selectedOptionFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedOptionFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedOptionFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedOptionFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._selectedOptionFontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedOptionFontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedOptionFontColorAttribute((this._selectedOptionFontColor_0_0value as ResourceColor | undefined)); - this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedOptionFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._optionBgColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._optionBgColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOptionBgColorAttribute((this._optionBgColor_0_0value as ResourceColor | undefined)); - this._optionBgColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._optionBgColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._optionBgColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOptionBgColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._optionFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._optionFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOptionFontAttribute((this._optionFont_0_0value as Font | undefined)); - this._optionFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._optionFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._optionFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOptionFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._optionFontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._optionFontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOptionFontColorAttribute((this._optionFontColor_0_0value as ResourceColor | undefined)); - this._optionFontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._optionFontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._optionFontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOptionFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSelect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSelectAttribute((this._onSelect_0_0value as OnSelectCallback | undefined)); - this._onSelect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSelect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSelect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSelectAttribute((undefined as OnSelectCallback | undefined)); - } - } - } - if (this._space_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._space_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSpaceAttribute((this._space_0_0value as Length | undefined)); - this._space_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._space_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._space_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSpaceAttribute((undefined as Length | undefined)); - } - } - } - if (this._arrowPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._arrowPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setArrowPositionAttribute((this._arrowPosition_0_0value as ArrowPosition | undefined)); - this._arrowPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._arrowPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._arrowPosition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setArrowPositionAttribute((undefined as ArrowPosition | undefined)); - } - } - } - if (this._optionWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._optionWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOptionWidthAttribute((this._optionWidth_0_0value as Dimension | OptionWidthMode | undefined)); - this._optionWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._optionWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._optionWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOptionWidthAttribute((undefined as Dimension | OptionWidthMode | undefined)); - } - } - } - if (this._optionHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._optionHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOptionHeightAttribute((this._optionHeight_0_0value as Dimension | undefined)); - this._optionHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._optionHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._optionHeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOptionHeightAttribute((undefined as Dimension | undefined)); - } - } - } - if (this._menuBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menuBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenuBackgroundColorAttribute((this._menuBackgroundColor_0_0value as ResourceColor | undefined)); - this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenuBackgroundColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._menuBackgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menuBackgroundBlurStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenuBackgroundBlurStyleAttribute((this._menuBackgroundBlurStyle_0_0value as BlurStyle | undefined)); - this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenuBackgroundBlurStyleAttribute((undefined as BlurStyle | undefined)); - } - } - } - if (this._controlSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._controlSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setControlSizeAttribute((this._controlSize_0_0value as ControlSize | undefined)); - this._controlSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._controlSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._controlSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setControlSizeAttribute((undefined as ControlSize | undefined)); - } - } - } - if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDividerAttribute((this._divider_0_0value as DividerOptions | undefined)); - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._divider_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDividerAttribute((undefined as DividerOptions | undefined)); - } - } - } - if (this._textModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextModifierAttribute((this._textModifier_0_0value as TextModifier | undefined)); - this._textModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textModifier_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextModifierAttribute((undefined as TextModifier | undefined)); - } - } - } - if (this._arrowModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._arrowModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setArrowModifierAttribute((this._arrowModifier_0_0value as SymbolGlyphModifier | undefined)); - this._arrowModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._arrowModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._arrowModifier_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setArrowModifierAttribute((undefined as SymbolGlyphModifier | undefined)); - } - } - } - if (this._optionTextModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._optionTextModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOptionTextModifierAttribute((this._optionTextModifier_0_0value as TextModifier | undefined)); - this._optionTextModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._optionTextModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._optionTextModifier_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOptionTextModifierAttribute((undefined as TextModifier | undefined)); - } - } - } - if (this._selectedOptionTextModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedOptionTextModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedOptionTextModifierAttribute((this._selectedOptionTextModifier_0_0value as TextModifier | undefined)); - this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedOptionTextModifierAttribute((undefined as TextModifier | undefined)); - } - } - } - if (this._dividerStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._dividerStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDividerStyleAttribute((this._dividerStyle_0_0value as DividerStyleOptions | undefined)); - this._dividerStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._dividerStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._dividerStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDividerStyleAttribute((undefined as DividerStyleOptions | undefined)); - } - } - } - if (this._avoidance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._avoidance_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAvoidanceAttribute((this._avoidance_0_0value as AvoidanceMode | undefined)); - this._avoidance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._avoidance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._avoidance_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAvoidanceAttribute((undefined as AvoidanceMode | undefined)); - } - } - } - if (this._menuOutline_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menuOutline_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenuOutlineAttribute((this._menuOutline_0_0value as MenuOutlineOptions | undefined)); - this._menuOutline_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menuOutline_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menuOutline_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenuOutlineAttribute((undefined as MenuOutlineOptions | undefined)); - } - } - } - if (this._menuAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._menuAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMenuAlignAttribute((this._menuAlign_0_0value as MenuAlignType | undefined), (this._menuAlign_0_1value as Offset | undefined)); - this._menuAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._menuAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._menuAlign_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMenuAlignAttribute((undefined as MenuAlignType | undefined), (undefined as Offset | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: SelectModifier): void { - super.mergeModifier(modifier) - if (modifier._selected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selected(modifier._selected_0_0value); - break; - } - default: { - this.selected((undefined as number | Resource | Bindable | Bindable | undefined)); - } - } - } - if (modifier._value_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._value_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.value(modifier._value_0_0value); - break; - } - default: { - this.value((undefined as ResourceStr | Bindable | Bindable | undefined)); - } - } - } - if (modifier._font_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._font_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.font(modifier._font_0_0value); - break; - } - default: { - this.font((undefined as Font | undefined)); - } - } - } - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._selectedOptionBgColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedOptionBgColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedOptionBgColor(modifier._selectedOptionBgColor_0_0value); - break; - } - default: { - this.selectedOptionBgColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._selectedOptionFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedOptionFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedOptionFont(modifier._selectedOptionFont_0_0value); - break; - } - default: { - this.selectedOptionFont((undefined as Font | undefined)); - } - } - } - if (modifier._selectedOptionFontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedOptionFontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedOptionFontColor(modifier._selectedOptionFontColor_0_0value); - break; - } - default: { - this.selectedOptionFontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._optionBgColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._optionBgColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.optionBgColor(modifier._optionBgColor_0_0value); - break; - } - default: { - this.optionBgColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._optionFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._optionFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.optionFont(modifier._optionFont_0_0value); - break; - } - default: { - this.optionFont((undefined as Font | undefined)); - } - } - } - if (modifier._optionFontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._optionFontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.optionFontColor(modifier._optionFontColor_0_0value); - break; - } - default: { - this.optionFontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._onSelect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSelect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSelect(modifier._onSelect_0_0value); - break; - } - default: { - this.onSelect((undefined as OnSelectCallback | undefined)); - } - } - } - if (modifier._space_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._space_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.space(modifier._space_0_0value); - break; - } - default: { - this.space((undefined as Length | undefined)); - } - } - } - if (modifier._arrowPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._arrowPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.arrowPosition(modifier._arrowPosition_0_0value); - break; - } - default: { - this.arrowPosition((undefined as ArrowPosition | undefined)); - } - } - } - if (modifier._optionWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._optionWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.optionWidth(modifier._optionWidth_0_0value); - break; - } - default: { - this.optionWidth((undefined as Dimension | OptionWidthMode | undefined)); - } - } - } - if (modifier._optionHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._optionHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.optionHeight(modifier._optionHeight_0_0value); - break; - } - default: { - this.optionHeight((undefined as Dimension | undefined)); - } - } - } - if (modifier._menuBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menuBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menuBackgroundColor(modifier._menuBackgroundColor_0_0value); - break; - } - default: { - this.menuBackgroundColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._menuBackgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menuBackgroundBlurStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menuBackgroundBlurStyle(modifier._menuBackgroundBlurStyle_0_0value); - break; - } - default: { - this.menuBackgroundBlurStyle((undefined as BlurStyle | undefined)); - } - } - } - if (modifier._controlSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._controlSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.controlSize(modifier._controlSize_0_0value); - break; - } - default: { - this.controlSize((undefined as ControlSize | undefined)); - } - } - } - if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.divider(modifier._divider_0_0value); - break; - } - default: { - this.divider((undefined as DividerOptions | undefined)); - } - } - } - if (modifier._textModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textModifier(modifier._textModifier_0_0value); - break; - } - default: { - this.textModifier((undefined as TextModifier | undefined)); - } - } - } - if (modifier._arrowModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._arrowModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.arrowModifier(modifier._arrowModifier_0_0value); - break; - } - default: { - this.arrowModifier((undefined as SymbolGlyphModifier | undefined)); - } - } - } - if (modifier._optionTextModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._optionTextModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.optionTextModifier(modifier._optionTextModifier_0_0value); - break; - } - default: { - this.optionTextModifier((undefined as TextModifier | undefined)); - } - } - } - if (modifier._selectedOptionTextModifier_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedOptionTextModifier_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedOptionTextModifier(modifier._selectedOptionTextModifier_0_0value); - break; - } - default: { - this.selectedOptionTextModifier((undefined as TextModifier | undefined)); - } - } - } - if (modifier._dividerStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._dividerStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.dividerStyle(modifier._dividerStyle_0_0value); - break; - } - default: { - this.dividerStyle((undefined as DividerStyleOptions | undefined)); - } - } - } - if (modifier._avoidance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._avoidance_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.avoidance(modifier._avoidance_0_0value); - break; - } - default: { - this.avoidance((undefined as AvoidanceMode | undefined)); - } - } - } - if (modifier._menuOutline_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menuOutline_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menuOutline(modifier._menuOutline_0_0value); - break; - } - default: { - this.menuOutline((undefined as MenuOutlineOptions | undefined)); - } - } - } - if (modifier._menuAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._menuAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.menuAlign(modifier._menuAlign_0_0value, modifier._menuAlign_0_1value); - break; - } - default: { - this.menuAlign((undefined as MenuAlignType | undefined), (undefined as Offset | undefined | undefined)); - } - } - } - } - selected(value: number | Resource | Bindable | Bindable | undefined): this { - if (((this._selected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selected_0_flag = AttributeUpdaterFlag.UPDATE - this._selected_0_0value = value - } else - { - this._selected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - value(value: ResourceStr | Bindable | Bindable | undefined): this { - if (((this._value_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._value_0_flag = AttributeUpdaterFlag.UPDATE - this._value_0_0value = value - } else - { - this._value_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - font(value: Font | undefined): this { - if (((this._font_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._font_0_flag = AttributeUpdaterFlag.UPDATE - this._font_0_0value = value - } else - { - this._font_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontColor(value: ResourceColor | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedOptionBgColor(value: ResourceColor | undefined): this { - if (((this._selectedOptionBgColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedOptionBgColor_0_0value = value - } else - { - this._selectedOptionBgColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedOptionFont(value: Font | undefined): this { - if (((this._selectedOptionFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedOptionFont_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedOptionFont_0_0value = value - } else - { - this._selectedOptionFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedOptionFontColor(value: ResourceColor | undefined): this { - if (((this._selectedOptionFontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedOptionFontColor_0_0value = value - } else - { - this._selectedOptionFontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - optionBgColor(value: ResourceColor | undefined): this { - if (((this._optionBgColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._optionBgColor_0_flag = AttributeUpdaterFlag.UPDATE - this._optionBgColor_0_0value = value - } else - { - this._optionBgColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - optionFont(value: Font | undefined): this { - if (((this._optionFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._optionFont_0_flag = AttributeUpdaterFlag.UPDATE - this._optionFont_0_0value = value - } else - { - this._optionFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - optionFontColor(value: ResourceColor | undefined): this { - if (((this._optionFontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._optionFontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._optionFontColor_0_0value = value - } else - { - this._optionFontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSelect(value: OnSelectCallback | undefined): this { - if (((this._onSelect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSelect_0_flag = AttributeUpdaterFlag.UPDATE - this._onSelect_0_0value = value - } else - { - this._onSelect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - space(value: Length | undefined): this { - if (((this._space_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._space_0_flag = AttributeUpdaterFlag.UPDATE - this._space_0_0value = value - } else - { - this._space_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - arrowPosition(value: ArrowPosition | undefined): this { - if (((this._arrowPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._arrowPosition_0_flag = AttributeUpdaterFlag.UPDATE - this._arrowPosition_0_0value = value - } else - { - this._arrowPosition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - optionWidth(value: Dimension | OptionWidthMode | undefined): this { - if (((this._optionWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._optionWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._optionWidth_0_0value = value - } else - { - this._optionWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - optionHeight(value: Dimension | undefined): this { - if (((this._optionHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._optionHeight_0_flag = AttributeUpdaterFlag.UPDATE - this._optionHeight_0_0value = value - } else - { - this._optionHeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menuBackgroundColor(value: ResourceColor | undefined): this { - if (((this._menuBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE - this._menuBackgroundColor_0_0value = value - } else - { - this._menuBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menuBackgroundBlurStyle(value: BlurStyle | undefined): this { - if (((this._menuBackgroundBlurStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._menuBackgroundBlurStyle_0_0value = value - } else - { - this._menuBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - controlSize(value: ControlSize | undefined): this { - if (((this._controlSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._controlSize_0_flag = AttributeUpdaterFlag.UPDATE - this._controlSize_0_0value = value - } else - { - this._controlSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - divider(value: DividerOptions | undefined): this { - if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._divider_0_flag = AttributeUpdaterFlag.UPDATE - this._divider_0_0value = value - } else - { - this._divider_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textModifier(value: TextModifier | undefined): this { - if (((this._textModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textModifier_0_flag = AttributeUpdaterFlag.UPDATE - this._textModifier_0_0value = value - } else - { - this._textModifier_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - arrowModifier(value: SymbolGlyphModifier | undefined): this { - if (((this._arrowModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._arrowModifier_0_flag = AttributeUpdaterFlag.UPDATE - this._arrowModifier_0_0value = value - } else - { - this._arrowModifier_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - optionTextModifier(value: TextModifier | undefined): this { - if (((this._optionTextModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._optionTextModifier_0_flag = AttributeUpdaterFlag.UPDATE - this._optionTextModifier_0_0value = value - } else - { - this._optionTextModifier_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedOptionTextModifier(value: TextModifier | undefined): this { - if (((this._selectedOptionTextModifier_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedOptionTextModifier_0_0value = value - } else - { - this._selectedOptionTextModifier_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - dividerStyle(value: DividerStyleOptions | undefined): this { - if (((this._dividerStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._dividerStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._dividerStyle_0_0value = value - } else - { - this._dividerStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - avoidance(value: AvoidanceMode | undefined): this { - if (((this._avoidance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._avoidance_0_flag = AttributeUpdaterFlag.UPDATE - this._avoidance_0_0value = value - } else - { - this._avoidance_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menuOutline(value: MenuOutlineOptions | undefined): this { - if (((this._menuOutline_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._menuOutline_0_flag = AttributeUpdaterFlag.UPDATE - this._menuOutline_0_0value = value - } else - { - this._menuOutline_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - menuAlign(alignType: MenuAlignType | undefined, offset?: Offset): this { - if (((this._menuAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._menuAlign_0_flag = AttributeUpdaterFlag.UPDATE - this._menuAlign_0_0value = alignType - this._menuAlign_0_1value = offset - } else - { - this._menuAlign_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class MenuItemConfiguration_serializer { public static write(buffer: SerializerBase, value: MenuItemConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/shape.ets b/arkoala-arkts/arkui/generated/component/shape.ets similarity index 59% rename from arkoala-arkts/arkui/src/component/shape.ets rename to arkoala-arkts/arkui/generated/component/shape.ets index d32b3a63a959dbf66f521380746944c208ca3baf..73fd3172af1b93481144fbd28851cbd197ea5137 100644 --- a/arkoala-arkts/arkui/src/component/shape.ets +++ b/arkoala-arkts/arkui/generated/component/shape.ets @@ -17,22 +17,22 @@ // 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 } 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, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkShapePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -593,597 +593,6 @@ export function Shape( }) } -export class ShapeModifier extends CommonMethodModifier implements ShapeAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _viewPort_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _viewPort_0_0value?: ViewportRect | undefined - _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?: Length | undefined - _strokeDashArray_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _strokeDashArray_0_0value?: Array | 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?: Length | 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 - _mesh_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mesh_0_0value?: Array | undefined - _mesh_0_1value?: number | undefined - _mesh_0_2value?: number | undefined - applyModifierPatch(peer: ArkShapePeer): void { - super.applyModifierPatch(peer) - if (this._viewPort_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._viewPort_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setViewPortAttribute((this._viewPort_0_0value as ViewportRect | undefined)); - this._viewPort_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._viewPort_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._viewPort_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setViewPortAttribute((undefined as ViewportRect | undefined)); - } - } - } - 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 Length | 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 Length | 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)); - } - } - } - 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 Length | 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 Length | 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._mesh_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mesh_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMeshAttribute((this._mesh_0_0value as Array | undefined), (this._mesh_0_1value as number | undefined), (this._mesh_0_2value as number | undefined)); - this._mesh_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mesh_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mesh_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMeshAttribute((undefined as Array | undefined), (undefined as number | undefined), (undefined as number | undefined)); - } - } - } - } - mergeModifier(modifier: ShapeModifier): void { - super.mergeModifier(modifier) - if (modifier._viewPort_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._viewPort_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.viewPort(modifier._viewPort_0_0value); - break; - } - default: { - this.viewPort((undefined as ViewportRect | undefined)); - } - } - } - 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 Length | 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)); - } - } - } - 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 Length | 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._mesh_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mesh_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mesh(modifier._mesh_0_0value, modifier._mesh_0_1value, modifier._mesh_0_2value); - break; - } - default: { - this.mesh((undefined as Array | undefined), (undefined as number | undefined), (undefined as number | undefined)); - } - } - } - } - viewPort(value: ViewportRect | undefined): this { - if (((this._viewPort_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._viewPort_0_flag = AttributeUpdaterFlag.UPDATE - this._viewPort_0_0value = value - } else - { - this._viewPort_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - 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: Length | undefined): this { - if (((this._strokeDashOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._strokeDashOffset_0_flag = AttributeUpdaterFlag.UPDATE - this._strokeDashOffset_0_0value = value - } else - { - this._strokeDashOffset_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 - } - 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: Length | undefined): this { - if (((this._strokeMiterLimit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - 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 - } - mesh(value: Array | undefined, column: number | undefined, row: number | undefined): this { - if (((this._mesh_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._mesh_0_0value) !== (value)) || ((this._mesh_0_1value) !== (column)) || ((this._mesh_0_2value) !== (row))) - { - this._mesh_0_flag = AttributeUpdaterFlag.UPDATE - this._mesh_0_0value = value - this._mesh_0_1value = column - this._mesh_0_2value = row - } else - { - this._mesh_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ViewportRect_serializer { public static write(buffer: SerializerBase, value: ViewportRect): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/sidebar.ets b/arkoala-arkts/arkui/generated/component/sidebar.ets similarity index 57% rename from arkoala-arkts/arkui/src/component/sidebar.ets rename to arkoala-arkts/arkui/generated/component/sidebar.ets index 44cbd8aa0f085649c757d8a17aab275feeb58e75..289728e06185ca5d8682a72f7cdb8b6d095a1451 100644 --- a/arkoala-arkts/arkui/src/component/sidebar.ets +++ b/arkoala-arkts/arkui/generated/component/sidebar.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 { 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 { Bindable_Boolean_serializer, Bindable_Number_serializer, DividerStyle_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, DividerStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Resource_serializer } 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 { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { image, image_PixelMap_serializer } from "./../framework/ohos.multimedia.image" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkSideBarContainerPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -572,637 +572,6 @@ export function SideBarContainer( }) } -export class SideBarContainerModifier extends CommonMethodModifier implements SideBarContainerAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _showSideBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showSideBar_0_0value?: boolean | Bindable | undefined - _controlButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _controlButton_0_0value?: ButtonStyle | undefined - _showControlButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showControlButton_0_0value?: boolean | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: ((value: boolean) => void) | undefined - _sideBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sideBarWidth_0_0value?: number | Bindable | undefined - _minSideBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minSideBarWidth_0_0value?: number | undefined - _maxSideBarWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxSideBarWidth_0_0value?: number | undefined - _sideBarWidth_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sideBarWidth_1_0value?: Length | undefined - _minSideBarWidth_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minSideBarWidth_1_0value?: Length | undefined - _maxSideBarWidth_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxSideBarWidth_1_0value?: Length | undefined - _autoHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _autoHide_0_0value?: boolean | undefined - _sideBarPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sideBarPosition_0_0value?: SideBarPosition | undefined - _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _divider_0_0value?: DividerStyle | undefined - _minContentWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minContentWidth_0_0value?: Dimension | undefined - applyModifierPatch(peer: ArkSideBarContainerPeer): void { - super.applyModifierPatch(peer) - if (this._showSideBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showSideBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowSideBarAttribute((this._showSideBar_0_0value as boolean | Bindable | undefined)); - this._showSideBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showSideBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showSideBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowSideBarAttribute((undefined as boolean | Bindable | undefined)); - } - } - } - if (this._controlButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._controlButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setControlButtonAttribute((this._controlButton_0_0value as ButtonStyle | undefined)); - this._controlButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._controlButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._controlButton_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setControlButtonAttribute((undefined as ButtonStyle | undefined)); - } - } - } - if (this._showControlButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showControlButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowControlButtonAttribute((this._showControlButton_0_0value as boolean | undefined)); - this._showControlButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showControlButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showControlButton_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowControlButtonAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as ((value: boolean) => void) | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as ((value: boolean) => void) | undefined)); - } - } - } - if (this._sideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sideBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSideBarWidth0Attribute((this._sideBarWidth_0_0value as number | Bindable | undefined)); - this._sideBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sideBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sideBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSideBarWidth0Attribute((undefined as number | Bindable | undefined)); - } - } - } - if (this._minSideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minSideBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinSideBarWidth0Attribute((this._minSideBarWidth_0_0value as number | undefined)); - this._minSideBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minSideBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minSideBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinSideBarWidth0Attribute((undefined as number | undefined)); - } - } - } - if (this._maxSideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxSideBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxSideBarWidth0Attribute((this._maxSideBarWidth_0_0value as number | undefined)); - this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxSideBarWidth0Attribute((undefined as number | undefined)); - } - } - } - if (this._sideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sideBarWidth_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSideBarWidth1Attribute((this._sideBarWidth_1_0value as Length | undefined)); - this._sideBarWidth_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sideBarWidth_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sideBarWidth_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setSideBarWidth1Attribute((undefined as Length | undefined)); - } - } - } - if (this._minSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minSideBarWidth_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinSideBarWidth1Attribute((this._minSideBarWidth_1_0value as Length | undefined)); - this._minSideBarWidth_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minSideBarWidth_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minSideBarWidth_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinSideBarWidth1Attribute((undefined as Length | undefined)); - } - } - } - if (this._maxSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxSideBarWidth_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxSideBarWidth1Attribute((this._maxSideBarWidth_1_0value as Length | undefined)); - this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxSideBarWidth1Attribute((undefined as Length | undefined)); - } - } - } - if (this._autoHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._autoHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAutoHideAttribute((this._autoHide_0_0value as boolean | undefined)); - this._autoHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._autoHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._autoHide_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAutoHideAttribute((undefined as boolean | undefined)); - } - } - } - if (this._sideBarPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sideBarPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSideBarPositionAttribute((this._sideBarPosition_0_0value as SideBarPosition | undefined)); - this._sideBarPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sideBarPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sideBarPosition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSideBarPositionAttribute((undefined as SideBarPosition | undefined)); - } - } - } - if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDividerAttribute((this._divider_0_0value as DividerStyle | undefined)); - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._divider_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDividerAttribute((undefined as DividerStyle | undefined)); - } - } - } - if (this._minContentWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minContentWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinContentWidthAttribute((this._minContentWidth_0_0value as Dimension | undefined)); - this._minContentWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minContentWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minContentWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinContentWidthAttribute((undefined as Dimension | undefined)); - } - } - } - } - mergeModifier(modifier: SideBarContainerModifier): void { - super.mergeModifier(modifier) - if (modifier._showSideBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showSideBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showSideBar(modifier._showSideBar_0_0value); - break; - } - default: { - this.showSideBar((undefined as boolean | Bindable | undefined)); - } - } - } - if (modifier._controlButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._controlButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.controlButton(modifier._controlButton_0_0value); - break; - } - default: { - this.controlButton((undefined as ButtonStyle | undefined)); - } - } - } - if (modifier._showControlButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showControlButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showControlButton(modifier._showControlButton_0_0value); - break; - } - default: { - this.showControlButton((undefined as boolean | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as ((value: boolean) => void) | undefined)); - } - } - } - if (modifier._sideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sideBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sideBarWidth(modifier._sideBarWidth_0_0value); - break; - } - default: { - this.sideBarWidth((undefined as number | Bindable | undefined)); - } - } - } - if (modifier._minSideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minSideBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minSideBarWidth(modifier._minSideBarWidth_0_0value); - break; - } - default: { - this.minSideBarWidth((undefined as number | undefined)); - } - } - } - if (modifier._maxSideBarWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxSideBarWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxSideBarWidth(modifier._maxSideBarWidth_0_0value); - break; - } - default: { - this.maxSideBarWidth((undefined as number | undefined)); - } - } - } - if (modifier._sideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sideBarWidth_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sideBarWidth(modifier._sideBarWidth_1_0value); - break; - } - default: { - this.sideBarWidth((undefined as Length | undefined)); - } - } - } - if (modifier._minSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minSideBarWidth_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minSideBarWidth(modifier._minSideBarWidth_1_0value); - break; - } - default: { - this.minSideBarWidth((undefined as Length | undefined)); - } - } - } - if (modifier._maxSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxSideBarWidth_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxSideBarWidth(modifier._maxSideBarWidth_1_0value); - break; - } - default: { - this.maxSideBarWidth((undefined as Length | undefined)); - } - } - } - if (modifier._autoHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._autoHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.autoHide(modifier._autoHide_0_0value); - break; - } - default: { - this.autoHide((undefined as boolean | undefined)); - } - } - } - if (modifier._sideBarPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sideBarPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sideBarPosition(modifier._sideBarPosition_0_0value); - break; - } - default: { - this.sideBarPosition((undefined as SideBarPosition | undefined)); - } - } - } - if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.divider(modifier._divider_0_0value); - break; - } - default: { - this.divider((undefined as DividerStyle | undefined)); - } - } - } - if (modifier._minContentWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minContentWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minContentWidth(modifier._minContentWidth_0_0value); - break; - } - default: { - this.minContentWidth((undefined as Dimension | undefined)); - } - } - } - } - showSideBar(value: boolean | Bindable | undefined): this { - if (((this._showSideBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._showSideBar_0_flag = AttributeUpdaterFlag.UPDATE - this._showSideBar_0_0value = value - } else - { - this._showSideBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - controlButton(value: ButtonStyle | undefined): this { - if (((this._controlButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._controlButton_0_flag = AttributeUpdaterFlag.UPDATE - this._controlButton_0_0value = value - } else - { - this._controlButton_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - showControlButton(value: boolean | undefined): this { - if (((this._showControlButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showControlButton_0_0value) !== (value))) - { - this._showControlButton_0_flag = AttributeUpdaterFlag.UPDATE - this._showControlButton_0_0value = value - } else - { - this._showControlButton_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: ((value: boolean) => void) | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sideBarWidth(value: number | Bindable | undefined): this { - if (((this._sideBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._sideBarWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._sideBarWidth_0_0value = value - } else - { - this._sideBarWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minSideBarWidth(value: number | undefined): this { - if (((this._minSideBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._minSideBarWidth_0_0value) !== (value))) - { - this._minSideBarWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._minSideBarWidth_0_0value = value - } else - { - this._minSideBarWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxSideBarWidth(value: number | undefined): this { - if (((this._maxSideBarWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxSideBarWidth_0_0value) !== (value))) - { - this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._maxSideBarWidth_0_0value = value - } else - { - this._maxSideBarWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sideBarWidth(value: Length | undefined): this { - if (((this._sideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._sideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE - this._sideBarWidth_1_0value = value - } else - { - this._sideBarWidth_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minSideBarWidth(value: Length | undefined): this { - if (((this._minSideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minSideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE - this._minSideBarWidth_1_0value = value - } else - { - this._minSideBarWidth_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxSideBarWidth(value: Length | undefined): this { - if (((this._maxSideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE - this._maxSideBarWidth_1_0value = value - } else - { - this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - autoHide(value: boolean | undefined): this { - if (((this._autoHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoHide_0_0value) !== (value))) - { - this._autoHide_0_flag = AttributeUpdaterFlag.UPDATE - this._autoHide_0_0value = value - } else - { - this._autoHide_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sideBarPosition(value: SideBarPosition | undefined): this { - if (((this._sideBarPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._sideBarPosition_0_flag = AttributeUpdaterFlag.UPDATE - this._sideBarPosition_0_0value = value - } else - { - this._sideBarPosition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - divider(value: DividerStyle | undefined): this { - if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._divider_0_flag = AttributeUpdaterFlag.UPDATE - this._divider_0_0value = value - } else - { - this._divider_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minContentWidth(value: Dimension | undefined): this { - if (((this._minContentWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minContentWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._minContentWidth_0_0value = value - } else - { - this._minContentWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ButtonIconOptions_serializer { public static write(buffer: SerializerBase, value: ButtonIconOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/slider.ets b/arkoala-arkts/arkui/generated/component/slider.ets similarity index 58% rename from arkoala-arkts/arkui/src/component/slider.ets rename to arkoala-arkts/arkui/generated/component/slider.ets index a38ccce1c55b297cd5f2dea3c277db5ecc8da7ed..86eebb4237ba7602c1e1ffc045029b9093fcffba 100644 --- a/arkoala-arkts/arkui/src/component/slider.ets +++ b/arkoala-arkts/arkui/generated/component/slider.ets @@ -17,22 +17,22 @@ // 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 } 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" 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 { ArkCommonMethodPeer, CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, 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 { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, hookSliderContentModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkSliderPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -885,903 +885,6 @@ export function Slider( }) } -export class SliderModifier extends CommonMethodModifier implements SliderAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _blockColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _blockColor_0_0value?: ResourceColor | undefined - _trackColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _trackColor_0_0value?: ResourceColor | LinearGradient | undefined - _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedColor_0_0value?: ResourceColor | LinearGradient | undefined - _showSteps_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showSteps_0_0value?: boolean | undefined - _trackThickness_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _trackThickness_0_0value?: Length | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: ((value: number,mode: SliderChangeMode) => void) | undefined - _blockBorderColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _blockBorderColor_0_0value?: ResourceColor | undefined - _blockBorderWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _blockBorderWidth_0_0value?: Length | undefined - _stepColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stepColor_0_0value?: ResourceColor | undefined - _trackBorderRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _trackBorderRadius_0_0value?: Length | undefined - _selectedBorderRadius_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedBorderRadius_0_0value?: Dimension | undefined - _blockSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _blockSize_0_0value?: SizeOptions | undefined - _blockStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _blockStyle_0_0value?: SliderBlockStyle | undefined - _stepSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stepSize_0_0value?: Length | undefined - _sliderInteractionMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _sliderInteractionMode_0_0value?: SliderInteraction | undefined - _minResponsiveDistance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minResponsiveDistance_0_0value?: number | undefined - _slideRange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _slideRange_0_0value?: SlideRange | undefined - _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined - _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableHapticFeedback_0_0value?: boolean | undefined - _showTips_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showTips_0_0value?: boolean | undefined - _showTips_0_1value?: ResourceStr | undefined - applyModifierPatch(peer: ArkSliderPeer): void { - super.applyModifierPatch(peer) - if (this._blockColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._blockColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBlockColorAttribute((this._blockColor_0_0value as ResourceColor | undefined)); - this._blockColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._blockColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._blockColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBlockColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._trackColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._trackColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTrackColorAttribute((this._trackColor_0_0value as ResourceColor | LinearGradient | undefined)); - this._trackColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._trackColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._trackColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTrackColorAttribute((undefined as ResourceColor | LinearGradient | undefined)); - } - } - } - if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | LinearGradient | undefined)); - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedColorAttribute((undefined as ResourceColor | LinearGradient | undefined)); - } - } - } - if (this._showSteps_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showSteps_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowStepsAttribute((this._showSteps_0_0value as boolean | undefined)); - this._showSteps_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showSteps_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showSteps_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowStepsAttribute((undefined as boolean | undefined)); - } - } - } - if (this._trackThickness_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._trackThickness_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTrackThicknessAttribute((this._trackThickness_0_0value as Length | undefined)); - this._trackThickness_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._trackThickness_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._trackThickness_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTrackThicknessAttribute((undefined as Length | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as ((value: number,mode: SliderChangeMode) => void) | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as ((value: number,mode: SliderChangeMode) => void) | undefined)); - } - } - } - if (this._blockBorderColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._blockBorderColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBlockBorderColorAttribute((this._blockBorderColor_0_0value as ResourceColor | undefined)); - this._blockBorderColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._blockBorderColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._blockBorderColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBlockBorderColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._blockBorderWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._blockBorderWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBlockBorderWidthAttribute((this._blockBorderWidth_0_0value as Length | undefined)); - this._blockBorderWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._blockBorderWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._blockBorderWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBlockBorderWidthAttribute((undefined as Length | undefined)); - } - } - } - if (this._stepColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stepColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStepColorAttribute((this._stepColor_0_0value as ResourceColor | undefined)); - this._stepColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stepColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stepColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStepColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._trackBorderRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._trackBorderRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTrackBorderRadiusAttribute((this._trackBorderRadius_0_0value as Length | undefined)); - this._trackBorderRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._trackBorderRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._trackBorderRadius_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTrackBorderRadiusAttribute((undefined as Length | undefined)); - } - } - } - if (this._selectedBorderRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedBorderRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedBorderRadiusAttribute((this._selectedBorderRadius_0_0value as Dimension | undefined)); - this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedBorderRadiusAttribute((undefined as Dimension | undefined)); - } - } - } - if (this._blockSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._blockSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBlockSizeAttribute((this._blockSize_0_0value as SizeOptions | undefined)); - this._blockSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._blockSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._blockSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBlockSizeAttribute((undefined as SizeOptions | undefined)); - } - } - } - if (this._blockStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._blockStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBlockStyleAttribute((this._blockStyle_0_0value as SliderBlockStyle | undefined)); - this._blockStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._blockStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._blockStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBlockStyleAttribute((undefined as SliderBlockStyle | undefined)); - } - } - } - if (this._stepSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stepSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStepSizeAttribute((this._stepSize_0_0value as Length | undefined)); - this._stepSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stepSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stepSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStepSizeAttribute((undefined as Length | undefined)); - } - } - } - if (this._sliderInteractionMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._sliderInteractionMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSliderInteractionModeAttribute((this._sliderInteractionMode_0_0value as SliderInteraction | undefined)); - this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSliderInteractionModeAttribute((undefined as SliderInteraction | undefined)); - } - } - } - if (this._minResponsiveDistance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minResponsiveDistance_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinResponsiveDistanceAttribute((this._minResponsiveDistance_0_0value as number | undefined)); - this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinResponsiveDistanceAttribute((undefined as number | undefined)); - } - } - } - if (this._slideRange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._slideRange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSlideRangeAttribute((this._slideRange_0_0value as SlideRange | undefined)); - this._slideRange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._slideRange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._slideRange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSlideRangeAttribute((undefined as SlideRange | 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._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); - } - } - } - if (this._showTips_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showTips_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowTipsAttribute((this._showTips_0_0value as boolean | undefined), (this._showTips_0_1value as ResourceStr | undefined)); - this._showTips_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showTips_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showTips_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowTipsAttribute((undefined as boolean | undefined), (undefined as ResourceStr | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: SliderModifier): void { - super.mergeModifier(modifier) - if (modifier._blockColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._blockColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.blockColor(modifier._blockColor_0_0value); - break; - } - default: { - this.blockColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._trackColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._trackColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.trackColor(modifier._trackColor_0_0value); - break; - } - default: { - this.trackColor((undefined as ResourceColor | LinearGradient | undefined)); - } - } - } - if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedColor(modifier._selectedColor_0_0value); - break; - } - default: { - this.selectedColor((undefined as ResourceColor | LinearGradient | undefined)); - } - } - } - if (modifier._showSteps_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showSteps_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showSteps(modifier._showSteps_0_0value); - break; - } - default: { - this.showSteps((undefined as boolean | undefined)); - } - } - } - if (modifier._trackThickness_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._trackThickness_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.trackThickness(modifier._trackThickness_0_0value); - break; - } - default: { - this.trackThickness((undefined as Length | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as ((value: number,mode: SliderChangeMode) => void) | undefined)); - } - } - } - if (modifier._blockBorderColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._blockBorderColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.blockBorderColor(modifier._blockBorderColor_0_0value); - break; - } - default: { - this.blockBorderColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._blockBorderWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._blockBorderWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.blockBorderWidth(modifier._blockBorderWidth_0_0value); - break; - } - default: { - this.blockBorderWidth((undefined as Length | undefined)); - } - } - } - if (modifier._stepColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stepColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stepColor(modifier._stepColor_0_0value); - break; - } - default: { - this.stepColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._trackBorderRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._trackBorderRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.trackBorderRadius(modifier._trackBorderRadius_0_0value); - break; - } - default: { - this.trackBorderRadius((undefined as Length | undefined)); - } - } - } - if (modifier._selectedBorderRadius_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedBorderRadius_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedBorderRadius(modifier._selectedBorderRadius_0_0value); - break; - } - default: { - this.selectedBorderRadius((undefined as Dimension | undefined)); - } - } - } - if (modifier._blockSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._blockSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.blockSize(modifier._blockSize_0_0value); - break; - } - default: { - this.blockSize((undefined as SizeOptions | undefined)); - } - } - } - if (modifier._blockStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._blockStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.blockStyle(modifier._blockStyle_0_0value); - break; - } - default: { - this.blockStyle((undefined as SliderBlockStyle | undefined)); - } - } - } - if (modifier._stepSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stepSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stepSize(modifier._stepSize_0_0value); - break; - } - default: { - this.stepSize((undefined as Length | undefined)); - } - } - } - if (modifier._sliderInteractionMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sliderInteractionMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sliderInteractionMode(modifier._sliderInteractionMode_0_0value); - break; - } - default: { - this.sliderInteractionMode((undefined as SliderInteraction | undefined)); - } - } - } - if (modifier._minResponsiveDistance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minResponsiveDistance_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minResponsiveDistance(modifier._minResponsiveDistance_0_0value); - break; - } - default: { - this.minResponsiveDistance((undefined as number | undefined)); - } - } - } - if (modifier._slideRange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._slideRange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.slideRange(modifier._slideRange_0_0value); - break; - } - default: { - this.slideRange((undefined as SlideRange | 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._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); - break; - } - default: { - this.enableHapticFeedback((undefined as boolean | undefined)); - } - } - } - if (modifier._showTips_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showTips_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showTips(modifier._showTips_0_0value, modifier._showTips_0_1value); - break; - } - default: { - this.showTips((undefined as boolean | undefined), (undefined as ResourceStr | undefined | undefined)); - } - } - } - } - blockColor(value: ResourceColor | undefined): this { - if (((this._blockColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._blockColor_0_flag = AttributeUpdaterFlag.UPDATE - this._blockColor_0_0value = value - } else - { - this._blockColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - trackColor(value: ResourceColor | LinearGradient | undefined): this { - if (((this._trackColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._trackColor_0_flag = AttributeUpdaterFlag.UPDATE - this._trackColor_0_0value = value - } else - { - this._trackColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedColor(value: ResourceColor | LinearGradient | undefined): this { - if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedColor_0_0value = value - } else - { - this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - showSteps(value: boolean | undefined): this { - if (((this._showSteps_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showSteps_0_0value) !== (value))) - { - this._showSteps_0_flag = AttributeUpdaterFlag.UPDATE - this._showSteps_0_0value = value - } else - { - this._showSteps_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - trackThickness(value: Length | undefined): this { - if (((this._trackThickness_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._trackThickness_0_flag = AttributeUpdaterFlag.UPDATE - this._trackThickness_0_0value = value - } else - { - this._trackThickness_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: ((value: number,mode: SliderChangeMode) => void) | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - blockBorderColor(value: ResourceColor | undefined): this { - if (((this._blockBorderColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._blockBorderColor_0_flag = AttributeUpdaterFlag.UPDATE - this._blockBorderColor_0_0value = value - } else - { - this._blockBorderColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - blockBorderWidth(value: Length | undefined): this { - if (((this._blockBorderWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._blockBorderWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._blockBorderWidth_0_0value = value - } else - { - this._blockBorderWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - stepColor(value: ResourceColor | undefined): this { - if (((this._stepColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._stepColor_0_flag = AttributeUpdaterFlag.UPDATE - this._stepColor_0_0value = value - } else - { - this._stepColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - trackBorderRadius(value: Length | undefined): this { - if (((this._trackBorderRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._trackBorderRadius_0_flag = AttributeUpdaterFlag.UPDATE - this._trackBorderRadius_0_0value = value - } else - { - this._trackBorderRadius_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedBorderRadius(value: Dimension | undefined): this { - if (((this._selectedBorderRadius_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedBorderRadius_0_0value = value - } else - { - this._selectedBorderRadius_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - blockSize(value: SizeOptions | undefined): this { - if (((this._blockSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._blockSize_0_flag = AttributeUpdaterFlag.UPDATE - this._blockSize_0_0value = value - } else - { - this._blockSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - blockStyle(value: SliderBlockStyle | undefined): this { - if (((this._blockStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._blockStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._blockStyle_0_0value = value - } else - { - this._blockStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - stepSize(value: Length | undefined): this { - if (((this._stepSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._stepSize_0_flag = AttributeUpdaterFlag.UPDATE - this._stepSize_0_0value = value - } else - { - this._stepSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - sliderInteractionMode(value: SliderInteraction | undefined): this { - if (((this._sliderInteractionMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.UPDATE - this._sliderInteractionMode_0_0value = value - } else - { - this._sliderInteractionMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minResponsiveDistance(value: number | undefined): this { - if (((this._minResponsiveDistance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._minResponsiveDistance_0_0value) !== (value))) - { - this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.UPDATE - this._minResponsiveDistance_0_0value = value - } else - { - this._minResponsiveDistance_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - slideRange(value: SlideRange | undefined): this { - if (((this._slideRange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._slideRange_0_flag = AttributeUpdaterFlag.UPDATE - this._slideRange_0_0value = value - } else - { - this._slideRange_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 - } - enableHapticFeedback(value: boolean | undefined): this { - if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE - this._enableHapticFeedback_0_0value = value - } else - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - showTips(value: boolean | undefined, content?: ResourceStr): this { - if (((this._showTips_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showTips_0_0value) !== (value)) || (true)) - { - this._showTips_0_flag = AttributeUpdaterFlag.UPDATE - this._showTips_0_0value = value - this._showTips_0_1value = content - } else - { - this._showTips_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class SlideRange_serializer { public static write(buffer: SerializerBase, value: SlideRange): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/span.ets b/arkoala-arkts/arkui/generated/component/span.ets similarity index 57% rename from arkoala-arkts/arkui/src/component/span.ets rename to arkoala-arkts/arkui/generated/component/span.ets index 7ff396f0ddb22949dadb005a3a439384e973b746..006c4652577b81ba62c1b7fb9c1ec036f65279c7 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 "./../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 { ArkCommonMethodPeer, CommonMethod, ShadowOptions_serializer, ShadowOptions, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./../generated/resource" +import { Resource_serializer } 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 { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkBaseSpanPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -581,608 +581,6 @@ export function Span( }) } -export class BaseSpanModifier extends CommonMethodModifier implements BaseSpan { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _textBackgroundStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textBackgroundStyle_0_0value?: TextBackgroundStyle | undefined - _baselineOffset_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _baselineOffset_0_0value?: LengthMetrics | undefined - applyModifierPatch(peer: ArkBaseSpanPeer): void { - super.applyModifierPatch(peer) - if (this._textBackgroundStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textBackgroundStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextBackgroundStyleAttribute((this._textBackgroundStyle_0_0value as TextBackgroundStyle | undefined)); - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextBackgroundStyleAttribute((undefined as TextBackgroundStyle | undefined)); - } - } - } - if (this._baselineOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._baselineOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBaselineOffsetAttribute((this._baselineOffset_0_0value as LengthMetrics | undefined)); - this._baselineOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._baselineOffset_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._baselineOffset_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBaselineOffsetAttribute((undefined as LengthMetrics | undefined)); - } - } - } - } - mergeModifier(modifier: BaseSpanModifier): void { - super.mergeModifier(modifier) - if (modifier._textBackgroundStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textBackgroundStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textBackgroundStyle(modifier._textBackgroundStyle_0_0value); - break; - } - default: { - this.textBackgroundStyle((undefined as TextBackgroundStyle | undefined)); - } - } - } - if (modifier._baselineOffset_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._baselineOffset_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.baselineOffset(modifier._baselineOffset_0_0value); - break; - } - default: { - this.baselineOffset((undefined as LengthMetrics | undefined)); - } - } - } - } - textBackgroundStyle(value: TextBackgroundStyle | undefined): this { - if (((this._textBackgroundStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._textBackgroundStyle_0_0value = value - } else - { - this._textBackgroundStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - baselineOffset(value: LengthMetrics | undefined): this { - if (((this._baselineOffset_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._baselineOffset_0_flag = AttributeUpdaterFlag.UPDATE - this._baselineOffset_0_0value = value - } else - { - this._baselineOffset_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} -export class SpanModifier extends BaseSpanModifier implements SpanAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _font_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _font_0_0value?: Font | undefined - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: ResourceColor | undefined - _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontSize_0_0value?: number | string | Resource | undefined - _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontStyle_0_0value?: FontStyle | undefined - _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontWeight_0_0value?: number | FontWeight | string | undefined - _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontFamily_0_0value?: string | Resource | undefined - _decoration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _decoration_0_0value?: DecorationStyleInterface | undefined - _letterSpacing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _letterSpacing_0_0value?: number | string | undefined - _textCase_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textCase_0_0value?: TextCase | undefined - _lineHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _lineHeight_0_0value?: Length | undefined - _textShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textShadow_0_0value?: ShadowOptions | Array | undefined - applyModifierPatch(peer: ArkSpanPeer): void { - super.applyModifierPatch(peer) - if (this._font_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._font_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontAttribute((this._font_0_0value as Font | undefined)); - this._font_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._font_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._font_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontSizeAttribute((this._fontSize_0_0value as number | string | Resource | undefined)); - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontSizeAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontStyleAttribute((undefined as FontStyle | undefined)); - } - } - } - if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); - } - } - } - if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontFamilyAttribute((this._fontFamily_0_0value as string | Resource | undefined)); - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontFamilyAttribute((undefined as string | Resource | undefined)); - } - } - } - if (this._decoration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._decoration_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDecorationAttribute((this._decoration_0_0value as DecorationStyleInterface | undefined)); - this._decoration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._decoration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._decoration_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDecorationAttribute((undefined as DecorationStyleInterface | undefined)); - } - } - } - if (this._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._letterSpacing_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLetterSpacingAttribute((this._letterSpacing_0_0value as number | string | undefined)); - this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._letterSpacing_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLetterSpacingAttribute((undefined as number | string | undefined)); - } - } - } - if (this._textCase_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textCase_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextCaseAttribute((this._textCase_0_0value as TextCase | undefined)); - this._textCase_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textCase_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textCase_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextCaseAttribute((undefined as TextCase | undefined)); - } - } - } - if (this._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._lineHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLineHeightAttribute((this._lineHeight_0_0value as Length | undefined)); - this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._lineHeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLineHeightAttribute((undefined as Length | undefined)); - } - } - } - if (this._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextShadowAttribute((this._textShadow_0_0value as ShadowOptions | Array | undefined)); - this._textShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textShadow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextShadowAttribute((undefined as ShadowOptions | Array | undefined)); - } - } - } - } - mergeModifier(modifier: SpanModifier): void { - super.mergeModifier(modifier) - if (modifier._font_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._font_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.font(modifier._font_0_0value); - break; - } - default: { - this.font((undefined as Font | undefined)); - } - } - } - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontSize(modifier._fontSize_0_0value); - break; - } - default: { - this.fontSize((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontStyle(modifier._fontStyle_0_0value); - break; - } - default: { - this.fontStyle((undefined as FontStyle | undefined)); - } - } - } - if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontWeight(modifier._fontWeight_0_0value); - break; - } - default: { - this.fontWeight((undefined as number | FontWeight | string | undefined)); - } - } - } - if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontFamily(modifier._fontFamily_0_0value); - break; - } - default: { - this.fontFamily((undefined as string | Resource | undefined)); - } - } - } - if (modifier._decoration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._decoration_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.decoration(modifier._decoration_0_0value); - break; - } - default: { - this.decoration((undefined as DecorationStyleInterface | undefined)); - } - } - } - if (modifier._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._letterSpacing_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.letterSpacing(modifier._letterSpacing_0_0value); - break; - } - default: { - this.letterSpacing((undefined as number | string | undefined)); - } - } - } - if (modifier._textCase_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textCase_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textCase(modifier._textCase_0_0value); - break; - } - default: { - this.textCase((undefined as TextCase | undefined)); - } - } - } - if (modifier._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._lineHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.lineHeight(modifier._lineHeight_0_0value); - break; - } - default: { - this.lineHeight((undefined as Length | undefined)); - } - } - } - if (modifier._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textShadow(modifier._textShadow_0_0value); - break; - } - default: { - this.textShadow((undefined as ShadowOptions | Array | undefined)); - } - } - } - } - font(value: Font | undefined): this { - if (((this._font_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._font_0_flag = AttributeUpdaterFlag.UPDATE - this._font_0_0value = value - } else - { - this._font_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontColor(value: ResourceColor | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontSize(value: number | string | Resource | undefined): this { - if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fontSize_0_0value = value - } else - { - this._fontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontStyle(value: FontStyle | undefined): this { - if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._fontStyle_0_0value = value - } else - { - this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontWeight(value: number | FontWeight | string | undefined): this { - if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._fontWeight_0_0value = value - } else - { - this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontFamily(value: string | Resource | undefined): this { - if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE - this._fontFamily_0_0value = value - } else - { - this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - decoration(value: DecorationStyleInterface | undefined): this { - if (((this._decoration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._decoration_0_flag = AttributeUpdaterFlag.UPDATE - this._decoration_0_0value = value - } else - { - this._decoration_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - letterSpacing(value: number | string | undefined): this { - if (((this._letterSpacing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._letterSpacing_0_0value) !== (value))) - { - this._letterSpacing_0_flag = AttributeUpdaterFlag.UPDATE - this._letterSpacing_0_0value = value - } else - { - this._letterSpacing_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textCase(value: TextCase | undefined): this { - if (((this._textCase_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textCase_0_flag = AttributeUpdaterFlag.UPDATE - this._textCase_0_0value = value - } else - { - this._textCase_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - lineHeight(value: Length | undefined): this { - if (((this._lineHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._lineHeight_0_flag = AttributeUpdaterFlag.UPDATE - this._lineHeight_0_0value = value - } else - { - this._lineHeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textShadow(value: ShadowOptions | Array | undefined): this { - if (((this._textShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textShadow_0_flag = AttributeUpdaterFlag.UPDATE - this._textShadow_0_0value = value - } else - { - this._textShadow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class TextBackgroundStyle_serializer { public static write(buffer: SerializerBase, value: TextBackgroundStyle): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/stack.ets b/arkoala-arkts/arkui/generated/component/stack.ets similarity index 64% rename from arkoala-arkts/arkui/src/component/stack.ets rename to arkoala-arkts/arkui/generated/component/stack.ets index 645e5217865c0ced79c9590467730559152ca4c6..20388cfaaf1bec4249a9e5e69addeb18bdd840f5 100644 --- a/arkoala-arkts/arkui/src/component/stack.ets +++ b/arkoala-arkts/arkui/generated/component/stack.ets @@ -17,19 +17,18 @@ // 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 { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { PointLightStyle_serializer, ArkCommonMethodPeer, CommonMethod, PointLightStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { int32, int64, float32, unsafeCast } from "@koalaui/common" 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, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkStackPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -163,109 +162,6 @@ export function Stack( }) } -export class StackModifier extends CommonMethodModifier implements StackAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _alignContent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _alignContent_0_0value?: Alignment | undefined - _pointLight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pointLight_0_0value?: PointLightStyle | undefined - applyModifierPatch(peer: ArkStackPeer): void { - super.applyModifierPatch(peer) - if (this._alignContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._alignContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAlignContentAttribute((this._alignContent_0_0value as Alignment | undefined)); - this._alignContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._alignContent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._alignContent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAlignContentAttribute((undefined as Alignment | undefined)); - } - } - } - if (this._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPointLightAttribute((this._pointLight_0_0value as PointLightStyle | undefined)); - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pointLight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pointLight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPointLightAttribute((undefined as PointLightStyle | undefined)); - } - } - } - } - mergeModifier(modifier: StackModifier): void { - super.mergeModifier(modifier) - if (modifier._alignContent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._alignContent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.alignContent(modifier._alignContent_0_0value); - break; - } - default: { - this.alignContent((undefined as Alignment | undefined)); - } - } - } - if (modifier._pointLight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pointLight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pointLight(modifier._pointLight_0_0value); - break; - } - default: { - this.pointLight((undefined as PointLightStyle | undefined)); - } - } - } - } - alignContent(value: Alignment | undefined): this { - if (((this._alignContent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._alignContent_0_flag = AttributeUpdaterFlag.UPDATE - this._alignContent_0_0value = value - } else - { - this._alignContent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pointLight(value: PointLightStyle | undefined): this { - if (((this._pointLight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pointLight_0_flag = AttributeUpdaterFlag.UPDATE - this._pointLight_0_0value = value - } else - { - this._pointLight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class StackOptions_serializer { public static write(buffer: SerializerBase, value: StackOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/stateManagement.ets b/arkoala-arkts/arkui/generated/component/stateManagement.ets similarity index 94% rename from arkoala-arkts/arkui/src/component/stateManagement.ets rename to arkoala-arkts/arkui/generated/component/stateManagement.ets index dbbcd6a6299f1983e736853ece14ea3e2e175093..74fbc334d196404e566baad7918e5292415fea1d 100644 --- a/arkoala-arkts/arkui/src/component/stateManagement.ets +++ b/arkoala-arkts/arkui/generated/component/stateManagement.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum ColorMode { LIGHT = 0, DARK = 1 diff --git a/arkoala-arkts/arkui/src/component/stepper.ets b/arkoala-arkts/arkui/generated/component/stepper.ets similarity index 56% rename from arkoala-arkts/arkui/src/component/stepper.ets rename to arkoala-arkts/arkui/generated/component/stepper.ets index 0d5e8dca972c18f455fd1e7d994f810a156eff88..7dfcb767a92ef44eddbef9be149e224ef5382248 100644 --- a/arkoala-arkts/arkui/src/component/stepper.ets +++ b/arkoala-arkts/arkui/generated/component/stepper.ets @@ -21,14 +21,13 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" 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 { ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable_Number_serializer } from "./common" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkStepperPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -243,241 +242,6 @@ export function Stepper( }) } -export class StepperModifier extends CommonMethodModifier implements StepperAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFinish_0_0value?: (() => void) | undefined - _onSkip_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSkip_0_0value?: (() => void) | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: ((prevIndex: number,index: number) => void) | undefined - _onNext_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onNext_0_0value?: ((prevIndex: number,index: number) => void) | undefined - _onPrevious_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPrevious_0_0value?: ((prevIndex: number,index: number) => void) | undefined - applyModifierPatch(peer: ArkStepperPeer): void { - super.applyModifierPatch(peer) - if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFinishAttribute((this._onFinish_0_0value as (() => void) | undefined)); - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFinishAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onSkip_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSkip_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSkipAttribute((this._onSkip_0_0value as (() => void) | undefined)); - this._onSkip_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSkip_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSkip_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSkipAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as ((prevIndex: number,index: number) => void) | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as ((prevIndex: number,index: number) => void) | undefined)); - } - } - } - if (this._onNext_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onNext_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnNextAttribute((this._onNext_0_0value as ((prevIndex: number,index: number) => void) | undefined)); - this._onNext_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onNext_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onNext_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnNextAttribute((undefined as ((prevIndex: number,index: number) => void) | undefined)); - } - } - } - if (this._onPrevious_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPrevious_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPreviousAttribute((this._onPrevious_0_0value as ((prevIndex: number,index: number) => void) | undefined)); - this._onPrevious_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPrevious_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPrevious_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPreviousAttribute((undefined as ((prevIndex: number,index: number) => void) | undefined)); - } - } - } - } - mergeModifier(modifier: StepperModifier): void { - super.mergeModifier(modifier) - if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFinish(modifier._onFinish_0_0value); - break; - } - default: { - this.onFinish((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onSkip_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSkip_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSkip(modifier._onSkip_0_0value); - break; - } - default: { - this.onSkip((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as ((prevIndex: number,index: number) => void) | undefined)); - } - } - } - if (modifier._onNext_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onNext_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onNext(modifier._onNext_0_0value); - break; - } - default: { - this.onNext((undefined as ((prevIndex: number,index: number) => void) | undefined)); - } - } - } - if (modifier._onPrevious_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPrevious_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPrevious(modifier._onPrevious_0_0value); - break; - } - default: { - this.onPrevious((undefined as ((prevIndex: number,index: number) => void) | undefined)); - } - } - } - } - onFinish(value: (() => void) | undefined): this { - if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE - this._onFinish_0_0value = value - } else - { - this._onFinish_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSkip(value: (() => void) | undefined): this { - if (((this._onSkip_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSkip_0_flag = AttributeUpdaterFlag.UPDATE - this._onSkip_0_0value = value - } else - { - this._onSkip_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: ((prevIndex: number,index: number) => void) | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onNext(value: ((prevIndex: number,index: number) => void) | undefined): this { - if (((this._onNext_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onNext_0_flag = AttributeUpdaterFlag.UPDATE - this._onNext_0_0value = value - } else - { - this._onNext_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPrevious(value: ((prevIndex: number,index: number) => void) | undefined): this { - if (((this._onPrevious_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPrevious_0_flag = AttributeUpdaterFlag.UPDATE - this._onPrevious_0_0value = value - } else - { - this._onPrevious_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class StepperOptions_serializer { public static write(buffer: SerializerBase, value: StepperOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/stepperItem.ets b/arkoala-arkts/arkui/generated/component/stepperItem.ets similarity index 54% rename from arkoala-arkts/arkui/src/component/stepperItem.ets rename to arkoala-arkts/arkui/generated/component/stepperItem.ets index 045423e470ef8294d6b417f2bbe795b26a03f401..660d1fd518f10e7485b5d6c83212dde1dbc4b26c 100644 --- a/arkoala-arkts/arkui/src/component/stepperItem.ets +++ b/arkoala-arkts/arkui/generated/component/stepperItem.ets @@ -21,14 +21,13 @@ 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkStepperItemPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -186,150 +185,3 @@ export function StepperItem( }) } -export class StepperItemModifier extends CommonMethodModifier implements StepperItemAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _prevLabel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _prevLabel_0_0value?: string | undefined - _nextLabel_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _nextLabel_0_0value?: string | undefined - _status_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _status_0_0value?: ItemState | undefined - applyModifierPatch(peer: ArkStepperItemPeer): void { - super.applyModifierPatch(peer) - if (this._prevLabel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._prevLabel_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPrevLabelAttribute((this._prevLabel_0_0value as string | undefined)); - this._prevLabel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._prevLabel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._prevLabel_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPrevLabelAttribute((undefined as string | undefined)); - } - } - } - if (this._nextLabel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._nextLabel_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNextLabelAttribute((this._nextLabel_0_0value as string | undefined)); - this._nextLabel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._nextLabel_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._nextLabel_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setNextLabelAttribute((undefined as string | undefined)); - } - } - } - if (this._status_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._status_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStatusAttribute((this._status_0_0value as ItemState | undefined)); - this._status_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._status_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._status_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStatusAttribute((undefined as ItemState | undefined)); - } - } - } - } - mergeModifier(modifier: StepperItemModifier): void { - super.mergeModifier(modifier) - if (modifier._prevLabel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._prevLabel_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.prevLabel(modifier._prevLabel_0_0value); - break; - } - default: { - this.prevLabel((undefined as string | undefined)); - } - } - } - if (modifier._nextLabel_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._nextLabel_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.nextLabel(modifier._nextLabel_0_0value); - break; - } - default: { - this.nextLabel((undefined as string | undefined)); - } - } - } - if (modifier._status_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._status_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.status(modifier._status_0_0value); - break; - } - default: { - this.status((undefined as ItemState | undefined)); - } - } - } - } - prevLabel(value: string | undefined): this { - if (((this._prevLabel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._prevLabel_0_0value) !== (value))) - { - this._prevLabel_0_flag = AttributeUpdaterFlag.UPDATE - this._prevLabel_0_0value = value - } else - { - this._prevLabel_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - nextLabel(value: string | undefined): this { - if (((this._nextLabel_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._nextLabel_0_0value) !== (value))) - { - this._nextLabel_0_flag = AttributeUpdaterFlag.UPDATE - this._nextLabel_0_0value = value - } else - { - this._nextLabel_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - status(value: ItemState | undefined): this { - if (((this._status_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._status_0_flag = AttributeUpdaterFlag.UPDATE - this._status_0_0value = value - } else - { - this._status_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} 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..1d7477137bef5750d53feb2a55b5385a8bbc443c 100644 --- a/arkoala-arkts/arkui/src/component/styledString.ets +++ b/arkoala-arkts/arkui/generated/component/styledString.ets @@ -21,17 +21,19 @@ 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 "./../Graphics" +import { Resource_serializer } 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 { Resource } from "global.resource" +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" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { GestureEvent, GestureEvent_serializer } from "./gesture" +import { extractors } from "#handwritten" export class BackgroundColorStyleInternal { public static fromPtr(ptr: KPointer): BackgroundColorStyle { return new BackgroundColorStyle(false, ptr) @@ -726,14 +728,14 @@ export class StyledString implements MaterializedBase { const retval = ArkUIGeneratedNativeModule._StyledString_toHtml(toPeerPtr(styledString)) return retval } - private static marshalling0_serialize(styledString: StyledString, callback_: StyledStringMarshallCallback): NativeBuffer { + private static marshalling0_serialize(styledString: StyledString, callback_: StyledStringMarshallCallback): ArrayBuffer { const thisSerializer : SerializerBase = SerializerBase.hold() thisSerializer.holdAndWriteCallback(callback_) const retval = ArkUIGeneratedNativeModule._StyledString_marshalling0(toPeerPtr(styledString), thisSerializer.asBuffer(), thisSerializer.length()) thisSerializer.release() return new DeserializerBase(retval, retval.length).readBuffer() } - private static unmarshalling0_serialize(buffer: NativeBuffer, callback_: StyledStringUnmarshallCallback): Promise { + private static unmarshalling0_serialize(buffer: ArrayBuffer, callback_: StyledStringUnmarshallCallback): Promise { const thisSerializer : SerializerBase = SerializerBase.hold() thisSerializer.writeBuffer(buffer) thisSerializer.holdAndWriteCallback(callback_) @@ -742,11 +744,11 @@ export class StyledString implements MaterializedBase { thisSerializer.release() return retval } - private static marshalling1_serialize(styledString: StyledString): NativeBuffer { + private static marshalling1_serialize(styledString: StyledString): ArrayBuffer { const retval = ArkUIGeneratedNativeModule._StyledString_marshalling1(toPeerPtr(styledString)) return new DeserializerBase(retval, retval.length).readBuffer() } - private static unmarshalling1_serialize(buffer: NativeBuffer): Promise { + private static unmarshalling1_serialize(buffer: ArrayBuffer): Promise { const thisSerializer : SerializerBase = SerializerBase.hold() thisSerializer.writeBuffer(buffer) const retval = thisSerializer.holdAndWriteCallbackForPromise()[0] @@ -780,22 +782,22 @@ export class StyledString implements MaterializedBase { const styledString_casted = styledString as (StyledString) return StyledString.toHtml_serialize(styledString_casted) } - public static marshalling(styledString: StyledString, callback_: StyledStringMarshallCallback): NativeBuffer { + public static marshalling(styledString: StyledString, callback_: StyledStringMarshallCallback): ArrayBuffer { const styledString_casted = styledString as (StyledString) const callback__casted = callback_ as (StyledStringMarshallCallback) return StyledString.marshalling0_serialize(styledString_casted, callback__casted) } - public static unmarshalling(buffer: NativeBuffer, callback_: StyledStringUnmarshallCallback): Promise { - const buffer_casted = buffer as (NativeBuffer) + public static unmarshalling(buffer: ArrayBuffer, callback_: StyledStringUnmarshallCallback): Promise { + const buffer_casted = buffer as (ArrayBuffer) const callback__casted = callback_ as (StyledStringUnmarshallCallback) return StyledString.unmarshalling0_serialize(buffer_casted, callback__casted) } - public static marshalling(styledString: StyledString): NativeBuffer { + public static marshalling(styledString: StyledString): ArrayBuffer { const styledString_casted = styledString as (StyledString) return StyledString.marshalling1_serialize(styledString_casted) } - public static unmarshalling(buffer: NativeBuffer): Promise { - const buffer_casted = buffer as (NativeBuffer) + public static unmarshalling(buffer: ArrayBuffer): Promise { + const buffer_casted = buffer as (ArrayBuffer) return StyledString.unmarshalling1_serialize(buffer_casted) } private getLength(): number { @@ -1087,8 +1089,8 @@ export class UserDataSpan implements MaterializedBase { } } export type StyledStringMarshallingValue = UserDataSpan; -export type StyledStringMarshallCallback = (marshallableVal: UserDataSpan) => NativeBuffer; -export type StyledStringUnmarshallCallback = (buf: NativeBuffer) => UserDataSpan; +export type StyledStringMarshallCallback = (marshallableVal: UserDataSpan) => ArrayBuffer; +export type StyledStringUnmarshallCallback = (buf: ArrayBuffer) => UserDataSpan; export interface StyleOptions { start?: number; length?: number; diff --git a/arkoala-arkts/arkui/src/component/swiper.ets b/arkoala-arkts/arkui/generated/component/swiper.ets similarity index 65% rename from arkoala-arkts/arkui/src/component/swiper.ets rename to arkoala-arkts/arkui/generated/component/swiper.ets index ab6e04efd2b9bbee322e024638e54c081b37b7f1..6c5a976645652f549b9f921c5b546404f059ebc9 100644 --- a/arkoala-arkts/arkui/src/component/swiper.ets +++ b/arkoala-arkts/arkui/generated/component/swiper.ets @@ -21,20 +21,20 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase import { unsafeCast, int32, int64, float32 } from "@koalaui/common" 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 { Bindable_Number_serializer, ArkCommonMethodPeer, CommonMethod, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 } 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, AttributeUpdater, extractors } from "#handwritten" +import { Resource } from "global.resource" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" -import { LengthMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" +import { LengthMetrics, LengthMetrics_serializer } from "./../Graphics" export interface SwiperContentTransitionProxy { selectedIndex: number index: number @@ -1319,1353 +1319,6 @@ export function Swiper( }) } -export class SwiperModifier extends CommonMethodModifier implements SwiperAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _index_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _index_0_0value?: number | Bindable | undefined - _interval_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _interval_0_0value?: number | undefined - _indicator_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _indicator_0_0value?: IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined - _loop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _loop_0_0value?: boolean | undefined - _duration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _duration_0_0value?: number | undefined - _vertical_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _vertical_0_0value?: boolean | undefined - _itemSpace_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _itemSpace_0_0value?: number | string | undefined - _displayMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _displayMode_0_0value?: SwiperDisplayMode | undefined - _cachedCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cachedCount_0_0value?: number | undefined - _effectMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _effectMode_0_0value?: EdgeEffect | undefined - _disableSwipe_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _disableSwipe_0_0value?: boolean | undefined - _curve_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _curve_0_0value?: curves.Curve | string | curves.ICurve | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: ((value0: number) => void) | undefined - _onSelected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSelected_0_0value?: ((value0: number) => void) | undefined - _onUnselected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onUnselected_0_0value?: ((value0: number) => void) | undefined - _onAnimationStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAnimationStart_0_0value?: OnSwiperAnimationStartCallback | undefined - _onAnimationEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAnimationEnd_0_0value?: OnSwiperAnimationEndCallback | undefined - _onGestureSwipe_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onGestureSwipe_0_0value?: OnSwiperGestureSwipeCallback | undefined - _nestedScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _nestedScroll_0_0value?: SwiperNestedScrollMode | undefined - _customContentTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _customContentTransition_0_0value?: SwiperContentAnimatedTransition | undefined - _onContentDidScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onContentDidScroll_0_0value?: ContentDidScrollCallback | undefined - _indicatorInteractive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _indicatorInteractive_0_0value?: boolean | undefined - _pageFlipMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pageFlipMode_0_0value?: PageFlipMode | undefined - _onContentWillScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onContentWillScroll_0_0value?: ContentWillScrollCallback | undefined - _autoPlay_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _autoPlay_0_0value?: boolean | undefined - _autoPlay_0_1value?: AutoPlayOptions | undefined - _displayArrow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _displayArrow_0_0value?: ArrowStyle | boolean | undefined - _displayArrow_0_1value?: boolean | undefined - _cachedCount_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cachedCount_1_0value?: number | undefined - _cachedCount_1_1value?: boolean | undefined - _displayCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _displayCount_0_0value?: number | string | SwiperAutoFill | undefined - _displayCount_0_1value?: boolean | undefined - _prevMargin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _prevMargin_0_0value?: Length | undefined - _prevMargin_0_1value?: boolean | undefined - _nextMargin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _nextMargin_0_0value?: Length | undefined - _nextMargin_0_1value?: boolean | undefined - applyModifierPatch(peer: ArkSwiperPeer): void { - super.applyModifierPatch(peer) - if (this._index_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._index_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIndexAttribute((this._index_0_0value as number | Bindable | undefined)); - this._index_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._index_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._index_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIndexAttribute((undefined as number | Bindable | undefined)); - } - } - } - if (this._interval_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._interval_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIntervalAttribute((this._interval_0_0value as number | undefined)); - this._interval_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._interval_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._interval_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIntervalAttribute((undefined as number | undefined)); - } - } - } - if (this._indicator_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._indicator_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIndicatorAttribute((this._indicator_0_0value as IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined)); - this._indicator_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._indicator_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._indicator_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIndicatorAttribute((undefined as IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined)); - } - } - } - if (this._loop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._loop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLoopAttribute((this._loop_0_0value as boolean | undefined)); - this._loop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._loop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._loop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLoopAttribute((undefined as boolean | undefined)); - } - } - } - if (this._duration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._duration_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDurationAttribute((this._duration_0_0value as number | undefined)); - this._duration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._duration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._duration_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDurationAttribute((undefined as number | undefined)); - } - } - } - if (this._vertical_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._vertical_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setVerticalAttribute((this._vertical_0_0value as boolean | undefined)); - this._vertical_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._vertical_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._vertical_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setVerticalAttribute((undefined as boolean | undefined)); - } - } - } - if (this._itemSpace_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._itemSpace_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setItemSpaceAttribute((this._itemSpace_0_0value as number | string | undefined)); - this._itemSpace_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._itemSpace_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._itemSpace_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setItemSpaceAttribute((undefined as number | string | undefined)); - } - } - } - if (this._displayMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._displayMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDisplayModeAttribute((this._displayMode_0_0value as SwiperDisplayMode | undefined)); - this._displayMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._displayMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._displayMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDisplayModeAttribute((undefined as SwiperDisplayMode | undefined)); - } - } - } - if (this._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cachedCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCachedCount0Attribute((this._cachedCount_0_0value as number | undefined)); - this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cachedCount_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCachedCount0Attribute((undefined as number | undefined)); - } - } - } - if (this._effectMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._effectMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEffectModeAttribute((this._effectMode_0_0value as EdgeEffect | undefined)); - this._effectMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._effectMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._effectMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEffectModeAttribute((undefined as EdgeEffect | undefined)); - } - } - } - if (this._disableSwipe_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._disableSwipe_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDisableSwipeAttribute((this._disableSwipe_0_0value as boolean | undefined)); - this._disableSwipe_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._disableSwipe_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._disableSwipe_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDisableSwipeAttribute((undefined as boolean | undefined)); - } - } - } - if (this._curve_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._curve_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCurveAttribute((this._curve_0_0value as curves.Curve | string | curves.ICurve | undefined)); - this._curve_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._curve_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._curve_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCurveAttribute((undefined as curves.Curve | string | curves.ICurve | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: number) => void) | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (this._onSelected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSelected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSelectedAttribute((this._onSelected_0_0value as ((value0: number) => void) | undefined)); - this._onSelected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSelected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSelected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSelectedAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (this._onUnselected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onUnselected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnUnselectedAttribute((this._onUnselected_0_0value as ((value0: number) => void) | undefined)); - this._onUnselected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onUnselected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onUnselected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnUnselectedAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (this._onAnimationStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAnimationStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAnimationStartAttribute((this._onAnimationStart_0_0value as OnSwiperAnimationStartCallback | undefined)); - this._onAnimationStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAnimationStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAnimationStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAnimationStartAttribute((undefined as OnSwiperAnimationStartCallback | undefined)); - } - } - } - if (this._onAnimationEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAnimationEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAnimationEndAttribute((this._onAnimationEnd_0_0value as OnSwiperAnimationEndCallback | undefined)); - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAnimationEndAttribute((undefined as OnSwiperAnimationEndCallback | undefined)); - } - } - } - if (this._onGestureSwipe_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onGestureSwipe_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnGestureSwipeAttribute((this._onGestureSwipe_0_0value as OnSwiperGestureSwipeCallback | undefined)); - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnGestureSwipeAttribute((undefined as OnSwiperGestureSwipeCallback | undefined)); - } - } - } - if (this._nestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._nestedScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNestedScrollAttribute((this._nestedScroll_0_0value as SwiperNestedScrollMode | 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 SwiperNestedScrollMode | undefined)); - } - } - } - if (this._customContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._customContentTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCustomContentTransitionAttribute((this._customContentTransition_0_0value as SwiperContentAnimatedTransition | undefined)); - this._customContentTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._customContentTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._customContentTransition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCustomContentTransitionAttribute((undefined as SwiperContentAnimatedTransition | undefined)); - } - } - } - if (this._onContentDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onContentDidScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnContentDidScrollAttribute((this._onContentDidScroll_0_0value as ContentDidScrollCallback | undefined)); - this._onContentDidScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onContentDidScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onContentDidScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnContentDidScrollAttribute((undefined as ContentDidScrollCallback | undefined)); - } - } - } - if (this._indicatorInteractive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._indicatorInteractive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setIndicatorInteractiveAttribute((this._indicatorInteractive_0_0value as boolean | undefined)); - this._indicatorInteractive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._indicatorInteractive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._indicatorInteractive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setIndicatorInteractiveAttribute((undefined as boolean | undefined)); - } - } - } - if (this._pageFlipMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pageFlipMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPageFlipModeAttribute((this._pageFlipMode_0_0value as PageFlipMode | undefined)); - this._pageFlipMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pageFlipMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pageFlipMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPageFlipModeAttribute((undefined as PageFlipMode | undefined)); - } - } - } - if (this._onContentWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onContentWillScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnContentWillScrollAttribute((this._onContentWillScroll_0_0value as ContentWillScrollCallback | undefined)); - this._onContentWillScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onContentWillScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onContentWillScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnContentWillScrollAttribute((undefined as ContentWillScrollCallback | undefined)); - } - } - } - if (this._autoPlay_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._autoPlay_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAutoPlayAttribute((this._autoPlay_0_0value as boolean | undefined), (this._autoPlay_0_1value as AutoPlayOptions | undefined)); - this._autoPlay_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._autoPlay_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._autoPlay_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAutoPlayAttribute((undefined as boolean | undefined), (undefined as AutoPlayOptions | undefined)); - } - } - } - if (this._displayArrow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._displayArrow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDisplayArrowAttribute((this._displayArrow_0_0value as ArrowStyle | boolean | undefined), (this._displayArrow_0_1value as boolean | undefined)); - this._displayArrow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._displayArrow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._displayArrow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDisplayArrowAttribute((undefined as ArrowStyle | boolean | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (this._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cachedCount_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCachedCount1Attribute((this._cachedCount_1_0value as number | undefined), (this._cachedCount_1_1value as boolean | undefined)); - this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cachedCount_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setCachedCount1Attribute((undefined as number | undefined), (undefined as boolean | undefined)); - } - } - } - if (this._displayCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._displayCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDisplayCountAttribute((this._displayCount_0_0value as number | string | SwiperAutoFill | undefined), (this._displayCount_0_1value as boolean | undefined)); - this._displayCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._displayCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._displayCount_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDisplayCountAttribute((undefined as number | string | SwiperAutoFill | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (this._prevMargin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._prevMargin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPrevMarginAttribute((this._prevMargin_0_0value as Length | undefined), (this._prevMargin_0_1value as boolean | undefined)); - this._prevMargin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._prevMargin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._prevMargin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPrevMarginAttribute((undefined as Length | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (this._nextMargin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._nextMargin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNextMarginAttribute((this._nextMargin_0_0value as Length | undefined), (this._nextMargin_0_1value as boolean | undefined)); - this._nextMargin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._nextMargin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._nextMargin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setNextMarginAttribute((undefined as Length | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: SwiperModifier): void { - super.mergeModifier(modifier) - if (modifier._index_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._index_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.index(modifier._index_0_0value); - break; - } - default: { - this.index((undefined as number | Bindable | undefined)); - } - } - } - if (modifier._interval_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._interval_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.interval(modifier._interval_0_0value); - break; - } - default: { - this.interval((undefined as number | undefined)); - } - } - } - if (modifier._indicator_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._indicator_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.indicator(modifier._indicator_0_0value); - break; - } - default: { - this.indicator((undefined as IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined)); - } - } - } - if (modifier._loop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._loop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.loop(modifier._loop_0_0value); - break; - } - default: { - this.loop((undefined as boolean | undefined)); - } - } - } - if (modifier._duration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._duration_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.duration(modifier._duration_0_0value); - break; - } - default: { - this.duration((undefined as number | undefined)); - } - } - } - if (modifier._vertical_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._vertical_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.vertical(modifier._vertical_0_0value); - break; - } - default: { - this.vertical((undefined as boolean | undefined)); - } - } - } - if (modifier._itemSpace_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._itemSpace_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.itemSpace(modifier._itemSpace_0_0value); - break; - } - default: { - this.itemSpace((undefined as number | string | undefined)); - } - } - } - if (modifier._displayMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._displayMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.displayMode(modifier._displayMode_0_0value); - break; - } - default: { - this.displayMode((undefined as SwiperDisplayMode | undefined)); - } - } - } - if (modifier._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cachedCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cachedCount(modifier._cachedCount_0_0value); - break; - } - default: { - this.cachedCount((undefined as number | undefined)); - } - } - } - if (modifier._effectMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._effectMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.effectMode(modifier._effectMode_0_0value); - break; - } - default: { - this.effectMode((undefined as EdgeEffect | undefined)); - } - } - } - if (modifier._disableSwipe_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._disableSwipe_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.disableSwipe(modifier._disableSwipe_0_0value); - break; - } - default: { - this.disableSwipe((undefined as boolean | undefined)); - } - } - } - if (modifier._curve_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._curve_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.curve(modifier._curve_0_0value); - break; - } - default: { - this.curve((undefined as curves.Curve | string | curves.ICurve | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (modifier._onSelected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSelected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSelected(modifier._onSelected_0_0value); - break; - } - default: { - this.onSelected((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (modifier._onUnselected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onUnselected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onUnselected(modifier._onUnselected_0_0value); - break; - } - default: { - this.onUnselected((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (modifier._onAnimationStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAnimationStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAnimationStart(modifier._onAnimationStart_0_0value); - break; - } - default: { - this.onAnimationStart((undefined as OnSwiperAnimationStartCallback | undefined)); - } - } - } - if (modifier._onAnimationEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAnimationEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAnimationEnd(modifier._onAnimationEnd_0_0value); - break; - } - default: { - this.onAnimationEnd((undefined as OnSwiperAnimationEndCallback | undefined)); - } - } - } - if (modifier._onGestureSwipe_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onGestureSwipe_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onGestureSwipe(modifier._onGestureSwipe_0_0value); - break; - } - default: { - this.onGestureSwipe((undefined as OnSwiperGestureSwipeCallback | 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 SwiperNestedScrollMode | undefined)); - } - } - } - if (modifier._customContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._customContentTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.customContentTransition(modifier._customContentTransition_0_0value); - break; - } - default: { - this.customContentTransition((undefined as SwiperContentAnimatedTransition | undefined)); - } - } - } - if (modifier._onContentDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onContentDidScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onContentDidScroll(modifier._onContentDidScroll_0_0value); - break; - } - default: { - this.onContentDidScroll((undefined as ContentDidScrollCallback | undefined)); - } - } - } - if (modifier._indicatorInteractive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._indicatorInteractive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.indicatorInteractive(modifier._indicatorInteractive_0_0value); - break; - } - default: { - this.indicatorInteractive((undefined as boolean | undefined)); - } - } - } - if (modifier._pageFlipMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pageFlipMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pageFlipMode(modifier._pageFlipMode_0_0value); - break; - } - default: { - this.pageFlipMode((undefined as PageFlipMode | undefined)); - } - } - } - if (modifier._onContentWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onContentWillScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onContentWillScroll(modifier._onContentWillScroll_0_0value); - break; - } - default: { - this.onContentWillScroll((undefined as ContentWillScrollCallback | undefined)); - } - } - } - if (modifier._autoPlay_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._autoPlay_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.autoPlay(modifier._autoPlay_0_0value, modifier._autoPlay_0_1value); - break; - } - default: { - this.autoPlay((undefined as boolean | undefined), (undefined as AutoPlayOptions | undefined)); - } - } - } - if (modifier._displayArrow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._displayArrow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.displayArrow(modifier._displayArrow_0_0value, modifier._displayArrow_0_1value); - break; - } - default: { - this.displayArrow((undefined as ArrowStyle | boolean | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (modifier._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cachedCount_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cachedCount(modifier._cachedCount_1_0value, modifier._cachedCount_1_1value); - break; - } - default: { - this.cachedCount((undefined as number | undefined), (undefined as boolean | undefined)); - } - } - } - if (modifier._displayCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._displayCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.displayCount(modifier._displayCount_0_0value, modifier._displayCount_0_1value); - break; - } - default: { - this.displayCount((undefined as number | string | SwiperAutoFill | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (modifier._prevMargin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._prevMargin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.prevMargin(modifier._prevMargin_0_0value, modifier._prevMargin_0_1value); - break; - } - default: { - this.prevMargin((undefined as Length | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - if (modifier._nextMargin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._nextMargin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.nextMargin(modifier._nextMargin_0_0value, modifier._nextMargin_0_1value); - break; - } - default: { - this.nextMargin((undefined as Length | undefined), (undefined as boolean | undefined | undefined)); - } - } - } - } - index(value: number | Bindable | undefined): this { - if (((this._index_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._index_0_flag = AttributeUpdaterFlag.UPDATE - this._index_0_0value = value - } else - { - this._index_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - interval(value: number | undefined): this { - if (((this._interval_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._interval_0_0value) !== (value))) - { - this._interval_0_flag = AttributeUpdaterFlag.UPDATE - this._interval_0_0value = value - } else - { - this._interval_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - indicator(value: IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined): this { - if (((this._indicator_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._indicator_0_flag = AttributeUpdaterFlag.UPDATE - this._indicator_0_0value = value - } else - { - this._indicator_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - loop(value: boolean | undefined): this { - if (((this._loop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._loop_0_0value) !== (value))) - { - this._loop_0_flag = AttributeUpdaterFlag.UPDATE - this._loop_0_0value = value - } else - { - this._loop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - duration(value: number | undefined): this { - if (((this._duration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._duration_0_0value) !== (value))) - { - this._duration_0_flag = AttributeUpdaterFlag.UPDATE - this._duration_0_0value = value - } else - { - this._duration_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - vertical(value: boolean | undefined): this { - if (((this._vertical_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._vertical_0_0value) !== (value))) - { - this._vertical_0_flag = AttributeUpdaterFlag.UPDATE - this._vertical_0_0value = value - } else - { - this._vertical_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - itemSpace(value: number | string | undefined): this { - if (((this._itemSpace_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._itemSpace_0_0value) !== (value))) - { - this._itemSpace_0_flag = AttributeUpdaterFlag.UPDATE - this._itemSpace_0_0value = value - } else - { - this._itemSpace_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - displayMode(value: SwiperDisplayMode | undefined): this { - if (((this._displayMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._displayMode_0_flag = AttributeUpdaterFlag.UPDATE - this._displayMode_0_0value = value - } else - { - this._displayMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cachedCount(value: number | undefined): this { - if (((this._cachedCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_0_0value) !== (value))) - { - this._cachedCount_0_flag = AttributeUpdaterFlag.UPDATE - this._cachedCount_0_0value = value - } else - { - this._cachedCount_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - effectMode(value: EdgeEffect | undefined): this { - if (((this._effectMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._effectMode_0_flag = AttributeUpdaterFlag.UPDATE - this._effectMode_0_0value = value - } else - { - this._effectMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - disableSwipe(value: boolean | undefined): this { - if (((this._disableSwipe_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._disableSwipe_0_0value) !== (value))) - { - this._disableSwipe_0_flag = AttributeUpdaterFlag.UPDATE - this._disableSwipe_0_0value = value - } else - { - this._disableSwipe_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - curve(value: curves.Curve | string | curves.ICurve | undefined): this { - if (((this._curve_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._curve_0_flag = AttributeUpdaterFlag.UPDATE - this._curve_0_0value = value - } else - { - this._curve_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: ((value0: number) => void) | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSelected(value: ((value0: number) => void) | undefined): this { - if (((this._onSelected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSelected_0_flag = AttributeUpdaterFlag.UPDATE - this._onSelected_0_0value = value - } else - { - this._onSelected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onUnselected(value: ((value0: number) => void) | undefined): this { - if (((this._onUnselected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onUnselected_0_flag = AttributeUpdaterFlag.UPDATE - this._onUnselected_0_0value = value - } else - { - this._onUnselected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAnimationStart(value: OnSwiperAnimationStartCallback | undefined): this { - if (((this._onAnimationStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAnimationStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onAnimationStart_0_0value = value - } else - { - this._onAnimationStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAnimationEnd(value: OnSwiperAnimationEndCallback | undefined): this { - if (((this._onAnimationEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._onAnimationEnd_0_0value = value - } else - { - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onGestureSwipe(value: OnSwiperGestureSwipeCallback | undefined): this { - if (((this._onGestureSwipe_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.UPDATE - this._onGestureSwipe_0_0value = value - } else - { - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - nestedScroll(value: SwiperNestedScrollMode | 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 - } - customContentTransition(value: SwiperContentAnimatedTransition | undefined): this { - if (((this._customContentTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._customContentTransition_0_flag = AttributeUpdaterFlag.UPDATE - this._customContentTransition_0_0value = value - } else - { - this._customContentTransition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onContentDidScroll(value: ContentDidScrollCallback | undefined): this { - if (((this._onContentDidScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onContentDidScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onContentDidScroll_0_0value = value - } else - { - this._onContentDidScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - indicatorInteractive(value: boolean | undefined): this { - if (((this._indicatorInteractive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._indicatorInteractive_0_0value) !== (value))) - { - this._indicatorInteractive_0_flag = AttributeUpdaterFlag.UPDATE - this._indicatorInteractive_0_0value = value - } else - { - this._indicatorInteractive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pageFlipMode(value: PageFlipMode | undefined): this { - if (((this._pageFlipMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pageFlipMode_0_flag = AttributeUpdaterFlag.UPDATE - this._pageFlipMode_0_0value = value - } else - { - this._pageFlipMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onContentWillScroll(value: ContentWillScrollCallback | undefined): this { - if (((this._onContentWillScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onContentWillScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onContentWillScroll_0_0value = value - } else - { - this._onContentWillScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - autoPlay(autoPlay: boolean | undefined, options: AutoPlayOptions | undefined): this { - if (((this._autoPlay_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoPlay_0_0value) !== (autoPlay)) || (true)) - { - this._autoPlay_0_flag = AttributeUpdaterFlag.UPDATE - this._autoPlay_0_0value = autoPlay - this._autoPlay_0_1value = options - } else - { - this._autoPlay_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - displayArrow(value: ArrowStyle | boolean | undefined, isHoverShow?: boolean): this { - if (((this._displayArrow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._displayArrow_0_1value) !== (isHoverShow))) - { - this._displayArrow_0_flag = AttributeUpdaterFlag.UPDATE - this._displayArrow_0_0value = value - this._displayArrow_0_1value = isHoverShow - } else - { - this._displayArrow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cachedCount(count: number | undefined, isShown: boolean | undefined): this { - if (((this._cachedCount_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_1_0value) !== (count)) || ((this._cachedCount_1_1value) !== (isShown))) - { - this._cachedCount_1_flag = AttributeUpdaterFlag.UPDATE - this._cachedCount_1_0value = count - this._cachedCount_1_1value = isShown - } else - { - this._cachedCount_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - displayCount(value: number | string | SwiperAutoFill | undefined, swipeByGroup?: boolean): this { - if (((this._displayCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._displayCount_0_1value) !== (swipeByGroup))) - { - this._displayCount_0_flag = AttributeUpdaterFlag.UPDATE - this._displayCount_0_0value = value - this._displayCount_0_1value = swipeByGroup - } else - { - this._displayCount_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - prevMargin(value: Length | undefined, ignoreBlank?: boolean): this { - if (((this._prevMargin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._prevMargin_0_1value) !== (ignoreBlank))) - { - this._prevMargin_0_flag = AttributeUpdaterFlag.UPDATE - this._prevMargin_0_0value = value - this._prevMargin_0_1value = ignoreBlank - } else - { - this._prevMargin_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - nextMargin(value: Length | undefined, ignoreBlank?: boolean): this { - if (((this._nextMargin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._nextMargin_0_1value) !== (ignoreBlank))) - { - this._nextMargin_0_flag = AttributeUpdaterFlag.UPDATE - this._nextMargin_0_0value = value - this._nextMargin_0_1value = ignoreBlank - } else - { - this._nextMargin_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class Indicator { _left?: Length | undefined _top?: Length | undefined diff --git a/arkoala-arkts/arkui/src/component/symbolSpan.ets b/arkoala-arkts/arkui/generated/component/symbolSpan.ets similarity index 56% rename from arkoala-arkts/arkui/src/component/symbolSpan.ets rename to arkoala-arkts/arkui/generated/component/symbolSpan.ets index af33a826133b61b8ba4aa2acce423741a9062dca..13f6d1b001b7e0d5fb275cb5a797a85261efd36f 100644 --- a/arkoala-arkts/arkui/src/component/symbolSpan.ets +++ b/arkoala-arkts/arkui/generated/component/symbolSpan.ets @@ -17,22 +17,22 @@ // 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 } 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 { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Resource } from "global.resource" 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, 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -282,238 +282,3 @@ export function SymbolSpan( }) } -export class SymbolSpanModifier extends CommonMethodModifier implements SymbolSpanAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontSize_0_0value?: number | string | Resource | undefined - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: Array | undefined - _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontWeight_0_0value?: number | FontWeight | string | undefined - _effectStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _effectStrategy_0_0value?: SymbolEffectStrategy | undefined - _renderingStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _renderingStrategy_0_0value?: SymbolRenderingStrategy | undefined - applyModifierPatch(peer: ArkSymbolSpanPeer): void { - super.applyModifierPatch(peer) - if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontSizeAttribute((this._fontSize_0_0value as number | string | Resource | undefined)); - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontSizeAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as Array | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as Array | undefined)); - } - } - } - if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); - } - } - } - if (this._effectStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._effectStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEffectStrategyAttribute((this._effectStrategy_0_0value as SymbolEffectStrategy | undefined)); - this._effectStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._effectStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._effectStrategy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEffectStrategyAttribute((undefined as SymbolEffectStrategy | undefined)); - } - } - } - if (this._renderingStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._renderingStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRenderingStrategyAttribute((this._renderingStrategy_0_0value as SymbolRenderingStrategy | undefined)); - this._renderingStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._renderingStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._renderingStrategy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRenderingStrategyAttribute((undefined as SymbolRenderingStrategy | undefined)); - } - } - } - } - mergeModifier(modifier: SymbolSpanModifier): void { - super.mergeModifier(modifier) - if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontSize(modifier._fontSize_0_0value); - break; - } - default: { - this.fontSize((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as Array | undefined)); - } - } - } - if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontWeight(modifier._fontWeight_0_0value); - break; - } - default: { - this.fontWeight((undefined as number | FontWeight | string | undefined)); - } - } - } - if (modifier._effectStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._effectStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.effectStrategy(modifier._effectStrategy_0_0value); - break; - } - default: { - this.effectStrategy((undefined as SymbolEffectStrategy | undefined)); - } - } - } - if (modifier._renderingStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._renderingStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.renderingStrategy(modifier._renderingStrategy_0_0value); - break; - } - default: { - this.renderingStrategy((undefined as SymbolRenderingStrategy | undefined)); - } - } - } - } - fontSize(value: number | string | Resource | undefined): this { - if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fontSize_0_0value = value - } else - { - this._fontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontColor(value: Array | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontWeight(value: number | FontWeight | string | undefined): this { - if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._fontWeight_0_0value = value - } else - { - this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - effectStrategy(value: SymbolEffectStrategy | undefined): this { - if (((this._effectStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._effectStrategy_0_flag = AttributeUpdaterFlag.UPDATE - this._effectStrategy_0_0value = value - } else - { - this._effectStrategy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - renderingStrategy(value: SymbolRenderingStrategy | undefined): this { - if (((this._renderingStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._renderingStrategy_0_flag = AttributeUpdaterFlag.UPDATE - this._renderingStrategy_0_0value = value - } else - { - this._renderingStrategy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/symbolglyph.ets b/arkoala-arkts/arkui/generated/component/symbolglyph.ets similarity index 74% rename from arkoala-arkts/arkui/src/component/symbolglyph.ets rename to arkoala-arkts/arkui/generated/component/symbolglyph.ets index 330b0e4f9898708b8f8ebf4f93613832c474f605..807c9c753c310974cece515289aba5678d2571dd 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, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Resource } from "global.resource" import { ResourceColor } from "./units" import { Color, FontWeight } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class SymbolEffectInternal { public static fromPtr(ptr: KPointer): SymbolEffect { return new SymbolEffect(ptr) @@ -445,375 +445,6 @@ export function SymbolGlyph( }) } -export class SymbolGlyphModifier extends CommonMethodModifier implements SymbolGlyphAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontSize_0_0value?: number | string | Resource | undefined - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: Array | undefined - _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontWeight_0_0value?: number | FontWeight | string | undefined - _effectStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _effectStrategy_0_0value?: SymbolEffectStrategy | undefined - _renderingStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _renderingStrategy_0_0value?: SymbolRenderingStrategy | undefined - _minFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minFontScale_0_0value?: number | Resource | undefined - _maxFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxFontScale_0_0value?: number | Resource | undefined - _symbolEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _symbolEffect_0_0value?: SymbolEffect | undefined - _symbolEffect_0_1value?: boolean | number | undefined - applyModifierPatch(peer: ArkSymbolGlyphPeer): void { - super.applyModifierPatch(peer) - if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontSizeAttribute((this._fontSize_0_0value as number | string | Resource | undefined)); - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontSizeAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as Array | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as Array | undefined)); - } - } - } - if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); - } - } - } - if (this._effectStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._effectStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEffectStrategyAttribute((this._effectStrategy_0_0value as SymbolEffectStrategy | undefined)); - this._effectStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._effectStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._effectStrategy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEffectStrategyAttribute((undefined as SymbolEffectStrategy | undefined)); - } - } - } - if (this._renderingStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._renderingStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRenderingStrategyAttribute((this._renderingStrategy_0_0value as SymbolRenderingStrategy | undefined)); - this._renderingStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._renderingStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._renderingStrategy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRenderingStrategyAttribute((undefined as SymbolRenderingStrategy | undefined)); - } - } - } - if (this._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinFontScaleAttribute((this._minFontScale_0_0value as number | Resource | undefined)); - this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minFontScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinFontScaleAttribute((undefined as number | Resource | undefined)); - } - } - } - if (this._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxFontScaleAttribute((this._maxFontScale_0_0value as number | Resource | undefined)); - this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxFontScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxFontScaleAttribute((undefined as number | Resource | undefined)); - } - } - } - if (this._symbolEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._symbolEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSymbolEffectAttribute((this._symbolEffect_0_0value as SymbolEffect | undefined), (this._symbolEffect_0_1value as boolean | number | undefined)); - this._symbolEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._symbolEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._symbolEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSymbolEffectAttribute((undefined as SymbolEffect | undefined), (undefined as boolean | number | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: SymbolGlyphModifier): void { - super.mergeModifier(modifier) - if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontSize(modifier._fontSize_0_0value); - break; - } - default: { - this.fontSize((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as Array | undefined)); - } - } - } - if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontWeight(modifier._fontWeight_0_0value); - break; - } - default: { - this.fontWeight((undefined as number | FontWeight | string | undefined)); - } - } - } - if (modifier._effectStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._effectStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.effectStrategy(modifier._effectStrategy_0_0value); - break; - } - default: { - this.effectStrategy((undefined as SymbolEffectStrategy | undefined)); - } - } - } - if (modifier._renderingStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._renderingStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.renderingStrategy(modifier._renderingStrategy_0_0value); - break; - } - default: { - this.renderingStrategy((undefined as SymbolRenderingStrategy | undefined)); - } - } - } - if (modifier._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minFontScale(modifier._minFontScale_0_0value); - break; - } - default: { - this.minFontScale((undefined as number | Resource | undefined)); - } - } - } - if (modifier._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxFontScale(modifier._maxFontScale_0_0value); - break; - } - default: { - this.maxFontScale((undefined as number | Resource | undefined)); - } - } - } - if (modifier._symbolEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._symbolEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.symbolEffect(modifier._symbolEffect_0_0value, modifier._symbolEffect_0_1value); - break; - } - default: { - this.symbolEffect((undefined as SymbolEffect | undefined), (undefined as boolean | number | undefined | undefined)); - } - } - } - } - fontSize(value: number | string | Resource | undefined): this { - if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fontSize_0_0value = value - } else - { - this._fontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontColor(value: Array | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontWeight(value: number | FontWeight | string | undefined): this { - if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._fontWeight_0_0value = value - } else - { - this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - effectStrategy(value: SymbolEffectStrategy | undefined): this { - if (((this._effectStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._effectStrategy_0_flag = AttributeUpdaterFlag.UPDATE - this._effectStrategy_0_0value = value - } else - { - this._effectStrategy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - renderingStrategy(value: SymbolRenderingStrategy | undefined): this { - if (((this._renderingStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._renderingStrategy_0_flag = AttributeUpdaterFlag.UPDATE - this._renderingStrategy_0_0value = value - } else - { - this._renderingStrategy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minFontScale(value: number | Resource | undefined): this { - if (((this._minFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minFontScale_0_flag = AttributeUpdaterFlag.UPDATE - this._minFontScale_0_0value = value - } else - { - this._minFontScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxFontScale(value: number | Resource | undefined): this { - if (((this._maxFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._maxFontScale_0_flag = AttributeUpdaterFlag.UPDATE - this._maxFontScale_0_0value = value - } else - { - this._maxFontScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - symbolEffect(symbolEffect: SymbolEffect | undefined, triggerValue?: boolean | number): this { - if (((this._symbolEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._symbolEffect_0_1value) !== (triggerValue))) - { - this._symbolEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._symbolEffect_0_0value = symbolEffect - this._symbolEffect_0_1value = triggerValue - } else - { - this._symbolEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class SymbolEffect_serializer { public static write(buffer: SerializerBase, value: SymbolEffect): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/tabContent.ets b/arkoala-arkts/arkui/generated/component/tabContent.ets similarity index 91% rename from arkoala-arkts/arkui/src/component/tabContent.ets rename to arkoala-arkts/arkui/generated/component/tabContent.ets index 82e5265f26db992cbf1a208502e877c90902047a..d563e4f50be10afe782281768335ebc936a47d83 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 "./../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 "./../ComponentContent" +import { Resource_serializer } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Resource } from "global.resource" 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, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Color, TextOverflow, TextHeightAdaptivePolicy, VerticalAlign } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class TabBarSymbolInternal { public static fromPtr(ptr: KPointer): TabBarSymbol { return new TabBarSymbol(ptr) @@ -335,153 +335,6 @@ export function TabContent( }) } -export class TabContentModifier extends CommonMethodModifier implements TabContentAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _tabBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _tabBar_0_0value?: ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined - _onWillShow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillShow_0_0value?: VoidCallback | undefined - _onWillHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillHide_0_0value?: VoidCallback | undefined - applyModifierPatch(peer: ArkTabContentPeer): void { - super.applyModifierPatch(peer) - if (this._tabBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._tabBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTabBarAttribute((this._tabBar_0_0value as ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined)); - this._tabBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._tabBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._tabBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTabBarAttribute((undefined as ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined)); - } - } - } - if (this._onWillShow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillShow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillShowAttribute((this._onWillShow_0_0value as VoidCallback | undefined)); - this._onWillShow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillShow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillShow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillShowAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onWillHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillHideAttribute((this._onWillHide_0_0value as VoidCallback | undefined)); - this._onWillHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillHide_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillHideAttribute((undefined as VoidCallback | undefined)); - } - } - } - } - mergeModifier(modifier: TabContentModifier): void { - super.mergeModifier(modifier) - if (modifier._tabBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._tabBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.tabBar(modifier._tabBar_0_0value); - break; - } - default: { - this.tabBar((undefined as ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined)); - } - } - } - if (modifier._onWillShow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillShow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillShow(modifier._onWillShow_0_0value); - break; - } - default: { - this.onWillShow((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onWillHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillHide(modifier._onWillHide_0_0value); - break; - } - default: { - this.onWillHide((undefined as VoidCallback | undefined)); - } - } - } - } - tabBar(value: ComponentContent | SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions | undefined): this { - if (((this._tabBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._tabBar_0_flag = AttributeUpdaterFlag.UPDATE - this._tabBar_0_0value = value - } else - { - this._tabBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillShow(value: VoidCallback | undefined): this { - if (((this._onWillShow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillShow_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillShow_0_0value = value - } else - { - this._onWillShow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillHide(value: VoidCallback | undefined): this { - if (((this._onWillHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillHide_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillHide_0_0value = value - } else - { - this._onWillHide_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class SubTabBarStyle { _content?: ResourceStr | ResourceStr | ComponentContent | undefined _indicator?: SubTabBarIndicatorStyle | undefined diff --git a/arkoala-arkts/arkui/src/component/tabs.ets b/arkoala-arkts/arkui/generated/component/tabs.ets similarity index 55% rename from arkoala-arkts/arkui/src/component/tabs.ets rename to arkoala-arkts/arkui/generated/component/tabs.ets index bb5e9ca29413be0f125bd447d841674003b04e25..a3c1889dd06d96ba4b8da366a7a348800c33a5ad 100644 --- a/arkoala-arkts/arkui/src/component/tabs.ets +++ b/arkoala-arkts/arkui/generated/component/tabs.ets @@ -20,18 +20,18 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 { 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 { TranslateOptions_serializer, TranslateOptions, DividerStyle_serializer, BackgroundEffectOptions_serializer, BackgroundBlurStyleOptions_serializer, ArkCommonMethodPeer, CommonMethod, DividerStyle, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions, BlurStyleOptions, BlurStyleActivePolicy, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable_Number_serializer } from "./common" +import { Resource_serializer } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { Length, ResourceColor, Dimension } from "./units" +import { Resource } from "global.resource" import { EdgeEffect, Color, PageFlipMode } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export interface TabContentTransitionProxy { from: number to: number @@ -1132,1259 +1132,6 @@ export function Tabs( }) } -export class TabsModifier extends CommonMethodModifier implements TabsAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _vertical_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _vertical_0_0value?: boolean | undefined - _barPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barPosition_0_0value?: BarPosition | undefined - _scrollable_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _scrollable_0_0value?: boolean | undefined - _barWidth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barWidth_0_0value?: Length | undefined - _barHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barHeight_0_0value?: Length | undefined - _animationDuration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _animationDuration_0_0value?: number | undefined - _animationMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _animationMode_0_0value?: AnimationMode | undefined - _edgeEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _edgeEffect_0_0value?: EdgeEffect | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: ((value0: number) => void) | undefined - _onSelected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSelected_0_0value?: ((value0: number) => void) | undefined - _onTabBarClick_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTabBarClick_0_0value?: ((value0: number) => void) | undefined - _onUnselected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onUnselected_0_0value?: ((value0: number) => void) | undefined - _onAnimationStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAnimationStart_0_0value?: OnTabsAnimationStartCallback | undefined - _onAnimationEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAnimationEnd_0_0value?: OnTabsAnimationEndCallback | undefined - _onGestureSwipe_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onGestureSwipe_0_0value?: OnTabsGestureSwipeCallback | undefined - _fadingEdge_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fadingEdge_0_0value?: boolean | undefined - _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _divider_0_0value?: DividerStyle | undefined - _barOverlap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barOverlap_0_0value?: boolean | undefined - _barBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barBackgroundColor_0_0value?: ResourceColor | undefined - _barGridAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barGridAlign_0_0value?: BarGridColumnOptions | undefined - _customContentTransition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _customContentTransition_0_0value?: TabsCustomContentTransitionCallback | undefined - _barBackgroundBlurStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barBackgroundBlurStyle_0_0value?: BlurStyle | undefined - _pageFlipMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pageFlipMode_0_0value?: PageFlipMode | undefined - _barBackgroundEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barBackgroundEffect_0_0value?: BackgroundEffectOptions | undefined - _onContentWillChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onContentWillChange_0_0value?: OnTabsContentWillChangeCallback | undefined - _barMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barMode_0_0value?: BarMode | undefined - _barMode_0_1value?: ScrollableBarModeOptions | undefined - _barBackgroundBlurStyle_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barBackgroundBlurStyle_1_0value?: BlurStyle | undefined - _barBackgroundBlurStyle_1_1value?: BackgroundBlurStyleOptions | undefined - _cachedMaxCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cachedMaxCount_0_0value?: number | undefined - _cachedMaxCount_0_1value?: TabsCacheMode | undefined - applyModifierPatch(peer: ArkTabsPeer): void { - super.applyModifierPatch(peer) - if (this._vertical_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._vertical_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setVerticalAttribute((this._vertical_0_0value as boolean | undefined)); - this._vertical_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._vertical_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._vertical_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setVerticalAttribute((undefined as boolean | undefined)); - } - } - } - if (this._barPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarPositionAttribute((this._barPosition_0_0value as BarPosition | undefined)); - this._barPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barPosition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarPositionAttribute((undefined as BarPosition | undefined)); - } - } - } - if (this._scrollable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._scrollable_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setScrollableAttribute((this._scrollable_0_0value as boolean | undefined)); - this._scrollable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._scrollable_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._scrollable_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setScrollableAttribute((undefined as boolean | undefined)); - } - } - } - if (this._barWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarWidthAttribute((this._barWidth_0_0value as Length | undefined)); - this._barWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barWidth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barWidth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarWidthAttribute((undefined as Length | undefined)); - } - } - } - if (this._barHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarHeightAttribute((this._barHeight_0_0value as Length | undefined)); - this._barHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barHeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarHeightAttribute((undefined as Length | undefined)); - } - } - } - if (this._animationDuration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._animationDuration_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAnimationDurationAttribute((this._animationDuration_0_0value as number | undefined)); - this._animationDuration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._animationDuration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._animationDuration_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAnimationDurationAttribute((undefined as number | undefined)); - } - } - } - if (this._animationMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._animationMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAnimationModeAttribute((this._animationMode_0_0value as AnimationMode | undefined)); - this._animationMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._animationMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._animationMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAnimationModeAttribute((undefined as AnimationMode | 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_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)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: number) => void) | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (this._onSelected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSelected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSelectedAttribute((this._onSelected_0_0value as ((value0: number) => void) | undefined)); - this._onSelected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSelected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSelected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSelectedAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (this._onTabBarClick_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTabBarClick_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTabBarClickAttribute((this._onTabBarClick_0_0value as ((value0: number) => void) | undefined)); - this._onTabBarClick_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTabBarClick_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTabBarClick_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTabBarClickAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (this._onUnselected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onUnselected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnUnselectedAttribute((this._onUnselected_0_0value as ((value0: number) => void) | undefined)); - this._onUnselected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onUnselected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onUnselected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnUnselectedAttribute((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (this._onAnimationStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAnimationStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAnimationStartAttribute((this._onAnimationStart_0_0value as OnTabsAnimationStartCallback | undefined)); - this._onAnimationStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAnimationStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAnimationStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAnimationStartAttribute((undefined as OnTabsAnimationStartCallback | undefined)); - } - } - } - if (this._onAnimationEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAnimationEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAnimationEndAttribute((this._onAnimationEnd_0_0value as OnTabsAnimationEndCallback | undefined)); - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAnimationEndAttribute((undefined as OnTabsAnimationEndCallback | undefined)); - } - } - } - if (this._onGestureSwipe_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onGestureSwipe_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnGestureSwipeAttribute((this._onGestureSwipe_0_0value as OnTabsGestureSwipeCallback | undefined)); - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnGestureSwipeAttribute((undefined as OnTabsGestureSwipeCallback | 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_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)); - } - } - } - if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDividerAttribute((this._divider_0_0value as DividerStyle | undefined)); - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._divider_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDividerAttribute((undefined as DividerStyle | undefined)); - } - } - } - if (this._barOverlap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barOverlap_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarOverlapAttribute((this._barOverlap_0_0value as boolean | undefined)); - this._barOverlap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barOverlap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barOverlap_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarOverlapAttribute((undefined as boolean | undefined)); - } - } - } - if (this._barBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarBackgroundColorAttribute((this._barBackgroundColor_0_0value as ResourceColor | undefined)); - this._barBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarBackgroundColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._barGridAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barGridAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarGridAlignAttribute((this._barGridAlign_0_0value as BarGridColumnOptions | undefined)); - this._barGridAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barGridAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barGridAlign_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarGridAlignAttribute((undefined as BarGridColumnOptions | undefined)); - } - } - } - if (this._customContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._customContentTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCustomContentTransitionAttribute((this._customContentTransition_0_0value as TabsCustomContentTransitionCallback | undefined)); - this._customContentTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._customContentTransition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._customContentTransition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCustomContentTransitionAttribute((undefined as TabsCustomContentTransitionCallback | undefined)); - } - } - } - if (this._barBackgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barBackgroundBlurStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarBackgroundBlurStyle0Attribute((this._barBackgroundBlurStyle_0_0value as BlurStyle | undefined)); - this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarBackgroundBlurStyle0Attribute((undefined as BlurStyle | undefined)); - } - } - } - if (this._pageFlipMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pageFlipMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPageFlipModeAttribute((this._pageFlipMode_0_0value as PageFlipMode | undefined)); - this._pageFlipMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pageFlipMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pageFlipMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPageFlipModeAttribute((undefined as PageFlipMode | undefined)); - } - } - } - if (this._barBackgroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barBackgroundEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarBackgroundEffectAttribute((this._barBackgroundEffect_0_0value as BackgroundEffectOptions | undefined)); - this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarBackgroundEffectAttribute((undefined as BackgroundEffectOptions | undefined)); - } - } - } - if (this._onContentWillChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onContentWillChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnContentWillChangeAttribute((this._onContentWillChange_0_0value as OnTabsContentWillChangeCallback | undefined)); - this._onContentWillChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onContentWillChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onContentWillChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnContentWillChangeAttribute((undefined as OnTabsContentWillChangeCallback | undefined)); - } - } - } - if (this._barMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarModeAttribute((this._barMode_0_0value as BarMode | undefined), (this._barMode_0_1value as ScrollableBarModeOptions | undefined)); - this._barMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarModeAttribute((undefined as BarMode | undefined), (undefined as ScrollableBarModeOptions | undefined | undefined)); - } - } - } - if (this._barBackgroundBlurStyle_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barBackgroundBlurStyle_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarBackgroundBlurStyle1Attribute((this._barBackgroundBlurStyle_1_0value as BlurStyle | undefined), (this._barBackgroundBlurStyle_1_1value as BackgroundBlurStyleOptions | undefined)); - this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarBackgroundBlurStyle1Attribute((undefined as BlurStyle | undefined), (undefined as BackgroundBlurStyleOptions | undefined)); - } - } - } - if (this._cachedMaxCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cachedMaxCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCachedMaxCountAttribute((this._cachedMaxCount_0_0value as number | undefined), (this._cachedMaxCount_0_1value as TabsCacheMode | undefined)); - this._cachedMaxCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cachedMaxCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cachedMaxCount_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCachedMaxCountAttribute((undefined as number | undefined), (undefined as TabsCacheMode | undefined)); - } - } - } - } - mergeModifier(modifier: TabsModifier): void { - super.mergeModifier(modifier) - if (modifier._vertical_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._vertical_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.vertical(modifier._vertical_0_0value); - break; - } - default: { - this.vertical((undefined as boolean | undefined)); - } - } - } - if (modifier._barPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barPosition(modifier._barPosition_0_0value); - break; - } - default: { - this.barPosition((undefined as BarPosition | undefined)); - } - } - } - if (modifier._scrollable_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._scrollable_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.scrollable(modifier._scrollable_0_0value); - break; - } - default: { - this.scrollable((undefined as boolean | undefined)); - } - } - } - if (modifier._barWidth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barWidth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barWidth(modifier._barWidth_0_0value); - break; - } - default: { - this.barWidth((undefined as Length | undefined)); - } - } - } - if (modifier._barHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barHeight(modifier._barHeight_0_0value); - break; - } - default: { - this.barHeight((undefined as Length | undefined)); - } - } - } - if (modifier._animationDuration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._animationDuration_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.animationDuration(modifier._animationDuration_0_0value); - break; - } - default: { - this.animationDuration((undefined as number | undefined)); - } - } - } - if (modifier._animationMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._animationMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.animationMode(modifier._animationMode_0_0value); - break; - } - default: { - this.animationMode((undefined as AnimationMode | 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); - break; - } - default: { - this.edgeEffect((undefined as EdgeEffect | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (modifier._onSelected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSelected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSelected(modifier._onSelected_0_0value); - break; - } - default: { - this.onSelected((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (modifier._onTabBarClick_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTabBarClick_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTabBarClick(modifier._onTabBarClick_0_0value); - break; - } - default: { - this.onTabBarClick((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (modifier._onUnselected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onUnselected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onUnselected(modifier._onUnselected_0_0value); - break; - } - default: { - this.onUnselected((undefined as ((value0: number) => void) | undefined)); - } - } - } - if (modifier._onAnimationStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAnimationStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAnimationStart(modifier._onAnimationStart_0_0value); - break; - } - default: { - this.onAnimationStart((undefined as OnTabsAnimationStartCallback | undefined)); - } - } - } - if (modifier._onAnimationEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAnimationEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAnimationEnd(modifier._onAnimationEnd_0_0value); - break; - } - default: { - this.onAnimationEnd((undefined as OnTabsAnimationEndCallback | undefined)); - } - } - } - if (modifier._onGestureSwipe_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onGestureSwipe_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onGestureSwipe(modifier._onGestureSwipe_0_0value); - break; - } - default: { - this.onGestureSwipe((undefined as OnTabsGestureSwipeCallback | 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); - break; - } - default: { - this.fadingEdge((undefined as boolean | undefined)); - } - } - } - if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.divider(modifier._divider_0_0value); - break; - } - default: { - this.divider((undefined as DividerStyle | undefined)); - } - } - } - if (modifier._barOverlap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barOverlap_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barOverlap(modifier._barOverlap_0_0value); - break; - } - default: { - this.barOverlap((undefined as boolean | undefined)); - } - } - } - if (modifier._barBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barBackgroundColor(modifier._barBackgroundColor_0_0value); - break; - } - default: { - this.barBackgroundColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._barGridAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barGridAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barGridAlign(modifier._barGridAlign_0_0value); - break; - } - default: { - this.barGridAlign((undefined as BarGridColumnOptions | undefined)); - } - } - } - if (modifier._customContentTransition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._customContentTransition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.customContentTransition(modifier._customContentTransition_0_0value); - break; - } - default: { - this.customContentTransition((undefined as TabsCustomContentTransitionCallback | undefined)); - } - } - } - if (modifier._barBackgroundBlurStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barBackgroundBlurStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barBackgroundBlurStyle(modifier._barBackgroundBlurStyle_0_0value); - break; - } - default: { - this.barBackgroundBlurStyle((undefined as BlurStyle | undefined)); - } - } - } - if (modifier._pageFlipMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pageFlipMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pageFlipMode(modifier._pageFlipMode_0_0value); - break; - } - default: { - this.pageFlipMode((undefined as PageFlipMode | undefined)); - } - } - } - if (modifier._barBackgroundEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barBackgroundEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barBackgroundEffect(modifier._barBackgroundEffect_0_0value); - break; - } - default: { - this.barBackgroundEffect((undefined as BackgroundEffectOptions | undefined)); - } - } - } - if (modifier._onContentWillChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onContentWillChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onContentWillChange(modifier._onContentWillChange_0_0value); - break; - } - default: { - this.onContentWillChange((undefined as OnTabsContentWillChangeCallback | undefined)); - } - } - } - if (modifier._barMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barMode(modifier._barMode_0_0value, modifier._barMode_0_1value); - break; - } - default: { - this.barMode((undefined as BarMode | undefined), (undefined as ScrollableBarModeOptions | undefined | undefined)); - } - } - } - if (modifier._barBackgroundBlurStyle_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barBackgroundBlurStyle_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barBackgroundBlurStyle(modifier._barBackgroundBlurStyle_1_0value, modifier._barBackgroundBlurStyle_1_1value); - break; - } - default: { - this.barBackgroundBlurStyle((undefined as BlurStyle | undefined), (undefined as BackgroundBlurStyleOptions | undefined)); - } - } - } - if (modifier._cachedMaxCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cachedMaxCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cachedMaxCount(modifier._cachedMaxCount_0_0value, modifier._cachedMaxCount_0_1value); - break; - } - default: { - this.cachedMaxCount((undefined as number | undefined), (undefined as TabsCacheMode | undefined)); - } - } - } - } - vertical(value: boolean | undefined): this { - if (((this._vertical_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._vertical_0_0value) !== (value))) - { - this._vertical_0_flag = AttributeUpdaterFlag.UPDATE - this._vertical_0_0value = value - } else - { - this._vertical_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barPosition(value: BarPosition | undefined): this { - if (((this._barPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barPosition_0_flag = AttributeUpdaterFlag.UPDATE - this._barPosition_0_0value = value - } else - { - this._barPosition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - scrollable(value: boolean | undefined): this { - if (((this._scrollable_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._scrollable_0_0value) !== (value))) - { - this._scrollable_0_flag = AttributeUpdaterFlag.UPDATE - this._scrollable_0_0value = value - } else - { - this._scrollable_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barWidth(value: Length | undefined): this { - if (((this._barWidth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barWidth_0_flag = AttributeUpdaterFlag.UPDATE - this._barWidth_0_0value = value - } else - { - this._barWidth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barHeight(value: Length | undefined): this { - if (((this._barHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barHeight_0_flag = AttributeUpdaterFlag.UPDATE - this._barHeight_0_0value = value - } else - { - this._barHeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - animationDuration(value: number | undefined): this { - if (((this._animationDuration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._animationDuration_0_0value) !== (value))) - { - this._animationDuration_0_flag = AttributeUpdaterFlag.UPDATE - this._animationDuration_0_0value = value - } else - { - this._animationDuration_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - animationMode(value: AnimationMode | undefined): this { - if (((this._animationMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._animationMode_0_flag = AttributeUpdaterFlag.UPDATE - this._animationMode_0_0value = value - } else - { - this._animationMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - edgeEffect(value: EdgeEffect | undefined): this { - if (((this._edgeEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._edgeEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._edgeEffect_0_0value = value - } else - { - this._edgeEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: ((value0: number) => void) | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSelected(value: ((value0: number) => void) | undefined): this { - if (((this._onSelected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSelected_0_flag = AttributeUpdaterFlag.UPDATE - this._onSelected_0_0value = value - } else - { - this._onSelected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTabBarClick(value: ((value0: number) => void) | undefined): this { - if (((this._onTabBarClick_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTabBarClick_0_flag = AttributeUpdaterFlag.UPDATE - this._onTabBarClick_0_0value = value - } else - { - this._onTabBarClick_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onUnselected(value: ((value0: number) => void) | undefined): this { - if (((this._onUnselected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onUnselected_0_flag = AttributeUpdaterFlag.UPDATE - this._onUnselected_0_0value = value - } else - { - this._onUnselected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAnimationStart(value: OnTabsAnimationStartCallback | undefined): this { - if (((this._onAnimationStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAnimationStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onAnimationStart_0_0value = value - } else - { - this._onAnimationStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAnimationEnd(value: OnTabsAnimationEndCallback | undefined): this { - if (((this._onAnimationEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._onAnimationEnd_0_0value = value - } else - { - this._onAnimationEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onGestureSwipe(value: OnTabsGestureSwipeCallback | undefined): this { - if (((this._onGestureSwipe_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.UPDATE - this._onGestureSwipe_0_0value = value - } else - { - this._onGestureSwipe_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fadingEdge(value: boolean | undefined): this { - if (((this._fadingEdge_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fadingEdge_0_0value) !== (value))) - { - this._fadingEdge_0_flag = AttributeUpdaterFlag.UPDATE - this._fadingEdge_0_0value = value - } else - { - this._fadingEdge_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - divider(value: DividerStyle | undefined): this { - if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._divider_0_flag = AttributeUpdaterFlag.UPDATE - this._divider_0_0value = value - } else - { - this._divider_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barOverlap(value: boolean | undefined): this { - if (((this._barOverlap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._barOverlap_0_0value) !== (value))) - { - this._barOverlap_0_flag = AttributeUpdaterFlag.UPDATE - this._barOverlap_0_0value = value - } else - { - this._barOverlap_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barBackgroundColor(value: ResourceColor | undefined): this { - if (((this._barBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE - this._barBackgroundColor_0_0value = value - } else - { - this._barBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barGridAlign(value: BarGridColumnOptions | undefined): this { - if (((this._barGridAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barGridAlign_0_flag = AttributeUpdaterFlag.UPDATE - this._barGridAlign_0_0value = value - } else - { - this._barGridAlign_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - customContentTransition(value: TabsCustomContentTransitionCallback | undefined): this { - if (((this._customContentTransition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._customContentTransition_0_flag = AttributeUpdaterFlag.UPDATE - this._customContentTransition_0_0value = value - } else - { - this._customContentTransition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barBackgroundBlurStyle(value: BlurStyle | undefined): this { - if (((this._barBackgroundBlurStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._barBackgroundBlurStyle_0_0value = value - } else - { - this._barBackgroundBlurStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pageFlipMode(value: PageFlipMode | undefined): this { - if (((this._pageFlipMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._pageFlipMode_0_flag = AttributeUpdaterFlag.UPDATE - this._pageFlipMode_0_0value = value - } else - { - this._pageFlipMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barBackgroundEffect(value: BackgroundEffectOptions | undefined): this { - if (((this._barBackgroundEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._barBackgroundEffect_0_0value = value - } else - { - this._barBackgroundEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onContentWillChange(value: OnTabsContentWillChangeCallback | undefined): this { - if (((this._onContentWillChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onContentWillChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onContentWillChange_0_0value = value - } else - { - this._onContentWillChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barMode(value: BarMode | undefined, options?: ScrollableBarModeOptions): this { - if (((this._barMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._barMode_0_flag = AttributeUpdaterFlag.UPDATE - this._barMode_0_0value = value - this._barMode_0_1value = options - } else - { - this._barMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barBackgroundBlurStyle(style: BlurStyle | undefined, options: BackgroundBlurStyleOptions | undefined): this { - if (((this._barBackgroundBlurStyle_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.UPDATE - this._barBackgroundBlurStyle_1_0value = style - this._barBackgroundBlurStyle_1_1value = options - } else - { - this._barBackgroundBlurStyle_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cachedMaxCount(count: number | undefined, mode: TabsCacheMode | undefined): this { - if (((this._cachedMaxCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedMaxCount_0_0value) !== (count)) || (true)) - { - this._cachedMaxCount_0_flag = AttributeUpdaterFlag.UPDATE - this._cachedMaxCount_0_0value = count - this._cachedMaxCount_0_1value = mode - } else - { - this._cachedMaxCount_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class TabContentTransitionProxy_serializer { public static write(buffer: SerializerBase, value: TabContentTransitionProxy): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/generated/component/text.ets b/arkoala-arkts/arkui/generated/component/text.ets new file mode 100644 index 0000000000000000000000000000000000000000..b09aed7d7cafc1c8b7b0762e49c27d654b373e20 --- /dev/null +++ b/arkoala-arkts/arkui/generated/component/text.ets @@ -0,0 +1,1723 @@ +/* + * 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 { StyledString, StyledStringInternal, DecorationStyleInterface_serializer, DecorationStyleInterface } from "./styledString" +import { LayoutManager, LayoutManagerInternal, TextDataDetectorConfig_serializer, EditMenuOptions_serializer, FontSettingOptions_serializer, TextDataDetectorConfig, EditMenuOptions, FontSettingOptions, MenuType } from "./textCommon" +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 } from "./../framework/resource" +import { LengthMetrics_serializer, LengthMetrics } from "./../Graphics" +import { ShadowOptions_serializer, ArkCommonMethodPeer, CommonMethod, ShadowOptions, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CustomBuilder } from "./builder" +import { CallbackKind } from "./../framework/peers/CallbackKind" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { NodeAttach, remember } from "@koalaui/runtime" +export class TextControllerInternal { + public static fromPtr(ptr: KPointer): TextController { + return new TextController(ptr) + } +} +export class TextController implements MaterializedBase { + peer?: Finalizable | undefined = undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + constructor(peerPtr: KPointer) { + this.peer = new Finalizable(peerPtr, TextController.getFinalizer()) + } + constructor() { + this(TextController.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._TextController_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._TextController_getFinalizer() + } + public closeSelectionMenu(): void { + this.closeSelectionMenu_serialize() + return + } + public setStyledString(value: StyledString): void { + const value_casted = value as (StyledString) + this.setStyledString_serialize(value_casted) + return + } + public getLayoutManager(): LayoutManager { + return this.getLayoutManager_serialize() + } + private closeSelectionMenu_serialize(): void { + ArkUIGeneratedNativeModule._TextController_closeSelectionMenu(this.peer!.ptr) + } + private setStyledString_serialize(value: StyledString): void { + ArkUIGeneratedNativeModule._TextController_setStyledString(this.peer!.ptr, toPeerPtr(value)) + } + private getLayoutManager_serialize(): LayoutManager { + const retval = ArkUIGeneratedNativeModule._TextController_getLayoutManager(this.peer!.ptr) + const obj : LayoutManager = LayoutManagerInternal.fromPtr(retval) + return obj + } +} +export class ArkTextPeer 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): ArkTextPeer { + const peerId = PeerNode.nextId() + const _peerPtr = ArkUIGeneratedNativeModule._Text_construct(peerId, flags) + const _peer = new ArkTextPeer(_peerPtr, peerId, 'Text', flags) + component?.setPeer(_peer) + return _peer + } + setTextOptionsAttribute(content?: string | Resource, value?: TextOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (content !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const contentTmpValue = content! + if (contentTmpValue instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const contentTmpValueForIdx0 = contentTmpValue as string + thisSerializer.writeString(contentTmpValueForIdx0) + } else if (contentTmpValue instanceof Resource) { + thisSerializer.writeInt8((1).toChar()) + const contentTmpValueForIdx1 = contentTmpValue as Resource + Resource_serializer.write(thisSerializer, contentTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + TextOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextInterface_setTextOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontColorAttribute(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._TextAttribute_setFontColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontSizeAttribute(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._TextAttribute_setFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMinFontSizeAttribute(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._TextAttribute_setMinFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaxFontSizeAttribute(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._TextAttribute_setMaxFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMinFontScaleAttribute(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._TextAttribute_setMinFontScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaxFontScaleAttribute(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._TextAttribute_setMaxFontScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontStyleAttribute(value: FontStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as FontStyle) + thisSerializer.writeInt32(TypeChecker.FontStyle_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setFontStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLineSpacingAttribute(value: LengthMetrics | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + LengthMetrics_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setLineSpacing(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTextAlignAttribute(value: TextAlign | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as TextAlign) + thisSerializer.writeInt32(TypeChecker.TextAlign_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setTextAlign(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLineHeightAttribute(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._TextAttribute_setLineHeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTextOverflowAttribute(value: TextOverflowOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + TextOverflowOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setTextOverflow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontFamilyAttribute(value: string | Resource | 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 Resource) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setFontFamily(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaxLinesAttribute(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._TextAttribute_setMaxLines(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDecorationAttribute(value: DecorationStyleInterface | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + DecorationStyleInterface_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setDecoration(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLetterSpacingAttribute(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._TextAttribute_setLetterSpacing(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTextCaseAttribute(value: TextCase | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as TextCase) + thisSerializer.writeInt32(TypeChecker.TextCase_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setTextCase(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBaselineOffsetAttribute(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._TextAttribute_setBaselineOffset(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCopyOptionAttribute(value: CopyOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as CopyOptions) + thisSerializer.writeInt32(TypeChecker.CopyOptions_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setCopyOption(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._TextAttribute_setDraggable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTextShadowAttribute(value: ShadowOptions | Array | 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 (TypeChecker.isArray_ShadowOptions(valueTmpValue)) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Array + thisSerializer.writeInt32((valueTmpValueForIdx1.length).toInt()) + for (let valueTmpValueForIdx1CounterI = 0; valueTmpValueForIdx1CounterI < valueTmpValueForIdx1.length; valueTmpValueForIdx1CounterI++) { + const valueTmpValueForIdx1TmpElement : ShadowOptions = valueTmpValueForIdx1[valueTmpValueForIdx1CounterI] + ShadowOptions_serializer.write(thisSerializer, valueTmpValueForIdx1TmpElement) + } + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setTextShadow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setHeightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as TextHeightAdaptivePolicy) + thisSerializer.writeInt32(TypeChecker.TextHeightAdaptivePolicy_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setHeightAdaptivePolicy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTextIndentAttribute(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._TextAttribute_setTextIndent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setWordBreakAttribute(value: WordBreak | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as WordBreak) + thisSerializer.writeInt32(TypeChecker.WordBreak_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setWordBreak(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLineBreakStrategyAttribute(value: LineBreakStrategy | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as LineBreakStrategy) + thisSerializer.writeInt32(TypeChecker.LineBreakStrategy_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setLineBreakStrategy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnCopyAttribute(value: ((value: 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._TextAttribute_setOnCopy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCaretColorAttribute(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._TextAttribute_setCaretColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSelectedBackgroundColorAttribute(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._TextAttribute_setSelectedBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEllipsisModeAttribute(value: EllipsisMode | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as EllipsisMode) + thisSerializer.writeInt32(TypeChecker.EllipsisMode_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setEllipsisMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnableDataDetectorAttribute(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._TextAttribute_setEnableDataDetector(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDataDetectorConfigAttribute(value: TextDataDetectorConfig | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + TextDataDetectorConfig_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setDataDetectorConfig(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnTextSelectionChangeAttribute(value: ((selectionStart: number,selectionEnd: number) => 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._TextAttribute_setOnTextSelectionChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontFeatureAttribute(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._TextAttribute_setFontFeature(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMarqueeOptionsAttribute(value: TextMarqueeOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + TextMarqueeOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setMarqueeOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnMarqueeStateChangeAttribute(value: ((value0: MarqueeState) => 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._TextAttribute_setOnMarqueeStateChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPrivacySensitiveAttribute(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._TextAttribute_setPrivacySensitive(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTextSelectableAttribute(value: TextSelectableMode | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as TextSelectableMode) + thisSerializer.writeInt32(TypeChecker.TextSelectableMode_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setTextSelectable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEditMenuOptionsAttribute(value: EditMenuOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + EditMenuOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setEditMenuOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setHalfLeadingAttribute(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._TextAttribute_setHalfLeading(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnableHapticFeedbackAttribute(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._TextAttribute_setEnableHapticFeedback(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontAttribute(fontValue: Font | undefined, options?: FontSettingOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (fontValue !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const fontValueTmpValue = fontValue! + Font_serializer.write(thisSerializer, fontValueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + FontSettingOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontWeightAttribute(weight: number | FontWeight | string | undefined, options?: FontSettingOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (weight !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const weightTmpValue = weight! + if (weightTmpValue instanceof number) { + thisSerializer.writeInt8((0).toChar()) + const weightTmpValueForIdx0 = weightTmpValue as number + thisSerializer.writeNumber(weightTmpValueForIdx0) + } else if (weightTmpValue instanceof FontWeight) { + thisSerializer.writeInt8((1).toChar()) + const weightTmpValueForIdx1 = weightTmpValue as FontWeight + thisSerializer.writeInt32(TypeChecker.FontWeight_ToNumeric(weightTmpValueForIdx1)) + } else if (weightTmpValue instanceof string) { + thisSerializer.writeInt8((2).toChar()) + const weightTmpValueForIdx2 = weightTmpValue as string + thisSerializer.writeString(weightTmpValueForIdx2) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + FontSettingOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setFontWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSelectionAttribute(selectionStart: number | undefined, selectionEnd: number | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (selectionStart !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const selectionStartTmpValue = selectionStart! + thisSerializer.writeNumber(selectionStartTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (selectionEnd !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const selectionEndTmpValue = selectionEnd! + thisSerializer.writeNumber(selectionEndTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setSelection(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBindSelectionMenuAttribute(spanType: TextSpanType | undefined, content: CustomBuilder | undefined, responseType: TextResponseType | undefined, options?: SelectionMenuOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (spanType !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const spanTypeTmpValue = (spanType as TextSpanType) + thisSerializer.writeInt32(TypeChecker.TextSpanType_ToNumeric(spanTypeTmpValue)) + } 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 (responseType !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const responseTypeTmpValue = (responseType as TextResponseType) + thisSerializer.writeInt32(TypeChecker.TextResponseType_ToNumeric(responseTypeTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + SelectionMenuOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAttribute_setBindSelectionMenu(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface TextOverflowOptions { + overflow: TextOverflow; +} +export interface TextAttribute extends CommonMethod { + fontColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method fontColor") + } + fontSize(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method fontSize") + } + minFontSize(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method minFontSize") + } + maxFontSize(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method maxFontSize") + } + minFontScale(value: number | Resource | undefined): this { + throw new Error("Unimplemented method minFontScale") + } + maxFontScale(value: number | Resource | undefined): this { + throw new Error("Unimplemented method maxFontScale") + } + fontStyle(value: FontStyle | undefined): this { + throw new Error("Unimplemented method fontStyle") + } + lineSpacing(value: LengthMetrics | undefined): this { + throw new Error("Unimplemented method lineSpacing") + } + textAlign(value: TextAlign | undefined): this { + throw new Error("Unimplemented method textAlign") + } + lineHeight(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method lineHeight") + } + textOverflow(value: TextOverflowOptions | undefined): this { + throw new Error("Unimplemented method textOverflow") + } + fontFamily(value: string | Resource | undefined): this { + throw new Error("Unimplemented method fontFamily") + } + maxLines(value: number | undefined): this { + throw new Error("Unimplemented method maxLines") + } + decoration(value: DecorationStyleInterface | undefined): this { + throw new Error("Unimplemented method decoration") + } + letterSpacing(value: number | string | undefined): this { + throw new Error("Unimplemented method letterSpacing") + } + textCase(value: TextCase | undefined): this { + throw new Error("Unimplemented method textCase") + } + baselineOffset(value: number | string | undefined): this { + throw new Error("Unimplemented method baselineOffset") + } + copyOption(value: CopyOptions | undefined): this { + throw new Error("Unimplemented method copyOption") + } + draggable(value: boolean | undefined): this + textShadow(value: ShadowOptions | Array | undefined): this { + throw new Error("Unimplemented method textShadow") + } + heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { + throw new Error("Unimplemented method heightAdaptivePolicy") + } + textIndent(value: Length | undefined): this { + throw new Error("Unimplemented method textIndent") + } + wordBreak(value: WordBreak | undefined): this { + throw new Error("Unimplemented method wordBreak") + } + lineBreakStrategy(value: LineBreakStrategy | undefined): this { + throw new Error("Unimplemented method lineBreakStrategy") + } + onCopy(value: ((value: string) => void) | undefined): this { + throw new Error("Unimplemented method onCopy") + } + caretColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method caretColor") + } + selectedBackgroundColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method selectedBackgroundColor") + } + ellipsisMode(value: EllipsisMode | undefined): this { + throw new Error("Unimplemented method ellipsisMode") + } + enableDataDetector(value: boolean | undefined): this { + throw new Error("Unimplemented method enableDataDetector") + } + dataDetectorConfig(value: TextDataDetectorConfig | undefined): this { + throw new Error("Unimplemented method dataDetectorConfig") + } + onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { + throw new Error("Unimplemented method onTextSelectionChange") + } + fontFeature(value: string | undefined): this { + throw new Error("Unimplemented method fontFeature") + } + marqueeOptions(value: TextMarqueeOptions | undefined): this { + throw new Error("Unimplemented method marqueeOptions") + } + onMarqueeStateChange(value: ((value0: MarqueeState) => void) | undefined): this { + throw new Error("Unimplemented method onMarqueeStateChange") + } + privacySensitive(value: boolean | undefined): this { + throw new Error("Unimplemented method privacySensitive") + } + textSelectable(value: TextSelectableMode | undefined): this { + throw new Error("Unimplemented method textSelectable") + } + editMenuOptions(value: EditMenuOptions | undefined): this { + throw new Error("Unimplemented method editMenuOptions") + } + halfLeading(value: boolean | undefined): this { + throw new Error("Unimplemented method halfLeading") + } + enableHapticFeedback(value: boolean | undefined): this { + throw new Error("Unimplemented method enableHapticFeedback") + } + font(fontValue: Font | undefined, options?: FontSettingOptions): this { + throw new Error("Unimplemented method font") + } + fontWeight(weight: number | FontWeight | string | undefined, options?: FontSettingOptions): this { + throw new Error("Unimplemented method fontWeight") + } + selection(selectionStart: number | undefined, selectionEnd: number | undefined): this { + throw new Error("Unimplemented method selection") + } + bindSelectionMenu(spanType: TextSpanType | undefined, content: CustomBuilder | undefined, responseType: TextResponseType | undefined, options?: SelectionMenuOptions): this { + throw new Error("Unimplemented method bindSelectionMenu") + } + attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Unimplemented method attributeModifier") + } +} +export class ArkTextStyle extends ArkCommonMethodStyle implements TextAttribute { + fontColor_value?: ResourceColor | undefined + fontSize_value?: number | string | Resource | undefined + minFontSize_value?: number | string | Resource | undefined + maxFontSize_value?: number | string | Resource | undefined + minFontScale_value?: number | Resource | undefined + maxFontScale_value?: number | Resource | undefined + fontStyle_value?: FontStyle | undefined + lineSpacing_value?: LengthMetrics | undefined + textAlign_value?: TextAlign | undefined + lineHeight_value?: number | string | Resource | undefined + textOverflow_value?: TextOverflowOptions | undefined + fontFamily_value?: string | Resource | undefined + maxLines_value?: number | undefined + decoration_value?: DecorationStyleInterface | undefined + letterSpacing_value?: number | string | undefined + textCase_value?: TextCase | undefined + baselineOffset_value?: number | string | undefined + copyOption_value?: CopyOptions | undefined + draggable_value?: boolean | undefined + textShadow_value?: ShadowOptions | Array | undefined + heightAdaptivePolicy_value?: TextHeightAdaptivePolicy | undefined + textIndent_value?: Length | undefined + wordBreak_value?: WordBreak | undefined + lineBreakStrategy_value?: LineBreakStrategy | undefined + onCopy_value?: ((value: string) => void) | undefined + caretColor_value?: ResourceColor | undefined + selectedBackgroundColor_value?: ResourceColor | undefined + ellipsisMode_value?: EllipsisMode | undefined + enableDataDetector_value?: boolean | undefined + dataDetectorConfig_value?: TextDataDetectorConfig | undefined + onTextSelectionChange_value?: ((selectionStart: number,selectionEnd: number) => void) | undefined + fontFeature_value?: string | undefined + marqueeOptions_value?: TextMarqueeOptions | undefined + onMarqueeStateChange_value?: ((value0: MarqueeState) => void) | undefined + privacySensitive_value?: boolean | undefined + textSelectable_value?: TextSelectableMode | undefined + editMenuOptions_value?: EditMenuOptions | undefined + halfLeading_value?: boolean | undefined + enableHapticFeedback_value?: boolean | undefined + attributeModifier_value?: AttributeModifier | AttributeModifier | undefined + public fontColor(value: ResourceColor | undefined): this { + return this + } + public fontSize(value: number | string | Resource | undefined): this { + return this + } + public minFontSize(value: number | string | Resource | undefined): this { + return this + } + public maxFontSize(value: number | string | Resource | undefined): this { + return this + } + public minFontScale(value: number | Resource | undefined): this { + return this + } + public maxFontScale(value: number | Resource | undefined): this { + return this + } + public fontStyle(value: FontStyle | undefined): this { + return this + } + public lineSpacing(value: LengthMetrics | undefined): this { + return this + } + public textAlign(value: TextAlign | undefined): this { + return this + } + public lineHeight(value: number | string | Resource | undefined): this { + return this + } + public textOverflow(value: TextOverflowOptions | undefined): this { + return this + } + public fontFamily(value: string | Resource | undefined): this { + return this + } + public maxLines(value: number | undefined): this { + return this + } + public decoration(value: DecorationStyleInterface | undefined): this { + return this + } + public letterSpacing(value: number | string | undefined): this { + return this + } + public textCase(value: TextCase | undefined): this { + return this + } + public baselineOffset(value: number | string | undefined): this { + return this + } + public copyOption(value: CopyOptions | undefined): this { + return this + } + public draggable(value: boolean | undefined): this { + return this + } + public textShadow(value: ShadowOptions | Array | undefined): this { + return this + } + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { + return this + } + public textIndent(value: Length | undefined): this { + return this + } + public wordBreak(value: WordBreak | undefined): this { + return this + } + public lineBreakStrategy(value: LineBreakStrategy | undefined): this { + return this + } + public onCopy(value: ((value: string) => void) | undefined): this { + return this + } + public caretColor(value: ResourceColor | undefined): this { + return this + } + public selectedBackgroundColor(value: ResourceColor | undefined): this { + return this + } + public ellipsisMode(value: EllipsisMode | undefined): this { + return this + } + public enableDataDetector(value: boolean | undefined): this { + return this + } + public dataDetectorConfig(value: TextDataDetectorConfig | undefined): this { + return this + } + public onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { + return this + } + public fontFeature(value: string | undefined): this { + return this + } + public marqueeOptions(value: TextMarqueeOptions | undefined): this { + return this + } + public onMarqueeStateChange(value: ((value0: MarqueeState) => void) | undefined): this { + return this + } + public privacySensitive(value: boolean | undefined): this { + return this + } + public textSelectable(value: TextSelectableMode | undefined): this { + return this + } + public editMenuOptions(value: EditMenuOptions | undefined): this { + return this + } + public halfLeading(value: boolean | undefined): this { + return this + } + public enableHapticFeedback(value: boolean | undefined): this { + return this + } + public font(fontValue: Font | undefined, options?: FontSettingOptions): this { + return this + } + public fontWeight(weight: number | FontWeight | string | undefined, options?: FontSettingOptions): this { + return this + } + public selection(selectionStart: number | undefined, selectionEnd: number | undefined): this { + return this + } + public bindSelectionMenu(spanType: TextSpanType | undefined, content: CustomBuilder | undefined, responseType: TextResponseType | undefined, options?: SelectionMenuOptions): this { + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} +export enum TextSpanType { + TEXT = 0, + IMAGE = 1, + MIXED = 2, + DEFAULT = 3 +} +export enum TextResponseType { + RIGHT_CLICK = 0, + LONG_PRESS = 1, + SELECT = 2, + DEFAULT = 3 +} +export enum MarqueeState { + START = 0, + BOUNCE = 1, + FINISH = 2 +} +export enum MarqueeStartPolicy { + DEFAULT = 0, + ON_FOCUS = 1 +} +export interface TextOptions { + controller: TextController; +} +export interface TextMarqueeOptions { + start: boolean; + step?: number; + loop?: number; + fromStart?: boolean; + delay?: number; + fadeout?: boolean; + marqueeStartPolicy?: MarqueeStartPolicy; +} + +export class ArkTextComponent extends ArkCommonMethodComponent implements TextAttribute { + getPeer(): ArkTextPeer { + return (this.peer as ArkTextPeer) + } + public setTextOptions(content?: string | Resource, value?: TextOptions): this { + if (this.checkPriority("setTextOptions")) { + const content_casted = content as (string | Resource | undefined) + const value_casted = value as (TextOptions | undefined) + this.getPeer()?.setTextOptionsAttribute(content_casted, value_casted) + return this + } + return this + } + public fontColor(value: ResourceColor | undefined): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setFontColorAttribute(value_casted) + return this + } + return this + } + public fontSize(value: number | string | Resource | undefined): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setFontSizeAttribute(value_casted) + return this + } + return this + } + public minFontSize(value: number | string | Resource | undefined): this { + if (this.checkPriority("minFontSize")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setMinFontSizeAttribute(value_casted) + return this + } + return this + } + public maxFontSize(value: number | string | Resource | undefined): this { + if (this.checkPriority("maxFontSize")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setMaxFontSizeAttribute(value_casted) + return this + } + return this + } + public minFontScale(value: number | Resource | undefined): this { + if (this.checkPriority("minFontScale")) { + const value_casted = value as (number | Resource | undefined) + this.getPeer()?.setMinFontScaleAttribute(value_casted) + return this + } + return this + } + public maxFontScale(value: number | Resource | undefined): this { + if (this.checkPriority("maxFontScale")) { + const value_casted = value as (number | Resource | undefined) + this.getPeer()?.setMaxFontScaleAttribute(value_casted) + return this + } + return this + } + public fontStyle(value: FontStyle | undefined): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle | undefined) + this.getPeer()?.setFontStyleAttribute(value_casted) + return this + } + return this + } + public lineSpacing(value: LengthMetrics | undefined): this { + if (this.checkPriority("lineSpacing")) { + const value_casted = value as (LengthMetrics | undefined) + this.getPeer()?.setLineSpacingAttribute(value_casted) + return this + } + return this + } + public textAlign(value: TextAlign | undefined): this { + if (this.checkPriority("textAlign")) { + const value_casted = value as (TextAlign | undefined) + this.getPeer()?.setTextAlignAttribute(value_casted) + return this + } + return this + } + public lineHeight(value: number | string | Resource | undefined): this { + if (this.checkPriority("lineHeight")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setLineHeightAttribute(value_casted) + return this + } + return this + } + public textOverflow(value: TextOverflowOptions | undefined): this { + if (this.checkPriority("textOverflow")) { + const value_casted = value as (TextOverflowOptions | undefined) + this.getPeer()?.setTextOverflowAttribute(value_casted) + return this + } + return this + } + public fontFamily(value: string | Resource | undefined): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (string | Resource | undefined) + this.getPeer()?.setFontFamilyAttribute(value_casted) + return this + } + return this + } + public maxLines(value: number | undefined): this { + if (this.checkPriority("maxLines")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setMaxLinesAttribute(value_casted) + return this + } + return this + } + public decoration(value: DecorationStyleInterface | undefined): this { + if (this.checkPriority("decoration")) { + const value_casted = value as (DecorationStyleInterface | undefined) + this.getPeer()?.setDecorationAttribute(value_casted) + return this + } + return this + } + public letterSpacing(value: number | string | undefined): this { + if (this.checkPriority("letterSpacing")) { + const value_casted = value as (number | string | undefined) + this.getPeer()?.setLetterSpacingAttribute(value_casted) + return this + } + return this + } + public textCase(value: TextCase | undefined): this { + if (this.checkPriority("textCase")) { + const value_casted = value as (TextCase | undefined) + this.getPeer()?.setTextCaseAttribute(value_casted) + return this + } + return this + } + public baselineOffset(value: number | string | undefined): this { + if (this.checkPriority("baselineOffset")) { + const value_casted = value as (number | string | undefined) + this.getPeer()?.setBaselineOffsetAttribute(value_casted) + return this + } + return this + } + public copyOption(value: CopyOptions | undefined): this { + if (this.checkPriority("copyOption")) { + const value_casted = value as (CopyOptions | undefined) + this.getPeer()?.setCopyOptionAttribute(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 textShadow(value: ShadowOptions | Array | undefined): this { + if (this.checkPriority("textShadow")) { + const value_casted = value as (ShadowOptions | Array | undefined) + this.getPeer()?.setTextShadowAttribute(value_casted) + return this + } + return this + } + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { + if (this.checkPriority("heightAdaptivePolicy")) { + const value_casted = value as (TextHeightAdaptivePolicy | undefined) + this.getPeer()?.setHeightAdaptivePolicyAttribute(value_casted) + return this + } + return this + } + public textIndent(value: Length | undefined): this { + if (this.checkPriority("textIndent")) { + const value_casted = value as (Length | undefined) + this.getPeer()?.setTextIndentAttribute(value_casted) + return this + } + return this + } + public wordBreak(value: WordBreak | undefined): this { + if (this.checkPriority("wordBreak")) { + const value_casted = value as (WordBreak | undefined) + this.getPeer()?.setWordBreakAttribute(value_casted) + return this + } + return this + } + public lineBreakStrategy(value: LineBreakStrategy | undefined): this { + if (this.checkPriority("lineBreakStrategy")) { + const value_casted = value as (LineBreakStrategy | undefined) + this.getPeer()?.setLineBreakStrategyAttribute(value_casted) + return this + } + return this + } + public onCopy(value: ((value: string) => void) | undefined): this { + if (this.checkPriority("onCopy")) { + const value_casted = value as (((value: string) => void) | undefined) + this.getPeer()?.setOnCopyAttribute(value_casted) + return this + } + return this + } + public caretColor(value: ResourceColor | undefined): this { + if (this.checkPriority("caretColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setCaretColorAttribute(value_casted) + return this + } + return this + } + public selectedBackgroundColor(value: ResourceColor | undefined): this { + if (this.checkPriority("selectedBackgroundColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setSelectedBackgroundColorAttribute(value_casted) + return this + } + return this + } + public ellipsisMode(value: EllipsisMode | undefined): this { + if (this.checkPriority("ellipsisMode")) { + const value_casted = value as (EllipsisMode | undefined) + this.getPeer()?.setEllipsisModeAttribute(value_casted) + return this + } + return this + } + public enableDataDetector(value: boolean | undefined): this { + if (this.checkPriority("enableDataDetector")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEnableDataDetectorAttribute(value_casted) + return this + } + return this + } + public dataDetectorConfig(value: TextDataDetectorConfig | undefined): this { + if (this.checkPriority("dataDetectorConfig")) { + const value_casted = value as (TextDataDetectorConfig | undefined) + this.getPeer()?.setDataDetectorConfigAttribute(value_casted) + return this + } + return this + } + public onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { + if (this.checkPriority("onTextSelectionChange")) { + const value_casted = value as (((selectionStart: number,selectionEnd: number) => void) | undefined) + this.getPeer()?.setOnTextSelectionChangeAttribute(value_casted) + return this + } + return this + } + public fontFeature(value: string | undefined): this { + if (this.checkPriority("fontFeature")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setFontFeatureAttribute(value_casted) + return this + } + return this + } + public marqueeOptions(value: TextMarqueeOptions | undefined): this { + if (this.checkPriority("marqueeOptions")) { + const value_casted = value as (TextMarqueeOptions | undefined) + this.getPeer()?.setMarqueeOptionsAttribute(value_casted) + return this + } + return this + } + public onMarqueeStateChange(value: ((value0: MarqueeState) => void) | undefined): this { + if (this.checkPriority("onMarqueeStateChange")) { + const value_casted = value as (((value0: MarqueeState) => void) | undefined) + this.getPeer()?.setOnMarqueeStateChangeAttribute(value_casted) + return this + } + return this + } + public privacySensitive(value: boolean | undefined): this { + if (this.checkPriority("privacySensitive")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setPrivacySensitiveAttribute(value_casted) + return this + } + return this + } + public textSelectable(value: TextSelectableMode | undefined): this { + if (this.checkPriority("textSelectable")) { + const value_casted = value as (TextSelectableMode | undefined) + this.getPeer()?.setTextSelectableAttribute(value_casted) + return this + } + return this + } + public editMenuOptions(value: EditMenuOptions | undefined): this { + if (this.checkPriority("editMenuOptions")) { + const value_casted = value as (EditMenuOptions | undefined) + this.getPeer()?.setEditMenuOptionsAttribute(value_casted) + return this + } + return this + } + public halfLeading(value: boolean | undefined): this { + if (this.checkPriority("halfLeading")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setHalfLeadingAttribute(value_casted) + return this + } + return this + } + public enableHapticFeedback(value: boolean | undefined): this { + if (this.checkPriority("enableHapticFeedback")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEnableHapticFeedbackAttribute(value_casted) + return this + } + return this + } + public font(fontValue: Font | undefined, options?: FontSettingOptions): this { + if (this.checkPriority("font")) { + const fontValue_casted = fontValue as (Font | undefined) + const options_casted = options as (FontSettingOptions | undefined) + this.getPeer()?.setFontAttribute(fontValue_casted, options_casted) + return this + } + return this + } + public fontWeight(weight: number | FontWeight | string | undefined, options?: FontSettingOptions): this { + if (this.checkPriority("fontWeight")) { + const weight_casted = weight as (number | FontWeight | string | undefined) + const options_casted = options as (FontSettingOptions | undefined) + this.getPeer()?.setFontWeightAttribute(weight_casted, options_casted) + return this + } + return this + } + public selection(selectionStart: number | undefined, selectionEnd: number | undefined): this { + if (this.checkPriority("selection")) { + const selectionStart_casted = selectionStart as (number | undefined) + const selectionEnd_casted = selectionEnd as (number | undefined) + this.getPeer()?.setSelectionAttribute(selectionStart_casted, selectionEnd_casted) + return this + } + return this + } + public bindSelectionMenu(spanType: TextSpanType | undefined, content: CustomBuilder | undefined, responseType: TextResponseType | undefined, options?: SelectionMenuOptions): this { + if (this.checkPriority("bindSelectionMenu")) { + const spanType_casted = spanType as (TextSpanType | undefined) + const content_casted = content as (CustomBuilder | undefined) + const responseType_casted = responseType as (TextResponseType | undefined) + const options_casted = options as (SelectionMenuOptions | undefined) + this.getPeer()?.setBindSelectionMenuAttribute(spanType_casted, content_casted, responseType_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() + } +} + +@memo +export function Text( + @memo + style: ((attributes: TextAttribute) => void) | undefined, + content?: string | Resource, value?: TextOptions, + @memo + content_?: () => void, +): void { + const receiver = remember((): ArkTextComponent => { + return new ArkTextComponent() + }) + NodeAttach((): ArkTextPeer => ArkTextPeer.create(receiver), (_: ArkTextPeer): void => { + receiver.setTextOptions(content,value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} + +export class TextController_serializer { + public static write(buffer: SerializerBase, value: TextController): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): TextController { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return TextControllerInternal.fromPtr(ptr) + } +} +export class TextOptions_serializer { + public static write(buffer: SerializerBase, value: TextOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForController = value.controller + TextController_serializer.write(valueSerializer, valueHolderForController) + } + public static read(buffer: DeserializerBase): TextOptions { + let valueDeserializer : DeserializerBase = buffer + const controllerTmpResult : TextController = (TextController_serializer.read(valueDeserializer) as TextController) + let value : TextOptions = ({controller: controllerTmpResult} as TextOptions) + return value + } +} +export class TextOverflowOptions_serializer { + public static write(buffer: SerializerBase, value: TextOverflowOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForOverflow = value.overflow + valueSerializer.writeInt32(TypeChecker.TextOverflow_ToNumeric(valueHolderForOverflow)) + } + public static read(buffer: DeserializerBase): TextOverflowOptions { + let valueDeserializer : DeserializerBase = buffer + const overflowTmpResult : TextOverflow = TypeChecker.TextOverflow_FromNumeric(valueDeserializer.readInt32()) + let value : TextOverflowOptions = ({overflow: overflowTmpResult} as TextOverflowOptions) + return value + } +} +export class TextMarqueeOptions_serializer { + public static write(buffer: SerializerBase, value: TextMarqueeOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForStart = value.start + valueSerializer.writeBoolean(valueHolderForStart) + const valueHolderForStep = value.step + if (valueHolderForStep !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForStepTmpValue = valueHolderForStep! + valueSerializer.writeNumber(valueHolderForStepTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForLoop = value.loop + if (valueHolderForLoop !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForLoopTmpValue = valueHolderForLoop! + valueSerializer.writeNumber(valueHolderForLoopTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForFromStart = value.fromStart + if (valueHolderForFromStart !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFromStartTmpValue = valueHolderForFromStart! + valueSerializer.writeBoolean(valueHolderForFromStartTmpValue) + } 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 valueHolderForFadeout = value.fadeout + if (valueHolderForFadeout !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForFadeoutTmpValue = valueHolderForFadeout! + valueSerializer.writeBoolean(valueHolderForFadeoutTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForMarqueeStartPolicy = value.marqueeStartPolicy + if (valueHolderForMarqueeStartPolicy !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForMarqueeStartPolicyTmpValue = (valueHolderForMarqueeStartPolicy as MarqueeStartPolicy) + valueSerializer.writeInt32(TypeChecker.MarqueeStartPolicy_ToNumeric(valueHolderForMarqueeStartPolicyTmpValue)) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): TextMarqueeOptions { + let valueDeserializer : DeserializerBase = buffer + const startTmpResult : boolean = valueDeserializer.readBoolean() + const stepTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let stepTmpBuf : number | undefined + if ((stepTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + stepTmpBuf = (valueDeserializer.readNumber() as number) + } + const stepTmpResult : number | undefined = stepTmpBuf + const loopTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let loopTmpBuf : number | undefined + if ((loopTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + loopTmpBuf = (valueDeserializer.readNumber() as number) + } + const loopTmpResult : number | undefined = loopTmpBuf + const fromStartTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fromStartTmpBuf : boolean | undefined + if ((fromStartTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + fromStartTmpBuf = valueDeserializer.readBoolean() + } + const fromStartTmpResult : boolean | undefined = fromStartTmpBuf + 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 fadeoutTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let fadeoutTmpBuf : boolean | undefined + if ((fadeoutTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + fadeoutTmpBuf = valueDeserializer.readBoolean() + } + const fadeoutTmpResult : boolean | undefined = fadeoutTmpBuf + const marqueeStartPolicyTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let marqueeStartPolicyTmpBuf : MarqueeStartPolicy | undefined + if ((marqueeStartPolicyTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + marqueeStartPolicyTmpBuf = TypeChecker.MarqueeStartPolicy_FromNumeric(valueDeserializer.readInt32()) + } + const marqueeStartPolicyTmpResult : MarqueeStartPolicy | undefined = marqueeStartPolicyTmpBuf + let value : TextMarqueeOptions = ({start: startTmpResult, step: stepTmpResult, loop: loopTmpResult, fromStart: fromStartTmpResult, delay: delayTmpResult, fadeout: fadeoutTmpResult, marqueeStartPolicy: marqueeStartPolicyTmpResult} as TextMarqueeOptions) + return value + } +} diff --git a/arkoala-arkts/arkui/generated/component/textArea.ets b/arkoala-arkts/arkui/generated/component/textArea.ets new file mode 100644 index 0000000000000000000000000000000000000000..54903f1d601b3946d6d5ef159f0fca64da5cc1d7 --- /dev/null +++ b/arkoala-arkts/arkui/generated/component/textArea.ets @@ -0,0 +1,2146 @@ +/* + * 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, nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, NativeBuffer, CallbackResource, InteropNativeModule, Tags, KSerializerBuffer, KUint8ArrayPtr, Finalizable } from "@koalaui/interop" +import { Resource_serializer } 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, 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 "./../Graphics" +import { KeyboardOptions_serializer, PasteEvent, KeyboardOptions } from "./richEditor" +import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { ComponentBase } from "./../ComponentBase" +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 { Resource } from "global.resource" +import { EnterKeyType, SubmitEvent, ContentType } from "./textInput" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CustomBuilder } from "./builder" +import { CallbackKind } from "./../framework/peers/CallbackKind" +import { CallbackTransformer } from "./../CallbackTransformer" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { NodeAttach, remember } from "@koalaui/runtime" +export class ArkTextAreaPeer 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): ArkTextAreaPeer { + const peerId = PeerNode.nextId() + const _peerPtr = ArkUIGeneratedNativeModule._TextArea_construct(peerId, flags) + const _peer = new ArkTextAreaPeer(_peerPtr, peerId, 'TextArea', flags) + component?.setPeer(_peer) + return _peer + } + setTextAreaOptionsAttribute(value?: TextAreaOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + TextAreaOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaInterface_setTextAreaOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPlaceholderColorAttribute(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._TextAreaAttribute_setPlaceholderColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setPlaceholderFontAttribute(value: Font | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + Font_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setPlaceholderFont(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnterKeyTypeAttribute(value: EnterKeyType | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as EnterKeyType) + thisSerializer.writeInt32(TypeChecker.EnterKeyType_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setEnterKeyType(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTextAlignAttribute(value: TextAlign | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as TextAlign) + thisSerializer.writeInt32(TypeChecker.TextAlign_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setTextAlign(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCaretColorAttribute(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._TextAreaAttribute_setCaretColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontColorAttribute(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._TextAreaAttribute_setFontColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontSizeAttribute(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._TextAreaAttribute_setFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontStyleAttribute(value: FontStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as FontStyle) + thisSerializer.writeInt32(TypeChecker.FontStyle_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setFontStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontWeightAttribute(value: number | FontWeight | ResourceStr | 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 FontWeight) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as FontWeight + thisSerializer.writeInt32(TypeChecker.FontWeight_ToNumeric(valueTmpValueForIdx1)) + } else if (valueTmpValue instanceof ResourceStr) { + thisSerializer.writeInt8((2).toChar()) + const valueTmpValueForIdx2 = valueTmpValue as ResourceStr + if (valueTmpValueForIdx2 instanceof string) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx2ForIdx0 = valueTmpValueForIdx2 as string + thisSerializer.writeString(valueTmpValueForIdx2ForIdx0) + } else if (valueTmpValueForIdx2 instanceof Resource) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx2ForIdx1 = valueTmpValueForIdx2 as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx2ForIdx1) + } + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setFontWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontFamilyAttribute(value: ResourceStr | 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 Resource) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setFontFamily(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTextOverflowAttribute(value: TextOverflow | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as TextOverflow) + thisSerializer.writeInt32(TypeChecker.TextOverflow_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setTextOverflow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTextIndentAttribute(value: Dimension | 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._TextAreaAttribute_setTextIndent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCaretStyleAttribute(value: CaretStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + CaretStyle_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setCaretStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSelectedBackgroundColorAttribute(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._TextAreaAttribute_setSelectedBackgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnSubmitAttribute(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + if (valueTmpValue instanceof ((enterKey: EnterKeyType) => void)) { + thisSerializer.writeInt8((0).toChar()) + const valueTmpValueForIdx0 = valueTmpValue as ((enterKey: EnterKeyType) => void) + thisSerializer.holdAndWriteCallback(valueTmpValueForIdx0) + } else if (valueTmpValue instanceof TextAreaSubmitCallback) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as TextAreaSubmitCallback + thisSerializer.holdAndWriteCallback(valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setOnSubmit(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnChangeAttribute(value: EditableTextOnChangeCallback | 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._TextAreaAttribute_setOnChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnTextSelectionChangeAttribute(value: ((selectionStart: number,selectionEnd: number) => 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._TextAreaAttribute_setOnTextSelectionChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnContentScrollAttribute(value: ((selectionStart: number,selectionEnd: number) => 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._TextAreaAttribute_setOnContentScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnEditChangeAttribute(value: ((isEditing: boolean) => 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._TextAreaAttribute_setOnEditChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnCopyAttribute(value: ((value: 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._TextAreaAttribute_setOnCopy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnCutAttribute(value: ((value: 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._TextAreaAttribute_setOnCut(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnPasteAttribute(value: ((value: string,event: PasteEvent) => 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._TextAreaAttribute_setOnPaste(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCopyOptionAttribute(value: CopyOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as CopyOptions) + thisSerializer.writeInt32(TypeChecker.CopyOptions_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setCopyOption(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnableKeyboardOnFocusAttribute(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._TextAreaAttribute_setEnableKeyboardOnFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaxLengthAttribute(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._TextAreaAttribute_setMaxLength(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setStyleAttribute(value: TextContentStyle | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as TextContentStyle) + thisSerializer.writeInt32(TypeChecker.TextContentStyle_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setBarStateAttribute(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._TextAreaAttribute_setBarState(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setSelectionMenuHiddenAttribute(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._TextAreaAttribute_setSelectionMenuHidden(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMinFontSizeAttribute(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._TextAreaAttribute_setMinFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaxFontSizeAttribute(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._TextAreaAttribute_setMaxFontSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMinFontScaleAttribute(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._TextAreaAttribute_setMinFontScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaxFontScaleAttribute(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._TextAreaAttribute_setMaxFontScale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setHeightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as TextHeightAdaptivePolicy) + thisSerializer.writeInt32(TypeChecker.TextHeightAdaptivePolicy_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setHeightAdaptivePolicy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setMaxLinesAttribute(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._TextAreaAttribute_setMaxLines(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setWordBreakAttribute(value: WordBreak | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as WordBreak) + thisSerializer.writeInt32(TypeChecker.WordBreak_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setWordBreak(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLineBreakStrategyAttribute(value: LineBreakStrategy | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as LineBreakStrategy) + thisSerializer.writeInt32(TypeChecker.LineBreakStrategy_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setLineBreakStrategy(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setDecorationAttribute(value: TextDecorationOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + TextDecorationOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setDecoration(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLetterSpacingAttribute(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._TextAreaAttribute_setLetterSpacing(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLineSpacingAttribute(value: LengthMetrics | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + LengthMetrics_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setLineSpacing(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setLineHeightAttribute(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._TextAreaAttribute_setLineHeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setTypeAttribute(value: TextAreaType | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as TextAreaType) + thisSerializer.writeInt32(TypeChecker.TextAreaType_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setType(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnableAutoFillAttribute(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._TextAreaAttribute_setEnableAutoFill(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setContentTypeAttribute(value: ContentType | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as ContentType) + thisSerializer.writeInt32(TypeChecker.ContentType_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setContentType(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setFontFeatureAttribute(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._TextAreaAttribute_setFontFeature(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnWillInsertAttribute(value: ((value0: InsertValue) => 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._TextAreaAttribute_setOnWillInsert(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDidInsertAttribute(value: ((value0: InsertValue) => 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._TextAreaAttribute_setOnDidInsert(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnWillDeleteAttribute(value: ((value0: DeleteValue) => 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._TextAreaAttribute_setOnWillDelete(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnDidDeleteAttribute(value: ((value0: DeleteValue) => 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._TextAreaAttribute_setOnDidDelete(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEditMenuOptionsAttribute(value: EditMenuOptions | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + EditMenuOptions_serializer.write(thisSerializer, valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setEditMenuOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnablePreviewTextAttribute(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._TextAreaAttribute_setEnablePreviewText(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEnableHapticFeedbackAttribute(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._TextAreaAttribute_setEnableHapticFeedback(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setAutoCapitalizationModeAttribute(value: AutoCapitalizationMode | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as AutoCapitalizationMode) + thisSerializer.writeInt32(TypeChecker.AutoCapitalizationMode_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setAutoCapitalizationMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setHalfLeadingAttribute(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._TextAreaAttribute_setHalfLeading(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setEllipsisModeAttribute(value: EllipsisMode | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as EllipsisMode) + thisSerializer.writeInt32(TypeChecker.EllipsisMode_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setEllipsisMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setStopBackPressAttribute(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._TextAreaAttribute_setStopBackPress(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setOnWillChangeAttribute(value: ((value0: EditableTextChangeValue) => 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._TextAreaAttribute_setOnWillChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setKeyboardAppearanceAttribute(value: KeyboardAppearance | undefined): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = (value as KeyboardAppearance) + thisSerializer.writeInt32(TypeChecker.KeyboardAppearance_ToNumeric(valueTmpValue)) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setKeyboardAppearance(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setInputFilterAttribute(value: ResourceStr | undefined, error?: ((value: string) => 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 Resource) { + thisSerializer.writeInt8((1).toChar()) + const valueTmpValueForIdx1 = valueTmpValue as Resource + Resource_serializer.write(thisSerializer, valueTmpValueForIdx1) + } + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (error !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const errorTmpValue = error! + thisSerializer.holdAndWriteCallback(errorTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setInputFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setShowCounterAttribute(value: boolean | undefined, options?: InputCounterOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (value !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const valueTmpValue = value! + thisSerializer.writeBoolean(valueTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + InputCounterOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setShowCounter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + setCustomKeyboardAttribute(value: CustomBuilder | undefined, options?: KeyboardOptions): 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) + } + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + KeyboardOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaAttribute_setCustomKeyboard(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} +export interface TextAreaOptions { + placeholder?: ResourceStr; + text?: ResourceStr | Bindable | Bindable | Bindable; + controller?: TextAreaController; +} +export enum TextAreaType { + NORMAL = 0, + NUMBER = 2, + PHONE_NUMBER = 3, + EMAIL = 5, + NUMBER_DECIMAL = 12, + URL = 13 +} +export type TextAreaSubmitCallback = (enterKeyType: EnterKeyType, event?: SubmitEvent) => void; +export interface TextAreaAttribute extends CommonMethod { + placeholderColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method placeholderColor") + } + placeholderFont(value: Font | undefined): this { + throw new Error("Unimplemented method placeholderFont") + } + enterKeyType(value: EnterKeyType | undefined): this { + throw new Error("Unimplemented method enterKeyType") + } + textAlign(value: TextAlign | undefined): this { + throw new Error("Unimplemented method textAlign") + } + caretColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method caretColor") + } + fontColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method fontColor") + } + fontSize(value: Length | undefined): this { + throw new Error("Unimplemented method fontSize") + } + fontStyle(value: FontStyle | undefined): this { + throw new Error("Unimplemented method fontStyle") + } + fontWeight(value: number | FontWeight | ResourceStr | undefined): this { + throw new Error("Unimplemented method fontWeight") + } + fontFamily(value: ResourceStr | undefined): this { + throw new Error("Unimplemented method fontFamily") + } + textOverflow(value: TextOverflow | undefined): this { + throw new Error("Unimplemented method textOverflow") + } + textIndent(value: Dimension | undefined): this { + throw new Error("Unimplemented method textIndent") + } + caretStyle(value: CaretStyle | undefined): this { + throw new Error("Unimplemented method caretStyle") + } + selectedBackgroundColor(value: ResourceColor | undefined): this { + throw new Error("Unimplemented method selectedBackgroundColor") + } + onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined): this { + throw new Error("Unimplemented method onSubmit") + } + onChange(value: EditableTextOnChangeCallback | undefined): this { + throw new Error("Unimplemented method onChange") + } + onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { + throw new Error("Unimplemented method onTextSelectionChange") + } + onContentScroll(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { + throw new Error("Unimplemented method onContentScroll") + } + onEditChange(value: ((isEditing: boolean) => void) | undefined): this { + throw new Error("Unimplemented method onEditChange") + } + onCopy(value: ((value: string) => void) | undefined): this { + throw new Error("Unimplemented method onCopy") + } + onCut(value: ((value: string) => void) | undefined): this { + throw new Error("Unimplemented method onCut") + } + onPaste(value: ((value: string,event: PasteEvent) => void) | undefined): this { + throw new Error("Unimplemented method onPaste") + } + copyOption(value: CopyOptions | undefined): this { + throw new Error("Unimplemented method copyOption") + } + enableKeyboardOnFocus(value: boolean | undefined): this { + throw new Error("Unimplemented method enableKeyboardOnFocus") + } + maxLength(value: number | undefined): this { + throw new Error("Unimplemented method maxLength") + } + style(value: TextContentStyle | undefined): this { + throw new Error("Unimplemented method style") + } + barState(value: BarState | undefined): this { + throw new Error("Unimplemented method barState") + } + selectionMenuHidden(value: boolean | undefined): this { + throw new Error("Unimplemented method selectionMenuHidden") + } + minFontSize(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method minFontSize") + } + maxFontSize(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method maxFontSize") + } + minFontScale(value: number | Resource | undefined): this { + throw new Error("Unimplemented method minFontScale") + } + maxFontScale(value: number | Resource | undefined): this { + throw new Error("Unimplemented method maxFontScale") + } + heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { + throw new Error("Unimplemented method heightAdaptivePolicy") + } + maxLines(value: number | undefined): this { + throw new Error("Unimplemented method maxLines") + } + wordBreak(value: WordBreak | undefined): this { + throw new Error("Unimplemented method wordBreak") + } + lineBreakStrategy(value: LineBreakStrategy | undefined): this { + throw new Error("Unimplemented method lineBreakStrategy") + } + decoration(value: TextDecorationOptions | undefined): this { + throw new Error("Unimplemented method decoration") + } + letterSpacing(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method letterSpacing") + } + lineSpacing(value: LengthMetrics | undefined): this { + throw new Error("Unimplemented method lineSpacing") + } + lineHeight(value: number | string | Resource | undefined): this { + throw new Error("Unimplemented method lineHeight") + } + type(value: TextAreaType | undefined): this { + throw new Error("Unimplemented method type") + } + enableAutoFill(value: boolean | undefined): this { + throw new Error("Unimplemented method enableAutoFill") + } + contentType(value: ContentType | undefined): this { + throw new Error("Unimplemented method contentType") + } + fontFeature(value: string | undefined): this { + throw new Error("Unimplemented method fontFeature") + } + onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { + throw new Error("Unimplemented method onWillInsert") + } + onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { + throw new Error("Unimplemented method onDidInsert") + } + onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { + throw new Error("Unimplemented method onWillDelete") + } + onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { + throw new Error("Unimplemented method onDidDelete") + } + editMenuOptions(value: EditMenuOptions | undefined): this { + throw new Error("Unimplemented method editMenuOptions") + } + enablePreviewText(value: boolean | undefined): this { + throw new Error("Unimplemented method enablePreviewText") + } + enableHapticFeedback(value: boolean | undefined): this { + throw new Error("Unimplemented method enableHapticFeedback") + } + autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { + throw new Error("Unimplemented method autoCapitalizationMode") + } + halfLeading(value: boolean | undefined): this { + throw new Error("Unimplemented method halfLeading") + } + ellipsisMode(value: EllipsisMode | undefined): this { + throw new Error("Unimplemented method ellipsisMode") + } + stopBackPress(value: boolean | undefined): this { + throw new Error("Unimplemented method stopBackPress") + } + onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { + throw new Error("Unimplemented method onWillChange") + } + keyboardAppearance(value: KeyboardAppearance | undefined): this { + throw new Error("Unimplemented method keyboardAppearance") + } + inputFilter(value: ResourceStr | undefined, error?: ((value: string) => void)): this { + throw new Error("Unimplemented method inputFilter") + } + showCounter(value: boolean | undefined, options?: InputCounterOptions): this { + throw new Error("Unimplemented method showCounter") + } + customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { + throw new Error("Unimplemented method customKeyboard") + } + attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Unimplemented method attributeModifier") + } +} +export class ArkTextAreaStyle extends ArkCommonMethodStyle implements TextAreaAttribute { + placeholderColor_value?: ResourceColor | undefined + placeholderFont_value?: Font | undefined + enterKeyType_value?: EnterKeyType | undefined + textAlign_value?: TextAlign | undefined + caretColor_value?: ResourceColor | undefined + fontColor_value?: ResourceColor | undefined + fontSize_value?: Length | undefined + fontStyle_value?: FontStyle | undefined + fontWeight_value?: number | FontWeight | ResourceStr | undefined + fontFamily_value?: ResourceStr | undefined + textOverflow_value?: TextOverflow | undefined + textIndent_value?: Dimension | undefined + caretStyle_value?: CaretStyle | undefined + selectedBackgroundColor_value?: ResourceColor | undefined + onSubmit_value?: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined + onChange_value?: EditableTextOnChangeCallback | undefined + onTextSelectionChange_value?: ((selectionStart: number,selectionEnd: number) => void) | undefined + onContentScroll_value?: ((selectionStart: number,selectionEnd: number) => void) | undefined + onEditChange_value?: ((isEditing: boolean) => void) | undefined + onCopy_value?: ((value: string) => void) | undefined + onCut_value?: ((value: string) => void) | undefined + onPaste_value?: ((value: string,event: PasteEvent) => void) | undefined + copyOption_value?: CopyOptions | undefined + enableKeyboardOnFocus_value?: boolean | undefined + maxLength_value?: number | undefined + style_value?: TextContentStyle | undefined + barState_value?: BarState | undefined + selectionMenuHidden_value?: boolean | undefined + minFontSize_value?: number | string | Resource | undefined + maxFontSize_value?: number | string | Resource | undefined + minFontScale_value?: number | Resource | undefined + maxFontScale_value?: number | Resource | undefined + heightAdaptivePolicy_value?: TextHeightAdaptivePolicy | undefined + maxLines_value?: number | undefined + wordBreak_value?: WordBreak | undefined + lineBreakStrategy_value?: LineBreakStrategy | undefined + decoration_value?: TextDecorationOptions | undefined + letterSpacing_value?: number | string | Resource | undefined + lineSpacing_value?: LengthMetrics | undefined + lineHeight_value?: number | string | Resource | undefined + type_value?: TextAreaType | undefined + enableAutoFill_value?: boolean | undefined + contentType_value?: ContentType | undefined + fontFeature_value?: string | undefined + onWillInsert_value?: ((value0: InsertValue) => boolean) | undefined + onDidInsert_value?: ((value0: InsertValue) => void) | undefined + onWillDelete_value?: ((value0: DeleteValue) => boolean) | undefined + onDidDelete_value?: ((value0: DeleteValue) => void) | undefined + editMenuOptions_value?: EditMenuOptions | undefined + enablePreviewText_value?: boolean | undefined + enableHapticFeedback_value?: boolean | undefined + autoCapitalizationMode_value?: AutoCapitalizationMode | undefined + halfLeading_value?: boolean | undefined + ellipsisMode_value?: EllipsisMode | undefined + stopBackPress_value?: boolean | undefined + onWillChange_value?: ((value0: EditableTextChangeValue) => boolean) | undefined + keyboardAppearance_value?: KeyboardAppearance | undefined + attributeModifier_value?: AttributeModifier | AttributeModifier | undefined + public placeholderColor(value: ResourceColor | undefined): this { + return this + } + public placeholderFont(value: Font | undefined): this { + return this + } + public enterKeyType(value: EnterKeyType | undefined): this { + return this + } + public textAlign(value: TextAlign | undefined): this { + return this + } + public caretColor(value: ResourceColor | undefined): this { + return this + } + public fontColor(value: ResourceColor | undefined): this { + return this + } + public fontSize(value: Length | undefined): this { + return this + } + public fontStyle(value: FontStyle | undefined): this { + return this + } + public fontWeight(value: number | FontWeight | ResourceStr | undefined): this { + return this + } + public fontFamily(value: ResourceStr | undefined): this { + return this + } + public textOverflow(value: TextOverflow | undefined): this { + return this + } + public textIndent(value: Dimension | undefined): this { + return this + } + public caretStyle(value: CaretStyle | undefined): this { + return this + } + public selectedBackgroundColor(value: ResourceColor | undefined): this { + return this + } + public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined): this { + return this + } + public onChange(value: EditableTextOnChangeCallback | undefined): this { + return this + } + public onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { + return this + } + public onContentScroll(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { + return this + } + public onEditChange(value: ((isEditing: boolean) => void) | undefined): this { + return this + } + public onCopy(value: ((value: string) => void) | undefined): this { + return this + } + public onCut(value: ((value: string) => void) | undefined): this { + return this + } + public onPaste(value: ((value: string,event: PasteEvent) => void) | undefined): this { + return this + } + public copyOption(value: CopyOptions | undefined): this { + return this + } + public enableKeyboardOnFocus(value: boolean | undefined): this { + return this + } + public maxLength(value: number | undefined): this { + return this + } + public style(value: TextContentStyle | undefined): this { + return this + } + public barState(value: BarState | undefined): this { + return this + } + public selectionMenuHidden(value: boolean | undefined): this { + return this + } + public minFontSize(value: number | string | Resource | undefined): this { + return this + } + public maxFontSize(value: number | string | Resource | undefined): this { + return this + } + public minFontScale(value: number | Resource | undefined): this { + return this + } + public maxFontScale(value: number | Resource | undefined): this { + return this + } + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { + return this + } + public maxLines(value: number | undefined): this { + return this + } + public wordBreak(value: WordBreak | undefined): this { + return this + } + public lineBreakStrategy(value: LineBreakStrategy | undefined): this { + return this + } + public decoration(value: TextDecorationOptions | undefined): this { + return this + } + public letterSpacing(value: number | string | Resource | undefined): this { + return this + } + public lineSpacing(value: LengthMetrics | undefined): this { + return this + } + public lineHeight(value: number | string | Resource | undefined): this { + return this + } + public type(value: TextAreaType | undefined): this { + return this + } + public enableAutoFill(value: boolean | undefined): this { + return this + } + public contentType(value: ContentType | undefined): this { + return this + } + public fontFeature(value: string | undefined): this { + return this + } + public onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { + return this + } + public onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { + return this + } + public onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { + return this + } + public onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { + return this + } + public editMenuOptions(value: EditMenuOptions | undefined): this { + return this + } + public enablePreviewText(value: boolean | undefined): this { + return this + } + public enableHapticFeedback(value: boolean | undefined): this { + return this + } + public autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { + return this + } + public halfLeading(value: boolean | undefined): this { + return this + } + public ellipsisMode(value: EllipsisMode | undefined): this { + return this + } + public stopBackPress(value: boolean | undefined): this { + return this + } + public onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { + return this + } + public keyboardAppearance(value: KeyboardAppearance | undefined): this { + return this + } + public inputFilter(value: ResourceStr | undefined, error?: ((value: string) => void)): this { + return this + } + public showCounter(value: boolean | undefined, options?: InputCounterOptions): this { + return this + } + public customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { + return this + } + public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + throw new Error("Not implemented") + } +} + +export class ArkTextAreaComponent extends ArkCommonMethodComponent implements TextAreaAttribute { + getPeer(): ArkTextAreaPeer { + return (this.peer as ArkTextAreaPeer) + } + public setTextAreaOptions(value?: TextAreaOptions): this { + if (this.checkPriority("setTextAreaOptions")) { + const value_casted = value as (TextAreaOptions | undefined) + this.getPeer()?.setTextAreaOptionsAttribute(value_casted) + return this + } + return this + } + public placeholderColor(value: ResourceColor | undefined): this { + if (this.checkPriority("placeholderColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setPlaceholderColorAttribute(value_casted) + return this + } + return this + } + public placeholderFont(value: Font | undefined): this { + if (this.checkPriority("placeholderFont")) { + const value_casted = value as (Font | undefined) + this.getPeer()?.setPlaceholderFontAttribute(value_casted) + return this + } + return this + } + public enterKeyType(value: EnterKeyType | undefined): this { + if (this.checkPriority("enterKeyType")) { + const value_casted = value as (EnterKeyType | undefined) + this.getPeer()?.setEnterKeyTypeAttribute(value_casted) + return this + } + return this + } + public textAlign(value: TextAlign | undefined): this { + if (this.checkPriority("textAlign")) { + const value_casted = value as (TextAlign | undefined) + this.getPeer()?.setTextAlignAttribute(value_casted) + return this + } + return this + } + public caretColor(value: ResourceColor | undefined): this { + if (this.checkPriority("caretColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setCaretColorAttribute(value_casted) + return this + } + return this + } + public fontColor(value: ResourceColor | undefined): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setFontColorAttribute(value_casted) + return this + } + return this + } + public fontSize(value: Length | undefined): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (Length | undefined) + this.getPeer()?.setFontSizeAttribute(value_casted) + return this + } + return this + } + public fontStyle(value: FontStyle | undefined): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle | undefined) + this.getPeer()?.setFontStyleAttribute(value_casted) + return this + } + return this + } + public fontWeight(value: number | FontWeight | ResourceStr | undefined): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | ResourceStr | undefined) + this.getPeer()?.setFontWeightAttribute(value_casted) + return this + } + return this + } + public fontFamily(value: ResourceStr | undefined): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (ResourceStr | undefined) + this.getPeer()?.setFontFamilyAttribute(value_casted) + return this + } + return this + } + public textOverflow(value: TextOverflow | undefined): this { + if (this.checkPriority("textOverflow")) { + const value_casted = value as (TextOverflow | undefined) + this.getPeer()?.setTextOverflowAttribute(value_casted) + return this + } + return this + } + public textIndent(value: Dimension | undefined): this { + if (this.checkPriority("textIndent")) { + const value_casted = value as (Dimension | undefined) + this.getPeer()?.setTextIndentAttribute(value_casted) + return this + } + return this + } + public caretStyle(value: CaretStyle | undefined): this { + if (this.checkPriority("caretStyle")) { + const value_casted = value as (CaretStyle | undefined) + this.getPeer()?.setCaretStyleAttribute(value_casted) + return this + } + return this + } + public selectedBackgroundColor(value: ResourceColor | undefined): this { + if (this.checkPriority("selectedBackgroundColor")) { + const value_casted = value as (ResourceColor | undefined) + this.getPeer()?.setSelectedBackgroundColorAttribute(value_casted) + return this + } + return this + } + public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined): this { + if (this.checkPriority("onSubmit")) { + const value_casted = value as (((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback | undefined) + this.getPeer()?.setOnSubmitAttribute(value_casted) + return this + } + return this + } + public onChange(value: EditableTextOnChangeCallback | undefined): this { + if (this.checkPriority("onChange")) { + const value_casted = value as (EditableTextOnChangeCallback | undefined) + this.getPeer()?.setOnChangeAttribute(value_casted) + return this + } + return this + } + public onTextSelectionChange(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { + if (this.checkPriority("onTextSelectionChange")) { + const value_casted = value as (((selectionStart: number,selectionEnd: number) => void) | undefined) + this.getPeer()?.setOnTextSelectionChangeAttribute(value_casted) + return this + } + return this + } + public onContentScroll(value: ((selectionStart: number,selectionEnd: number) => void) | undefined): this { + if (this.checkPriority("onContentScroll")) { + const value_casted = value as (((selectionStart: number,selectionEnd: number) => void) | undefined) + this.getPeer()?.setOnContentScrollAttribute(value_casted) + return this + } + return this + } + public onEditChange(value: ((isEditing: boolean) => void) | undefined): this { + if (this.checkPriority("onEditChange")) { + const value_casted = value as (((isEditing: boolean) => void) | undefined) + this.getPeer()?.setOnEditChangeAttribute(value_casted) + return this + } + return this + } + public onCopy(value: ((value: string) => void) | undefined): this { + if (this.checkPriority("onCopy")) { + const value_casted = value as (((value: string) => void) | undefined) + this.getPeer()?.setOnCopyAttribute(value_casted) + return this + } + return this + } + public onCut(value: ((value: string) => void) | undefined): this { + if (this.checkPriority("onCut")) { + const value_casted = value as (((value: string) => void) | undefined) + this.getPeer()?.setOnCutAttribute(value_casted) + return this + } + return this + } + public onPaste(value: ((value: string,event: PasteEvent) => void) | undefined): this { + if (this.checkPriority("onPaste")) { + const value_casted = value as (((value: string,event: PasteEvent) => void) | undefined) + this.getPeer()?.setOnPasteAttribute(value_casted) + return this + } + return this + } + public copyOption(value: CopyOptions | undefined): this { + if (this.checkPriority("copyOption")) { + const value_casted = value as (CopyOptions | undefined) + this.getPeer()?.setCopyOptionAttribute(value_casted) + return this + } + return this + } + public enableKeyboardOnFocus(value: boolean | undefined): this { + if (this.checkPriority("enableKeyboardOnFocus")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEnableKeyboardOnFocusAttribute(value_casted) + return this + } + return this + } + public maxLength(value: number | undefined): this { + if (this.checkPriority("maxLength")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setMaxLengthAttribute(value_casted) + return this + } + return this + } + public style(value: TextContentStyle | undefined): this { + if (this.checkPriority("style")) { + const value_casted = value as (TextContentStyle | undefined) + this.getPeer()?.setStyleAttribute(value_casted) + return this + } + return this + } + public barState(value: BarState | undefined): this { + if (this.checkPriority("barState")) { + const value_casted = value as (BarState | undefined) + this.getPeer()?.setBarStateAttribute(value_casted) + return this + } + return this + } + public selectionMenuHidden(value: boolean | undefined): this { + if (this.checkPriority("selectionMenuHidden")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setSelectionMenuHiddenAttribute(value_casted) + return this + } + return this + } + public minFontSize(value: number | string | Resource | undefined): this { + if (this.checkPriority("minFontSize")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setMinFontSizeAttribute(value_casted) + return this + } + return this + } + public maxFontSize(value: number | string | Resource | undefined): this { + if (this.checkPriority("maxFontSize")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setMaxFontSizeAttribute(value_casted) + return this + } + return this + } + public minFontScale(value: number | Resource | undefined): this { + if (this.checkPriority("minFontScale")) { + const value_casted = value as (number | Resource | undefined) + this.getPeer()?.setMinFontScaleAttribute(value_casted) + return this + } + return this + } + public maxFontScale(value: number | Resource | undefined): this { + if (this.checkPriority("maxFontScale")) { + const value_casted = value as (number | Resource | undefined) + this.getPeer()?.setMaxFontScaleAttribute(value_casted) + return this + } + return this + } + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { + if (this.checkPriority("heightAdaptivePolicy")) { + const value_casted = value as (TextHeightAdaptivePolicy | undefined) + this.getPeer()?.setHeightAdaptivePolicyAttribute(value_casted) + return this + } + return this + } + public maxLines(value: number | undefined): this { + if (this.checkPriority("maxLines")) { + const value_casted = value as (number | undefined) + this.getPeer()?.setMaxLinesAttribute(value_casted) + return this + } + return this + } + public wordBreak(value: WordBreak | undefined): this { + if (this.checkPriority("wordBreak")) { + const value_casted = value as (WordBreak | undefined) + this.getPeer()?.setWordBreakAttribute(value_casted) + return this + } + return this + } + public lineBreakStrategy(value: LineBreakStrategy | undefined): this { + if (this.checkPriority("lineBreakStrategy")) { + const value_casted = value as (LineBreakStrategy | undefined) + this.getPeer()?.setLineBreakStrategyAttribute(value_casted) + return this + } + return this + } + public decoration(value: TextDecorationOptions | undefined): this { + if (this.checkPriority("decoration")) { + const value_casted = value as (TextDecorationOptions | undefined) + this.getPeer()?.setDecorationAttribute(value_casted) + return this + } + return this + } + public letterSpacing(value: number | string | Resource | undefined): this { + if (this.checkPriority("letterSpacing")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setLetterSpacingAttribute(value_casted) + return this + } + return this + } + public lineSpacing(value: LengthMetrics | undefined): this { + if (this.checkPriority("lineSpacing")) { + const value_casted = value as (LengthMetrics | undefined) + this.getPeer()?.setLineSpacingAttribute(value_casted) + return this + } + return this + } + public lineHeight(value: number | string | Resource | undefined): this { + if (this.checkPriority("lineHeight")) { + const value_casted = value as (number | string | Resource | undefined) + this.getPeer()?.setLineHeightAttribute(value_casted) + return this + } + return this + } + public type(value: TextAreaType | undefined): this { + if (this.checkPriority("type")) { + const value_casted = value as (TextAreaType | undefined) + this.getPeer()?.setTypeAttribute(value_casted) + return this + } + return this + } + public enableAutoFill(value: boolean | undefined): this { + if (this.checkPriority("enableAutoFill")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEnableAutoFillAttribute(value_casted) + return this + } + return this + } + public contentType(value: ContentType | undefined): this { + if (this.checkPriority("contentType")) { + const value_casted = value as (ContentType | undefined) + this.getPeer()?.setContentTypeAttribute(value_casted) + return this + } + return this + } + public fontFeature(value: string | undefined): this { + if (this.checkPriority("fontFeature")) { + const value_casted = value as (string | undefined) + this.getPeer()?.setFontFeatureAttribute(value_casted) + return this + } + return this + } + public onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { + if (this.checkPriority("onWillInsert")) { + const value_casted = value as (((value0: InsertValue) => boolean) | undefined) + this.getPeer()?.setOnWillInsertAttribute(value_casted) + return this + } + return this + } + public onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { + if (this.checkPriority("onDidInsert")) { + const value_casted = value as (((value0: InsertValue) => void) | undefined) + this.getPeer()?.setOnDidInsertAttribute(value_casted) + return this + } + return this + } + public onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { + if (this.checkPriority("onWillDelete")) { + const value_casted = value as (((value0: DeleteValue) => boolean) | undefined) + this.getPeer()?.setOnWillDeleteAttribute(value_casted) + return this + } + return this + } + public onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { + if (this.checkPriority("onDidDelete")) { + const value_casted = value as (((value0: DeleteValue) => void) | undefined) + this.getPeer()?.setOnDidDeleteAttribute(value_casted) + return this + } + return this + } + public editMenuOptions(value: EditMenuOptions | undefined): this { + if (this.checkPriority("editMenuOptions")) { + const value_casted = value as (EditMenuOptions | undefined) + this.getPeer()?.setEditMenuOptionsAttribute(value_casted) + return this + } + return this + } + public enablePreviewText(value: boolean | undefined): this { + if (this.checkPriority("enablePreviewText")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEnablePreviewTextAttribute(value_casted) + return this + } + return this + } + public enableHapticFeedback(value: boolean | undefined): this { + if (this.checkPriority("enableHapticFeedback")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setEnableHapticFeedbackAttribute(value_casted) + return this + } + return this + } + public autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { + if (this.checkPriority("autoCapitalizationMode")) { + const value_casted = value as (AutoCapitalizationMode | undefined) + this.getPeer()?.setAutoCapitalizationModeAttribute(value_casted) + return this + } + return this + } + public halfLeading(value: boolean | undefined): this { + if (this.checkPriority("halfLeading")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setHalfLeadingAttribute(value_casted) + return this + } + return this + } + public ellipsisMode(value: EllipsisMode | undefined): this { + if (this.checkPriority("ellipsisMode")) { + const value_casted = value as (EllipsisMode | undefined) + this.getPeer()?.setEllipsisModeAttribute(value_casted) + return this + } + return this + } + public stopBackPress(value: boolean | undefined): this { + if (this.checkPriority("stopBackPress")) { + const value_casted = value as (boolean | undefined) + this.getPeer()?.setStopBackPressAttribute(value_casted) + return this + } + return this + } + public onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { + if (this.checkPriority("onWillChange")) { + const value_casted = value as (((value0: EditableTextChangeValue) => boolean) | undefined) + this.getPeer()?.setOnWillChangeAttribute(value_casted) + return this + } + return this + } + public keyboardAppearance(value: KeyboardAppearance | undefined): this { + if (this.checkPriority("keyboardAppearance")) { + const value_casted = value as (KeyboardAppearance | undefined) + this.getPeer()?.setKeyboardAppearanceAttribute(value_casted) + return this + } + return this + } + public inputFilter(value: ResourceStr | undefined, error?: ((value: string) => void)): this { + if (this.checkPriority("inputFilter")) { + const value_casted = value as (ResourceStr | undefined) + const error_casted = error as (((value: string) => void) | undefined) + this.getPeer()?.setInputFilterAttribute(value_casted, error_casted) + return this + } + return this + } + public showCounter(value: boolean | undefined, options?: InputCounterOptions): this { + if (this.checkPriority("showCounter")) { + const value_casted = value as (boolean | undefined) + const options_casted = options as (InputCounterOptions | undefined) + this.getPeer()?.setShowCounterAttribute(value_casted, options_casted) + return this + } + return this + } + public customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { + if (this.checkPriority("customKeyboard")) { + const value_casted = value as (CustomBuilder | undefined) + const options_casted = options as (KeyboardOptions | undefined) + this.getPeer()?.setCustomKeyboardAttribute(value_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() + } +} + +@memo +export function TextArea( + @memo + style: ((attributes: TextAreaAttribute) => void) | undefined, + value?: TextAreaOptions, + @memo + content_?: () => void, +): void { + const receiver = remember((): ArkTextAreaComponent => { + return new ArkTextAreaComponent() + }) + NodeAttach((): ArkTextAreaPeer => ArkTextAreaPeer.create(receiver), (_: ArkTextAreaPeer): void => { + receiver.setTextAreaOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} + +export class TextAreaController_serializer { + public static write(buffer: SerializerBase, value: TextAreaController): void { + let valueSerializer : SerializerBase = buffer + valueSerializer.writePointer(toPeerPtr(value)) + } + public static read(buffer: DeserializerBase): TextAreaController { + let valueDeserializer : DeserializerBase = buffer + let ptr : KPointer = valueDeserializer.readPointer() + return TextAreaControllerInternal.fromPtr(ptr) + } +} +export class TextAreaOptions_serializer { + public static write(buffer: SerializerBase, value: TextAreaOptions): void { + let valueSerializer : SerializerBase = buffer + const valueHolderForPlaceholder = value.placeholder + if (valueHolderForPlaceholder !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForPlaceholderTmpValue = valueHolderForPlaceholder! + if (valueHolderForPlaceholderTmpValue instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForPlaceholderTmpValueForIdx0 = valueHolderForPlaceholderTmpValue as string + valueSerializer.writeString(valueHolderForPlaceholderTmpValueForIdx0) + } else if (valueHolderForPlaceholderTmpValue instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForPlaceholderTmpValueForIdx1 = valueHolderForPlaceholderTmpValue as Resource + Resource_serializer.write(valueSerializer, valueHolderForPlaceholderTmpValueForIdx1) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForText = value.text + if (valueHolderForText !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForTextTmpValue = valueHolderForText! + if (valueHolderForTextTmpValue instanceof ResourceStr) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTextTmpValueForIdx0 = valueHolderForTextTmpValue as ResourceStr + if (valueHolderForTextTmpValueForIdx0 instanceof string) { + valueSerializer.writeInt8((0).toChar()) + const valueHolderForTextTmpValueForIdx0ForIdx0 = valueHolderForTextTmpValueForIdx0 as string + valueSerializer.writeString(valueHolderForTextTmpValueForIdx0ForIdx0) + } else if (valueHolderForTextTmpValueForIdx0 instanceof Resource) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTextTmpValueForIdx0ForIdx1 = valueHolderForTextTmpValueForIdx0 as Resource + Resource_serializer.write(valueSerializer, valueHolderForTextTmpValueForIdx0ForIdx1) + } + } else if (valueHolderForTextTmpValue instanceof Bindable) { + valueSerializer.writeInt8((1).toChar()) + const valueHolderForTextTmpValueForIdx1 = valueHolderForTextTmpValue as Bindable + Bindable_Arkui_Component_Units_ResourceStr_serializer.write(valueSerializer, valueHolderForTextTmpValueForIdx1) + } else if (valueHolderForTextTmpValue instanceof Bindable) { + valueSerializer.writeInt8((2).toChar()) + const valueHolderForTextTmpValueForIdx2 = valueHolderForTextTmpValue as Bindable + Bindable_Global_Resource_Resource_serializer.write(valueSerializer, valueHolderForTextTmpValueForIdx2) + } else if (valueHolderForTextTmpValue instanceof Bindable) { + valueSerializer.writeInt8((3).toChar()) + const valueHolderForTextTmpValueForIdx3 = valueHolderForTextTmpValue as Bindable + Bindable_String_serializer.write(valueSerializer, valueHolderForTextTmpValueForIdx3) + } + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + const valueHolderForController = value.controller + if (valueHolderForController !== undefined) { + valueSerializer.writeInt8(RuntimeType.OBJECT) + const valueHolderForControllerTmpValue = valueHolderForController! + TextAreaController_serializer.write(valueSerializer, valueHolderForControllerTmpValue) + } else { + valueSerializer.writeInt8(RuntimeType.UNDEFINED) + } + } + public static read(buffer: DeserializerBase): TextAreaOptions { + let valueDeserializer : DeserializerBase = buffer + const placeholderTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let placeholderTmpBuf : ResourceStr | undefined + if ((placeholderTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const placeholderTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let placeholderTmpBuf_ : string | Resource | undefined + if (placeholderTmpBuf_UnionSelector == (0).toChar()) { + placeholderTmpBuf_ = (valueDeserializer.readString() as string) + } else if (placeholderTmpBuf_UnionSelector == (1).toChar()) { + placeholderTmpBuf_ = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for placeholderTmpBuf_ has to be chosen through deserialisation.") + } + placeholderTmpBuf = (placeholderTmpBuf_ as string | Resource) + } + const placeholderTmpResult : ResourceStr | undefined = placeholderTmpBuf + const textTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let textTmpBuf : ResourceStr | Bindable | Bindable | Bindable | undefined + if ((textTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + const textTmpBuf_UnionSelector : int32 = valueDeserializer.readInt8() + let textTmpBuf_ : ResourceStr | Bindable | Bindable | Bindable | undefined + if (textTmpBuf_UnionSelector == (0).toChar()) { + const textTmpBuf_BufUUnionSelector : int32 = valueDeserializer.readInt8() + let textTmpBuf_BufU : string | Resource | undefined + if (textTmpBuf_BufUUnionSelector == (0).toChar()) { + textTmpBuf_BufU = (valueDeserializer.readString() as string) + } else if (textTmpBuf_BufUUnionSelector == (1).toChar()) { + textTmpBuf_BufU = Resource_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for textTmpBuf_BufU has to be chosen through deserialisation.") + } + textTmpBuf_ = (textTmpBuf_BufU as string | Resource) + } else if (textTmpBuf_UnionSelector == (1).toChar()) { + textTmpBuf_ = Bindable_Arkui_Component_Units_ResourceStr_serializer.read(valueDeserializer) + } else if (textTmpBuf_UnionSelector == (2).toChar()) { + textTmpBuf_ = Bindable_Global_Resource_Resource_serializer.read(valueDeserializer) + } else if (textTmpBuf_UnionSelector == (3).toChar()) { + textTmpBuf_ = Bindable_String_serializer.read(valueDeserializer) + } else { + throw new Error("One of the branches for textTmpBuf_ has to be chosen through deserialisation.") + } + textTmpBuf = (textTmpBuf_ as ResourceStr | Bindable | Bindable | Bindable) + } + const textTmpResult : ResourceStr | Bindable | Bindable | Bindable | undefined = textTmpBuf + const controllerTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() + let controllerTmpBuf : TextAreaController | undefined + if ((controllerTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { + controllerTmpBuf = (TextAreaController_serializer.read(valueDeserializer) as TextAreaController) + } + const controllerTmpResult : TextAreaController | undefined = controllerTmpBuf + let value : TextAreaOptions = ({placeholder: placeholderTmpResult, text: textTmpResult, controller: controllerTmpResult} as TextAreaOptions) + return value + } +} +export class TextAreaControllerInternal { + public static fromPtr(ptr: KPointer): TextAreaController { + return new TextAreaController(ptr) + } +} +export class TextAreaController extends TextContentControllerBase implements MaterializedBase { + constructor(peerPtr: KPointer) { + super(peerPtr) + } + constructor() { + this(TextAreaController.construct()) + } + static construct(): KPointer { + const retval = ArkUIGeneratedNativeModule._TextAreaController_construct() + return retval + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._TextAreaController_getFinalizer() + } + public caretPosition(value: number): void { + const value_casted = value as (number) + this.caretPosition_serialize(value_casted) + return + } + public setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const selectionStart_casted = selectionStart as (number) + const selectionEnd_casted = selectionEnd as (number) + const options_casted = options as (SelectionOptions | undefined) + this.setTextSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) + return + } + public stopEditing(): void { + this.stopEditing_serialize() + return + } + private caretPosition_serialize(value: number): void { + ArkUIGeneratedNativeModule._TextAreaController_caretPosition(this.peer!.ptr, value) + } + private setTextSelection_serialize(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const thisSerializer : SerializerBase = SerializerBase.hold() + if (options !== undefined) { + thisSerializer.writeInt8(RuntimeType.OBJECT) + const optionsTmpValue = options! + SelectionOptions_serializer.write(thisSerializer, optionsTmpValue) + } else { + thisSerializer.writeInt8(RuntimeType.UNDEFINED) + } + ArkUIGeneratedNativeModule._TextAreaController_setTextSelection(this.peer!.ptr, selectionStart, selectionEnd, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private stopEditing_serialize(): void { + ArkUIGeneratedNativeModule._TextAreaController_stopEditing(this.peer!.ptr) + } +} diff --git a/arkoala-arkts/arkui/src/component/textClock.ets b/arkoala-arkts/arkui/generated/component/textClock.ets similarity index 58% rename from arkoala-arkts/arkui/src/component/textClock.ets rename to arkoala-arkts/arkui/generated/component/textClock.ets index dee74f0842719b7c60fd01fd587c9db6477beed7..6cfd5f72fd3afda05262861f99a98a82526efb76 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, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 { ShadowOptions_serializer, ArkCommonMethodPeer, CommonMethod, ShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" -import { intl_DateTimeOptions_serializer, intl } from "./../generated/ohos.intl" +import { Resource_serializer } from "./../framework/resource" +import { ShadowOptions_serializer, ArkCommonMethodPeer, CommonMethod, ShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { intl_DateTimeOptions_serializer, intl } from "./../framework/ohos.intl" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ResourceStr, ResourceColor, Length } from "./units" +import { Resource } from "global.resource" import { Color, FontStyle, FontWeight } from "./enums" -import { ContentModifier, AttributeModifier, hookTextClockContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ContentModifier, AttributeModifier, hookTextClockContentModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class TextClockControllerInternal { public static fromPtr(ptr: KPointer): TextClockController { return new TextClockController(ptr) @@ -507,461 +507,6 @@ export function TextClock( }) } -export class TextClockModifier extends CommonMethodModifier implements TextClockAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _format_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _format_0_0value?: ResourceStr | undefined - _onDateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDateChange_0_0value?: ((value: number) => void) | undefined - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: ResourceColor | undefined - _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontSize_0_0value?: Length | undefined - _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontStyle_0_0value?: FontStyle | undefined - _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontWeight_0_0value?: number | FontWeight | string | undefined - _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontFamily_0_0value?: ResourceStr | undefined - _textShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textShadow_0_0value?: ShadowOptions | Array | undefined - _fontFeature_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontFeature_0_0value?: string | undefined - _dateTimeOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _dateTimeOptions_0_0value?: intl.DateTimeOptions | undefined - applyModifierPatch(peer: ArkTextClockPeer): void { - super.applyModifierPatch(peer) - if (this._format_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._format_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFormatAttribute((this._format_0_0value as ResourceStr | undefined)); - this._format_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._format_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._format_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFormatAttribute((undefined as ResourceStr | undefined)); - } - } - } - if (this._onDateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDateChangeAttribute((this._onDateChange_0_0value as ((value: number) => void) | undefined)); - this._onDateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDateChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDateChangeAttribute((undefined as ((value: number) => void) | undefined)); - } - } - } - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontSizeAttribute((undefined as Length | undefined)); - } - } - } - if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontStyleAttribute((undefined as FontStyle | undefined)); - } - } - } - if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | string | undefined)); - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontWeightAttribute((undefined as number | FontWeight | string | undefined)); - } - } - } - if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontFamilyAttribute((this._fontFamily_0_0value as ResourceStr | undefined)); - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontFamilyAttribute((undefined as ResourceStr | undefined)); - } - } - } - if (this._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextShadowAttribute((this._textShadow_0_0value as ShadowOptions | Array | undefined)); - this._textShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textShadow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextShadowAttribute((undefined as ShadowOptions | Array | undefined)); - } - } - } - if (this._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontFeature_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontFeatureAttribute((this._fontFeature_0_0value as string | undefined)); - this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontFeature_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontFeatureAttribute((undefined as string | undefined)); - } - } - } - if (this._dateTimeOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._dateTimeOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDateTimeOptionsAttribute((this._dateTimeOptions_0_0value as intl.DateTimeOptions | undefined)); - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDateTimeOptionsAttribute((undefined as intl.DateTimeOptions | undefined)); - } - } - } - } - mergeModifier(modifier: TextClockModifier): void { - super.mergeModifier(modifier) - if (modifier._format_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._format_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.format(modifier._format_0_0value); - break; - } - default: { - this.format((undefined as ResourceStr | undefined)); - } - } - } - if (modifier._onDateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDateChange(modifier._onDateChange_0_0value); - break; - } - default: { - this.onDateChange((undefined as ((value: number) => void) | undefined)); - } - } - } - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontSize(modifier._fontSize_0_0value); - break; - } - default: { - this.fontSize((undefined as Length | undefined)); - } - } - } - if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontStyle(modifier._fontStyle_0_0value); - break; - } - default: { - this.fontStyle((undefined as FontStyle | undefined)); - } - } - } - if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontWeight(modifier._fontWeight_0_0value); - break; - } - default: { - this.fontWeight((undefined as number | FontWeight | string | undefined)); - } - } - } - if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontFamily(modifier._fontFamily_0_0value); - break; - } - default: { - this.fontFamily((undefined as ResourceStr | undefined)); - } - } - } - if (modifier._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textShadow(modifier._textShadow_0_0value); - break; - } - default: { - this.textShadow((undefined as ShadowOptions | Array | undefined)); - } - } - } - if (modifier._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontFeature_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontFeature(modifier._fontFeature_0_0value); - break; - } - default: { - this.fontFeature((undefined as string | undefined)); - } - } - } - if (modifier._dateTimeOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._dateTimeOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.dateTimeOptions(modifier._dateTimeOptions_0_0value); - break; - } - default: { - this.dateTimeOptions((undefined as intl.DateTimeOptions | undefined)); - } - } - } - } - format(value: ResourceStr | undefined): this { - if (((this._format_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._format_0_flag = AttributeUpdaterFlag.UPDATE - this._format_0_0value = value - } else - { - this._format_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDateChange(value: ((value: number) => void) | undefined): this { - if (((this._onDateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDateChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onDateChange_0_0value = value - } else - { - this._onDateChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontColor(value: ResourceColor | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontSize(value: Length | undefined): this { - if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fontSize_0_0value = value - } else - { - this._fontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontStyle(value: FontStyle | undefined): this { - if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._fontStyle_0_0value = value - } else - { - this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontWeight(value: number | FontWeight | string | undefined): this { - if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._fontWeight_0_0value = value - } else - { - this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontFamily(value: ResourceStr | undefined): this { - if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE - this._fontFamily_0_0value = value - } else - { - this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textShadow(value: ShadowOptions | Array | undefined): this { - if (((this._textShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textShadow_0_flag = AttributeUpdaterFlag.UPDATE - this._textShadow_0_0value = value - } else - { - this._textShadow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontFeature(value: string | undefined): this { - if (((this._fontFeature_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fontFeature_0_0value) !== (value))) - { - this._fontFeature_0_flag = AttributeUpdaterFlag.UPDATE - this._fontFeature_0_0value = value - } else - { - this._fontFeature_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - dateTimeOptions(value: intl.DateTimeOptions | undefined): this { - if (((this._dateTimeOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._dateTimeOptions_0_0value = value - } else - { - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class TextClockConfiguration_serializer { public static write(buffer: SerializerBase, value: TextClockConfiguration): void { let valueSerializer : SerializerBase = buffer 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 e7bd888d52f3f551ba02dbda11b70061b93860b9..8dbc261118b022c6c13ca068296ae9ab100acfdd 100644 --- a/arkoala-arkts/arkui/src/component/textCommon.ets +++ b/arkoala-arkts/arkui/generated/component/textCommon.ets @@ -22,11 +22,13 @@ 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 } from "./../framework/resource" import { ResourceStr, ResourceColor, Length } from "./units" +import { Resource } from "global.resource" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Color, TextDecorationType, TextDecorationStyle } from "./enums" +import { extractors } from "#handwritten" export interface LayoutManager { getLineCount(): number getGlyphPositionAtCoordinate(x: number, y: number): PositionWithAffinity diff --git a/arkoala-arkts/arkui/src/component/textInput.ets b/arkoala-arkts/arkui/generated/component/textInput.ets similarity index 50% rename from arkoala-arkts/arkui/src/component/textInput.ets rename to arkoala-arkts/arkui/generated/component/textInput.ets index 6f8921f67da5776cd21f62e5b0625ae57a78d6fc..a2b9eeb877a61969a15905804fba770e16af33cb 100644 --- a/arkoala-arkts/arkui/src/component/textInput.ets +++ b/arkoala-arkts/arkui/generated/component/textInput.ets @@ -20,22 +20,22 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 } 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" -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 { TextDecorationOptions_serializer, InputCounterOptions_serializer, ArkCommonMethodPeer, CommonMethod, TextDecorationOptions, InputCounterOptions, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable_Arkui_Component_Units_ResourceStr_serializer, Bindable_Global_Resource_Resource_serializer, Bindable_String_serializer, SelectionOptions_serializer, TextContentControllerBase, TextContentControllerBaseInternal, SelectionOptions } from "./common" import { KeyboardOptions_serializer, PasteEvent, KeyboardOptions } from "./richEditor" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { Color, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, EllipsisMode } from "./enums" +import { Resource } from "global.resource" import { CustomBuilder } from "./builder" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export interface SubmitEvent { text: string keepEditableState(): void @@ -2432,3151 +2432,6 @@ export function TextInput( }) } -export class TextInputModifier extends CommonMethodModifier implements TextInputAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _type_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _type_0_0value?: InputType | undefined - _contentType_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _contentType_0_0value?: ContentType | undefined - _placeholderColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _placeholderColor_0_0value?: ResourceColor | undefined - _textOverflow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textOverflow_0_0value?: TextOverflow | undefined - _textIndent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textIndent_0_0value?: Dimension | undefined - _placeholderFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _placeholderFont_0_0value?: Font | undefined - _enterKeyType_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enterKeyType_0_0value?: EnterKeyType | undefined - _caretColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _caretColor_0_0value?: ResourceColor | undefined - _onEditChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onEditChange_0_0value?: ((value0: boolean) => void) | undefined - _onSubmit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSubmit_0_0value?: OnSubmitCallback | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: EditableTextOnChangeCallback | undefined - _onTextSelectionChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTextSelectionChange_0_0value?: OnTextSelectionChangeCallback | undefined - _onContentScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onContentScroll_0_0value?: OnContentScrollCallback | undefined - _maxLength_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxLength_0_0value?: number | undefined - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: ResourceColor | undefined - _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontSize_0_0value?: Length | undefined - _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontStyle_0_0value?: FontStyle | undefined - _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontWeight_0_0value?: number | FontWeight | ResourceStr | undefined - _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontFamily_0_0value?: ResourceStr | undefined - _onCopy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onCopy_0_0value?: ((value0: string) => void) | undefined - _onCut_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onCut_0_0value?: ((value0: string) => void) | undefined - _onPaste_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPaste_0_0value?: OnPasteCallback | undefined - _copyOption_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _copyOption_0_0value?: CopyOptions | undefined - _showPasswordIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showPasswordIcon_0_0value?: boolean | undefined - _textAlign_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textAlign_0_0value?: TextAlign | undefined - _style_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _style_0_0value?: TextInputStyle | TextContentStyle | undefined - _caretStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _caretStyle_0_0value?: CaretStyle | undefined - _selectedBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedBackgroundColor_0_0value?: ResourceColor | undefined - _caretPosition_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _caretPosition_0_0value?: number | undefined - _enableKeyboardOnFocus_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableKeyboardOnFocus_0_0value?: boolean | undefined - _passwordIcon_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _passwordIcon_0_0value?: PasswordIcon | undefined - _showError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showError_0_0value?: ResourceStr | undefined - _showUnit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showUnit_0_0value?: CustomBuilder | undefined - _showUnderline_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showUnderline_0_0value?: boolean | undefined - _underlineColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _underlineColor_0_0value?: ResourceColor | UnderlineColor | undefined - _selectionMenuHidden_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectionMenuHidden_0_0value?: boolean | undefined - _barState_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _barState_0_0value?: BarState | undefined - _maxLines_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxLines_0_0value?: number | undefined - _wordBreak_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _wordBreak_0_0value?: WordBreak | undefined - _lineBreakStrategy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _lineBreakStrategy_0_0value?: LineBreakStrategy | undefined - _cancelButton_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cancelButton_0_0value?: CancelButtonOptions | CancelButtonSymbolOptions | undefined - _selectAll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectAll_0_0value?: boolean | undefined - _minFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minFontSize_0_0value?: number | string | Resource | undefined - _maxFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxFontSize_0_0value?: number | string | Resource | undefined - _minFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minFontScale_0_0value?: number | Resource | undefined - _maxFontScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _maxFontScale_0_0value?: number | Resource | undefined - _heightAdaptivePolicy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _heightAdaptivePolicy_0_0value?: TextHeightAdaptivePolicy | undefined - _enableAutoFill_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableAutoFill_0_0value?: boolean | undefined - _decoration_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _decoration_0_0value?: TextDecorationOptions | undefined - _letterSpacing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _letterSpacing_0_0value?: number | string | Resource | undefined - _lineHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _lineHeight_0_0value?: number | string | Resource | undefined - _passwordRules_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _passwordRules_0_0value?: string | undefined - _fontFeature_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontFeature_0_0value?: string | undefined - _showPassword_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showPassword_0_0value?: boolean | undefined - _onSecurityStateChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSecurityStateChange_0_0value?: ((value0: boolean) => void) | undefined - _onWillInsert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillInsert_0_0value?: ((value0: InsertValue) => boolean) | undefined - _onDidInsert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDidInsert_0_0value?: ((value0: InsertValue) => void) | undefined - _onWillDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillDelete_0_0value?: ((value0: DeleteValue) => boolean) | undefined - _onDidDelete_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDidDelete_0_0value?: ((value0: DeleteValue) => void) | undefined - _editMenuOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _editMenuOptions_0_0value?: EditMenuOptions | undefined - _enablePreviewText_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enablePreviewText_0_0value?: boolean | undefined - _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableHapticFeedback_0_0value?: boolean | undefined - _autoCapitalizationMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _autoCapitalizationMode_0_0value?: AutoCapitalizationMode | undefined - _halfLeading_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _halfLeading_0_0value?: boolean | undefined - _ellipsisMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _ellipsisMode_0_0value?: EllipsisMode | undefined - _stopBackPress_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _stopBackPress_0_0value?: boolean | undefined - _onWillChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillChange_0_0value?: ((value0: EditableTextChangeValue) => boolean) | undefined - _keyboardAppearance_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _keyboardAppearance_0_0value?: KeyboardAppearance | undefined - _inputFilter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _inputFilter_0_0value?: ResourceStr | undefined - _inputFilter_0_1value?: ((value0: string) => void) | undefined - _customKeyboard_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _customKeyboard_0_0value?: CustomBuilder | undefined - _customKeyboard_0_1value?: KeyboardOptions | undefined - _showCounter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _showCounter_0_0value?: boolean | undefined - _showCounter_0_1value?: InputCounterOptions | undefined - applyModifierPatch(peer: ArkTextInputPeer): void { - super.applyModifierPatch(peer) - if (this._type_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._type_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTypeAttribute((this._type_0_0value as InputType | undefined)); - this._type_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._type_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._type_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTypeAttribute((undefined as InputType | undefined)); - } - } - } - if (this._contentType_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._contentType_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setContentTypeAttribute((this._contentType_0_0value as ContentType | undefined)); - this._contentType_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._contentType_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._contentType_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setContentTypeAttribute((undefined as ContentType | undefined)); - } - } - } - if (this._placeholderColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._placeholderColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPlaceholderColorAttribute((this._placeholderColor_0_0value as ResourceColor | undefined)); - this._placeholderColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._placeholderColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._placeholderColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPlaceholderColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._textOverflow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textOverflow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextOverflowAttribute((this._textOverflow_0_0value as TextOverflow | undefined)); - this._textOverflow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textOverflow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textOverflow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextOverflowAttribute((undefined as TextOverflow | undefined)); - } - } - } - if (this._textIndent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textIndent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextIndentAttribute((this._textIndent_0_0value as Dimension | undefined)); - this._textIndent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textIndent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textIndent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextIndentAttribute((undefined as Dimension | undefined)); - } - } - } - if (this._placeholderFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._placeholderFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPlaceholderFontAttribute((this._placeholderFont_0_0value as Font | undefined)); - this._placeholderFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._placeholderFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._placeholderFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPlaceholderFontAttribute((undefined as Font | undefined)); - } - } - } - if (this._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enterKeyType_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnterKeyTypeAttribute((this._enterKeyType_0_0value as EnterKeyType | undefined)); - this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enterKeyType_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enterKeyType_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnterKeyTypeAttribute((undefined as EnterKeyType | undefined)); - } - } - } - if (this._caretColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._caretColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCaretColorAttribute((this._caretColor_0_0value as ResourceColor | undefined)); - this._caretColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._caretColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._caretColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCaretColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._onEditChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onEditChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnEditChangeAttribute((this._onEditChange_0_0value as ((value0: boolean) => void) | undefined)); - this._onEditChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onEditChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onEditChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnEditChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (this._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSubmit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSubmitAttribute((this._onSubmit_0_0value as OnSubmitCallback | undefined)); - this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSubmit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSubmit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSubmitAttribute((undefined as OnSubmitCallback | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as EditableTextOnChangeCallback | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as EditableTextOnChangeCallback | undefined)); - } - } - } - if (this._onTextSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTextSelectionChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTextSelectionChangeAttribute((this._onTextSelectionChange_0_0value as OnTextSelectionChangeCallback | undefined)); - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTextSelectionChangeAttribute((undefined as OnTextSelectionChangeCallback | undefined)); - } - } - } - if (this._onContentScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onContentScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnContentScrollAttribute((this._onContentScroll_0_0value as OnContentScrollCallback | undefined)); - this._onContentScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onContentScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onContentScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnContentScrollAttribute((undefined as OnContentScrollCallback | undefined)); - } - } - } - if (this._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxLength_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxLengthAttribute((this._maxLength_0_0value as number | undefined)); - this._maxLength_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxLength_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxLength_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxLengthAttribute((undefined as number | undefined)); - } - } - } - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontSizeAttribute((undefined as Length | undefined)); - } - } - } - if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontStyleAttribute((undefined as FontStyle | undefined)); - } - } - } - if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | ResourceStr | undefined)); - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontWeightAttribute((undefined as number | FontWeight | ResourceStr | undefined)); - } - } - } - if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontFamilyAttribute((this._fontFamily_0_0value as ResourceStr | undefined)); - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontFamilyAttribute((undefined as ResourceStr | undefined)); - } - } - } - if (this._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onCopy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCopyAttribute((this._onCopy_0_0value as ((value0: string) => void) | undefined)); - this._onCopy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onCopy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onCopy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCopyAttribute((undefined as ((value0: string) => void) | undefined)); - } - } - } - if (this._onCut_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onCut_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnCutAttribute((this._onCut_0_0value as ((value0: string) => void) | undefined)); - this._onCut_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onCut_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onCut_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnCutAttribute((undefined as ((value0: string) => void) | undefined)); - } - } - } - if (this._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPaste_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPasteAttribute((this._onPaste_0_0value as OnPasteCallback | undefined)); - this._onPaste_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPaste_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPaste_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPasteAttribute((undefined as OnPasteCallback | undefined)); - } - } - } - if (this._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._copyOption_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCopyOptionAttribute((this._copyOption_0_0value as CopyOptions | undefined)); - this._copyOption_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._copyOption_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._copyOption_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCopyOptionAttribute((undefined as CopyOptions | undefined)); - } - } - } - if (this._showPasswordIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showPasswordIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowPasswordIconAttribute((this._showPasswordIcon_0_0value as boolean | undefined)); - this._showPasswordIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showPasswordIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showPasswordIcon_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowPasswordIconAttribute((undefined as boolean | undefined)); - } - } - } - if (this._textAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextAlignAttribute((this._textAlign_0_0value as TextAlign | undefined)); - this._textAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textAlign_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textAlign_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextAlignAttribute((undefined as TextAlign | undefined)); - } - } - } - if (this._style_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._style_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStyleAttribute((this._style_0_0value as TextInputStyle | TextContentStyle | undefined)); - this._style_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._style_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._style_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStyleAttribute((undefined as TextInputStyle | TextContentStyle | undefined)); - } - } - } - if (this._caretStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._caretStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCaretStyleAttribute((this._caretStyle_0_0value as CaretStyle | undefined)); - this._caretStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._caretStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._caretStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCaretStyleAttribute((undefined as CaretStyle | undefined)); - } - } - } - if (this._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedBackgroundColorAttribute((this._selectedBackgroundColor_0_0value as ResourceColor | undefined)); - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedBackgroundColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._caretPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._caretPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCaretPositionAttribute((this._caretPosition_0_0value as number | undefined)); - this._caretPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._caretPosition_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._caretPosition_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCaretPositionAttribute((undefined as number | undefined)); - } - } - } - if (this._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableKeyboardOnFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableKeyboardOnFocusAttribute((this._enableKeyboardOnFocus_0_0value as boolean | undefined)); - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableKeyboardOnFocusAttribute((undefined as boolean | undefined)); - } - } - } - if (this._passwordIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._passwordIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPasswordIconAttribute((this._passwordIcon_0_0value as PasswordIcon | undefined)); - this._passwordIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._passwordIcon_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._passwordIcon_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPasswordIconAttribute((undefined as PasswordIcon | undefined)); - } - } - } - if (this._showError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showError_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowErrorAttribute((this._showError_0_0value as ResourceStr | undefined)); - this._showError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showError_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowErrorAttribute((undefined as ResourceStr | undefined)); - } - } - } - if (this._showUnit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showUnit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowUnitAttribute((this._showUnit_0_0value as CustomBuilder | undefined)); - this._showUnit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showUnit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showUnit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowUnitAttribute((undefined as CustomBuilder | undefined)); - } - } - } - if (this._showUnderline_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showUnderline_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowUnderlineAttribute((this._showUnderline_0_0value as boolean | undefined)); - this._showUnderline_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showUnderline_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showUnderline_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowUnderlineAttribute((undefined as boolean | undefined)); - } - } - } - if (this._underlineColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._underlineColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setUnderlineColorAttribute((this._underlineColor_0_0value as ResourceColor | UnderlineColor | undefined)); - this._underlineColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._underlineColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._underlineColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setUnderlineColorAttribute((undefined as ResourceColor | UnderlineColor | undefined)); - } - } - } - if (this._selectionMenuHidden_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectionMenuHidden_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectionMenuHiddenAttribute((this._selectionMenuHidden_0_0value as boolean | undefined)); - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectionMenuHiddenAttribute((undefined as boolean | undefined)); - } - } - } - if (this._barState_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._barState_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBarStateAttribute((this._barState_0_0value as BarState | undefined)); - this._barState_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._barState_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._barState_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBarStateAttribute((undefined as BarState | undefined)); - } - } - } - if (this._maxLines_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxLines_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxLinesAttribute((this._maxLines_0_0value as number | undefined)); - this._maxLines_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxLines_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxLines_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxLinesAttribute((undefined as number | undefined)); - } - } - } - if (this._wordBreak_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._wordBreak_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setWordBreakAttribute((this._wordBreak_0_0value as WordBreak | undefined)); - this._wordBreak_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._wordBreak_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._wordBreak_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setWordBreakAttribute((undefined as WordBreak | undefined)); - } - } - } - if (this._lineBreakStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._lineBreakStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLineBreakStrategyAttribute((this._lineBreakStrategy_0_0value as LineBreakStrategy | undefined)); - this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLineBreakStrategyAttribute((undefined as LineBreakStrategy | undefined)); - } - } - } - if (this._cancelButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cancelButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCancelButtonAttribute((this._cancelButton_0_0value as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); - this._cancelButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cancelButton_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cancelButton_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCancelButtonAttribute((undefined as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); - } - } - } - if (this._selectAll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectAll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectAllAttribute((this._selectAll_0_0value as boolean | undefined)); - this._selectAll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectAll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectAll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectAllAttribute((undefined as boolean | undefined)); - } - } - } - if (this._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinFontSizeAttribute((this._minFontSize_0_0value as number | string | Resource | undefined)); - this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minFontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinFontSizeAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._maxFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxFontSizeAttribute((this._maxFontSize_0_0value as number | string | Resource | undefined)); - this._maxFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxFontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxFontSizeAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinFontScaleAttribute((this._minFontScale_0_0value as number | Resource | undefined)); - this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minFontScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinFontScaleAttribute((undefined as number | Resource | undefined)); - } - } - } - if (this._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._maxFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMaxFontScaleAttribute((this._maxFontScale_0_0value as number | Resource | undefined)); - this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._maxFontScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._maxFontScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMaxFontScaleAttribute((undefined as number | Resource | undefined)); - } - } - } - if (this._heightAdaptivePolicy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._heightAdaptivePolicy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHeightAdaptivePolicyAttribute((this._heightAdaptivePolicy_0_0value as TextHeightAdaptivePolicy | undefined)); - this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHeightAdaptivePolicyAttribute((undefined as TextHeightAdaptivePolicy | undefined)); - } - } - } - if (this._enableAutoFill_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableAutoFill_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableAutoFillAttribute((this._enableAutoFill_0_0value as boolean | undefined)); - this._enableAutoFill_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableAutoFill_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableAutoFill_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableAutoFillAttribute((undefined as boolean | undefined)); - } - } - } - if (this._decoration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._decoration_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDecorationAttribute((this._decoration_0_0value as TextDecorationOptions | undefined)); - this._decoration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._decoration_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._decoration_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDecorationAttribute((undefined as TextDecorationOptions | undefined)); - } - } - } - if (this._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._letterSpacing_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLetterSpacingAttribute((this._letterSpacing_0_0value as number | string | Resource | undefined)); - this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._letterSpacing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._letterSpacing_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLetterSpacingAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._lineHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLineHeightAttribute((this._lineHeight_0_0value as number | string | Resource | undefined)); - this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._lineHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._lineHeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLineHeightAttribute((undefined as number | string | Resource | undefined)); - } - } - } - if (this._passwordRules_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._passwordRules_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPasswordRulesAttribute((this._passwordRules_0_0value as string | undefined)); - this._passwordRules_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._passwordRules_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._passwordRules_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPasswordRulesAttribute((undefined as string | undefined)); - } - } - } - if (this._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontFeature_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontFeatureAttribute((this._fontFeature_0_0value as string | undefined)); - this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontFeature_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontFeature_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontFeatureAttribute((undefined as string | undefined)); - } - } - } - if (this._showPassword_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showPassword_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowPasswordAttribute((this._showPassword_0_0value as boolean | undefined)); - this._showPassword_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showPassword_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showPassword_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowPasswordAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onSecurityStateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSecurityStateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSecurityStateChangeAttribute((this._onSecurityStateChange_0_0value as ((value0: boolean) => void) | undefined)); - this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSecurityStateChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (this._onWillInsert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillInsert_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillInsertAttribute((this._onWillInsert_0_0value as ((value0: InsertValue) => boolean) | undefined)); - this._onWillInsert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillInsert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillInsert_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillInsertAttribute((undefined as ((value0: InsertValue) => boolean) | undefined)); - } - } - } - if (this._onDidInsert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDidInsert_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDidInsertAttribute((this._onDidInsert_0_0value as ((value0: InsertValue) => void) | undefined)); - this._onDidInsert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDidInsert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDidInsert_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDidInsertAttribute((undefined as ((value0: InsertValue) => void) | undefined)); - } - } - } - if (this._onWillDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillDeleteAttribute((this._onWillDelete_0_0value as ((value0: DeleteValue) => boolean) | undefined)); - this._onWillDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillDelete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillDeleteAttribute((undefined as ((value0: DeleteValue) => boolean) | undefined)); - } - } - } - if (this._onDidDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDidDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDidDeleteAttribute((this._onDidDelete_0_0value as ((value0: DeleteValue) => void) | undefined)); - this._onDidDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDidDelete_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDidDelete_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDidDeleteAttribute((undefined as ((value0: DeleteValue) => void) | undefined)); - } - } - } - if (this._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._editMenuOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEditMenuOptionsAttribute((this._editMenuOptions_0_0value as EditMenuOptions | undefined)); - this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEditMenuOptionsAttribute((undefined as EditMenuOptions | undefined)); - } - } - } - if (this._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enablePreviewText_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnablePreviewTextAttribute((this._enablePreviewText_0_0value as boolean | undefined)); - this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnablePreviewTextAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); - } - } - } - if (this._autoCapitalizationMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._autoCapitalizationMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAutoCapitalizationModeAttribute((this._autoCapitalizationMode_0_0value as AutoCapitalizationMode | undefined)); - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAutoCapitalizationModeAttribute((undefined as AutoCapitalizationMode | undefined)); - } - } - } - if (this._halfLeading_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._halfLeading_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHalfLeadingAttribute((this._halfLeading_0_0value as boolean | undefined)); - this._halfLeading_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._halfLeading_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._halfLeading_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHalfLeadingAttribute((undefined as boolean | undefined)); - } - } - } - if (this._ellipsisMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._ellipsisMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEllipsisModeAttribute((this._ellipsisMode_0_0value as EllipsisMode | undefined)); - this._ellipsisMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._ellipsisMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._ellipsisMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEllipsisModeAttribute((undefined as EllipsisMode | undefined)); - } - } - } - if (this._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._stopBackPress_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setStopBackPressAttribute((this._stopBackPress_0_0value as boolean | undefined)); - this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._stopBackPress_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._stopBackPress_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setStopBackPressAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillChangeAttribute((this._onWillChange_0_0value as ((value0: EditableTextChangeValue) => boolean) | undefined)); - this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillChangeAttribute((undefined as ((value0: EditableTextChangeValue) => boolean) | undefined)); - } - } - } - if (this._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._keyboardAppearance_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setKeyboardAppearanceAttribute((this._keyboardAppearance_0_0value as KeyboardAppearance | undefined)); - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setKeyboardAppearanceAttribute((undefined as KeyboardAppearance | undefined)); - } - } - } - if (this._inputFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._inputFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setInputFilterAttribute((this._inputFilter_0_0value as ResourceStr | undefined), (this._inputFilter_0_1value as ((value0: string) => void) | undefined)); - this._inputFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._inputFilter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._inputFilter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setInputFilterAttribute((undefined as ResourceStr | undefined), (undefined as ((value0: string) => void) | undefined | undefined)); - } - } - } - if (this._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._customKeyboard_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCustomKeyboardAttribute((this._customKeyboard_0_0value as CustomBuilder | undefined), (this._customKeyboard_0_1value as KeyboardOptions | undefined)); - this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._customKeyboard_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._customKeyboard_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCustomKeyboardAttribute((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); - } - } - } - if (this._showCounter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._showCounter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setShowCounterAttribute((this._showCounter_0_0value as boolean | undefined), (this._showCounter_0_1value as InputCounterOptions | undefined)); - this._showCounter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._showCounter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._showCounter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setShowCounterAttribute((undefined as boolean | undefined), (undefined as InputCounterOptions | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: TextInputModifier): void { - super.mergeModifier(modifier) - if (modifier._type_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._type_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.type(modifier._type_0_0value); - break; - } - default: { - this.type((undefined as InputType | undefined)); - } - } - } - if (modifier._contentType_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._contentType_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.contentType(modifier._contentType_0_0value); - break; - } - default: { - this.contentType((undefined as ContentType | undefined)); - } - } - } - if (modifier._placeholderColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._placeholderColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.placeholderColor(modifier._placeholderColor_0_0value); - break; - } - default: { - this.placeholderColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._textOverflow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textOverflow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textOverflow(modifier._textOverflow_0_0value); - break; - } - default: { - this.textOverflow((undefined as TextOverflow | undefined)); - } - } - } - if (modifier._textIndent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textIndent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textIndent(modifier._textIndent_0_0value); - break; - } - default: { - this.textIndent((undefined as Dimension | undefined)); - } - } - } - if (modifier._placeholderFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._placeholderFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.placeholderFont(modifier._placeholderFont_0_0value); - break; - } - default: { - this.placeholderFont((undefined as Font | undefined)); - } - } - } - if (modifier._enterKeyType_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enterKeyType_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enterKeyType(modifier._enterKeyType_0_0value); - break; - } - default: { - this.enterKeyType((undefined as EnterKeyType | undefined)); - } - } - } - if (modifier._caretColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._caretColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.caretColor(modifier._caretColor_0_0value); - break; - } - default: { - this.caretColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._onEditChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onEditChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onEditChange(modifier._onEditChange_0_0value); - break; - } - default: { - this.onEditChange((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (modifier._onSubmit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSubmit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSubmit(modifier._onSubmit_0_0value); - break; - } - default: { - this.onSubmit((undefined as OnSubmitCallback | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as EditableTextOnChangeCallback | undefined)); - } - } - } - if (modifier._onTextSelectionChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTextSelectionChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTextSelectionChange(modifier._onTextSelectionChange_0_0value); - break; - } - default: { - this.onTextSelectionChange((undefined as OnTextSelectionChangeCallback | undefined)); - } - } - } - if (modifier._onContentScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onContentScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onContentScroll(modifier._onContentScroll_0_0value); - break; - } - default: { - this.onContentScroll((undefined as OnContentScrollCallback | undefined)); - } - } - } - if (modifier._maxLength_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxLength_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxLength(modifier._maxLength_0_0value); - break; - } - default: { - this.maxLength((undefined as number | undefined)); - } - } - } - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontSize(modifier._fontSize_0_0value); - break; - } - default: { - this.fontSize((undefined as Length | undefined)); - } - } - } - if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontStyle(modifier._fontStyle_0_0value); - break; - } - default: { - this.fontStyle((undefined as FontStyle | undefined)); - } - } - } - if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontWeight(modifier._fontWeight_0_0value); - break; - } - default: { - this.fontWeight((undefined as number | FontWeight | ResourceStr | undefined)); - } - } - } - if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontFamily(modifier._fontFamily_0_0value); - break; - } - default: { - this.fontFamily((undefined as ResourceStr | undefined)); - } - } - } - if (modifier._onCopy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onCopy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onCopy(modifier._onCopy_0_0value); - break; - } - default: { - this.onCopy((undefined as ((value0: string) => void) | undefined)); - } - } - } - if (modifier._onCut_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onCut_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onCut(modifier._onCut_0_0value); - break; - } - default: { - this.onCut((undefined as ((value0: string) => void) | undefined)); - } - } - } - if (modifier._onPaste_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPaste_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPaste(modifier._onPaste_0_0value); - break; - } - default: { - this.onPaste((undefined as OnPasteCallback | undefined)); - } - } - } - if (modifier._copyOption_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._copyOption_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.copyOption(modifier._copyOption_0_0value); - break; - } - default: { - this.copyOption((undefined as CopyOptions | undefined)); - } - } - } - if (modifier._showPasswordIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showPasswordIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showPasswordIcon(modifier._showPasswordIcon_0_0value); - break; - } - default: { - this.showPasswordIcon((undefined as boolean | undefined)); - } - } - } - if (modifier._textAlign_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textAlign_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textAlign(modifier._textAlign_0_0value); - break; - } - default: { - this.textAlign((undefined as TextAlign | undefined)); - } - } - } - if (modifier._style_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._style_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.style(modifier._style_0_0value); - break; - } - default: { - this.style((undefined as TextInputStyle | TextContentStyle | undefined)); - } - } - } - if (modifier._caretStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._caretStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.caretStyle(modifier._caretStyle_0_0value); - break; - } - default: { - this.caretStyle((undefined as CaretStyle | undefined)); - } - } - } - if (modifier._selectedBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedBackgroundColor(modifier._selectedBackgroundColor_0_0value); - break; - } - default: { - this.selectedBackgroundColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._caretPosition_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._caretPosition_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.caretPosition(modifier._caretPosition_0_0value); - break; - } - default: { - this.caretPosition((undefined as number | undefined)); - } - } - } - if (modifier._enableKeyboardOnFocus_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableKeyboardOnFocus_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableKeyboardOnFocus(modifier._enableKeyboardOnFocus_0_0value); - break; - } - default: { - this.enableKeyboardOnFocus((undefined as boolean | undefined)); - } - } - } - if (modifier._passwordIcon_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._passwordIcon_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.passwordIcon(modifier._passwordIcon_0_0value); - break; - } - default: { - this.passwordIcon((undefined as PasswordIcon | undefined)); - } - } - } - if (modifier._showError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showError_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showError(modifier._showError_0_0value); - break; - } - default: { - this.showError((undefined as ResourceStr | undefined)); - } - } - } - if (modifier._showUnit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showUnit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showUnit(modifier._showUnit_0_0value); - break; - } - default: { - this.showUnit((undefined as CustomBuilder | undefined)); - } - } - } - if (modifier._showUnderline_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showUnderline_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showUnderline(modifier._showUnderline_0_0value); - break; - } - default: { - this.showUnderline((undefined as boolean | undefined)); - } - } - } - if (modifier._underlineColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._underlineColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.underlineColor(modifier._underlineColor_0_0value); - break; - } - default: { - this.underlineColor((undefined as ResourceColor | UnderlineColor | undefined)); - } - } - } - if (modifier._selectionMenuHidden_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectionMenuHidden_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectionMenuHidden(modifier._selectionMenuHidden_0_0value); - break; - } - default: { - this.selectionMenuHidden((undefined as boolean | undefined)); - } - } - } - if (modifier._barState_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._barState_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.barState(modifier._barState_0_0value); - break; - } - default: { - this.barState((undefined as BarState | undefined)); - } - } - } - if (modifier._maxLines_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxLines_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxLines(modifier._maxLines_0_0value); - break; - } - default: { - this.maxLines((undefined as number | undefined)); - } - } - } - if (modifier._wordBreak_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._wordBreak_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.wordBreak(modifier._wordBreak_0_0value); - break; - } - default: { - this.wordBreak((undefined as WordBreak | undefined)); - } - } - } - if (modifier._lineBreakStrategy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._lineBreakStrategy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.lineBreakStrategy(modifier._lineBreakStrategy_0_0value); - break; - } - default: { - this.lineBreakStrategy((undefined as LineBreakStrategy | undefined)); - } - } - } - if (modifier._cancelButton_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cancelButton_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cancelButton(modifier._cancelButton_0_0value); - break; - } - default: { - this.cancelButton((undefined as CancelButtonOptions | CancelButtonSymbolOptions | undefined)); - } - } - } - if (modifier._selectAll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectAll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectAll(modifier._selectAll_0_0value); - break; - } - default: { - this.selectAll((undefined as boolean | undefined)); - } - } - } - if (modifier._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minFontSize(modifier._minFontSize_0_0value); - break; - } - default: { - this.minFontSize((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._maxFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxFontSize(modifier._maxFontSize_0_0value); - break; - } - default: { - this.maxFontSize((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._minFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minFontScale(modifier._minFontScale_0_0value); - break; - } - default: { - this.minFontScale((undefined as number | Resource | undefined)); - } - } - } - if (modifier._maxFontScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxFontScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxFontScale(modifier._maxFontScale_0_0value); - break; - } - default: { - this.maxFontScale((undefined as number | Resource | undefined)); - } - } - } - if (modifier._heightAdaptivePolicy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._heightAdaptivePolicy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.heightAdaptivePolicy(modifier._heightAdaptivePolicy_0_0value); - break; - } - default: { - this.heightAdaptivePolicy((undefined as TextHeightAdaptivePolicy | undefined)); - } - } - } - if (modifier._enableAutoFill_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableAutoFill_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableAutoFill(modifier._enableAutoFill_0_0value); - break; - } - default: { - this.enableAutoFill((undefined as boolean | undefined)); - } - } - } - if (modifier._decoration_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._decoration_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.decoration(modifier._decoration_0_0value); - break; - } - default: { - this.decoration((undefined as TextDecorationOptions | undefined)); - } - } - } - if (modifier._letterSpacing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._letterSpacing_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.letterSpacing(modifier._letterSpacing_0_0value); - break; - } - default: { - this.letterSpacing((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._lineHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._lineHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.lineHeight(modifier._lineHeight_0_0value); - break; - } - default: { - this.lineHeight((undefined as number | string | Resource | undefined)); - } - } - } - if (modifier._passwordRules_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._passwordRules_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.passwordRules(modifier._passwordRules_0_0value); - break; - } - default: { - this.passwordRules((undefined as string | undefined)); - } - } - } - if (modifier._fontFeature_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontFeature_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontFeature(modifier._fontFeature_0_0value); - break; - } - default: { - this.fontFeature((undefined as string | undefined)); - } - } - } - if (modifier._showPassword_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showPassword_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showPassword(modifier._showPassword_0_0value); - break; - } - default: { - this.showPassword((undefined as boolean | undefined)); - } - } - } - if (modifier._onSecurityStateChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSecurityStateChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSecurityStateChange(modifier._onSecurityStateChange_0_0value); - break; - } - default: { - this.onSecurityStateChange((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (modifier._onWillInsert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillInsert_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillInsert(modifier._onWillInsert_0_0value); - break; - } - default: { - this.onWillInsert((undefined as ((value0: InsertValue) => boolean) | undefined)); - } - } - } - if (modifier._onDidInsert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDidInsert_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDidInsert(modifier._onDidInsert_0_0value); - break; - } - default: { - this.onDidInsert((undefined as ((value0: InsertValue) => void) | undefined)); - } - } - } - if (modifier._onWillDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillDelete(modifier._onWillDelete_0_0value); - break; - } - default: { - this.onWillDelete((undefined as ((value0: DeleteValue) => boolean) | undefined)); - } - } - } - if (modifier._onDidDelete_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDidDelete_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDidDelete(modifier._onDidDelete_0_0value); - break; - } - default: { - this.onDidDelete((undefined as ((value0: DeleteValue) => void) | undefined)); - } - } - } - if (modifier._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._editMenuOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.editMenuOptions(modifier._editMenuOptions_0_0value); - break; - } - default: { - this.editMenuOptions((undefined as EditMenuOptions | undefined)); - } - } - } - if (modifier._enablePreviewText_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enablePreviewText_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enablePreviewText(modifier._enablePreviewText_0_0value); - break; - } - default: { - this.enablePreviewText((undefined as boolean | undefined)); - } - } - } - if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); - break; - } - default: { - this.enableHapticFeedback((undefined as boolean | undefined)); - } - } - } - if (modifier._autoCapitalizationMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._autoCapitalizationMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.autoCapitalizationMode(modifier._autoCapitalizationMode_0_0value); - break; - } - default: { - this.autoCapitalizationMode((undefined as AutoCapitalizationMode | undefined)); - } - } - } - if (modifier._halfLeading_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._halfLeading_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.halfLeading(modifier._halfLeading_0_0value); - break; - } - default: { - this.halfLeading((undefined as boolean | undefined)); - } - } - } - if (modifier._ellipsisMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._ellipsisMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.ellipsisMode(modifier._ellipsisMode_0_0value); - break; - } - default: { - this.ellipsisMode((undefined as EllipsisMode | undefined)); - } - } - } - if (modifier._stopBackPress_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._stopBackPress_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.stopBackPress(modifier._stopBackPress_0_0value); - break; - } - default: { - this.stopBackPress((undefined as boolean | undefined)); - } - } - } - if (modifier._onWillChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillChange(modifier._onWillChange_0_0value); - break; - } - default: { - this.onWillChange((undefined as ((value0: EditableTextChangeValue) => boolean) | undefined)); - } - } - } - if (modifier._keyboardAppearance_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._keyboardAppearance_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.keyboardAppearance(modifier._keyboardAppearance_0_0value); - break; - } - default: { - this.keyboardAppearance((undefined as KeyboardAppearance | undefined)); - } - } - } - if (modifier._inputFilter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._inputFilter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.inputFilter(modifier._inputFilter_0_0value, modifier._inputFilter_0_1value); - break; - } - default: { - this.inputFilter((undefined as ResourceStr | undefined), (undefined as ((value0: string) => void) | undefined | undefined)); - } - } - } - if (modifier._customKeyboard_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._customKeyboard_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.customKeyboard(modifier._customKeyboard_0_0value, modifier._customKeyboard_0_1value); - break; - } - default: { - this.customKeyboard((undefined as CustomBuilder | undefined), (undefined as KeyboardOptions | undefined | undefined)); - } - } - } - if (modifier._showCounter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._showCounter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.showCounter(modifier._showCounter_0_0value, modifier._showCounter_0_1value); - break; - } - default: { - this.showCounter((undefined as boolean | undefined), (undefined as InputCounterOptions | undefined | undefined)); - } - } - } - } - type(value: InputType | undefined): this { - if (((this._type_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._type_0_flag = AttributeUpdaterFlag.UPDATE - this._type_0_0value = value - } else - { - this._type_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - contentType(value: ContentType | undefined): this { - if (((this._contentType_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._contentType_0_flag = AttributeUpdaterFlag.UPDATE - this._contentType_0_0value = value - } else - { - this._contentType_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - placeholderColor(value: ResourceColor | undefined): this { - if (((this._placeholderColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._placeholderColor_0_flag = AttributeUpdaterFlag.UPDATE - this._placeholderColor_0_0value = value - } else - { - this._placeholderColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textOverflow(value: TextOverflow | undefined): this { - if (((this._textOverflow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textOverflow_0_flag = AttributeUpdaterFlag.UPDATE - this._textOverflow_0_0value = value - } else - { - this._textOverflow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textIndent(value: Dimension | undefined): this { - if (((this._textIndent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textIndent_0_flag = AttributeUpdaterFlag.UPDATE - this._textIndent_0_0value = value - } else - { - this._textIndent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - placeholderFont(value: Font | undefined): this { - if (((this._placeholderFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._placeholderFont_0_flag = AttributeUpdaterFlag.UPDATE - this._placeholderFont_0_0value = value - } else - { - this._placeholderFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enterKeyType(value: EnterKeyType | undefined): this { - if (((this._enterKeyType_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._enterKeyType_0_flag = AttributeUpdaterFlag.UPDATE - this._enterKeyType_0_0value = value - } else - { - this._enterKeyType_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - caretColor(value: ResourceColor | undefined): this { - if (((this._caretColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._caretColor_0_flag = AttributeUpdaterFlag.UPDATE - this._caretColor_0_0value = value - } else - { - this._caretColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onEditChange(value: ((value0: boolean) => void) | undefined): this { - if (((this._onEditChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onEditChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onEditChange_0_0value = value - } else - { - this._onEditChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSubmit(value: OnSubmitCallback | undefined): this { - if (((this._onSubmit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSubmit_0_flag = AttributeUpdaterFlag.UPDATE - this._onSubmit_0_0value = value - } else - { - this._onSubmit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: EditableTextOnChangeCallback | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTextSelectionChange(value: OnTextSelectionChangeCallback | undefined): this { - if (((this._onTextSelectionChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onTextSelectionChange_0_0value = value - } else - { - this._onTextSelectionChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onContentScroll(value: OnContentScrollCallback | undefined): this { - if (((this._onContentScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onContentScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onContentScroll_0_0value = value - } else - { - this._onContentScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxLength(value: number | undefined): this { - if (((this._maxLength_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLength_0_0value) !== (value))) - { - this._maxLength_0_flag = AttributeUpdaterFlag.UPDATE - this._maxLength_0_0value = value - } else - { - this._maxLength_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontColor(value: ResourceColor | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontSize(value: Length | undefined): this { - if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fontSize_0_0value = value - } else - { - this._fontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontStyle(value: FontStyle | undefined): this { - if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._fontStyle_0_0value = value - } else - { - this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontWeight(value: number | FontWeight | ResourceStr | undefined): this { - if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._fontWeight_0_0value = value - } else - { - this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontFamily(value: ResourceStr | undefined): this { - if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE - this._fontFamily_0_0value = value - } else - { - this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onCopy(value: ((value0: string) => void) | undefined): this { - if (((this._onCopy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onCopy_0_flag = AttributeUpdaterFlag.UPDATE - this._onCopy_0_0value = value - } else - { - this._onCopy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onCut(value: ((value0: string) => void) | undefined): this { - if (((this._onCut_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onCut_0_flag = AttributeUpdaterFlag.UPDATE - this._onCut_0_0value = value - } else - { - this._onCut_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPaste(value: OnPasteCallback | undefined): this { - if (((this._onPaste_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPaste_0_flag = AttributeUpdaterFlag.UPDATE - this._onPaste_0_0value = value - } else - { - this._onPaste_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - copyOption(value: CopyOptions | undefined): this { - if (((this._copyOption_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._copyOption_0_flag = AttributeUpdaterFlag.UPDATE - this._copyOption_0_0value = value - } else - { - this._copyOption_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - showPasswordIcon(value: boolean | undefined): this { - if (((this._showPasswordIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showPasswordIcon_0_0value) !== (value))) - { - this._showPasswordIcon_0_flag = AttributeUpdaterFlag.UPDATE - this._showPasswordIcon_0_0value = value - } else - { - this._showPasswordIcon_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textAlign(value: TextAlign | undefined): this { - if (((this._textAlign_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textAlign_0_flag = AttributeUpdaterFlag.UPDATE - this._textAlign_0_0value = value - } else - { - this._textAlign_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - style(value: TextInputStyle | TextContentStyle | undefined): this { - if (((this._style_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._style_0_flag = AttributeUpdaterFlag.UPDATE - this._style_0_0value = value - } else - { - this._style_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - caretStyle(value: CaretStyle | undefined): this { - if (((this._caretStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._caretStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._caretStyle_0_0value = value - } else - { - this._caretStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedBackgroundColor(value: ResourceColor | undefined): this { - if (((this._selectedBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedBackgroundColor_0_0value = value - } else - { - this._selectedBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - caretPosition(value: number | undefined): this { - if (((this._caretPosition_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._caretPosition_0_0value) !== (value))) - { - this._caretPosition_0_flag = AttributeUpdaterFlag.UPDATE - this._caretPosition_0_0value = value - } else - { - this._caretPosition_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableKeyboardOnFocus(value: boolean | undefined): this { - if (((this._enableKeyboardOnFocus_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableKeyboardOnFocus_0_0value) !== (value))) - { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.UPDATE - this._enableKeyboardOnFocus_0_0value = value - } else - { - this._enableKeyboardOnFocus_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - passwordIcon(value: PasswordIcon | undefined): this { - if (((this._passwordIcon_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._passwordIcon_0_flag = AttributeUpdaterFlag.UPDATE - this._passwordIcon_0_0value = value - } else - { - this._passwordIcon_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - showError(value: ResourceStr | undefined): this { - if (((this._showError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._showError_0_flag = AttributeUpdaterFlag.UPDATE - this._showError_0_0value = value - } else - { - this._showError_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - showUnit(value: CustomBuilder | undefined): this { - if (((this._showUnit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._showUnit_0_flag = AttributeUpdaterFlag.UPDATE - this._showUnit_0_0value = value - } else - { - this._showUnit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - showUnderline(value: boolean | undefined): this { - if (((this._showUnderline_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showUnderline_0_0value) !== (value))) - { - this._showUnderline_0_flag = AttributeUpdaterFlag.UPDATE - this._showUnderline_0_0value = value - } else - { - this._showUnderline_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - underlineColor(value: ResourceColor | UnderlineColor | undefined): this { - if (((this._underlineColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._underlineColor_0_flag = AttributeUpdaterFlag.UPDATE - this._underlineColor_0_0value = value - } else - { - this._underlineColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectionMenuHidden(value: boolean | undefined): this { - if (((this._selectionMenuHidden_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectionMenuHidden_0_0value) !== (value))) - { - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.UPDATE - this._selectionMenuHidden_0_0value = value - } else - { - this._selectionMenuHidden_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - barState(value: BarState | undefined): this { - if (((this._barState_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._barState_0_flag = AttributeUpdaterFlag.UPDATE - this._barState_0_0value = value - } else - { - this._barState_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxLines(value: number | undefined): this { - if (((this._maxLines_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._maxLines_0_0value) !== (value))) - { - this._maxLines_0_flag = AttributeUpdaterFlag.UPDATE - this._maxLines_0_0value = value - } else - { - this._maxLines_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - wordBreak(value: WordBreak | undefined): this { - if (((this._wordBreak_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._wordBreak_0_flag = AttributeUpdaterFlag.UPDATE - this._wordBreak_0_0value = value - } else - { - this._wordBreak_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - lineBreakStrategy(value: LineBreakStrategy | undefined): this { - if (((this._lineBreakStrategy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.UPDATE - this._lineBreakStrategy_0_0value = value - } else - { - this._lineBreakStrategy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions | undefined): this { - if (((this._cancelButton_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._cancelButton_0_flag = AttributeUpdaterFlag.UPDATE - this._cancelButton_0_0value = value - } else - { - this._cancelButton_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectAll(value: boolean | undefined): this { - if (((this._selectAll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectAll_0_0value) !== (value))) - { - this._selectAll_0_flag = AttributeUpdaterFlag.UPDATE - this._selectAll_0_0value = value - } else - { - this._selectAll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minFontSize(value: number | string | Resource | undefined): this { - if (((this._minFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minFontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._minFontSize_0_0value = value - } else - { - this._minFontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxFontSize(value: number | string | Resource | undefined): this { - if (((this._maxFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._maxFontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._maxFontSize_0_0value = value - } else - { - this._maxFontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minFontScale(value: number | Resource | undefined): this { - if (((this._minFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minFontScale_0_flag = AttributeUpdaterFlag.UPDATE - this._minFontScale_0_0value = value - } else - { - this._minFontScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxFontScale(value: number | Resource | undefined): this { - if (((this._maxFontScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._maxFontScale_0_flag = AttributeUpdaterFlag.UPDATE - this._maxFontScale_0_0value = value - } else - { - this._maxFontScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - heightAdaptivePolicy(value: TextHeightAdaptivePolicy | undefined): this { - if (((this._heightAdaptivePolicy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.UPDATE - this._heightAdaptivePolicy_0_0value = value - } else - { - this._heightAdaptivePolicy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableAutoFill(value: boolean | undefined): this { - if (((this._enableAutoFill_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAutoFill_0_0value) !== (value))) - { - this._enableAutoFill_0_flag = AttributeUpdaterFlag.UPDATE - this._enableAutoFill_0_0value = value - } else - { - this._enableAutoFill_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - decoration(value: TextDecorationOptions | undefined): this { - if (((this._decoration_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._decoration_0_flag = AttributeUpdaterFlag.UPDATE - this._decoration_0_0value = value - } else - { - this._decoration_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - letterSpacing(value: number | string | Resource | undefined): this { - if (((this._letterSpacing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._letterSpacing_0_flag = AttributeUpdaterFlag.UPDATE - this._letterSpacing_0_0value = value - } else - { - this._letterSpacing_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - lineHeight(value: number | string | Resource | undefined): this { - if (((this._lineHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._lineHeight_0_flag = AttributeUpdaterFlag.UPDATE - this._lineHeight_0_0value = value - } else - { - this._lineHeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - passwordRules(value: string | undefined): this { - if (((this._passwordRules_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._passwordRules_0_0value) !== (value))) - { - this._passwordRules_0_flag = AttributeUpdaterFlag.UPDATE - this._passwordRules_0_0value = value - } else - { - this._passwordRules_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontFeature(value: string | undefined): this { - if (((this._fontFeature_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fontFeature_0_0value) !== (value))) - { - this._fontFeature_0_flag = AttributeUpdaterFlag.UPDATE - this._fontFeature_0_0value = value - } else - { - this._fontFeature_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - showPassword(value: boolean | undefined): this { - if (((this._showPassword_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showPassword_0_0value) !== (value))) - { - this._showPassword_0_flag = AttributeUpdaterFlag.UPDATE - this._showPassword_0_0value = value - } else - { - this._showPassword_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSecurityStateChange(value: ((value0: boolean) => void) | undefined): this { - if (((this._onSecurityStateChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onSecurityStateChange_0_0value = value - } else - { - this._onSecurityStateChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillInsert(value: ((value0: InsertValue) => boolean) | undefined): this { - if (((this._onWillInsert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillInsert_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillInsert_0_0value = value - } else - { - this._onWillInsert_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDidInsert(value: ((value0: InsertValue) => void) | undefined): this { - if (((this._onDidInsert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDidInsert_0_flag = AttributeUpdaterFlag.UPDATE - this._onDidInsert_0_0value = value - } else - { - this._onDidInsert_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillDelete(value: ((value0: DeleteValue) => boolean) | undefined): this { - if (((this._onWillDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillDelete_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillDelete_0_0value = value - } else - { - this._onWillDelete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDidDelete(value: ((value0: DeleteValue) => void) | undefined): this { - if (((this._onDidDelete_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDidDelete_0_flag = AttributeUpdaterFlag.UPDATE - this._onDidDelete_0_0value = value - } else - { - this._onDidDelete_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - editMenuOptions(value: EditMenuOptions | undefined): this { - if (((this._editMenuOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._editMenuOptions_0_0value = value - } else - { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enablePreviewText(value: boolean | undefined): this { - if (((this._enablePreviewText_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enablePreviewText_0_0value) !== (value))) - { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.UPDATE - this._enablePreviewText_0_0value = value - } else - { - this._enablePreviewText_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableHapticFeedback(value: boolean | undefined): this { - if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE - this._enableHapticFeedback_0_0value = value - } else - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - autoCapitalizationMode(value: AutoCapitalizationMode | undefined): this { - if (((this._autoCapitalizationMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.UPDATE - this._autoCapitalizationMode_0_0value = value - } else - { - this._autoCapitalizationMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - halfLeading(value: boolean | undefined): this { - if (((this._halfLeading_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._halfLeading_0_0value) !== (value))) - { - this._halfLeading_0_flag = AttributeUpdaterFlag.UPDATE - this._halfLeading_0_0value = value - } else - { - this._halfLeading_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - ellipsisMode(value: EllipsisMode | undefined): this { - if (((this._ellipsisMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._ellipsisMode_0_flag = AttributeUpdaterFlag.UPDATE - this._ellipsisMode_0_0value = value - } else - { - this._ellipsisMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - stopBackPress(value: boolean | undefined): this { - if (((this._stopBackPress_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._stopBackPress_0_0value) !== (value))) - { - this._stopBackPress_0_flag = AttributeUpdaterFlag.UPDATE - this._stopBackPress_0_0value = value - } else - { - this._stopBackPress_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillChange(value: ((value0: EditableTextChangeValue) => boolean) | undefined): this { - if (((this._onWillChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillChange_0_0value = value - } else - { - this._onWillChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - keyboardAppearance(value: KeyboardAppearance | undefined): this { - if (((this._keyboardAppearance_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.UPDATE - this._keyboardAppearance_0_0value = value - } else - { - this._keyboardAppearance_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - inputFilter(value: ResourceStr | undefined, error?: ((value0: string) => void)): this { - if (((this._inputFilter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._inputFilter_0_flag = AttributeUpdaterFlag.UPDATE - this._inputFilter_0_0value = value - this._inputFilter_0_1value = error - } else - { - this._inputFilter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - customKeyboard(value: CustomBuilder | undefined, options?: KeyboardOptions): this { - if (((this._customKeyboard_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true)) - { - this._customKeyboard_0_flag = AttributeUpdaterFlag.UPDATE - this._customKeyboard_0_0value = value - this._customKeyboard_0_1value = options - } else - { - this._customKeyboard_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - showCounter(value: boolean | undefined, options?: InputCounterOptions): this { - if (((this._showCounter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._showCounter_0_0value) !== (value)) || (true)) - { - this._showCounter_0_flag = AttributeUpdaterFlag.UPDATE - this._showCounter_0_0value = value - this._showCounter_0_1value = options - } else - { - this._showCounter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class SubmitEvent_serializer { public static write(buffer: SerializerBase, value: SubmitEvent): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/textPicker.ets b/arkoala-arkts/arkui/generated/component/textPicker.ets similarity index 82% rename from arkoala-arkts/arkui/src/component/textPicker.ets rename to arkoala-arkts/arkui/generated/component/textPicker.ets index 1a4e8ea6da9adcca92f381aa3b7e37993cf99525..690008fa4331c5517ccdce8b1f860b42376cf27d 100644 --- a/arkoala-arkts/arkui/src/component/textPicker.ets +++ b/arkoala-arkts/arkui/generated/component/textPicker.ets @@ -20,20 +20,20 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 { 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 { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTextStyle, Bindable, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle, 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 } from "./../framework/resource" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { Dimension, ResourceStr, ResourceColor, Offset, Font_serializer, Font, Offset_serializer } from "./units" +import { Resource } from "global.resource" import { CrownSensitivity, Color, TextOverflow } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetrics, LengthMetrics_serializer } from "./../Graphics" import { DialogAlignment } from "./alertDialog" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class TextPickerDialogInternal { public static fromPtr(ptr: KPointer): TextPickerDialog { return new TextPickerDialog(ptr) @@ -634,681 +634,6 @@ export function TextPicker( }) } -export class TextPickerModifier extends CommonMethodModifier implements TextPickerAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _defaultPickerItemHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _defaultPickerItemHeight_0_0value?: number | string | undefined - _canLoop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _canLoop_0_0value?: boolean | undefined - _disappearTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _disappearTextStyle_0_0value?: PickerTextStyle | undefined - _textStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textStyle_0_0value?: PickerTextStyle | undefined - _selectedTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedTextStyle_0_0value?: PickerTextStyle | undefined - _disableTextStyleAnimation_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _disableTextStyleAnimation_0_0value?: boolean | undefined - _defaultTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _defaultTextStyle_0_0value?: TextPickerTextStyle | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: OnTextPickerChangeCallback | undefined - _onScrollStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollStop_0_0value?: TextPickerScrollStopCallback | undefined - _onEnterSelectedArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onEnterSelectedArea_0_0value?: TextPickerEnterSelectedAreaCallback | undefined - _selectedIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedIndex_0_0value?: number | Array | undefined - _divider_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _divider_0_0value?: DividerOptions | undefined - _gradientHeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _gradientHeight_0_0value?: Dimension | undefined - _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableHapticFeedback_0_0value?: boolean | undefined - _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined - applyModifierPatch(peer: ArkTextPickerPeer): void { - super.applyModifierPatch(peer) - if (this._defaultPickerItemHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._defaultPickerItemHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDefaultPickerItemHeightAttribute((this._defaultPickerItemHeight_0_0value as number | string | undefined)); - this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDefaultPickerItemHeightAttribute((undefined as number | string | undefined)); - } - } - } - if (this._canLoop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._canLoop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCanLoopAttribute((this._canLoop_0_0value as boolean | undefined)); - this._canLoop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._canLoop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._canLoop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCanLoopAttribute((undefined as boolean | undefined)); - } - } - } - if (this._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._disappearTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDisappearTextStyleAttribute((this._disappearTextStyle_0_0value as PickerTextStyle | undefined)); - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDisappearTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextStyleAttribute((this._textStyle_0_0value as PickerTextStyle | undefined)); - this._textStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedTextStyleAttribute((this._selectedTextStyle_0_0value as PickerTextStyle | undefined)); - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._disableTextStyleAnimation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._disableTextStyleAnimation_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDisableTextStyleAnimationAttribute((this._disableTextStyleAnimation_0_0value as boolean | undefined)); - this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDisableTextStyleAnimationAttribute((undefined as boolean | undefined)); - } - } - } - if (this._defaultTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._defaultTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDefaultTextStyleAttribute((this._defaultTextStyle_0_0value as TextPickerTextStyle | undefined)); - this._defaultTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._defaultTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._defaultTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDefaultTextStyleAttribute((undefined as TextPickerTextStyle | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as OnTextPickerChangeCallback | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as OnTextPickerChangeCallback | undefined)); - } - } - } - if (this._onScrollStop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollStop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollStopAttribute((this._onScrollStop_0_0value as TextPickerScrollStopCallback | 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 TextPickerScrollStopCallback | undefined)); - } - } - } - if (this._onEnterSelectedArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onEnterSelectedArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnEnterSelectedAreaAttribute((this._onEnterSelectedArea_0_0value as TextPickerEnterSelectedAreaCallback | undefined)); - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnEnterSelectedAreaAttribute((undefined as TextPickerEnterSelectedAreaCallback | undefined)); - } - } - } - if (this._selectedIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedIndexAttribute((this._selectedIndex_0_0value as number | Array | undefined)); - this._selectedIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedIndex_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedIndexAttribute((undefined as number | Array | undefined)); - } - } - } - if (this._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDividerAttribute((this._divider_0_0value as DividerOptions | undefined)); - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._divider_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._divider_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDividerAttribute((undefined as DividerOptions | undefined)); - } - } - } - if (this._gradientHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._gradientHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGradientHeightAttribute((this._gradientHeight_0_0value as Dimension | undefined)); - this._gradientHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._gradientHeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._gradientHeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setGradientHeightAttribute((undefined as Dimension | undefined)); - } - } - } - if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableHapticFeedbackAttribute((undefined as boolean | 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)); - } - } - } - } - mergeModifier(modifier: TextPickerModifier): void { - super.mergeModifier(modifier) - if (modifier._defaultPickerItemHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._defaultPickerItemHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.defaultPickerItemHeight(modifier._defaultPickerItemHeight_0_0value); - break; - } - default: { - this.defaultPickerItemHeight((undefined as number | string | undefined)); - } - } - } - if (modifier._canLoop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._canLoop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.canLoop(modifier._canLoop_0_0value); - break; - } - default: { - this.canLoop((undefined as boolean | undefined)); - } - } - } - if (modifier._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._disappearTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.disappearTextStyle(modifier._disappearTextStyle_0_0value); - break; - } - default: { - this.disappearTextStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textStyle(modifier._textStyle_0_0value); - break; - } - default: { - this.textStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedTextStyle(modifier._selectedTextStyle_0_0value); - break; - } - default: { - this.selectedTextStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._disableTextStyleAnimation_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._disableTextStyleAnimation_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.disableTextStyleAnimation(modifier._disableTextStyleAnimation_0_0value); - break; - } - default: { - this.disableTextStyleAnimation((undefined as boolean | undefined)); - } - } - } - if (modifier._defaultTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._defaultTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.defaultTextStyle(modifier._defaultTextStyle_0_0value); - break; - } - default: { - this.defaultTextStyle((undefined as TextPickerTextStyle | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as OnTextPickerChangeCallback | 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 TextPickerScrollStopCallback | undefined)); - } - } - } - if (modifier._onEnterSelectedArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onEnterSelectedArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onEnterSelectedArea(modifier._onEnterSelectedArea_0_0value); - break; - } - default: { - this.onEnterSelectedArea((undefined as TextPickerEnterSelectedAreaCallback | undefined)); - } - } - } - if (modifier._selectedIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedIndex(modifier._selectedIndex_0_0value); - break; - } - default: { - this.selectedIndex((undefined as number | Array | undefined)); - } - } - } - if (modifier._divider_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._divider_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.divider(modifier._divider_0_0value); - break; - } - default: { - this.divider((undefined as DividerOptions | undefined)); - } - } - } - if (modifier._gradientHeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._gradientHeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.gradientHeight(modifier._gradientHeight_0_0value); - break; - } - default: { - this.gradientHeight((undefined as Dimension | undefined)); - } - } - } - if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); - break; - } - default: { - this.enableHapticFeedback((undefined as boolean | 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)); - } - } - } - } - defaultPickerItemHeight(value: number | string | undefined): this { - if (((this._defaultPickerItemHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultPickerItemHeight_0_0value) !== (value))) - { - this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.UPDATE - this._defaultPickerItemHeight_0_0value = value - } else - { - this._defaultPickerItemHeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - canLoop(value: boolean | undefined): this { - if (((this._canLoop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._canLoop_0_0value) !== (value))) - { - this._canLoop_0_flag = AttributeUpdaterFlag.UPDATE - this._canLoop_0_0value = value - } else - { - this._canLoop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - disappearTextStyle(value: PickerTextStyle | undefined): this { - if (((this._disappearTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._disappearTextStyle_0_0value = value - } else - { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textStyle(value: PickerTextStyle | undefined): this { - if (((this._textStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._textStyle_0_0value = value - } else - { - this._textStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedTextStyle(value: PickerTextStyle | undefined): this { - if (((this._selectedTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedTextStyle_0_0value = value - } else - { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - disableTextStyleAnimation(value: boolean | undefined): this { - if (((this._disableTextStyleAnimation_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._disableTextStyleAnimation_0_0value) !== (value))) - { - this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.UPDATE - this._disableTextStyleAnimation_0_0value = value - } else - { - this._disableTextStyleAnimation_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - defaultTextStyle(value: TextPickerTextStyle | undefined): this { - if (((this._defaultTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._defaultTextStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._defaultTextStyle_0_0value = value - } else - { - this._defaultTextStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: OnTextPickerChangeCallback | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollStop(value: TextPickerScrollStopCallback | 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 - } - onEnterSelectedArea(value: TextPickerEnterSelectedAreaCallback | undefined): this { - if (((this._onEnterSelectedArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.UPDATE - this._onEnterSelectedArea_0_0value = value - } else - { - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedIndex(value: number | Array | undefined): this { - if (((this._selectedIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._selectedIndex_0_0value) !== (value))) - { - this._selectedIndex_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedIndex_0_0value = value - } else - { - this._selectedIndex_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - divider(value: DividerOptions | undefined): this { - if (((this._divider_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._divider_0_flag = AttributeUpdaterFlag.UPDATE - this._divider_0_0value = value - } else - { - this._divider_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - gradientHeight(value: Dimension | undefined): this { - if (((this._gradientHeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._gradientHeight_0_flag = AttributeUpdaterFlag.UPDATE - this._gradientHeight_0_0value = value - } else - { - this._gradientHeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableHapticFeedback(value: boolean | undefined): this { - if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE - this._enableHapticFeedback_0_0value = value - } else - { - this._enableHapticFeedback_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 - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class TextPickerDialog_serializer { public static write(buffer: SerializerBase, value: TextPickerDialog): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/textTimer.ets b/arkoala-arkts/arkui/generated/component/textTimer.ets similarity index 62% rename from arkoala-arkts/arkui/src/component/textTimer.ets rename to arkoala-arkts/arkui/generated/component/textTimer.ets index ba262770b5e5ed891936c0eb1898c036dcd7f105..7585c3757b2c85f8b6917155bafd072f8fc93c4d 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, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 { ShadowOptions_serializer, ArkCommonMethodPeer, CommonMethod, ShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { Resource_serializer } from "./../framework/resource" +import { ShadowOptions_serializer, ArkCommonMethodPeer, CommonMethod, ShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle } 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 { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, hookTextTimerContentModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class TextTimerControllerInternal { public static fromPtr(ptr: KPointer): TextTimerController { return new TextTimerController(ptr) @@ -461,373 +461,6 @@ export function TextTimer( }) } -export class TextTimerModifier extends CommonMethodModifier implements TextTimerAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _format_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _format_0_0value?: string | undefined - _fontColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontColor_0_0value?: ResourceColor | undefined - _fontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontSize_0_0value?: Length | undefined - _fontStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontStyle_0_0value?: FontStyle | undefined - _fontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontWeight_0_0value?: number | FontWeight | ResourceStr | undefined - _fontFamily_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fontFamily_0_0value?: ResourceStr | undefined - _onTimer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTimer_0_0value?: ((utc: number,elapsedTime: number) => void) | undefined - _textShadow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textShadow_0_0value?: ShadowOptions | Array | undefined - applyModifierPatch(peer: ArkTextTimerPeer): void { - super.applyModifierPatch(peer) - if (this._format_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._format_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFormatAttribute((this._format_0_0value as string | undefined)); - this._format_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._format_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._format_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFormatAttribute((undefined as string | undefined)); - } - } - } - if (this._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontColorAttribute((this._fontColor_0_0value as ResourceColor | undefined)); - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontSizeAttribute((this._fontSize_0_0value as Length | undefined)); - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontSizeAttribute((undefined as Length | undefined)); - } - } - } - if (this._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontStyleAttribute((this._fontStyle_0_0value as FontStyle | undefined)); - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontStyleAttribute((undefined as FontStyle | undefined)); - } - } - } - if (this._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontWeightAttribute((this._fontWeight_0_0value as number | FontWeight | ResourceStr | undefined)); - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontWeightAttribute((undefined as number | FontWeight | ResourceStr | undefined)); - } - } - } - if (this._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFontFamilyAttribute((this._fontFamily_0_0value as ResourceStr | undefined)); - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fontFamily_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fontFamily_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFontFamilyAttribute((undefined as ResourceStr | undefined)); - } - } - } - if (this._onTimer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTimer_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTimerAttribute((this._onTimer_0_0value as ((utc: number,elapsedTime: number) => void) | undefined)); - this._onTimer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTimer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTimer_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTimerAttribute((undefined as ((utc: number,elapsedTime: number) => void) | undefined)); - } - } - } - if (this._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextShadowAttribute((this._textShadow_0_0value as ShadowOptions | Array | undefined)); - this._textShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textShadow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textShadow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextShadowAttribute((undefined as ShadowOptions | Array | undefined)); - } - } - } - } - mergeModifier(modifier: TextTimerModifier): void { - super.mergeModifier(modifier) - if (modifier._format_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._format_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.format(modifier._format_0_0value); - break; - } - default: { - this.format((undefined as string | undefined)); - } - } - } - if (modifier._fontColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontColor(modifier._fontColor_0_0value); - break; - } - default: { - this.fontColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._fontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontSize(modifier._fontSize_0_0value); - break; - } - default: { - this.fontSize((undefined as Length | undefined)); - } - } - } - if (modifier._fontStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontStyle(modifier._fontStyle_0_0value); - break; - } - default: { - this.fontStyle((undefined as FontStyle | undefined)); - } - } - } - if (modifier._fontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontWeight(modifier._fontWeight_0_0value); - break; - } - default: { - this.fontWeight((undefined as number | FontWeight | ResourceStr | undefined)); - } - } - } - if (modifier._fontFamily_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fontFamily_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fontFamily(modifier._fontFamily_0_0value); - break; - } - default: { - this.fontFamily((undefined as ResourceStr | undefined)); - } - } - } - if (modifier._onTimer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTimer_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTimer(modifier._onTimer_0_0value); - break; - } - default: { - this.onTimer((undefined as ((utc: number,elapsedTime: number) => void) | undefined)); - } - } - } - if (modifier._textShadow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textShadow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textShadow(modifier._textShadow_0_0value); - break; - } - default: { - this.textShadow((undefined as ShadowOptions | Array | undefined)); - } - } - } - } - format(value: string | undefined): this { - if (((this._format_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._format_0_0value) !== (value))) - { - this._format_0_flag = AttributeUpdaterFlag.UPDATE - this._format_0_0value = value - } else - { - this._format_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontColor(value: ResourceColor | undefined): this { - if (((this._fontColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontColor_0_flag = AttributeUpdaterFlag.UPDATE - this._fontColor_0_0value = value - } else - { - this._fontColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontSize(value: Length | undefined): this { - if (((this._fontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._fontSize_0_0value = value - } else - { - this._fontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontStyle(value: FontStyle | undefined): this { - if (((this._fontStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._fontStyle_0_0value = value - } else - { - this._fontStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontWeight(value: number | FontWeight | ResourceStr | undefined): this { - if (((this._fontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._fontWeight_0_0value = value - } else - { - this._fontWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fontFamily(value: ResourceStr | undefined): this { - if (((this._fontFamily_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._fontFamily_0_flag = AttributeUpdaterFlag.UPDATE - this._fontFamily_0_0value = value - } else - { - this._fontFamily_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTimer(value: ((utc: number,elapsedTime: number) => void) | undefined): this { - if (((this._onTimer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTimer_0_flag = AttributeUpdaterFlag.UPDATE - this._onTimer_0_0value = value - } else - { - this._onTimer_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textShadow(value: ShadowOptions | Array | undefined): this { - if (((this._textShadow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textShadow_0_flag = AttributeUpdaterFlag.UPDATE - this._textShadow_0_0value = value - } else - { - this._textShadow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class TextTimerConfiguration_serializer { public static write(buffer: SerializerBase, value: TextTimerConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/timePicker.ets b/arkoala-arkts/arkui/generated/component/timePicker.ets similarity index 54% rename from arkoala-arkts/arkui/src/component/timePicker.ets rename to arkoala-arkts/arkui/generated/component/timePicker.ets index fa5f68a64517c5e6481abf5087980c0d6b35f9b0..5d234beff7c93724632ab11381ff9d1cc361c882 100644 --- a/arkoala-arkts/arkui/src/component/timePicker.ets +++ b/arkoala-arkts/arkui/generated/component/timePicker.ets @@ -20,20 +20,19 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 { 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 { PickerTextStyle_serializer, ArkCommonMethodPeer, CommonMethod, PickerTextStyle, Bindable, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable_Date_serializer } from "./common" +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, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { DialogAlignment } from "./alertDialog" import { Offset, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class TimePickerDialogInternal { public static fromPtr(ptr: KPointer): TimePickerDialog { return new TimePickerDialog(ptr) @@ -476,505 +475,6 @@ export function TimePicker( }) } -export class TimePickerModifier extends CommonMethodModifier implements TimePickerAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _useMilitaryTime_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _useMilitaryTime_0_0value?: boolean | undefined - _loop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _loop_0_0value?: boolean | undefined - _disappearTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _disappearTextStyle_0_0value?: PickerTextStyle | undefined - _textStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textStyle_0_0value?: PickerTextStyle | undefined - _selectedTextStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedTextStyle_0_0value?: PickerTextStyle | undefined - _dateTimeOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _dateTimeOptions_0_0value?: intl.DateTimeOptions | undefined - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: OnTimePickerChangeCallback | undefined - _onEnterSelectedArea_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onEnterSelectedArea_0_0value?: ((value0: TimePickerResult) => void) | undefined - _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableHapticFeedback_0_0value?: boolean | undefined - _digitalCrownSensitivity_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _digitalCrownSensitivity_0_0value?: CrownSensitivity | undefined - _enableCascade_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableCascade_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkTimePickerPeer): void { - super.applyModifierPatch(peer) - if (this._useMilitaryTime_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._useMilitaryTime_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setUseMilitaryTimeAttribute((this._useMilitaryTime_0_0value as boolean | undefined)); - this._useMilitaryTime_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._useMilitaryTime_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._useMilitaryTime_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setUseMilitaryTimeAttribute((undefined as boolean | undefined)); - } - } - } - if (this._loop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._loop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLoopAttribute((this._loop_0_0value as boolean | undefined)); - this._loop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._loop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._loop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLoopAttribute((undefined as boolean | undefined)); - } - } - } - if (this._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._disappearTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDisappearTextStyleAttribute((this._disappearTextStyle_0_0value as PickerTextStyle | undefined)); - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDisappearTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextStyleAttribute((this._textStyle_0_0value as PickerTextStyle | undefined)); - this._textStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedTextStyleAttribute((this._selectedTextStyle_0_0value as PickerTextStyle | undefined)); - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedTextStyleAttribute((undefined as PickerTextStyle | undefined)); - } - } - } - if (this._dateTimeOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._dateTimeOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDateTimeOptionsAttribute((this._dateTimeOptions_0_0value as intl.DateTimeOptions | undefined)); - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDateTimeOptionsAttribute((undefined as intl.DateTimeOptions | undefined)); - } - } - } - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as OnTimePickerChangeCallback | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as OnTimePickerChangeCallback | undefined)); - } - } - } - if (this._onEnterSelectedArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onEnterSelectedArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnEnterSelectedAreaAttribute((this._onEnterSelectedArea_0_0value as ((value0: TimePickerResult) => void) | undefined)); - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnEnterSelectedAreaAttribute((undefined as ((value0: TimePickerResult) => void) | undefined)); - } - } - } - if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableHapticFeedbackAttribute((undefined as boolean | 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._enableCascade_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableCascade_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableCascadeAttribute((this._enableCascade_0_0value as boolean | undefined)); - this._enableCascade_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableCascade_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableCascade_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableCascadeAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: TimePickerModifier): void { - super.mergeModifier(modifier) - if (modifier._useMilitaryTime_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._useMilitaryTime_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.useMilitaryTime(modifier._useMilitaryTime_0_0value); - break; - } - default: { - this.useMilitaryTime((undefined as boolean | undefined)); - } - } - } - if (modifier._loop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._loop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.loop(modifier._loop_0_0value); - break; - } - default: { - this.loop((undefined as boolean | undefined)); - } - } - } - if (modifier._disappearTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._disappearTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.disappearTextStyle(modifier._disappearTextStyle_0_0value); - break; - } - default: { - this.disappearTextStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._textStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textStyle(modifier._textStyle_0_0value); - break; - } - default: { - this.textStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._selectedTextStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedTextStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedTextStyle(modifier._selectedTextStyle_0_0value); - break; - } - default: { - this.selectedTextStyle((undefined as PickerTextStyle | undefined)); - } - } - } - if (modifier._dateTimeOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._dateTimeOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.dateTimeOptions(modifier._dateTimeOptions_0_0value); - break; - } - default: { - this.dateTimeOptions((undefined as intl.DateTimeOptions | undefined)); - } - } - } - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as OnTimePickerChangeCallback | undefined)); - } - } - } - if (modifier._onEnterSelectedArea_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onEnterSelectedArea_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onEnterSelectedArea(modifier._onEnterSelectedArea_0_0value); - break; - } - default: { - this.onEnterSelectedArea((undefined as ((value0: TimePickerResult) => void) | undefined)); - } - } - } - if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); - break; - } - default: { - this.enableHapticFeedback((undefined as boolean | 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._enableCascade_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableCascade_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableCascade(modifier._enableCascade_0_0value); - break; - } - default: { - this.enableCascade((undefined as boolean | undefined)); - } - } - } - } - useMilitaryTime(value: boolean | undefined): this { - if (((this._useMilitaryTime_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._useMilitaryTime_0_0value) !== (value))) - { - this._useMilitaryTime_0_flag = AttributeUpdaterFlag.UPDATE - this._useMilitaryTime_0_0value = value - } else - { - this._useMilitaryTime_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - loop(value: boolean | undefined): this { - if (((this._loop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._loop_0_0value) !== (value))) - { - this._loop_0_flag = AttributeUpdaterFlag.UPDATE - this._loop_0_0value = value - } else - { - this._loop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - disappearTextStyle(value: PickerTextStyle | undefined): this { - if (((this._disappearTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._disappearTextStyle_0_0value = value - } else - { - this._disappearTextStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textStyle(value: PickerTextStyle | undefined): this { - if (((this._textStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._textStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._textStyle_0_0value = value - } else - { - this._textStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedTextStyle(value: PickerTextStyle | undefined): this { - if (((this._selectedTextStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedTextStyle_0_0value = value - } else - { - this._selectedTextStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - dateTimeOptions(value: intl.DateTimeOptions | undefined): this { - if (((this._dateTimeOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._dateTimeOptions_0_0value = value - } else - { - this._dateTimeOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onChange(value: OnTimePickerChangeCallback | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onEnterSelectedArea(value: ((value0: TimePickerResult) => void) | undefined): this { - if (((this._onEnterSelectedArea_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.UPDATE - this._onEnterSelectedArea_0_0value = value - } else - { - this._onEnterSelectedArea_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableHapticFeedback(value: boolean | undefined): this { - if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE - this._enableHapticFeedback_0_0value = value - } else - { - this._enableHapticFeedback_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 - } - enableCascade(value: boolean | undefined): this { - if (((this._enableCascade_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableCascade_0_0value) !== (value))) - { - this._enableCascade_0_flag = AttributeUpdaterFlag.UPDATE - this._enableCascade_0_0value = value - } else - { - this._enableCascade_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class TimePickerDialog_serializer { public static write(buffer: SerializerBase, value: TimePickerDialog): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/toggle.ets b/arkoala-arkts/arkui/generated/component/toggle.ets similarity index 77% rename from arkoala-arkts/arkui/src/component/toggle.ets rename to arkoala-arkts/arkui/generated/component/toggle.ets index 329e3a34b33dcccf17a8eda03fce995590c054a8..87c596155ba7adbef27adfef9d9b2c4e802054c3 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 } 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 { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, Bindable, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable_Boolean_serializer } from "./common" +import { ContentModifier, AttributeModifier, hookToggleContentModifier, AttributeUpdater, extractors } from "#handwritten" import { ResourceColor } from "./units" import { Color } from "./enums" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { Resource } from "global.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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkTogglePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -278,197 +278,6 @@ export function Toggle( }) } -export class ToggleModifier extends CommonMethodModifier implements ToggleAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onChange_0_0value?: ((value0: boolean) => void) | undefined - _selectedColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _selectedColor_0_0value?: ResourceColor | undefined - _switchPointColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _switchPointColor_0_0value?: ResourceColor | undefined - _switchStyle_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _switchStyle_0_0value?: SwitchStyle | undefined - applyModifierPatch(peer: ArkTogglePeer): void { - super.applyModifierPatch(peer) - if (this._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnChangeAttribute((this._onChange_0_0value as ((value0: boolean) => void) | undefined)); - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnChangeAttribute((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (this._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSelectedColorAttribute((this._selectedColor_0_0value as ResourceColor | undefined)); - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._selectedColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._selectedColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSelectedColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._switchPointColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._switchPointColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSwitchPointColorAttribute((this._switchPointColor_0_0value as ResourceColor | undefined)); - this._switchPointColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._switchPointColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._switchPointColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSwitchPointColorAttribute((undefined as ResourceColor | undefined)); - } - } - } - if (this._switchStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._switchStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSwitchStyleAttribute((this._switchStyle_0_0value as SwitchStyle | undefined)); - this._switchStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._switchStyle_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._switchStyle_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSwitchStyleAttribute((undefined as SwitchStyle | undefined)); - } - } - } - } - mergeModifier(modifier: ToggleModifier): void { - super.mergeModifier(modifier) - if (modifier._onChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onChange(modifier._onChange_0_0value); - break; - } - default: { - this.onChange((undefined as ((value0: boolean) => void) | undefined)); - } - } - } - if (modifier._selectedColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._selectedColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.selectedColor(modifier._selectedColor_0_0value); - break; - } - default: { - this.selectedColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._switchPointColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._switchPointColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.switchPointColor(modifier._switchPointColor_0_0value); - break; - } - default: { - this.switchPointColor((undefined as ResourceColor | undefined)); - } - } - } - if (modifier._switchStyle_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._switchStyle_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.switchStyle(modifier._switchStyle_0_0value); - break; - } - default: { - this.switchStyle((undefined as SwitchStyle | undefined)); - } - } - } - } - onChange(value: ((value0: boolean) => void) | undefined): this { - if (((this._onChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onChange_0_0value = value - } else - { - this._onChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - selectedColor(value: ResourceColor | undefined): this { - if (((this._selectedColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._selectedColor_0_flag = AttributeUpdaterFlag.UPDATE - this._selectedColor_0_0value = value - } else - { - this._selectedColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - switchPointColor(value: ResourceColor | undefined): this { - if (((this._switchPointColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._switchPointColor_0_flag = AttributeUpdaterFlag.UPDATE - this._switchPointColor_0_0value = value - } else - { - this._switchPointColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - switchStyle(value: SwitchStyle | undefined): this { - if (((this._switchStyle_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._switchStyle_0_flag = AttributeUpdaterFlag.UPDATE - this._switchStyle_0_0value = value - } else - { - this._switchStyle_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ToggleConfiguration_serializer { public static write(buffer: SerializerBase, value: ToggleConfiguration): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/uiExtensionComponent.ets b/arkoala-arkts/arkui/generated/component/uiExtensionComponent.ets similarity index 71% rename from arkoala-arkts/arkui/src/component/uiExtensionComponent.ets rename to arkoala-arkts/arkui/generated/component/uiExtensionComponent.ets index 111b2d6023533b9cb68aa63e8235be290865b987..7ff774a8006fdd4358753bc497d3e66dfc0e03c1 100644 --- a/arkoala-arkts/arkui/src/component/uiExtensionComponent.ets +++ b/arkoala-arkts/arkui/generated/component/uiExtensionComponent.ets @@ -20,18 +20,17 @@ 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 { ArkCommonMethodPeer, CommonMethod, TerminationInfo, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { ErrorCallback, BusinessError } from "./../framework/ohos.base" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { ComponentContent, ComponentContent_serializer } from "./../ComponentContent" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export interface UIExtensionProxy { send(data: Map): void sendSync(data: Map): Map @@ -397,241 +396,6 @@ export function UIExtensionComponent( }) } -export class UIExtensionComponentModifier extends CommonMethodModifier implements UIExtensionComponentAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onRemoteReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRemoteReady_0_0value?: ((value0: UIExtensionProxy) => void) | undefined - _onReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onReceive_0_0value?: ((value0: Map) => void) | undefined - _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onError_0_0value?: ErrorCallback | undefined - _onTerminated_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTerminated_0_0value?: ((value0: TerminationInfo) => void) | undefined - _onDrawReady_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDrawReady_0_0value?: (() => void) | undefined - applyModifierPatch(peer: ArkUIExtensionComponentPeer): void { - super.applyModifierPatch(peer) - if (this._onRemoteReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRemoteReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRemoteReadyAttribute((this._onRemoteReady_0_0value as ((value0: UIExtensionProxy) => void) | undefined)); - this._onRemoteReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRemoteReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRemoteReady_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRemoteReadyAttribute((undefined as ((value0: UIExtensionProxy) => void) | undefined)); - } - } - } - if (this._onReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnReceiveAttribute((this._onReceive_0_0value as ((value0: Map) => void) | undefined)); - this._onReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onReceive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnReceiveAttribute((undefined as ((value0: Map) => void) | undefined)); - } - } - } - if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnErrorAttribute((this._onError_0_0value as ErrorCallback | undefined)); - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onError_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnErrorAttribute((undefined as ErrorCallback | undefined)); - } - } - } - if (this._onTerminated_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTerminated_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTerminatedAttribute((this._onTerminated_0_0value as ((value0: TerminationInfo) => void) | undefined)); - this._onTerminated_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTerminated_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTerminated_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTerminatedAttribute((undefined as ((value0: TerminationInfo) => void) | undefined)); - } - } - } - if (this._onDrawReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDrawReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDrawReadyAttribute((this._onDrawReady_0_0value as (() => void) | undefined)); - this._onDrawReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDrawReady_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDrawReady_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDrawReadyAttribute((undefined as (() => void) | undefined)); - } - } - } - } - mergeModifier(modifier: UIExtensionComponentModifier): void { - super.mergeModifier(modifier) - if (modifier._onRemoteReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRemoteReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRemoteReady(modifier._onRemoteReady_0_0value); - break; - } - default: { - this.onRemoteReady((undefined as ((value0: UIExtensionProxy) => void) | undefined)); - } - } - } - if (modifier._onReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onReceive(modifier._onReceive_0_0value); - break; - } - default: { - this.onReceive((undefined as ((value0: Map) => void) | undefined)); - } - } - } - if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onError(modifier._onError_0_0value); - break; - } - default: { - this.onError((undefined as ErrorCallback | undefined)); - } - } - } - if (modifier._onTerminated_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTerminated_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTerminated(modifier._onTerminated_0_0value); - break; - } - default: { - this.onTerminated((undefined as ((value0: TerminationInfo) => void) | undefined)); - } - } - } - if (modifier._onDrawReady_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDrawReady_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDrawReady(modifier._onDrawReady_0_0value); - break; - } - default: { - this.onDrawReady((undefined as (() => void) | undefined)); - } - } - } - } - onRemoteReady(value: ((value0: UIExtensionProxy) => void) | undefined): this { - if (((this._onRemoteReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRemoteReady_0_flag = AttributeUpdaterFlag.UPDATE - this._onRemoteReady_0_0value = value - } else - { - this._onRemoteReady_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onReceive(value: ((value0: Map) => void) | undefined): this { - if (((this._onReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onReceive_0_flag = AttributeUpdaterFlag.UPDATE - this._onReceive_0_0value = value - } else - { - this._onReceive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onError(value: ErrorCallback | undefined): this { - if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onError_0_flag = AttributeUpdaterFlag.UPDATE - this._onError_0_0value = value - } else - { - this._onError_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTerminated(value: ((value0: TerminationInfo) => void) | undefined): this { - if (((this._onTerminated_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTerminated_0_flag = AttributeUpdaterFlag.UPDATE - this._onTerminated_0_0value = value - } else - { - this._onTerminated_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDrawReady(value: (() => void) | undefined): this { - if (((this._onDrawReady_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDrawReady_0_flag = AttributeUpdaterFlag.UPDATE - this._onDrawReady_0_0value = value - } else - { - this._onDrawReady_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class UIExtensionProxy_serializer { public static write(buffer: SerializerBase, value: UIExtensionProxy): void { let valueSerializer : SerializerBase = buffer 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..b44abef22eaa9177930afc1c25048c3d694cae7d 100644 --- a/arkoala-arkts/arkui/src/component/units.ets +++ b/arkoala-arkts/arkui/generated/component/units.ets @@ -21,11 +21,13 @@ 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" -import { Resource, Resource_serializer } from "./../generated/resource" -import { LengthMetrics, LengthMetricsUnit, ColorMetrics, LengthMetrics_serializer } from "./../generated/arkui.Graphics" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" +import { LengthMetrics, LengthMetricsUnit, ColorMetrics, LengthMetrics_serializer } from "./../Graphics" import { Color, BorderStyle, FontWeight, FontStyle, DividerMode } from "./enums" import { OutlineStyle } from "./common" +import { extractors } from "#handwritten" +import { Resource_serializer } from "./../framework/resource" export class ColorFilterInternal { public static fromPtr(ptr: KPointer): ColorFilter { return new ColorFilter(false, ptr) @@ -57,7 +59,7 @@ export class ColorFilter implements MaterializedBase { return ArkUIGeneratedNativeModule._ColorFilter_getFinalizer() } } -export { Resource } from "./../generated/resource" +export { Resource } from "global.resource" export type Length = string | number | Resource; export type PX = string; export type VP = string | number; @@ -152,9 +154,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 "./../Graphics" +export { LengthMetrics } from "./../Graphics" +export { ColorMetrics } from "./../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 55% rename from arkoala-arkts/arkui/src/component/video.ets rename to arkoala-arkts/arkui/generated/component/video.ets index 564a52a30430dacc607e04ed4f962fb023da5c7a..ad22368facbcf7405c420c80c6fbcc380e776c5e 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, DeserializerBase 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 "./../Graphics" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { ImageFit } from "./enums" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" +import { image, image_PixelMap_serializer } from "./../framework/ohos.multimedia.image" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" +import { Resource_serializer } from "./../framework/resource" export class VideoControllerInternal { public static fromPtr(ptr: KPointer): VideoController { return new VideoController(ptr) @@ -744,857 +744,6 @@ export function Video( }) } -export class VideoModifier extends CommonMethodModifier implements VideoAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _muted_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _muted_0_0value?: boolean | undefined - _autoPlay_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _autoPlay_0_0value?: boolean | undefined - _controls_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _controls_0_0value?: boolean | undefined - _loop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _loop_0_0value?: boolean | undefined - _objectFit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _objectFit_0_0value?: ImageFit | undefined - _onStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onStart_0_0value?: VoidCallback | undefined - _onPause_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPause_0_0value?: VoidCallback | undefined - _onFinish_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFinish_0_0value?: VoidCallback | undefined - _onFullscreenChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFullscreenChange_0_0value?: ((value0: FullscreenInfo) => void) | undefined - _onPrepared_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPrepared_0_0value?: ((value0: PreparedInfo) => void) | undefined - _onSeeking_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSeeking_0_0value?: ((value0: PlaybackInfo) => void) | undefined - _onSeeked_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSeeked_0_0value?: ((value0: PlaybackInfo) => void) | undefined - _onUpdate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onUpdate_0_0value?: ((value0: PlaybackInfo) => void) | undefined - _onError_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onError_0_0value?: (() => void) | undefined - _onStop_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onStop_0_0value?: (() => void) | undefined - _enableAnalyzer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableAnalyzer_0_0value?: boolean | undefined - _analyzerConfig_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _analyzerConfig_0_0value?: ImageAnalyzerConfig | undefined - _surfaceBackgroundColor_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _surfaceBackgroundColor_0_0value?: ColorMetrics | undefined - _enableShortcutKey_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableShortcutKey_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkVideoPeer): void { - super.applyModifierPatch(peer) - if (this._muted_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._muted_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMutedAttribute((this._muted_0_0value as boolean | undefined)); - this._muted_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._muted_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._muted_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMutedAttribute((undefined as boolean | undefined)); - } - } - } - if (this._autoPlay_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._autoPlay_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAutoPlayAttribute((this._autoPlay_0_0value as boolean | undefined)); - this._autoPlay_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._autoPlay_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._autoPlay_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAutoPlayAttribute((undefined as boolean | undefined)); - } - } - } - if (this._controls_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._controls_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setControlsAttribute((this._controls_0_0value as boolean | undefined)); - this._controls_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._controls_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._controls_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setControlsAttribute((undefined as boolean | undefined)); - } - } - } - if (this._loop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._loop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLoopAttribute((this._loop_0_0value as boolean | undefined)); - this._loop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._loop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._loop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLoopAttribute((undefined as boolean | undefined)); - } - } - } - if (this._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._objectFit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setObjectFitAttribute((this._objectFit_0_0value as ImageFit | undefined)); - this._objectFit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._objectFit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._objectFit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setObjectFitAttribute((undefined as ImageFit | undefined)); - } - } - } - if (this._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnStartAttribute((this._onStart_0_0value as VoidCallback | undefined)); - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnStartAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onPause_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPause_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPauseAttribute((this._onPause_0_0value as VoidCallback | undefined)); - this._onPause_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPause_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPause_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPauseAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFinishAttribute((this._onFinish_0_0value as VoidCallback | undefined)); - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFinish_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFinish_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFinishAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._onFullscreenChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFullscreenChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFullscreenChangeAttribute((this._onFullscreenChange_0_0value as ((value0: FullscreenInfo) => void) | undefined)); - this._onFullscreenChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFullscreenChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFullscreenChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFullscreenChangeAttribute((undefined as ((value0: FullscreenInfo) => void) | undefined)); - } - } - } - if (this._onPrepared_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPrepared_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPreparedAttribute((this._onPrepared_0_0value as ((value0: PreparedInfo) => void) | undefined)); - this._onPrepared_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPrepared_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPrepared_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPreparedAttribute((undefined as ((value0: PreparedInfo) => void) | undefined)); - } - } - } - if (this._onSeeking_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSeeking_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSeekingAttribute((this._onSeeking_0_0value as ((value0: PlaybackInfo) => void) | undefined)); - this._onSeeking_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSeeking_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSeeking_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSeekingAttribute((undefined as ((value0: PlaybackInfo) => void) | undefined)); - } - } - } - if (this._onSeeked_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSeeked_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSeekedAttribute((this._onSeeked_0_0value as ((value0: PlaybackInfo) => void) | undefined)); - this._onSeeked_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSeeked_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSeeked_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSeekedAttribute((undefined as ((value0: PlaybackInfo) => void) | undefined)); - } - } - } - if (this._onUpdate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onUpdate_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnUpdateAttribute((this._onUpdate_0_0value as ((value0: PlaybackInfo) => void) | undefined)); - this._onUpdate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onUpdate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onUpdate_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnUpdateAttribute((undefined as ((value0: PlaybackInfo) => void) | undefined)); - } - } - } - if (this._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnErrorAttribute((this._onError_0_0value as (() => void) | undefined)); - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onError_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onError_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnErrorAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onStop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onStop_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnStopAttribute((this._onStop_0_0value as (() => void) | undefined)); - this._onStop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onStop_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onStop_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnStopAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableAnalyzer_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableAnalyzerAttribute((this._enableAnalyzer_0_0value as boolean | undefined)); - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableAnalyzerAttribute((undefined as boolean | undefined)); - } - } - } - if (this._analyzerConfig_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._analyzerConfig_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAnalyzerConfigAttribute((this._analyzerConfig_0_0value as ImageAnalyzerConfig | undefined)); - this._analyzerConfig_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._analyzerConfig_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._analyzerConfig_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAnalyzerConfigAttribute((undefined as ImageAnalyzerConfig | undefined)); - } - } - } - if (this._surfaceBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._surfaceBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setSurfaceBackgroundColorAttribute((this._surfaceBackgroundColor_0_0value as ColorMetrics | undefined)); - this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setSurfaceBackgroundColorAttribute((undefined as ColorMetrics | undefined)); - } - } - } - if (this._enableShortcutKey_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableShortcutKey_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableShortcutKeyAttribute((this._enableShortcutKey_0_0value as boolean | undefined)); - this._enableShortcutKey_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableShortcutKey_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableShortcutKey_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableShortcutKeyAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: VideoModifier): void { - super.mergeModifier(modifier) - if (modifier._muted_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._muted_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.muted(modifier._muted_0_0value); - break; - } - default: { - this.muted((undefined as boolean | undefined)); - } - } - } - if (modifier._autoPlay_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._autoPlay_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.autoPlay(modifier._autoPlay_0_0value); - break; - } - default: { - this.autoPlay((undefined as boolean | undefined)); - } - } - } - if (modifier._controls_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._controls_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.controls(modifier._controls_0_0value); - break; - } - default: { - this.controls((undefined as boolean | undefined)); - } - } - } - if (modifier._loop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._loop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.loop(modifier._loop_0_0value); - break; - } - default: { - this.loop((undefined as boolean | undefined)); - } - } - } - if (modifier._objectFit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._objectFit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.objectFit(modifier._objectFit_0_0value); - break; - } - default: { - this.objectFit((undefined as ImageFit | undefined)); - } - } - } - if (modifier._onStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onStart(modifier._onStart_0_0value); - break; - } - default: { - this.onStart((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onPause_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPause_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPause(modifier._onPause_0_0value); - break; - } - default: { - this.onPause((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onFinish_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFinish_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFinish(modifier._onFinish_0_0value); - break; - } - default: { - this.onFinish((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._onFullscreenChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFullscreenChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFullscreenChange(modifier._onFullscreenChange_0_0value); - break; - } - default: { - this.onFullscreenChange((undefined as ((value0: FullscreenInfo) => void) | undefined)); - } - } - } - if (modifier._onPrepared_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPrepared_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPrepared(modifier._onPrepared_0_0value); - break; - } - default: { - this.onPrepared((undefined as ((value0: PreparedInfo) => void) | undefined)); - } - } - } - if (modifier._onSeeking_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSeeking_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSeeking(modifier._onSeeking_0_0value); - break; - } - default: { - this.onSeeking((undefined as ((value0: PlaybackInfo) => void) | undefined)); - } - } - } - if (modifier._onSeeked_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSeeked_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSeeked(modifier._onSeeked_0_0value); - break; - } - default: { - this.onSeeked((undefined as ((value0: PlaybackInfo) => void) | undefined)); - } - } - } - if (modifier._onUpdate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onUpdate_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onUpdate(modifier._onUpdate_0_0value); - break; - } - default: { - this.onUpdate((undefined as ((value0: PlaybackInfo) => void) | undefined)); - } - } - } - if (modifier._onError_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onError_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onError(modifier._onError_0_0value); - break; - } - default: { - this.onError((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onStop_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onStop_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onStop(modifier._onStop_0_0value); - break; - } - default: { - this.onStop((undefined as (() => void) | undefined)); - } - } - } - if (modifier._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableAnalyzer_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableAnalyzer(modifier._enableAnalyzer_0_0value); - break; - } - default: { - this.enableAnalyzer((undefined as boolean | undefined)); - } - } - } - if (modifier._analyzerConfig_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._analyzerConfig_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.analyzerConfig(modifier._analyzerConfig_0_0value); - break; - } - default: { - this.analyzerConfig((undefined as ImageAnalyzerConfig | undefined)); - } - } - } - if (modifier._surfaceBackgroundColor_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._surfaceBackgroundColor_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.surfaceBackgroundColor(modifier._surfaceBackgroundColor_0_0value); - break; - } - default: { - this.surfaceBackgroundColor((undefined as ColorMetrics | undefined)); - } - } - } - if (modifier._enableShortcutKey_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableShortcutKey_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableShortcutKey(modifier._enableShortcutKey_0_0value); - break; - } - default: { - this.enableShortcutKey((undefined as boolean | undefined)); - } - } - } - } - muted(value: boolean | undefined): this { - if (((this._muted_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._muted_0_0value) !== (value))) - { - this._muted_0_flag = AttributeUpdaterFlag.UPDATE - this._muted_0_0value = value - } else - { - this._muted_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - autoPlay(value: boolean | undefined): this { - if (((this._autoPlay_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoPlay_0_0value) !== (value))) - { - this._autoPlay_0_flag = AttributeUpdaterFlag.UPDATE - this._autoPlay_0_0value = value - } else - { - this._autoPlay_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - controls(value: boolean | undefined): this { - if (((this._controls_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._controls_0_0value) !== (value))) - { - this._controls_0_flag = AttributeUpdaterFlag.UPDATE - this._controls_0_0value = value - } else - { - this._controls_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - loop(value: boolean | undefined): this { - if (((this._loop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._loop_0_0value) !== (value))) - { - this._loop_0_flag = AttributeUpdaterFlag.UPDATE - this._loop_0_0value = value - } else - { - this._loop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - objectFit(value: ImageFit | undefined): this { - if (((this._objectFit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._objectFit_0_flag = AttributeUpdaterFlag.UPDATE - this._objectFit_0_0value = value - } else - { - this._objectFit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onStart(value: VoidCallback | undefined): this { - if (((this._onStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onStart_0_0value = value - } else - { - this._onStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPause(value: VoidCallback | undefined): this { - if (((this._onPause_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPause_0_flag = AttributeUpdaterFlag.UPDATE - this._onPause_0_0value = value - } else - { - this._onPause_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFinish(value: VoidCallback | undefined): this { - if (((this._onFinish_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFinish_0_flag = AttributeUpdaterFlag.UPDATE - this._onFinish_0_0value = value - } else - { - this._onFinish_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFullscreenChange(value: ((value0: FullscreenInfo) => void) | undefined): this { - if (((this._onFullscreenChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFullscreenChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onFullscreenChange_0_0value = value - } else - { - this._onFullscreenChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPrepared(value: ((value0: PreparedInfo) => void) | undefined): this { - if (((this._onPrepared_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPrepared_0_flag = AttributeUpdaterFlag.UPDATE - this._onPrepared_0_0value = value - } else - { - this._onPrepared_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSeeking(value: ((value0: PlaybackInfo) => void) | undefined): this { - if (((this._onSeeking_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSeeking_0_flag = AttributeUpdaterFlag.UPDATE - this._onSeeking_0_0value = value - } else - { - this._onSeeking_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSeeked(value: ((value0: PlaybackInfo) => void) | undefined): this { - if (((this._onSeeked_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSeeked_0_flag = AttributeUpdaterFlag.UPDATE - this._onSeeked_0_0value = value - } else - { - this._onSeeked_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onUpdate(value: ((value0: PlaybackInfo) => void) | undefined): this { - if (((this._onUpdate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onUpdate_0_flag = AttributeUpdaterFlag.UPDATE - this._onUpdate_0_0value = value - } else - { - this._onUpdate_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onError(value: (() => void) | undefined): this { - if (((this._onError_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onError_0_flag = AttributeUpdaterFlag.UPDATE - this._onError_0_0value = value - } else - { - this._onError_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onStop(value: (() => void) | undefined): this { - if (((this._onStop_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onStop_0_flag = AttributeUpdaterFlag.UPDATE - this._onStop_0_0value = value - } else - { - this._onStop_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableAnalyzer(value: boolean | undefined): this { - if (((this._enableAnalyzer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnalyzer_0_0value) !== (value))) - { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.UPDATE - this._enableAnalyzer_0_0value = value - } else - { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - analyzerConfig(value: ImageAnalyzerConfig | undefined): this { - if (((this._analyzerConfig_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._analyzerConfig_0_flag = AttributeUpdaterFlag.UPDATE - this._analyzerConfig_0_0value = value - } else - { - this._analyzerConfig_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - surfaceBackgroundColor(value: ColorMetrics | undefined): this { - if (((this._surfaceBackgroundColor_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.UPDATE - this._surfaceBackgroundColor_0_0value = value - } else - { - this._surfaceBackgroundColor_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableShortcutKey(value: boolean | undefined): this { - if (((this._enableShortcutKey_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableShortcutKey_0_0value) !== (value))) - { - this._enableShortcutKey_0_flag = AttributeUpdaterFlag.UPDATE - this._enableShortcutKey_0_0value = value - } else - { - this._enableShortcutKey_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class FullscreenInfo_serializer { public static write(buffer: SerializerBase, value: FullscreenInfo): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/waterFlow.ets b/arkoala-arkts/arkui/generated/component/waterFlow.ets similarity index 65% rename from arkoala-arkts/arkui/src/component/waterFlow.ets rename to arkoala-arkts/arkui/generated/component/waterFlow.ets index f688973192d6202c8826ea35f7b649679bf12193..9ebdc6b9448172f1b2d3140660e3533d3c37d281 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 } 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 { ArkScrollableCommonMethodPeer, ScrollableCommonMethod, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodComponent, ArkScrollableCommonMethodStyle, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { Resource } from "global.resource" 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, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent, ComponentContent_serializer } from "./../generated/arkui.ComponentContent" +import { ComponentContent, ComponentContent_serializer } from "./../ComponentContent" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class WaterFlowSectionsInternal { public static fromPtr(ptr: KPointer): WaterFlowSections { return new WaterFlowSections(ptr) @@ -585,551 +585,6 @@ export function WaterFlow( }) } -export class WaterFlowModifier extends ScrollableCommonMethodModifier implements WaterFlowAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _columnsTemplate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _columnsTemplate_0_0value?: string | undefined - _itemConstraintSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _itemConstraintSize_0_0value?: ConstraintSizeOptions | undefined - _rowsTemplate_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _rowsTemplate_0_0value?: string | undefined - _columnsGap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _columnsGap_0_0value?: Length | undefined - _rowsGap_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _rowsGap_0_0value?: Length | undefined - _layoutDirection_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _layoutDirection_0_0value?: FlexDirection | undefined - _cachedCount_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cachedCount_0_0value?: number | undefined - _onScrollFrameBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollFrameBegin_0_0value?: OnScrollFrameBeginCallback | undefined - _onScrollIndex_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScrollIndex_0_0value?: ((first: number,last: number) => void) | undefined - _onWillScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWillScroll_0_0value?: OnWillScrollCallback | undefined - _onDidScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDidScroll_0_0value?: OnScrollCallback | undefined - _cachedCount_1_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cachedCount_1_0value?: number | undefined - _cachedCount_1_1value?: boolean | undefined - applyModifierPatch(peer: ArkWaterFlowPeer): void { - super.applyModifierPatch(peer) - if (this._columnsTemplate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._columnsTemplate_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColumnsTemplateAttribute((this._columnsTemplate_0_0value as string | undefined)); - this._columnsTemplate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._columnsTemplate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._columnsTemplate_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColumnsTemplateAttribute((undefined as string | undefined)); - } - } - } - if (this._itemConstraintSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._itemConstraintSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setItemConstraintSizeAttribute((this._itemConstraintSize_0_0value as ConstraintSizeOptions | undefined)); - this._itemConstraintSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._itemConstraintSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._itemConstraintSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setItemConstraintSizeAttribute((undefined as ConstraintSizeOptions | undefined)); - } - } - } - if (this._rowsTemplate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._rowsTemplate_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRowsTemplateAttribute((this._rowsTemplate_0_0value as string | undefined)); - this._rowsTemplate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._rowsTemplate_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._rowsTemplate_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRowsTemplateAttribute((undefined as string | undefined)); - } - } - } - if (this._columnsGap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._columnsGap_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setColumnsGapAttribute((this._columnsGap_0_0value as Length | undefined)); - this._columnsGap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._columnsGap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._columnsGap_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setColumnsGapAttribute((undefined as Length | undefined)); - } - } - } - if (this._rowsGap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._rowsGap_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRowsGapAttribute((this._rowsGap_0_0value as Length | undefined)); - this._rowsGap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._rowsGap_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._rowsGap_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRowsGapAttribute((undefined as Length | undefined)); - } - } - } - if (this._layoutDirection_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._layoutDirection_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLayoutDirectionAttribute((this._layoutDirection_0_0value as FlexDirection | undefined)); - this._layoutDirection_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._layoutDirection_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._layoutDirection_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLayoutDirectionAttribute((undefined as FlexDirection | undefined)); - } - } - } - if (this._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cachedCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCachedCount0Attribute((this._cachedCount_0_0value as number | undefined)); - this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cachedCount_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cachedCount_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCachedCount0Attribute((undefined as number | undefined)); - } - } - } - if (this._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollFrameBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollFrameBeginAttribute((this._onScrollFrameBegin_0_0value as OnScrollFrameBeginCallback | undefined)); - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollFrameBeginAttribute((undefined as OnScrollFrameBeginCallback | undefined)); - } - } - } - if (this._onScrollIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScrollIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollIndexAttribute((this._onScrollIndex_0_0value as ((first: number,last: number) => void) | undefined)); - this._onScrollIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScrollIndex_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScrollIndex_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollIndexAttribute((undefined as ((first: number,last: number) => void) | undefined)); - } - } - } - if (this._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWillScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWillScrollAttribute((this._onWillScroll_0_0value as OnWillScrollCallback | undefined)); - this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWillScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWillScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWillScrollAttribute((undefined as OnWillScrollCallback | undefined)); - } - } - } - if (this._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDidScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDidScrollAttribute((this._onDidScroll_0_0value as OnScrollCallback | undefined)); - this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDidScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDidScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDidScrollAttribute((undefined as OnScrollCallback | undefined)); - } - } - } - if (this._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cachedCount_1_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCachedCount1Attribute((this._cachedCount_1_0value as number | undefined), (this._cachedCount_1_1value as boolean | undefined)); - this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cachedCount_1_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cachedCount_1_flag = AttributeUpdaterFlag.INITIAL; - peer.setCachedCount1Attribute((undefined as number | undefined), (undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: WaterFlowModifier): void { - super.mergeModifier(modifier) - if (modifier._columnsTemplate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._columnsTemplate_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.columnsTemplate(modifier._columnsTemplate_0_0value); - break; - } - default: { - this.columnsTemplate((undefined as string | undefined)); - } - } - } - if (modifier._itemConstraintSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._itemConstraintSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.itemConstraintSize(modifier._itemConstraintSize_0_0value); - break; - } - default: { - this.itemConstraintSize((undefined as ConstraintSizeOptions | undefined)); - } - } - } - if (modifier._rowsTemplate_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._rowsTemplate_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.rowsTemplate(modifier._rowsTemplate_0_0value); - break; - } - default: { - this.rowsTemplate((undefined as string | undefined)); - } - } - } - if (modifier._columnsGap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._columnsGap_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.columnsGap(modifier._columnsGap_0_0value); - break; - } - default: { - this.columnsGap((undefined as Length | undefined)); - } - } - } - if (modifier._rowsGap_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._rowsGap_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.rowsGap(modifier._rowsGap_0_0value); - break; - } - default: { - this.rowsGap((undefined as Length | undefined)); - } - } - } - if (modifier._layoutDirection_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._layoutDirection_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.layoutDirection(modifier._layoutDirection_0_0value); - break; - } - default: { - this.layoutDirection((undefined as FlexDirection | undefined)); - } - } - } - if (modifier._cachedCount_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cachedCount_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cachedCount(modifier._cachedCount_0_0value); - break; - } - default: { - this.cachedCount((undefined as number | undefined)); - } - } - } - if (modifier._onScrollFrameBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScrollFrameBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScrollFrameBegin(modifier._onScrollFrameBegin_0_0value); - break; - } - default: { - this.onScrollFrameBegin((undefined as OnScrollFrameBeginCallback | undefined)); - } - } - } - if (modifier._onScrollIndex_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScrollIndex_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScrollIndex(modifier._onScrollIndex_0_0value); - break; - } - default: { - this.onScrollIndex((undefined as ((first: number,last: number) => void) | undefined)); - } - } - } - if (modifier._onWillScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWillScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWillScroll(modifier._onWillScroll_0_0value); - break; - } - default: { - this.onWillScroll((undefined as OnWillScrollCallback | undefined)); - } - } - } - if (modifier._onDidScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDidScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDidScroll(modifier._onDidScroll_0_0value); - break; - } - default: { - this.onDidScroll((undefined as OnScrollCallback | undefined)); - } - } - } - if (modifier._cachedCount_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cachedCount_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cachedCount(modifier._cachedCount_1_0value, modifier._cachedCount_1_1value); - break; - } - default: { - this.cachedCount((undefined as number | undefined), (undefined as boolean | undefined)); - } - } - } - } - columnsTemplate(value: string | undefined): this { - if (((this._columnsTemplate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._columnsTemplate_0_0value) !== (value))) - { - this._columnsTemplate_0_flag = AttributeUpdaterFlag.UPDATE - this._columnsTemplate_0_0value = value - } else - { - this._columnsTemplate_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - itemConstraintSize(value: ConstraintSizeOptions | undefined): this { - if (((this._itemConstraintSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._itemConstraintSize_0_flag = AttributeUpdaterFlag.UPDATE - this._itemConstraintSize_0_0value = value - } else - { - this._itemConstraintSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - rowsTemplate(value: string | undefined): this { - if (((this._rowsTemplate_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._rowsTemplate_0_0value) !== (value))) - { - this._rowsTemplate_0_flag = AttributeUpdaterFlag.UPDATE - this._rowsTemplate_0_0value = value - } else - { - this._rowsTemplate_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - columnsGap(value: Length | undefined): this { - if (((this._columnsGap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._columnsGap_0_flag = AttributeUpdaterFlag.UPDATE - this._columnsGap_0_0value = value - } else - { - this._columnsGap_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - rowsGap(value: Length | undefined): this { - if (((this._rowsGap_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._rowsGap_0_flag = AttributeUpdaterFlag.UPDATE - this._rowsGap_0_0value = value - } else - { - this._rowsGap_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - layoutDirection(value: FlexDirection | undefined): this { - if (((this._layoutDirection_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._layoutDirection_0_flag = AttributeUpdaterFlag.UPDATE - this._layoutDirection_0_0value = value - } else - { - this._layoutDirection_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cachedCount(value: number | undefined): this { - if (((this._cachedCount_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_0_0value) !== (value))) - { - this._cachedCount_0_flag = AttributeUpdaterFlag.UPDATE - this._cachedCount_0_0value = value - } else - { - this._cachedCount_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollFrameBegin(value: OnScrollFrameBeginCallback | undefined): this { - if (((this._onScrollFrameBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.UPDATE - this._onScrollFrameBegin_0_0value = value - } else - { - this._onScrollFrameBegin_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScrollIndex(value: ((first: number,last: number) => void) | undefined): this { - if (((this._onScrollIndex_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScrollIndex_0_flag = AttributeUpdaterFlag.UPDATE - this._onScrollIndex_0_0value = value - } else - { - this._onScrollIndex_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWillScroll(value: OnWillScrollCallback | undefined): this { - if (((this._onWillScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWillScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onWillScroll_0_0value = value - } else - { - this._onWillScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDidScroll(value: OnScrollCallback | undefined): this { - if (((this._onDidScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDidScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onDidScroll_0_0value = value - } else - { - this._onDidScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cachedCount(count: number | undefined, show: boolean | undefined): this { - if (((this._cachedCount_1_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._cachedCount_1_0value) !== (count)) || ((this._cachedCount_1_1value) !== (show))) - { - this._cachedCount_1_flag = AttributeUpdaterFlag.UPDATE - this._cachedCount_1_0value = count - this._cachedCount_1_1value = show - } else - { - this._cachedCount_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class WaterFlowSections_serializer { public static write(buffer: SerializerBase, value: WaterFlowSections): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/web.ets b/arkoala-arkts/arkui/generated/component/web.ets similarity index 57% rename from arkoala-arkts/arkui/src/component/web.ets rename to arkoala-arkts/arkui/generated/component/web.ets index f511b8f7b61411c4bed2735d1fe79e4db18c0c8f..52a7b36b9d8c436fd95ccbce9511db78507416bc 100644 --- a/arkoala-arkts/arkui/src/component/web.ets +++ b/arkoala-arkts/arkui/generated/component/web.ets @@ -20,22 +20,22 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, 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 { webview, webview_WebviewController_serializer } from "./../generated/ohos.web.webview" -import { Resource_serializer, Resource } from "./../generated/resource" -import { NestedScrollOptions_serializer, ArkCommonMethodPeer, CommonMethod, KeyEvent, NestedScrollOptions, TouchEvent, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier, TouchEvent_serializer } from "./common" +import { webview, webview_WebviewController_serializer } from "./../framework/ohos.web.webview" +import { Resource_serializer } from "./../framework/resource" +import { Resource } from "global.resource" +import { NestedScrollOptions_serializer, ArkCommonMethodPeer, CommonMethod, KeyEvent, NestedScrollOptions, TouchEvent, ArkCommonMethodComponent, ArkCommonMethodStyle, TouchEvent_serializer } from "./common" import { EditMenuOptions_serializer, EditMenuOptions, MenuType } from "./textCommon" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { CopyOptions, NestedScrollMode } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater, extractors } 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Position, Position_serializer } from "./units" -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" export class ClientAuthenticationHandlerInternal { public static fromPtr(ptr: KPointer): ClientAuthenticationHandler { return new ClientAuthenticationHandler(ptr) @@ -1104,7 +1104,7 @@ export class WebResourceResponse implements MaterializedBase { public getResponseData(): string { return this.getResponseData_serialize() } - public getResponseDataEx(): string | number | NativeBuffer | Resource | undefined { + public getResponseDataEx(): string | number | ArrayBuffer | Resource | undefined { return this.getResponseDataEx_serialize() } public getResponseEncoding(): string { @@ -1122,8 +1122,8 @@ export class WebResourceResponse implements MaterializedBase { public getResponseCode(): number { return this.getResponseCode_serialize() } - public setResponseData(data: string | number | Resource | NativeBuffer): void { - const data_casted = data as (string | number | Resource | NativeBuffer) + public setResponseData(data: string | number | Resource | ArrayBuffer): void { + const data_casted = data as (string | number | Resource | ArrayBuffer) this.setResponseData_serialize(data_casted) return } @@ -1164,28 +1164,28 @@ export class WebResourceResponse implements MaterializedBase { const retval = ArkUIGeneratedNativeModule._WebResourceResponse_getResponseData(this.peer!.ptr) return retval } - private getResponseDataEx_serialize(): string | number | NativeBuffer | Resource | undefined { + private getResponseDataEx_serialize(): string | number | ArrayBuffer | Resource | undefined { const retval = ArkUIGeneratedNativeModule._WebResourceResponse_getResponseDataEx(this.peer!.ptr) let retvalDeserializer : DeserializerBase = new DeserializerBase(retval, retval.length) const buffer_runtimeType = retvalDeserializer.readInt8().toInt() - let buffer : string | number | NativeBuffer | Resource | undefined + let buffer : string | number | ArrayBuffer | Resource | undefined if ((buffer_runtimeType) != (RuntimeType.UNDEFINED)) { const buffer_UnionSelector : int32 = retvalDeserializer.readInt8() - let buffer_ : string | number | NativeBuffer | Resource | undefined + let buffer_ : string | number | ArrayBuffer | Resource | undefined if (buffer_UnionSelector == (0).toChar()) { buffer_ = (retvalDeserializer.readString() as string) } else if (buffer_UnionSelector == (1).toChar()) { buffer_ = (retvalDeserializer.readNumber() as number) } else if (buffer_UnionSelector == (2).toChar()) { - buffer_ = (retvalDeserializer.readBuffer() as NativeBuffer) + buffer_ = (retvalDeserializer.readBuffer() as ArrayBuffer) } else if (buffer_UnionSelector == (3).toChar()) { buffer_ = Resource_serializer.read(retvalDeserializer) } else { throw new Error("One of the branches for buffer_ has to be chosen through deserialisation.") } - buffer = (buffer_ as string | number | NativeBuffer | Resource) + buffer = (buffer_ as string | number | ArrayBuffer | Resource) } - const returnResult : string | number | NativeBuffer | Resource | undefined = buffer + const returnResult : string | number | ArrayBuffer | Resource | undefined = buffer return returnResult } private getResponseEncoding_serialize(): string { @@ -1215,7 +1215,7 @@ export class WebResourceResponse implements MaterializedBase { const retval = ArkUIGeneratedNativeModule._WebResourceResponse_getResponseCode(this.peer!.ptr) return retval } - private setResponseData_serialize(data: string | number | Resource | NativeBuffer): void { + private setResponseData_serialize(data: string | number | Resource | ArrayBuffer): void { const thisSerializer : SerializerBase = SerializerBase.hold() if (data instanceof string) { thisSerializer.writeInt8((0).toChar()) @@ -1229,9 +1229,9 @@ export class WebResourceResponse implements MaterializedBase { thisSerializer.writeInt8((2).toChar()) const dataForIdx2 = data as Resource Resource_serializer.write(thisSerializer, dataForIdx2) - } else if (data instanceof NativeBuffer) { + } else if (data instanceof ArrayBuffer) { thisSerializer.writeInt8((3).toChar()) - const dataForIdx3 = data as NativeBuffer + const dataForIdx3 = data as ArrayBuffer thisSerializer.writeBuffer(dataForIdx3) } ArkUIGeneratedNativeModule._WebResourceResponse_setResponseData(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) @@ -3153,7 +3153,7 @@ export interface OnScrollEvent { export interface OnSslErrorEventReceiveEvent { handler: SslErrorHandler; error: SslError; - certChainData?: Array; + certChainData?: Array; } export interface OnClientAuthenticationEvent { handler: ClientAuthenticationHandler; @@ -5065,5221 +5065,6 @@ export function Web( }) } -export class WebModifier extends CommonMethodModifier implements WebAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _javaScriptAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _javaScriptAccess_0_0value?: boolean | undefined - _fileAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _fileAccess_0_0value?: boolean | undefined - _onlineImageAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onlineImageAccess_0_0value?: boolean | undefined - _domStorageAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _domStorageAccess_0_0value?: boolean | undefined - _imageAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _imageAccess_0_0value?: boolean | undefined - _mixedMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mixedMode_0_0value?: MixedMode | undefined - _zoomAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _zoomAccess_0_0value?: boolean | undefined - _geolocationAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _geolocationAccess_0_0value?: boolean | undefined - _javaScriptProxy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _javaScriptProxy_0_0value?: JavaScriptProxy | undefined - _cacheMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _cacheMode_0_0value?: CacheMode | undefined - _darkMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _darkMode_0_0value?: WebDarkMode | undefined - _forceDarkAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _forceDarkAccess_0_0value?: boolean | undefined - _mediaOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mediaOptions_0_0value?: WebMediaOptions | undefined - _overviewModeAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _overviewModeAccess_0_0value?: boolean | undefined - _overScrollMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _overScrollMode_0_0value?: OverScrollMode | undefined - _blurOnKeyboardHideMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _blurOnKeyboardHideMode_0_0value?: BlurOnKeyboardHideMode | undefined - _textZoomRatio_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textZoomRatio_0_0value?: int32 | undefined - _databaseAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _databaseAccess_0_0value?: boolean | undefined - _initialScale_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _initialScale_0_0value?: double | undefined - _metaViewport_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _metaViewport_0_0value?: boolean | undefined - _onPageEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPageEnd_0_0value?: ((value0: OnPageEndEvent) => void) | undefined - _onPageBegin_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPageBegin_0_0value?: ((value0: OnPageBeginEvent) => void) | undefined - _onProgressChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onProgressChange_0_0value?: ((value0: OnProgressChangeEvent) => void) | undefined - _onTitleReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTitleReceive_0_0value?: ((value0: OnTitleReceiveEvent) => void) | undefined - _onGeolocationHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onGeolocationHide_0_0value?: (() => void) | undefined - _onGeolocationShow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onGeolocationShow_0_0value?: ((value0: OnGeolocationShowEvent) => void) | undefined - _onRequestSelected_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRequestSelected_0_0value?: (() => void) | undefined - _onAlert_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAlert_0_0value?: ((value0: OnAlertEvent) => boolean) | undefined - _onBeforeUnload_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onBeforeUnload_0_0value?: ((value0: OnBeforeUnloadEvent) => boolean) | undefined - _onConfirm_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onConfirm_0_0value?: ((value0: OnConfirmEvent) => boolean) | undefined - _onPrompt_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPrompt_0_0value?: ((value0: OnPromptEvent) => boolean) | undefined - _onConsole_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onConsole_0_0value?: ((value0: OnConsoleEvent) => boolean) | undefined - _onErrorReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onErrorReceive_0_0value?: ((value0: OnErrorReceiveEvent) => void) | undefined - _onHttpErrorReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onHttpErrorReceive_0_0value?: ((value0: OnHttpErrorReceiveEvent) => void) | undefined - _onDownloadStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDownloadStart_0_0value?: ((value0: OnDownloadStartEvent) => void) | undefined - _onRefreshAccessedHistory_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRefreshAccessedHistory_0_0value?: ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined - _onRenderExited_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRenderExited_0_0value?: ((value0: OnRenderExitedEvent) => void) | undefined - _onShowFileSelector_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onShowFileSelector_0_0value?: ((value0: OnShowFileSelectorEvent) => boolean) | undefined - _onResourceLoad_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onResourceLoad_0_0value?: ((value0: OnResourceLoadEvent) => void) | undefined - _onFullScreenExit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFullScreenExit_0_0value?: (() => void) | undefined - _onFullScreenEnter_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFullScreenEnter_0_0value?: OnFullScreenEnterCallback | undefined - _onScaleChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScaleChange_0_0value?: ((value0: OnScaleChangeEvent) => void) | undefined - _onHttpAuthRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onHttpAuthRequest_0_0value?: ((value0: OnHttpAuthRequestEvent) => boolean) | undefined - _onInterceptRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onInterceptRequest_0_0value?: ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined - _onPermissionRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPermissionRequest_0_0value?: ((value0: OnPermissionRequestEvent) => void) | undefined - _onScreenCaptureRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScreenCaptureRequest_0_0value?: ((value0: OnScreenCaptureRequestEvent) => void) | undefined - _onContextMenuShow_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onContextMenuShow_0_0value?: ((value0: OnContextMenuShowEvent) => boolean) | undefined - _onContextMenuHide_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onContextMenuHide_0_0value?: OnContextMenuHideCallback | undefined - _mediaPlayGestureAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _mediaPlayGestureAccess_0_0value?: boolean | undefined - _onSearchResultReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSearchResultReceive_0_0value?: ((value0: OnSearchResultReceiveEvent) => void) | undefined - _onScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onScroll_0_0value?: ((value0: OnScrollEvent) => void) | undefined - _onSslErrorEventReceive_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSslErrorEventReceive_0_0value?: ((value0: OnSslErrorEventReceiveEvent) => void) | undefined - _onSslErrorEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSslErrorEvent_0_0value?: OnSslErrorEventCallback | undefined - _onClientAuthenticationRequest_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onClientAuthenticationRequest_0_0value?: ((value0: OnClientAuthenticationEvent) => void) | undefined - _onWindowNew_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWindowNew_0_0value?: ((value0: OnWindowNewEvent) => void) | undefined - _onWindowExit_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onWindowExit_0_0value?: (() => void) | undefined - _multiWindowAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _multiWindowAccess_0_0value?: boolean | undefined - _onInterceptKeyEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onInterceptKeyEvent_0_0value?: ((event: KeyEvent) => boolean) | undefined - _webStandardFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _webStandardFont_0_0value?: string | undefined - _webSerifFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _webSerifFont_0_0value?: string | undefined - _webSansSerifFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _webSansSerifFont_0_0value?: string | undefined - _webFixedFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _webFixedFont_0_0value?: string | undefined - _webFantasyFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _webFantasyFont_0_0value?: string | undefined - _webCursiveFont_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _webCursiveFont_0_0value?: string | undefined - _defaultFixedFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _defaultFixedFontSize_0_0value?: int32 | undefined - _defaultFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _defaultFontSize_0_0value?: int32 | undefined - _minFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minFontSize_0_0value?: int32 | undefined - _minLogicalFontSize_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _minLogicalFontSize_0_0value?: int32 | undefined - _defaultTextEncodingFormat_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _defaultTextEncodingFormat_0_0value?: string | undefined - _forceDisplayScrollBar_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _forceDisplayScrollBar_0_0value?: boolean | undefined - _blockNetwork_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _blockNetwork_0_0value?: boolean | undefined - _horizontalScrollBarAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _horizontalScrollBarAccess_0_0value?: boolean | undefined - _verticalScrollBarAccess_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _verticalScrollBarAccess_0_0value?: boolean | undefined - _onTouchIconUrlReceived_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onTouchIconUrlReceived_0_0value?: ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined - _onFaviconReceived_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFaviconReceived_0_0value?: ((value0: OnFaviconReceivedEvent) => void) | undefined - _onPageVisible_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onPageVisible_0_0value?: ((value0: OnPageVisibleEvent) => void) | undefined - _onDataResubmitted_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDataResubmitted_0_0value?: ((value0: OnDataResubmittedEvent) => void) | undefined - _pinchSmooth_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _pinchSmooth_0_0value?: boolean | undefined - _allowWindowOpenMethod_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _allowWindowOpenMethod_0_0value?: boolean | undefined - _onAudioStateChanged_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAudioStateChanged_0_0value?: ((value0: OnAudioStateChangedEvent) => void) | undefined - _onFirstContentfulPaint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFirstContentfulPaint_0_0value?: ((value0: OnFirstContentfulPaintEvent) => void) | undefined - _onFirstMeaningfulPaint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onFirstMeaningfulPaint_0_0value?: OnFirstMeaningfulPaintCallback | undefined - _onLargestContentfulPaint_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onLargestContentfulPaint_0_0value?: OnLargestContentfulPaintCallback | undefined - _onLoadIntercept_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onLoadIntercept_0_0value?: ((value0: OnLoadInterceptEvent) => boolean) | undefined - _onControllerAttached_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onControllerAttached_0_0value?: (() => void) | undefined - _onOverScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onOverScroll_0_0value?: ((value0: OnOverScrollEvent) => void) | undefined - _onSafeBrowsingCheckResult_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onSafeBrowsingCheckResult_0_0value?: OnSafeBrowsingCheckResultCallback | undefined - _onNavigationEntryCommitted_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onNavigationEntryCommitted_0_0value?: OnNavigationEntryCommittedCallback | undefined - _onIntelligentTrackingPreventionResult_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onIntelligentTrackingPreventionResult_0_0value?: OnIntelligentTrackingPreventionCallback | undefined - _javaScriptOnDocumentStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _javaScriptOnDocumentStart_0_0value?: Array | undefined - _javaScriptOnDocumentEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _javaScriptOnDocumentEnd_0_0value?: Array | undefined - _layoutMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _layoutMode_0_0value?: WebLayoutMode | undefined - _nestedScroll_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _nestedScroll_0_0value?: NestedScrollOptions | NestedScrollOptionsExt | undefined - _enableNativeEmbedMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableNativeEmbedMode_0_0value?: boolean | undefined - _onNativeEmbedLifecycleChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onNativeEmbedLifecycleChange_0_0value?: ((event: NativeEmbedDataInfo) => void) | undefined - _onNativeEmbedVisibilityChange_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onNativeEmbedVisibilityChange_0_0value?: OnNativeEmbedVisibilityChangeCallback | undefined - _onNativeEmbedGestureEvent_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onNativeEmbedGestureEvent_0_0value?: ((event: NativeEmbedTouchInfo) => void) | undefined - _copyOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _copyOptions_0_0value?: CopyOptions | undefined - _onOverrideUrlLoading_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onOverrideUrlLoading_0_0value?: OnOverrideUrlLoadingCallback | undefined - _textAutosizing_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _textAutosizing_0_0value?: boolean | undefined - _enableNativeMediaPlayer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableNativeMediaPlayer_0_0value?: NativeMediaPlayerConfig | undefined - _onRenderProcessNotResponding_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRenderProcessNotResponding_0_0value?: OnRenderProcessNotRespondingCallback | undefined - _onRenderProcessResponding_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onRenderProcessResponding_0_0value?: OnRenderProcessRespondingCallback | undefined - _onViewportFitChanged_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onViewportFitChanged_0_0value?: OnViewportFitChangedCallback | undefined - _onInterceptKeyboardAttach_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onInterceptKeyboardAttach_0_0value?: WebKeyboardCallback | undefined - _onAdsBlocked_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onAdsBlocked_0_0value?: OnAdsBlockedCallback | undefined - _keyboardAvoidMode_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _keyboardAvoidMode_0_0value?: WebKeyboardAvoidMode | undefined - _editMenuOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _editMenuOptions_0_0value?: EditMenuOptions | undefined - _enableHapticFeedback_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableHapticFeedback_0_0value?: boolean | undefined - _optimizeParserBudget_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _optimizeParserBudget_0_0value?: boolean | undefined - _enableFollowSystemFontWeight_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableFollowSystemFontWeight_0_0value?: boolean | undefined - _enableWebAVSession_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableWebAVSession_0_0value?: boolean | undefined - _runJavaScriptOnDocumentStart_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _runJavaScriptOnDocumentStart_0_0value?: Array | undefined - _runJavaScriptOnDocumentEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _runJavaScriptOnDocumentEnd_0_0value?: Array | undefined - _runJavaScriptOnHeadEnd_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _runJavaScriptOnHeadEnd_0_0value?: Array | undefined - _nativeEmbedOptions_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _nativeEmbedOptions_0_0value?: EmbedOptions | undefined - _registerNativeEmbedRule_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _registerNativeEmbedRule_0_0value?: string | undefined - _registerNativeEmbedRule_0_1value?: string | undefined - _bindSelectionMenu_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _bindSelectionMenu_0_0value?: WebElementType | undefined - _bindSelectionMenu_0_1value?: CustomBuilder | undefined - _bindSelectionMenu_0_2value?: WebResponseType | undefined - _bindSelectionMenu_0_3value?: SelectionMenuOptionsExt | undefined - applyModifierPatch(peer: ArkWebPeer): void { - super.applyModifierPatch(peer) - if (this._javaScriptAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._javaScriptAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setJavaScriptAccessAttribute((this._javaScriptAccess_0_0value as boolean | undefined)); - this._javaScriptAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._javaScriptAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._javaScriptAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setJavaScriptAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._fileAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._fileAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setFileAccessAttribute((this._fileAccess_0_0value as boolean | undefined)); - this._fileAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._fileAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._fileAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setFileAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onlineImageAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onlineImageAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnlineImageAccessAttribute((this._onlineImageAccess_0_0value as boolean | undefined)); - this._onlineImageAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onlineImageAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onlineImageAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnlineImageAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._domStorageAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._domStorageAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDomStorageAccessAttribute((this._domStorageAccess_0_0value as boolean | undefined)); - this._domStorageAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._domStorageAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._domStorageAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDomStorageAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._imageAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._imageAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setImageAccessAttribute((this._imageAccess_0_0value as boolean | undefined)); - this._imageAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._imageAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._imageAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setImageAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._mixedMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mixedMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMixedModeAttribute((this._mixedMode_0_0value as MixedMode | undefined)); - this._mixedMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mixedMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mixedMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMixedModeAttribute((undefined as MixedMode | undefined)); - } - } - } - if (this._zoomAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._zoomAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setZoomAccessAttribute((this._zoomAccess_0_0value as boolean | undefined)); - this._zoomAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._zoomAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._zoomAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setZoomAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._geolocationAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._geolocationAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setGeolocationAccessAttribute((this._geolocationAccess_0_0value as boolean | undefined)); - this._geolocationAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._geolocationAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._geolocationAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setGeolocationAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._javaScriptProxy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._javaScriptProxy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setJavaScriptProxyAttribute((this._javaScriptProxy_0_0value as JavaScriptProxy | undefined)); - this._javaScriptProxy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._javaScriptProxy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._javaScriptProxy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setJavaScriptProxyAttribute((undefined as JavaScriptProxy | undefined)); - } - } - } - if (this._cacheMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._cacheMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCacheModeAttribute((this._cacheMode_0_0value as CacheMode | undefined)); - this._cacheMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._cacheMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._cacheMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCacheModeAttribute((undefined as CacheMode | undefined)); - } - } - } - if (this._darkMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._darkMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDarkModeAttribute((this._darkMode_0_0value as WebDarkMode | undefined)); - this._darkMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._darkMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._darkMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDarkModeAttribute((undefined as WebDarkMode | undefined)); - } - } - } - if (this._forceDarkAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._forceDarkAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setForceDarkAccessAttribute((this._forceDarkAccess_0_0value as boolean | undefined)); - this._forceDarkAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._forceDarkAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._forceDarkAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setForceDarkAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._mediaOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mediaOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMediaOptionsAttribute((this._mediaOptions_0_0value as WebMediaOptions | undefined)); - this._mediaOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mediaOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mediaOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMediaOptionsAttribute((undefined as WebMediaOptions | undefined)); - } - } - } - if (this._overviewModeAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._overviewModeAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOverviewModeAccessAttribute((this._overviewModeAccess_0_0value as boolean | undefined)); - this._overviewModeAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._overviewModeAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._overviewModeAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOverviewModeAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._overScrollMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._overScrollMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOverScrollModeAttribute((this._overScrollMode_0_0value as OverScrollMode | undefined)); - this._overScrollMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._overScrollMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._overScrollMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOverScrollModeAttribute((undefined as OverScrollMode | undefined)); - } - } - } - if (this._blurOnKeyboardHideMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._blurOnKeyboardHideMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBlurOnKeyboardHideModeAttribute((this._blurOnKeyboardHideMode_0_0value as BlurOnKeyboardHideMode | undefined)); - this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBlurOnKeyboardHideModeAttribute((undefined as BlurOnKeyboardHideMode | undefined)); - } - } - } - if (this._textZoomRatio_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textZoomRatio_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextZoomRatioAttribute((this._textZoomRatio_0_0value as int32 | undefined)); - this._textZoomRatio_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textZoomRatio_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textZoomRatio_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextZoomRatioAttribute((undefined as int32 | undefined)); - } - } - } - if (this._databaseAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._databaseAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDatabaseAccessAttribute((this._databaseAccess_0_0value as boolean | undefined)); - this._databaseAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._databaseAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._databaseAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDatabaseAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._initialScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._initialScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setInitialScaleAttribute((this._initialScale_0_0value as double | undefined)); - this._initialScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._initialScale_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._initialScale_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setInitialScaleAttribute((undefined as double | undefined)); - } - } - } - if (this._metaViewport_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._metaViewport_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMetaViewportAttribute((this._metaViewport_0_0value as boolean | undefined)); - this._metaViewport_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._metaViewport_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._metaViewport_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMetaViewportAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onPageEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPageEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPageEndAttribute((this._onPageEnd_0_0value as ((value0: OnPageEndEvent) => void) | undefined)); - this._onPageEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPageEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPageEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPageEndAttribute((undefined as ((value0: OnPageEndEvent) => void) | undefined)); - } - } - } - if (this._onPageBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPageBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPageBeginAttribute((this._onPageBegin_0_0value as ((value0: OnPageBeginEvent) => void) | undefined)); - this._onPageBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPageBegin_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPageBegin_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPageBeginAttribute((undefined as ((value0: OnPageBeginEvent) => void) | undefined)); - } - } - } - if (this._onProgressChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onProgressChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnProgressChangeAttribute((this._onProgressChange_0_0value as ((value0: OnProgressChangeEvent) => void) | undefined)); - this._onProgressChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onProgressChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onProgressChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnProgressChangeAttribute((undefined as ((value0: OnProgressChangeEvent) => void) | undefined)); - } - } - } - if (this._onTitleReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTitleReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTitleReceiveAttribute((this._onTitleReceive_0_0value as ((value0: OnTitleReceiveEvent) => void) | undefined)); - this._onTitleReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTitleReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTitleReceive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTitleReceiveAttribute((undefined as ((value0: OnTitleReceiveEvent) => void) | undefined)); - } - } - } - if (this._onGeolocationHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onGeolocationHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnGeolocationHideAttribute((this._onGeolocationHide_0_0value as (() => void) | undefined)); - this._onGeolocationHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onGeolocationHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onGeolocationHide_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnGeolocationHideAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onGeolocationShow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onGeolocationShow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnGeolocationShowAttribute((this._onGeolocationShow_0_0value as ((value0: OnGeolocationShowEvent) => void) | undefined)); - this._onGeolocationShow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onGeolocationShow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onGeolocationShow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnGeolocationShowAttribute((undefined as ((value0: OnGeolocationShowEvent) => void) | undefined)); - } - } - } - if (this._onRequestSelected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRequestSelected_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRequestSelectedAttribute((this._onRequestSelected_0_0value as (() => void) | undefined)); - this._onRequestSelected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRequestSelected_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRequestSelected_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRequestSelectedAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onAlert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAlert_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAlertAttribute((this._onAlert_0_0value as ((value0: OnAlertEvent) => boolean) | undefined)); - this._onAlert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAlert_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAlert_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAlertAttribute((undefined as ((value0: OnAlertEvent) => boolean) | undefined)); - } - } - } - if (this._onBeforeUnload_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onBeforeUnload_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnBeforeUnloadAttribute((this._onBeforeUnload_0_0value as ((value0: OnBeforeUnloadEvent) => boolean) | undefined)); - this._onBeforeUnload_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onBeforeUnload_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onBeforeUnload_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnBeforeUnloadAttribute((undefined as ((value0: OnBeforeUnloadEvent) => boolean) | undefined)); - } - } - } - if (this._onConfirm_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onConfirm_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnConfirmAttribute((this._onConfirm_0_0value as ((value0: OnConfirmEvent) => boolean) | undefined)); - this._onConfirm_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onConfirm_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onConfirm_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnConfirmAttribute((undefined as ((value0: OnConfirmEvent) => boolean) | undefined)); - } - } - } - if (this._onPrompt_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPrompt_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPromptAttribute((this._onPrompt_0_0value as ((value0: OnPromptEvent) => boolean) | undefined)); - this._onPrompt_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPrompt_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPrompt_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPromptAttribute((undefined as ((value0: OnPromptEvent) => boolean) | undefined)); - } - } - } - if (this._onConsole_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onConsole_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnConsoleAttribute((this._onConsole_0_0value as ((value0: OnConsoleEvent) => boolean) | undefined)); - this._onConsole_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onConsole_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onConsole_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnConsoleAttribute((undefined as ((value0: OnConsoleEvent) => boolean) | undefined)); - } - } - } - if (this._onErrorReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onErrorReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnErrorReceiveAttribute((this._onErrorReceive_0_0value as ((value0: OnErrorReceiveEvent) => void) | undefined)); - this._onErrorReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onErrorReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onErrorReceive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnErrorReceiveAttribute((undefined as ((value0: OnErrorReceiveEvent) => void) | undefined)); - } - } - } - if (this._onHttpErrorReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onHttpErrorReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnHttpErrorReceiveAttribute((this._onHttpErrorReceive_0_0value as ((value0: OnHttpErrorReceiveEvent) => void) | undefined)); - this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnHttpErrorReceiveAttribute((undefined as ((value0: OnHttpErrorReceiveEvent) => void) | undefined)); - } - } - } - if (this._onDownloadStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDownloadStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDownloadStartAttribute((this._onDownloadStart_0_0value as ((value0: OnDownloadStartEvent) => void) | undefined)); - this._onDownloadStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDownloadStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDownloadStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDownloadStartAttribute((undefined as ((value0: OnDownloadStartEvent) => void) | undefined)); - } - } - } - if (this._onRefreshAccessedHistory_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRefreshAccessedHistory_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRefreshAccessedHistoryAttribute((this._onRefreshAccessedHistory_0_0value as ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined)); - this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRefreshAccessedHistoryAttribute((undefined as ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined)); - } - } - } - if (this._onRenderExited_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRenderExited_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRenderExitedAttribute((this._onRenderExited_0_0value as ((value0: OnRenderExitedEvent) => void) | undefined)); - this._onRenderExited_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRenderExited_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRenderExited_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRenderExitedAttribute((undefined as ((value0: OnRenderExitedEvent) => void) | undefined)); - } - } - } - if (this._onShowFileSelector_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onShowFileSelector_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnShowFileSelectorAttribute((this._onShowFileSelector_0_0value as ((value0: OnShowFileSelectorEvent) => boolean) | undefined)); - this._onShowFileSelector_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onShowFileSelector_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onShowFileSelector_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnShowFileSelectorAttribute((undefined as ((value0: OnShowFileSelectorEvent) => boolean) | undefined)); - } - } - } - if (this._onResourceLoad_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onResourceLoad_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnResourceLoadAttribute((this._onResourceLoad_0_0value as ((value0: OnResourceLoadEvent) => void) | undefined)); - this._onResourceLoad_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onResourceLoad_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onResourceLoad_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnResourceLoadAttribute((undefined as ((value0: OnResourceLoadEvent) => void) | undefined)); - } - } - } - if (this._onFullScreenExit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFullScreenExit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFullScreenExitAttribute((this._onFullScreenExit_0_0value as (() => void) | undefined)); - this._onFullScreenExit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFullScreenExit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFullScreenExit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFullScreenExitAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onFullScreenEnter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFullScreenEnter_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFullScreenEnterAttribute((this._onFullScreenEnter_0_0value as OnFullScreenEnterCallback | undefined)); - this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFullScreenEnterAttribute((undefined as OnFullScreenEnterCallback | undefined)); - } - } - } - if (this._onScaleChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScaleChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScaleChangeAttribute((this._onScaleChange_0_0value as ((value0: OnScaleChangeEvent) => void) | undefined)); - this._onScaleChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScaleChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScaleChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScaleChangeAttribute((undefined as ((value0: OnScaleChangeEvent) => void) | undefined)); - } - } - } - if (this._onHttpAuthRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onHttpAuthRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnHttpAuthRequestAttribute((this._onHttpAuthRequest_0_0value as ((value0: OnHttpAuthRequestEvent) => boolean) | undefined)); - this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnHttpAuthRequestAttribute((undefined as ((value0: OnHttpAuthRequestEvent) => boolean) | undefined)); - } - } - } - if (this._onInterceptRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onInterceptRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnInterceptRequestAttribute((this._onInterceptRequest_0_0value as ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined)); - this._onInterceptRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onInterceptRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onInterceptRequest_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnInterceptRequestAttribute((undefined as ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined)); - } - } - } - if (this._onPermissionRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPermissionRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPermissionRequestAttribute((this._onPermissionRequest_0_0value as ((value0: OnPermissionRequestEvent) => void) | undefined)); - this._onPermissionRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPermissionRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPermissionRequest_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPermissionRequestAttribute((undefined as ((value0: OnPermissionRequestEvent) => void) | undefined)); - } - } - } - if (this._onScreenCaptureRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScreenCaptureRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScreenCaptureRequestAttribute((this._onScreenCaptureRequest_0_0value as ((value0: OnScreenCaptureRequestEvent) => void) | undefined)); - this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScreenCaptureRequestAttribute((undefined as ((value0: OnScreenCaptureRequestEvent) => void) | undefined)); - } - } - } - if (this._onContextMenuShow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onContextMenuShow_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnContextMenuShowAttribute((this._onContextMenuShow_0_0value as ((value0: OnContextMenuShowEvent) => boolean) | undefined)); - this._onContextMenuShow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onContextMenuShow_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onContextMenuShow_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnContextMenuShowAttribute((undefined as ((value0: OnContextMenuShowEvent) => boolean) | undefined)); - } - } - } - if (this._onContextMenuHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onContextMenuHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnContextMenuHideAttribute((this._onContextMenuHide_0_0value as OnContextMenuHideCallback | undefined)); - this._onContextMenuHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onContextMenuHide_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onContextMenuHide_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnContextMenuHideAttribute((undefined as OnContextMenuHideCallback | undefined)); - } - } - } - if (this._mediaPlayGestureAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._mediaPlayGestureAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMediaPlayGestureAccessAttribute((this._mediaPlayGestureAccess_0_0value as boolean | undefined)); - this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMediaPlayGestureAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onSearchResultReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSearchResultReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSearchResultReceiveAttribute((this._onSearchResultReceive_0_0value as ((value0: OnSearchResultReceiveEvent) => void) | undefined)); - this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSearchResultReceiveAttribute((undefined as ((value0: OnSearchResultReceiveEvent) => void) | undefined)); - } - } - } - if (this._onScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnScrollAttribute((this._onScroll_0_0value as ((value0: OnScrollEvent) => void) | undefined)); - this._onScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnScrollAttribute((undefined as ((value0: OnScrollEvent) => void) | undefined)); - } - } - } - if (this._onSslErrorEventReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSslErrorEventReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSslErrorEventReceiveAttribute((this._onSslErrorEventReceive_0_0value as ((value0: OnSslErrorEventReceiveEvent) => void) | undefined)); - this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSslErrorEventReceiveAttribute((undefined as ((value0: OnSslErrorEventReceiveEvent) => void) | undefined)); - } - } - } - if (this._onSslErrorEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSslErrorEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSslErrorEventAttribute((this._onSslErrorEvent_0_0value as OnSslErrorEventCallback | undefined)); - this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSslErrorEventAttribute((undefined as OnSslErrorEventCallback | undefined)); - } - } - } - if (this._onClientAuthenticationRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onClientAuthenticationRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnClientAuthenticationRequestAttribute((this._onClientAuthenticationRequest_0_0value as ((value0: OnClientAuthenticationEvent) => void) | undefined)); - this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnClientAuthenticationRequestAttribute((undefined as ((value0: OnClientAuthenticationEvent) => void) | undefined)); - } - } - } - if (this._onWindowNew_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWindowNew_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWindowNewAttribute((this._onWindowNew_0_0value as ((value0: OnWindowNewEvent) => void) | undefined)); - this._onWindowNew_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWindowNew_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWindowNew_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWindowNewAttribute((undefined as ((value0: OnWindowNewEvent) => void) | undefined)); - } - } - } - if (this._onWindowExit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onWindowExit_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnWindowExitAttribute((this._onWindowExit_0_0value as (() => void) | undefined)); - this._onWindowExit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onWindowExit_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onWindowExit_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnWindowExitAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._multiWindowAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._multiWindowAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMultiWindowAccessAttribute((this._multiWindowAccess_0_0value as boolean | undefined)); - this._multiWindowAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._multiWindowAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._multiWindowAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMultiWindowAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onInterceptKeyEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onInterceptKeyEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnInterceptKeyEventAttribute((this._onInterceptKeyEvent_0_0value as ((event: KeyEvent) => boolean) | undefined)); - this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnInterceptKeyEventAttribute((undefined as ((event: KeyEvent) => boolean) | undefined)); - } - } - } - if (this._webStandardFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._webStandardFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setWebStandardFontAttribute((this._webStandardFont_0_0value as string | undefined)); - this._webStandardFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._webStandardFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._webStandardFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setWebStandardFontAttribute((undefined as string | undefined)); - } - } - } - if (this._webSerifFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._webSerifFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setWebSerifFontAttribute((this._webSerifFont_0_0value as string | undefined)); - this._webSerifFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._webSerifFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._webSerifFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setWebSerifFontAttribute((undefined as string | undefined)); - } - } - } - if (this._webSansSerifFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._webSansSerifFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setWebSansSerifFontAttribute((this._webSansSerifFont_0_0value as string | undefined)); - this._webSansSerifFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._webSansSerifFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._webSansSerifFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setWebSansSerifFontAttribute((undefined as string | undefined)); - } - } - } - if (this._webFixedFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._webFixedFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setWebFixedFontAttribute((this._webFixedFont_0_0value as string | undefined)); - this._webFixedFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._webFixedFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._webFixedFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setWebFixedFontAttribute((undefined as string | undefined)); - } - } - } - if (this._webFantasyFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._webFantasyFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setWebFantasyFontAttribute((this._webFantasyFont_0_0value as string | undefined)); - this._webFantasyFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._webFantasyFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._webFantasyFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setWebFantasyFontAttribute((undefined as string | undefined)); - } - } - } - if (this._webCursiveFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._webCursiveFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setWebCursiveFontAttribute((this._webCursiveFont_0_0value as string | undefined)); - this._webCursiveFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._webCursiveFont_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._webCursiveFont_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setWebCursiveFontAttribute((undefined as string | undefined)); - } - } - } - if (this._defaultFixedFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._defaultFixedFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDefaultFixedFontSizeAttribute((this._defaultFixedFontSize_0_0value as int32 | undefined)); - this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDefaultFixedFontSizeAttribute((undefined as int32 | undefined)); - } - } - } - if (this._defaultFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._defaultFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDefaultFontSizeAttribute((this._defaultFontSize_0_0value as int32 | undefined)); - this._defaultFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._defaultFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._defaultFontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDefaultFontSizeAttribute((undefined as int32 | undefined)); - } - } - } - if (this._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinFontSizeAttribute((this._minFontSize_0_0value as int32 | undefined)); - this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minFontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinFontSizeAttribute((undefined as int32 | undefined)); - } - } - } - if (this._minLogicalFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._minLogicalFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setMinLogicalFontSizeAttribute((this._minLogicalFontSize_0_0value as int32 | undefined)); - this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setMinLogicalFontSizeAttribute((undefined as int32 | undefined)); - } - } - } - if (this._defaultTextEncodingFormat_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._defaultTextEncodingFormat_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setDefaultTextEncodingFormatAttribute((this._defaultTextEncodingFormat_0_0value as string | undefined)); - this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setDefaultTextEncodingFormatAttribute((undefined as string | undefined)); - } - } - } - if (this._forceDisplayScrollBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._forceDisplayScrollBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setForceDisplayScrollBarAttribute((this._forceDisplayScrollBar_0_0value as boolean | undefined)); - this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setForceDisplayScrollBarAttribute((undefined as boolean | undefined)); - } - } - } - if (this._blockNetwork_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._blockNetwork_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBlockNetworkAttribute((this._blockNetwork_0_0value as boolean | undefined)); - this._blockNetwork_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._blockNetwork_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._blockNetwork_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBlockNetworkAttribute((undefined as boolean | undefined)); - } - } - } - if (this._horizontalScrollBarAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._horizontalScrollBarAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHorizontalScrollBarAccessAttribute((this._horizontalScrollBarAccess_0_0value as boolean | undefined)); - this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHorizontalScrollBarAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._verticalScrollBarAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._verticalScrollBarAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setVerticalScrollBarAccessAttribute((this._verticalScrollBarAccess_0_0value as boolean | undefined)); - this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setVerticalScrollBarAccessAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onTouchIconUrlReceived_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onTouchIconUrlReceived_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnTouchIconUrlReceivedAttribute((this._onTouchIconUrlReceived_0_0value as ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined)); - this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnTouchIconUrlReceivedAttribute((undefined as ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined)); - } - } - } - if (this._onFaviconReceived_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFaviconReceived_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFaviconReceivedAttribute((this._onFaviconReceived_0_0value as ((value0: OnFaviconReceivedEvent) => void) | undefined)); - this._onFaviconReceived_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFaviconReceived_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFaviconReceived_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFaviconReceivedAttribute((undefined as ((value0: OnFaviconReceivedEvent) => void) | undefined)); - } - } - } - if (this._onPageVisible_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onPageVisible_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnPageVisibleAttribute((this._onPageVisible_0_0value as ((value0: OnPageVisibleEvent) => void) | undefined)); - this._onPageVisible_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onPageVisible_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onPageVisible_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnPageVisibleAttribute((undefined as ((value0: OnPageVisibleEvent) => void) | undefined)); - } - } - } - if (this._onDataResubmitted_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDataResubmitted_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDataResubmittedAttribute((this._onDataResubmitted_0_0value as ((value0: OnDataResubmittedEvent) => void) | undefined)); - this._onDataResubmitted_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDataResubmitted_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDataResubmitted_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDataResubmittedAttribute((undefined as ((value0: OnDataResubmittedEvent) => void) | undefined)); - } - } - } - if (this._pinchSmooth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._pinchSmooth_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setPinchSmoothAttribute((this._pinchSmooth_0_0value as boolean | undefined)); - this._pinchSmooth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._pinchSmooth_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._pinchSmooth_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setPinchSmoothAttribute((undefined as boolean | undefined)); - } - } - } - if (this._allowWindowOpenMethod_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._allowWindowOpenMethod_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAllowWindowOpenMethodAttribute((this._allowWindowOpenMethod_0_0value as boolean | undefined)); - this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAllowWindowOpenMethodAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onAudioStateChanged_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAudioStateChanged_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAudioStateChangedAttribute((this._onAudioStateChanged_0_0value as ((value0: OnAudioStateChangedEvent) => void) | undefined)); - this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAudioStateChangedAttribute((undefined as ((value0: OnAudioStateChangedEvent) => void) | undefined)); - } - } - } - if (this._onFirstContentfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFirstContentfulPaint_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFirstContentfulPaintAttribute((this._onFirstContentfulPaint_0_0value as ((value0: OnFirstContentfulPaintEvent) => void) | undefined)); - this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFirstContentfulPaintAttribute((undefined as ((value0: OnFirstContentfulPaintEvent) => void) | undefined)); - } - } - } - if (this._onFirstMeaningfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onFirstMeaningfulPaint_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnFirstMeaningfulPaintAttribute((this._onFirstMeaningfulPaint_0_0value as OnFirstMeaningfulPaintCallback | undefined)); - this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnFirstMeaningfulPaintAttribute((undefined as OnFirstMeaningfulPaintCallback | undefined)); - } - } - } - if (this._onLargestContentfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onLargestContentfulPaint_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnLargestContentfulPaintAttribute((this._onLargestContentfulPaint_0_0value as OnLargestContentfulPaintCallback | undefined)); - this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnLargestContentfulPaintAttribute((undefined as OnLargestContentfulPaintCallback | undefined)); - } - } - } - if (this._onLoadIntercept_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onLoadIntercept_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnLoadInterceptAttribute((this._onLoadIntercept_0_0value as ((value0: OnLoadInterceptEvent) => boolean) | undefined)); - this._onLoadIntercept_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onLoadIntercept_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onLoadIntercept_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnLoadInterceptAttribute((undefined as ((value0: OnLoadInterceptEvent) => boolean) | undefined)); - } - } - } - if (this._onControllerAttached_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onControllerAttached_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnControllerAttachedAttribute((this._onControllerAttached_0_0value as (() => void) | undefined)); - this._onControllerAttached_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onControllerAttached_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onControllerAttached_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnControllerAttachedAttribute((undefined as (() => void) | undefined)); - } - } - } - if (this._onOverScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onOverScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnOverScrollAttribute((this._onOverScroll_0_0value as ((value0: OnOverScrollEvent) => void) | undefined)); - this._onOverScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onOverScroll_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onOverScroll_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnOverScrollAttribute((undefined as ((value0: OnOverScrollEvent) => void) | undefined)); - } - } - } - if (this._onSafeBrowsingCheckResult_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onSafeBrowsingCheckResult_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnSafeBrowsingCheckResultAttribute((this._onSafeBrowsingCheckResult_0_0value as OnSafeBrowsingCheckResultCallback | undefined)); - this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnSafeBrowsingCheckResultAttribute((undefined as OnSafeBrowsingCheckResultCallback | undefined)); - } - } - } - if (this._onNavigationEntryCommitted_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onNavigationEntryCommitted_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnNavigationEntryCommittedAttribute((this._onNavigationEntryCommitted_0_0value as OnNavigationEntryCommittedCallback | undefined)); - this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnNavigationEntryCommittedAttribute((undefined as OnNavigationEntryCommittedCallback | undefined)); - } - } - } - if (this._onIntelligentTrackingPreventionResult_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onIntelligentTrackingPreventionResult_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnIntelligentTrackingPreventionResultAttribute((this._onIntelligentTrackingPreventionResult_0_0value as OnIntelligentTrackingPreventionCallback | undefined)); - this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnIntelligentTrackingPreventionResultAttribute((undefined as OnIntelligentTrackingPreventionCallback | undefined)); - } - } - } - if (this._javaScriptOnDocumentStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._javaScriptOnDocumentStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setJavaScriptOnDocumentStartAttribute((this._javaScriptOnDocumentStart_0_0value as Array | undefined)); - this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setJavaScriptOnDocumentStartAttribute((undefined as Array | undefined)); - } - } - } - if (this._javaScriptOnDocumentEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._javaScriptOnDocumentEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setJavaScriptOnDocumentEndAttribute((this._javaScriptOnDocumentEnd_0_0value as Array | undefined)); - this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setJavaScriptOnDocumentEndAttribute((undefined as Array | undefined)); - } - } - } - if (this._layoutMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._layoutMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setLayoutModeAttribute((this._layoutMode_0_0value as WebLayoutMode | undefined)); - this._layoutMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._layoutMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._layoutMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setLayoutModeAttribute((undefined as WebLayoutMode | undefined)); - } - } - } - if (this._nestedScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._nestedScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNestedScrollAttribute((this._nestedScroll_0_0value as NestedScrollOptions | NestedScrollOptionsExt | 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 | NestedScrollOptionsExt | undefined)); - } - } - } - if (this._enableNativeEmbedMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableNativeEmbedMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableNativeEmbedModeAttribute((this._enableNativeEmbedMode_0_0value as boolean | undefined)); - this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableNativeEmbedModeAttribute((undefined as boolean | undefined)); - } - } - } - if (this._onNativeEmbedLifecycleChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onNativeEmbedLifecycleChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnNativeEmbedLifecycleChangeAttribute((this._onNativeEmbedLifecycleChange_0_0value as ((event: NativeEmbedDataInfo) => void) | undefined)); - this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnNativeEmbedLifecycleChangeAttribute((undefined as ((event: NativeEmbedDataInfo) => void) | undefined)); - } - } - } - if (this._onNativeEmbedVisibilityChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onNativeEmbedVisibilityChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnNativeEmbedVisibilityChangeAttribute((this._onNativeEmbedVisibilityChange_0_0value as OnNativeEmbedVisibilityChangeCallback | undefined)); - this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnNativeEmbedVisibilityChangeAttribute((undefined as OnNativeEmbedVisibilityChangeCallback | undefined)); - } - } - } - if (this._onNativeEmbedGestureEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onNativeEmbedGestureEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnNativeEmbedGestureEventAttribute((this._onNativeEmbedGestureEvent_0_0value as ((event: NativeEmbedTouchInfo) => void) | undefined)); - this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnNativeEmbedGestureEventAttribute((undefined as ((event: NativeEmbedTouchInfo) => void) | undefined)); - } - } - } - if (this._copyOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._copyOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setCopyOptionsAttribute((this._copyOptions_0_0value as CopyOptions | undefined)); - this._copyOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._copyOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._copyOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setCopyOptionsAttribute((undefined as CopyOptions | undefined)); - } - } - } - if (this._onOverrideUrlLoading_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onOverrideUrlLoading_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnOverrideUrlLoadingAttribute((this._onOverrideUrlLoading_0_0value as OnOverrideUrlLoadingCallback | undefined)); - this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnOverrideUrlLoadingAttribute((undefined as OnOverrideUrlLoadingCallback | undefined)); - } - } - } - if (this._textAutosizing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._textAutosizing_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setTextAutosizingAttribute((this._textAutosizing_0_0value as boolean | undefined)); - this._textAutosizing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._textAutosizing_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._textAutosizing_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setTextAutosizingAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableNativeMediaPlayer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableNativeMediaPlayer_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableNativeMediaPlayerAttribute((this._enableNativeMediaPlayer_0_0value as NativeMediaPlayerConfig | undefined)); - this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableNativeMediaPlayerAttribute((undefined as NativeMediaPlayerConfig | undefined)); - } - } - } - if (this._onRenderProcessNotResponding_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRenderProcessNotResponding_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRenderProcessNotRespondingAttribute((this._onRenderProcessNotResponding_0_0value as OnRenderProcessNotRespondingCallback | undefined)); - this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRenderProcessNotRespondingAttribute((undefined as OnRenderProcessNotRespondingCallback | undefined)); - } - } - } - if (this._onRenderProcessResponding_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onRenderProcessResponding_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnRenderProcessRespondingAttribute((this._onRenderProcessResponding_0_0value as OnRenderProcessRespondingCallback | undefined)); - this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnRenderProcessRespondingAttribute((undefined as OnRenderProcessRespondingCallback | undefined)); - } - } - } - if (this._onViewportFitChanged_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onViewportFitChanged_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnViewportFitChangedAttribute((this._onViewportFitChanged_0_0value as OnViewportFitChangedCallback | undefined)); - this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnViewportFitChangedAttribute((undefined as OnViewportFitChangedCallback | undefined)); - } - } - } - if (this._onInterceptKeyboardAttach_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onInterceptKeyboardAttach_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnInterceptKeyboardAttachAttribute((this._onInterceptKeyboardAttach_0_0value as WebKeyboardCallback | undefined)); - this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnInterceptKeyboardAttachAttribute((undefined as WebKeyboardCallback | undefined)); - } - } - } - if (this._onAdsBlocked_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onAdsBlocked_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnAdsBlockedAttribute((this._onAdsBlocked_0_0value as OnAdsBlockedCallback | undefined)); - this._onAdsBlocked_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onAdsBlocked_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onAdsBlocked_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnAdsBlockedAttribute((undefined as OnAdsBlockedCallback | undefined)); - } - } - } - if (this._keyboardAvoidMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._keyboardAvoidMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setKeyboardAvoidModeAttribute((this._keyboardAvoidMode_0_0value as WebKeyboardAvoidMode | undefined)); - this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setKeyboardAvoidModeAttribute((undefined as WebKeyboardAvoidMode | undefined)); - } - } - } - if (this._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._editMenuOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEditMenuOptionsAttribute((this._editMenuOptions_0_0value as EditMenuOptions | undefined)); - this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEditMenuOptionsAttribute((undefined as EditMenuOptions | undefined)); - } - } - } - if (this._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableHapticFeedbackAttribute((this._enableHapticFeedback_0_0value as boolean | undefined)); - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableHapticFeedbackAttribute((undefined as boolean | undefined)); - } - } - } - if (this._optimizeParserBudget_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._optimizeParserBudget_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOptimizeParserBudgetAttribute((this._optimizeParserBudget_0_0value as boolean | undefined)); - this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOptimizeParserBudgetAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableFollowSystemFontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableFollowSystemFontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableFollowSystemFontWeightAttribute((this._enableFollowSystemFontWeight_0_0value as boolean | undefined)); - this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableFollowSystemFontWeightAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableWebAVSession_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableWebAVSession_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableWebAVSessionAttribute((this._enableWebAVSession_0_0value as boolean | undefined)); - this._enableWebAVSession_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableWebAVSession_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableWebAVSession_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableWebAVSessionAttribute((undefined as boolean | undefined)); - } - } - } - if (this._runJavaScriptOnDocumentStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._runJavaScriptOnDocumentStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRunJavaScriptOnDocumentStartAttribute((this._runJavaScriptOnDocumentStart_0_0value as Array | undefined)); - this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRunJavaScriptOnDocumentStartAttribute((undefined as Array | undefined)); - } - } - } - if (this._runJavaScriptOnDocumentEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._runJavaScriptOnDocumentEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRunJavaScriptOnDocumentEndAttribute((this._runJavaScriptOnDocumentEnd_0_0value as Array | undefined)); - this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRunJavaScriptOnDocumentEndAttribute((undefined as Array | undefined)); - } - } - } - if (this._runJavaScriptOnHeadEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._runJavaScriptOnHeadEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRunJavaScriptOnHeadEndAttribute((this._runJavaScriptOnHeadEnd_0_0value as Array | undefined)); - this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRunJavaScriptOnHeadEndAttribute((undefined as Array | undefined)); - } - } - } - if (this._nativeEmbedOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._nativeEmbedOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setNativeEmbedOptionsAttribute((this._nativeEmbedOptions_0_0value as EmbedOptions | undefined)); - this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setNativeEmbedOptionsAttribute((undefined as EmbedOptions | undefined)); - } - } - } - if (this._registerNativeEmbedRule_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._registerNativeEmbedRule_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setRegisterNativeEmbedRuleAttribute((this._registerNativeEmbedRule_0_0value as string | undefined), (this._registerNativeEmbedRule_0_1value as string | undefined)); - this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setRegisterNativeEmbedRuleAttribute((undefined as string | undefined), (undefined as string | undefined)); - } - } - } - if (this._bindSelectionMenu_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._bindSelectionMenu_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setBindSelectionMenuAttribute((this._bindSelectionMenu_0_0value as WebElementType | undefined), (this._bindSelectionMenu_0_1value as CustomBuilder | undefined), (this._bindSelectionMenu_0_2value as WebResponseType | undefined), (this._bindSelectionMenu_0_3value as SelectionMenuOptionsExt | undefined)); - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setBindSelectionMenuAttribute((undefined as WebElementType | undefined), (undefined as CustomBuilder | undefined), (undefined as WebResponseType | undefined), (undefined as SelectionMenuOptionsExt | undefined | undefined)); - } - } - } - } - mergeModifier(modifier: WebModifier): void { - super.mergeModifier(modifier) - if (modifier._javaScriptAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._javaScriptAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.javaScriptAccess(modifier._javaScriptAccess_0_0value); - break; - } - default: { - this.javaScriptAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._fileAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._fileAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.fileAccess(modifier._fileAccess_0_0value); - break; - } - default: { - this.fileAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._onlineImageAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onlineImageAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onlineImageAccess(modifier._onlineImageAccess_0_0value); - break; - } - default: { - this.onlineImageAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._domStorageAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._domStorageAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.domStorageAccess(modifier._domStorageAccess_0_0value); - break; - } - default: { - this.domStorageAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._imageAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._imageAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.imageAccess(modifier._imageAccess_0_0value); - break; - } - default: { - this.imageAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._mixedMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mixedMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mixedMode(modifier._mixedMode_0_0value); - break; - } - default: { - this.mixedMode((undefined as MixedMode | undefined)); - } - } - } - if (modifier._zoomAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._zoomAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.zoomAccess(modifier._zoomAccess_0_0value); - break; - } - default: { - this.zoomAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._geolocationAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._geolocationAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.geolocationAccess(modifier._geolocationAccess_0_0value); - break; - } - default: { - this.geolocationAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._javaScriptProxy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._javaScriptProxy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.javaScriptProxy(modifier._javaScriptProxy_0_0value); - break; - } - default: { - this.javaScriptProxy((undefined as JavaScriptProxy | undefined)); - } - } - } - if (modifier._cacheMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._cacheMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.cacheMode(modifier._cacheMode_0_0value); - break; - } - default: { - this.cacheMode((undefined as CacheMode | undefined)); - } - } - } - if (modifier._darkMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._darkMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.darkMode(modifier._darkMode_0_0value); - break; - } - default: { - this.darkMode((undefined as WebDarkMode | undefined)); - } - } - } - if (modifier._forceDarkAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._forceDarkAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.forceDarkAccess(modifier._forceDarkAccess_0_0value); - break; - } - default: { - this.forceDarkAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._mediaOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mediaOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mediaOptions(modifier._mediaOptions_0_0value); - break; - } - default: { - this.mediaOptions((undefined as WebMediaOptions | undefined)); - } - } - } - if (modifier._overviewModeAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._overviewModeAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.overviewModeAccess(modifier._overviewModeAccess_0_0value); - break; - } - default: { - this.overviewModeAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._overScrollMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._overScrollMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.overScrollMode(modifier._overScrollMode_0_0value); - break; - } - default: { - this.overScrollMode((undefined as OverScrollMode | undefined)); - } - } - } - if (modifier._blurOnKeyboardHideMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._blurOnKeyboardHideMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.blurOnKeyboardHideMode(modifier._blurOnKeyboardHideMode_0_0value); - break; - } - default: { - this.blurOnKeyboardHideMode((undefined as BlurOnKeyboardHideMode | undefined)); - } - } - } - if (modifier._textZoomRatio_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textZoomRatio_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textZoomRatio(modifier._textZoomRatio_0_0value); - break; - } - default: { - this.textZoomRatio((undefined as int32 | undefined)); - } - } - } - if (modifier._databaseAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._databaseAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.databaseAccess(modifier._databaseAccess_0_0value); - break; - } - default: { - this.databaseAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._initialScale_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._initialScale_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.initialScale(modifier._initialScale_0_0value); - break; - } - default: { - this.initialScale((undefined as double | undefined)); - } - } - } - if (modifier._metaViewport_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._metaViewport_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.metaViewport(modifier._metaViewport_0_0value); - break; - } - default: { - this.metaViewport((undefined as boolean | undefined)); - } - } - } - if (modifier._onPageEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPageEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPageEnd(modifier._onPageEnd_0_0value); - break; - } - default: { - this.onPageEnd((undefined as ((value0: OnPageEndEvent) => void) | undefined)); - } - } - } - if (modifier._onPageBegin_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPageBegin_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPageBegin(modifier._onPageBegin_0_0value); - break; - } - default: { - this.onPageBegin((undefined as ((value0: OnPageBeginEvent) => void) | undefined)); - } - } - } - if (modifier._onProgressChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onProgressChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onProgressChange(modifier._onProgressChange_0_0value); - break; - } - default: { - this.onProgressChange((undefined as ((value0: OnProgressChangeEvent) => void) | undefined)); - } - } - } - if (modifier._onTitleReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTitleReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTitleReceive(modifier._onTitleReceive_0_0value); - break; - } - default: { - this.onTitleReceive((undefined as ((value0: OnTitleReceiveEvent) => void) | undefined)); - } - } - } - if (modifier._onGeolocationHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onGeolocationHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onGeolocationHide(modifier._onGeolocationHide_0_0value); - break; - } - default: { - this.onGeolocationHide((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onGeolocationShow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onGeolocationShow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onGeolocationShow(modifier._onGeolocationShow_0_0value); - break; - } - default: { - this.onGeolocationShow((undefined as ((value0: OnGeolocationShowEvent) => void) | undefined)); - } - } - } - if (modifier._onRequestSelected_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRequestSelected_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRequestSelected(modifier._onRequestSelected_0_0value); - break; - } - default: { - this.onRequestSelected((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onAlert_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAlert_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAlert(modifier._onAlert_0_0value); - break; - } - default: { - this.onAlert((undefined as ((value0: OnAlertEvent) => boolean) | undefined)); - } - } - } - if (modifier._onBeforeUnload_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onBeforeUnload_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onBeforeUnload(modifier._onBeforeUnload_0_0value); - break; - } - default: { - this.onBeforeUnload((undefined as ((value0: OnBeforeUnloadEvent) => boolean) | undefined)); - } - } - } - if (modifier._onConfirm_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onConfirm_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onConfirm(modifier._onConfirm_0_0value); - break; - } - default: { - this.onConfirm((undefined as ((value0: OnConfirmEvent) => boolean) | undefined)); - } - } - } - if (modifier._onPrompt_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPrompt_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPrompt(modifier._onPrompt_0_0value); - break; - } - default: { - this.onPrompt((undefined as ((value0: OnPromptEvent) => boolean) | undefined)); - } - } - } - if (modifier._onConsole_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onConsole_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onConsole(modifier._onConsole_0_0value); - break; - } - default: { - this.onConsole((undefined as ((value0: OnConsoleEvent) => boolean) | undefined)); - } - } - } - if (modifier._onErrorReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onErrorReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onErrorReceive(modifier._onErrorReceive_0_0value); - break; - } - default: { - this.onErrorReceive((undefined as ((value0: OnErrorReceiveEvent) => void) | undefined)); - } - } - } - if (modifier._onHttpErrorReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onHttpErrorReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onHttpErrorReceive(modifier._onHttpErrorReceive_0_0value); - break; - } - default: { - this.onHttpErrorReceive((undefined as ((value0: OnHttpErrorReceiveEvent) => void) | undefined)); - } - } - } - if (modifier._onDownloadStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDownloadStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDownloadStart(modifier._onDownloadStart_0_0value); - break; - } - default: { - this.onDownloadStart((undefined as ((value0: OnDownloadStartEvent) => void) | undefined)); - } - } - } - if (modifier._onRefreshAccessedHistory_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRefreshAccessedHistory_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRefreshAccessedHistory(modifier._onRefreshAccessedHistory_0_0value); - break; - } - default: { - this.onRefreshAccessedHistory((undefined as ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined)); - } - } - } - if (modifier._onRenderExited_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRenderExited_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRenderExited(modifier._onRenderExited_0_0value); - break; - } - default: { - this.onRenderExited((undefined as ((value0: OnRenderExitedEvent) => void) | undefined)); - } - } - } - if (modifier._onShowFileSelector_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onShowFileSelector_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onShowFileSelector(modifier._onShowFileSelector_0_0value); - break; - } - default: { - this.onShowFileSelector((undefined as ((value0: OnShowFileSelectorEvent) => boolean) | undefined)); - } - } - } - if (modifier._onResourceLoad_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onResourceLoad_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onResourceLoad(modifier._onResourceLoad_0_0value); - break; - } - default: { - this.onResourceLoad((undefined as ((value0: OnResourceLoadEvent) => void) | undefined)); - } - } - } - if (modifier._onFullScreenExit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFullScreenExit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFullScreenExit(modifier._onFullScreenExit_0_0value); - break; - } - default: { - this.onFullScreenExit((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onFullScreenEnter_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFullScreenEnter_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFullScreenEnter(modifier._onFullScreenEnter_0_0value); - break; - } - default: { - this.onFullScreenEnter((undefined as OnFullScreenEnterCallback | undefined)); - } - } - } - if (modifier._onScaleChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScaleChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScaleChange(modifier._onScaleChange_0_0value); - break; - } - default: { - this.onScaleChange((undefined as ((value0: OnScaleChangeEvent) => void) | undefined)); - } - } - } - if (modifier._onHttpAuthRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onHttpAuthRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onHttpAuthRequest(modifier._onHttpAuthRequest_0_0value); - break; - } - default: { - this.onHttpAuthRequest((undefined as ((value0: OnHttpAuthRequestEvent) => boolean) | undefined)); - } - } - } - if (modifier._onInterceptRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onInterceptRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onInterceptRequest(modifier._onInterceptRequest_0_0value); - break; - } - default: { - this.onInterceptRequest((undefined as ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined)); - } - } - } - if (modifier._onPermissionRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPermissionRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPermissionRequest(modifier._onPermissionRequest_0_0value); - break; - } - default: { - this.onPermissionRequest((undefined as ((value0: OnPermissionRequestEvent) => void) | undefined)); - } - } - } - if (modifier._onScreenCaptureRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScreenCaptureRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScreenCaptureRequest(modifier._onScreenCaptureRequest_0_0value); - break; - } - default: { - this.onScreenCaptureRequest((undefined as ((value0: OnScreenCaptureRequestEvent) => void) | undefined)); - } - } - } - if (modifier._onContextMenuShow_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onContextMenuShow_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onContextMenuShow(modifier._onContextMenuShow_0_0value); - break; - } - default: { - this.onContextMenuShow((undefined as ((value0: OnContextMenuShowEvent) => boolean) | undefined)); - } - } - } - if (modifier._onContextMenuHide_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onContextMenuHide_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onContextMenuHide(modifier._onContextMenuHide_0_0value); - break; - } - default: { - this.onContextMenuHide((undefined as OnContextMenuHideCallback | undefined)); - } - } - } - if (modifier._mediaPlayGestureAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._mediaPlayGestureAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.mediaPlayGestureAccess(modifier._mediaPlayGestureAccess_0_0value); - break; - } - default: { - this.mediaPlayGestureAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._onSearchResultReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSearchResultReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSearchResultReceive(modifier._onSearchResultReceive_0_0value); - break; - } - default: { - this.onSearchResultReceive((undefined as ((value0: OnSearchResultReceiveEvent) => void) | undefined)); - } - } - } - if (modifier._onScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onScroll(modifier._onScroll_0_0value); - break; - } - default: { - this.onScroll((undefined as ((value0: OnScrollEvent) => void) | undefined)); - } - } - } - if (modifier._onSslErrorEventReceive_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSslErrorEventReceive_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSslErrorEventReceive(modifier._onSslErrorEventReceive_0_0value); - break; - } - default: { - this.onSslErrorEventReceive((undefined as ((value0: OnSslErrorEventReceiveEvent) => void) | undefined)); - } - } - } - if (modifier._onSslErrorEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSslErrorEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSslErrorEvent(modifier._onSslErrorEvent_0_0value); - break; - } - default: { - this.onSslErrorEvent((undefined as OnSslErrorEventCallback | undefined)); - } - } - } - if (modifier._onClientAuthenticationRequest_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onClientAuthenticationRequest_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onClientAuthenticationRequest(modifier._onClientAuthenticationRequest_0_0value); - break; - } - default: { - this.onClientAuthenticationRequest((undefined as ((value0: OnClientAuthenticationEvent) => void) | undefined)); - } - } - } - if (modifier._onWindowNew_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWindowNew_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWindowNew(modifier._onWindowNew_0_0value); - break; - } - default: { - this.onWindowNew((undefined as ((value0: OnWindowNewEvent) => void) | undefined)); - } - } - } - if (modifier._onWindowExit_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onWindowExit_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onWindowExit(modifier._onWindowExit_0_0value); - break; - } - default: { - this.onWindowExit((undefined as (() => void) | undefined)); - } - } - } - if (modifier._multiWindowAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._multiWindowAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.multiWindowAccess(modifier._multiWindowAccess_0_0value); - break; - } - default: { - this.multiWindowAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._onInterceptKeyEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onInterceptKeyEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onInterceptKeyEvent(modifier._onInterceptKeyEvent_0_0value); - break; - } - default: { - this.onInterceptKeyEvent((undefined as ((event: KeyEvent) => boolean) | undefined)); - } - } - } - if (modifier._webStandardFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._webStandardFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.webStandardFont(modifier._webStandardFont_0_0value); - break; - } - default: { - this.webStandardFont((undefined as string | undefined)); - } - } - } - if (modifier._webSerifFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._webSerifFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.webSerifFont(modifier._webSerifFont_0_0value); - break; - } - default: { - this.webSerifFont((undefined as string | undefined)); - } - } - } - if (modifier._webSansSerifFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._webSansSerifFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.webSansSerifFont(modifier._webSansSerifFont_0_0value); - break; - } - default: { - this.webSansSerifFont((undefined as string | undefined)); - } - } - } - if (modifier._webFixedFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._webFixedFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.webFixedFont(modifier._webFixedFont_0_0value); - break; - } - default: { - this.webFixedFont((undefined as string | undefined)); - } - } - } - if (modifier._webFantasyFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._webFantasyFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.webFantasyFont(modifier._webFantasyFont_0_0value); - break; - } - default: { - this.webFantasyFont((undefined as string | undefined)); - } - } - } - if (modifier._webCursiveFont_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._webCursiveFont_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.webCursiveFont(modifier._webCursiveFont_0_0value); - break; - } - default: { - this.webCursiveFont((undefined as string | undefined)); - } - } - } - if (modifier._defaultFixedFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._defaultFixedFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.defaultFixedFontSize(modifier._defaultFixedFontSize_0_0value); - break; - } - default: { - this.defaultFixedFontSize((undefined as int32 | undefined)); - } - } - } - if (modifier._defaultFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._defaultFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.defaultFontSize(modifier._defaultFontSize_0_0value); - break; - } - default: { - this.defaultFontSize((undefined as int32 | undefined)); - } - } - } - if (modifier._minFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minFontSize(modifier._minFontSize_0_0value); - break; - } - default: { - this.minFontSize((undefined as int32 | undefined)); - } - } - } - if (modifier._minLogicalFontSize_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minLogicalFontSize_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minLogicalFontSize(modifier._minLogicalFontSize_0_0value); - break; - } - default: { - this.minLogicalFontSize((undefined as int32 | undefined)); - } - } - } - if (modifier._defaultTextEncodingFormat_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._defaultTextEncodingFormat_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.defaultTextEncodingFormat(modifier._defaultTextEncodingFormat_0_0value); - break; - } - default: { - this.defaultTextEncodingFormat((undefined as string | undefined)); - } - } - } - if (modifier._forceDisplayScrollBar_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._forceDisplayScrollBar_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.forceDisplayScrollBar(modifier._forceDisplayScrollBar_0_0value); - break; - } - default: { - this.forceDisplayScrollBar((undefined as boolean | undefined)); - } - } - } - if (modifier._blockNetwork_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._blockNetwork_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.blockNetwork(modifier._blockNetwork_0_0value); - break; - } - default: { - this.blockNetwork((undefined as boolean | undefined)); - } - } - } - if (modifier._horizontalScrollBarAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._horizontalScrollBarAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.horizontalScrollBarAccess(modifier._horizontalScrollBarAccess_0_0value); - break; - } - default: { - this.horizontalScrollBarAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._verticalScrollBarAccess_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._verticalScrollBarAccess_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.verticalScrollBarAccess(modifier._verticalScrollBarAccess_0_0value); - break; - } - default: { - this.verticalScrollBarAccess((undefined as boolean | undefined)); - } - } - } - if (modifier._onTouchIconUrlReceived_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onTouchIconUrlReceived_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTouchIconUrlReceived(modifier._onTouchIconUrlReceived_0_0value); - break; - } - default: { - this.onTouchIconUrlReceived((undefined as ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined)); - } - } - } - if (modifier._onFaviconReceived_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFaviconReceived_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFaviconReceived(modifier._onFaviconReceived_0_0value); - break; - } - default: { - this.onFaviconReceived((undefined as ((value0: OnFaviconReceivedEvent) => void) | undefined)); - } - } - } - if (modifier._onPageVisible_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onPageVisible_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onPageVisible(modifier._onPageVisible_0_0value); - break; - } - default: { - this.onPageVisible((undefined as ((value0: OnPageVisibleEvent) => void) | undefined)); - } - } - } - if (modifier._onDataResubmitted_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDataResubmitted_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDataResubmitted(modifier._onDataResubmitted_0_0value); - break; - } - default: { - this.onDataResubmitted((undefined as ((value0: OnDataResubmittedEvent) => void) | undefined)); - } - } - } - if (modifier._pinchSmooth_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._pinchSmooth_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.pinchSmooth(modifier._pinchSmooth_0_0value); - break; - } - default: { - this.pinchSmooth((undefined as boolean | undefined)); - } - } - } - if (modifier._allowWindowOpenMethod_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._allowWindowOpenMethod_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.allowWindowOpenMethod(modifier._allowWindowOpenMethod_0_0value); - break; - } - default: { - this.allowWindowOpenMethod((undefined as boolean | undefined)); - } - } - } - if (modifier._onAudioStateChanged_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAudioStateChanged_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAudioStateChanged(modifier._onAudioStateChanged_0_0value); - break; - } - default: { - this.onAudioStateChanged((undefined as ((value0: OnAudioStateChangedEvent) => void) | undefined)); - } - } - } - if (modifier._onFirstContentfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFirstContentfulPaint_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFirstContentfulPaint(modifier._onFirstContentfulPaint_0_0value); - break; - } - default: { - this.onFirstContentfulPaint((undefined as ((value0: OnFirstContentfulPaintEvent) => void) | undefined)); - } - } - } - if (modifier._onFirstMeaningfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onFirstMeaningfulPaint_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFirstMeaningfulPaint(modifier._onFirstMeaningfulPaint_0_0value); - break; - } - default: { - this.onFirstMeaningfulPaint((undefined as OnFirstMeaningfulPaintCallback | undefined)); - } - } - } - if (modifier._onLargestContentfulPaint_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onLargestContentfulPaint_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onLargestContentfulPaint(modifier._onLargestContentfulPaint_0_0value); - break; - } - default: { - this.onLargestContentfulPaint((undefined as OnLargestContentfulPaintCallback | undefined)); - } - } - } - if (modifier._onLoadIntercept_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onLoadIntercept_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onLoadIntercept(modifier._onLoadIntercept_0_0value); - break; - } - default: { - this.onLoadIntercept((undefined as ((value0: OnLoadInterceptEvent) => boolean) | undefined)); - } - } - } - if (modifier._onControllerAttached_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onControllerAttached_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onControllerAttached(modifier._onControllerAttached_0_0value); - break; - } - default: { - this.onControllerAttached((undefined as (() => void) | undefined)); - } - } - } - if (modifier._onOverScroll_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onOverScroll_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onOverScroll(modifier._onOverScroll_0_0value); - break; - } - default: { - this.onOverScroll((undefined as ((value0: OnOverScrollEvent) => void) | undefined)); - } - } - } - if (modifier._onSafeBrowsingCheckResult_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onSafeBrowsingCheckResult_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSafeBrowsingCheckResult(modifier._onSafeBrowsingCheckResult_0_0value); - break; - } - default: { - this.onSafeBrowsingCheckResult((undefined as OnSafeBrowsingCheckResultCallback | undefined)); - } - } - } - if (modifier._onNavigationEntryCommitted_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onNavigationEntryCommitted_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onNavigationEntryCommitted(modifier._onNavigationEntryCommitted_0_0value); - break; - } - default: { - this.onNavigationEntryCommitted((undefined as OnNavigationEntryCommittedCallback | undefined)); - } - } - } - if (modifier._onIntelligentTrackingPreventionResult_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onIntelligentTrackingPreventionResult_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onIntelligentTrackingPreventionResult(modifier._onIntelligentTrackingPreventionResult_0_0value); - break; - } - default: { - this.onIntelligentTrackingPreventionResult((undefined as OnIntelligentTrackingPreventionCallback | undefined)); - } - } - } - if (modifier._javaScriptOnDocumentStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._javaScriptOnDocumentStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.javaScriptOnDocumentStart(modifier._javaScriptOnDocumentStart_0_0value); - break; - } - default: { - this.javaScriptOnDocumentStart((undefined as Array | undefined)); - } - } - } - if (modifier._javaScriptOnDocumentEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._javaScriptOnDocumentEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.javaScriptOnDocumentEnd(modifier._javaScriptOnDocumentEnd_0_0value); - break; - } - default: { - this.javaScriptOnDocumentEnd((undefined as Array | undefined)); - } - } - } - if (modifier._layoutMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._layoutMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.layoutMode(modifier._layoutMode_0_0value); - break; - } - default: { - this.layoutMode((undefined as WebLayoutMode | 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 | NestedScrollOptionsExt | undefined)); - } - } - } - if (modifier._enableNativeEmbedMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableNativeEmbedMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableNativeEmbedMode(modifier._enableNativeEmbedMode_0_0value); - break; - } - default: { - this.enableNativeEmbedMode((undefined as boolean | undefined)); - } - } - } - if (modifier._onNativeEmbedLifecycleChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onNativeEmbedLifecycleChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onNativeEmbedLifecycleChange(modifier._onNativeEmbedLifecycleChange_0_0value); - break; - } - default: { - this.onNativeEmbedLifecycleChange((undefined as ((event: NativeEmbedDataInfo) => void) | undefined)); - } - } - } - if (modifier._onNativeEmbedVisibilityChange_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onNativeEmbedVisibilityChange_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onNativeEmbedVisibilityChange(modifier._onNativeEmbedVisibilityChange_0_0value); - break; - } - default: { - this.onNativeEmbedVisibilityChange((undefined as OnNativeEmbedVisibilityChangeCallback | undefined)); - } - } - } - if (modifier._onNativeEmbedGestureEvent_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onNativeEmbedGestureEvent_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onNativeEmbedGestureEvent(modifier._onNativeEmbedGestureEvent_0_0value); - break; - } - default: { - this.onNativeEmbedGestureEvent((undefined as ((event: NativeEmbedTouchInfo) => void) | undefined)); - } - } - } - if (modifier._copyOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._copyOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.copyOptions(modifier._copyOptions_0_0value); - break; - } - default: { - this.copyOptions((undefined as CopyOptions | undefined)); - } - } - } - if (modifier._onOverrideUrlLoading_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onOverrideUrlLoading_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onOverrideUrlLoading(modifier._onOverrideUrlLoading_0_0value); - break; - } - default: { - this.onOverrideUrlLoading((undefined as OnOverrideUrlLoadingCallback | undefined)); - } - } - } - if (modifier._textAutosizing_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._textAutosizing_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.textAutosizing(modifier._textAutosizing_0_0value); - break; - } - default: { - this.textAutosizing((undefined as boolean | undefined)); - } - } - } - if (modifier._enableNativeMediaPlayer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableNativeMediaPlayer_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableNativeMediaPlayer(modifier._enableNativeMediaPlayer_0_0value); - break; - } - default: { - this.enableNativeMediaPlayer((undefined as NativeMediaPlayerConfig | undefined)); - } - } - } - if (modifier._onRenderProcessNotResponding_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRenderProcessNotResponding_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRenderProcessNotResponding(modifier._onRenderProcessNotResponding_0_0value); - break; - } - default: { - this.onRenderProcessNotResponding((undefined as OnRenderProcessNotRespondingCallback | undefined)); - } - } - } - if (modifier._onRenderProcessResponding_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onRenderProcessResponding_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onRenderProcessResponding(modifier._onRenderProcessResponding_0_0value); - break; - } - default: { - this.onRenderProcessResponding((undefined as OnRenderProcessRespondingCallback | undefined)); - } - } - } - if (modifier._onViewportFitChanged_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onViewportFitChanged_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onViewportFitChanged(modifier._onViewportFitChanged_0_0value); - break; - } - default: { - this.onViewportFitChanged((undefined as OnViewportFitChangedCallback | undefined)); - } - } - } - if (modifier._onInterceptKeyboardAttach_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onInterceptKeyboardAttach_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onInterceptKeyboardAttach(modifier._onInterceptKeyboardAttach_0_0value); - break; - } - default: { - this.onInterceptKeyboardAttach((undefined as WebKeyboardCallback | undefined)); - } - } - } - if (modifier._onAdsBlocked_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onAdsBlocked_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAdsBlocked(modifier._onAdsBlocked_0_0value); - break; - } - default: { - this.onAdsBlocked((undefined as OnAdsBlockedCallback | undefined)); - } - } - } - if (modifier._keyboardAvoidMode_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._keyboardAvoidMode_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.keyboardAvoidMode(modifier._keyboardAvoidMode_0_0value); - break; - } - default: { - this.keyboardAvoidMode((undefined as WebKeyboardAvoidMode | undefined)); - } - } - } - if (modifier._editMenuOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._editMenuOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.editMenuOptions(modifier._editMenuOptions_0_0value); - break; - } - default: { - this.editMenuOptions((undefined as EditMenuOptions | undefined)); - } - } - } - if (modifier._enableHapticFeedback_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableHapticFeedback_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableHapticFeedback(modifier._enableHapticFeedback_0_0value); - break; - } - default: { - this.enableHapticFeedback((undefined as boolean | undefined)); - } - } - } - if (modifier._optimizeParserBudget_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._optimizeParserBudget_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.optimizeParserBudget(modifier._optimizeParserBudget_0_0value); - break; - } - default: { - this.optimizeParserBudget((undefined as boolean | undefined)); - } - } - } - if (modifier._enableFollowSystemFontWeight_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableFollowSystemFontWeight_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableFollowSystemFontWeight(modifier._enableFollowSystemFontWeight_0_0value); - break; - } - default: { - this.enableFollowSystemFontWeight((undefined as boolean | undefined)); - } - } - } - if (modifier._enableWebAVSession_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableWebAVSession_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableWebAVSession(modifier._enableWebAVSession_0_0value); - break; - } - default: { - this.enableWebAVSession((undefined as boolean | undefined)); - } - } - } - if (modifier._runJavaScriptOnDocumentStart_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._runJavaScriptOnDocumentStart_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.runJavaScriptOnDocumentStart(modifier._runJavaScriptOnDocumentStart_0_0value); - break; - } - default: { - this.runJavaScriptOnDocumentStart((undefined as Array | undefined)); - } - } - } - if (modifier._runJavaScriptOnDocumentEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._runJavaScriptOnDocumentEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.runJavaScriptOnDocumentEnd(modifier._runJavaScriptOnDocumentEnd_0_0value); - break; - } - default: { - this.runJavaScriptOnDocumentEnd((undefined as Array | undefined)); - } - } - } - if (modifier._runJavaScriptOnHeadEnd_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._runJavaScriptOnHeadEnd_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.runJavaScriptOnHeadEnd(modifier._runJavaScriptOnHeadEnd_0_0value); - break; - } - default: { - this.runJavaScriptOnHeadEnd((undefined as Array | undefined)); - } - } - } - if (modifier._nativeEmbedOptions_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._nativeEmbedOptions_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.nativeEmbedOptions(modifier._nativeEmbedOptions_0_0value); - break; - } - default: { - this.nativeEmbedOptions((undefined as EmbedOptions | undefined)); - } - } - } - if (modifier._registerNativeEmbedRule_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._registerNativeEmbedRule_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.registerNativeEmbedRule(modifier._registerNativeEmbedRule_0_0value, modifier._registerNativeEmbedRule_0_1value); - break; - } - default: { - this.registerNativeEmbedRule((undefined as string | undefined), (undefined as string | undefined)); - } - } - } - if (modifier._bindSelectionMenu_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._bindSelectionMenu_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.bindSelectionMenu(modifier._bindSelectionMenu_0_0value, modifier._bindSelectionMenu_0_1value, modifier._bindSelectionMenu_0_2value, modifier._bindSelectionMenu_0_3value); - break; - } - default: { - this.bindSelectionMenu((undefined as WebElementType | undefined), (undefined as CustomBuilder | undefined), (undefined as WebResponseType | undefined), (undefined as SelectionMenuOptionsExt | undefined | undefined)); - } - } - } - } - javaScriptAccess(value: boolean | undefined): this { - if (((this._javaScriptAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._javaScriptAccess_0_0value) !== (value))) - { - this._javaScriptAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._javaScriptAccess_0_0value = value - } else - { - this._javaScriptAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - fileAccess(value: boolean | undefined): this { - if (((this._fileAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._fileAccess_0_0value) !== (value))) - { - this._fileAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._fileAccess_0_0value = value - } else - { - this._fileAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onlineImageAccess(value: boolean | undefined): this { - if (((this._onlineImageAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._onlineImageAccess_0_0value) !== (value))) - { - this._onlineImageAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._onlineImageAccess_0_0value = value - } else - { - this._onlineImageAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - domStorageAccess(value: boolean | undefined): this { - if (((this._domStorageAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._domStorageAccess_0_0value) !== (value))) - { - this._domStorageAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._domStorageAccess_0_0value = value - } else - { - this._domStorageAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - imageAccess(value: boolean | undefined): this { - if (((this._imageAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._imageAccess_0_0value) !== (value))) - { - this._imageAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._imageAccess_0_0value = value - } else - { - this._imageAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - mixedMode(value: MixedMode | undefined): this { - if (((this._mixedMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._mixedMode_0_flag = AttributeUpdaterFlag.UPDATE - this._mixedMode_0_0value = value - } else - { - this._mixedMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - zoomAccess(value: boolean | undefined): this { - if (((this._zoomAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._zoomAccess_0_0value) !== (value))) - { - this._zoomAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._zoomAccess_0_0value = value - } else - { - this._zoomAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - geolocationAccess(value: boolean | undefined): this { - if (((this._geolocationAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._geolocationAccess_0_0value) !== (value))) - { - this._geolocationAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._geolocationAccess_0_0value = value - } else - { - this._geolocationAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - javaScriptProxy(value: JavaScriptProxy | undefined): this { - if (((this._javaScriptProxy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._javaScriptProxy_0_flag = AttributeUpdaterFlag.UPDATE - this._javaScriptProxy_0_0value = value - } else - { - this._javaScriptProxy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - cacheMode(value: CacheMode | undefined): this { - if (((this._cacheMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._cacheMode_0_flag = AttributeUpdaterFlag.UPDATE - this._cacheMode_0_0value = value - } else - { - this._cacheMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - darkMode(value: WebDarkMode | undefined): this { - if (((this._darkMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._darkMode_0_flag = AttributeUpdaterFlag.UPDATE - this._darkMode_0_0value = value - } else - { - this._darkMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - forceDarkAccess(value: boolean | undefined): this { - if (((this._forceDarkAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._forceDarkAccess_0_0value) !== (value))) - { - this._forceDarkAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._forceDarkAccess_0_0value = value - } else - { - this._forceDarkAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - mediaOptions(value: WebMediaOptions | undefined): this { - if (((this._mediaOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._mediaOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._mediaOptions_0_0value = value - } else - { - this._mediaOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - overviewModeAccess(value: boolean | undefined): this { - if (((this._overviewModeAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._overviewModeAccess_0_0value) !== (value))) - { - this._overviewModeAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._overviewModeAccess_0_0value = value - } else - { - this._overviewModeAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - overScrollMode(value: OverScrollMode | undefined): this { - if (((this._overScrollMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._overScrollMode_0_flag = AttributeUpdaterFlag.UPDATE - this._overScrollMode_0_0value = value - } else - { - this._overScrollMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - blurOnKeyboardHideMode(value: BlurOnKeyboardHideMode | undefined): this { - if (((this._blurOnKeyboardHideMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.UPDATE - this._blurOnKeyboardHideMode_0_0value = value - } else - { - this._blurOnKeyboardHideMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textZoomRatio(value: int32 | undefined): this { - if (((this._textZoomRatio_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._textZoomRatio_0_0value) !== (value))) - { - this._textZoomRatio_0_flag = AttributeUpdaterFlag.UPDATE - this._textZoomRatio_0_0value = value - } else - { - this._textZoomRatio_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - databaseAccess(value: boolean | undefined): this { - if (((this._databaseAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._databaseAccess_0_0value) !== (value))) - { - this._databaseAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._databaseAccess_0_0value = value - } else - { - this._databaseAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - initialScale(value: double | undefined): this { - if (((this._initialScale_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._initialScale_0_0value) !== (value))) - { - this._initialScale_0_flag = AttributeUpdaterFlag.UPDATE - this._initialScale_0_0value = value - } else - { - this._initialScale_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - metaViewport(value: boolean | undefined): this { - if (((this._metaViewport_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._metaViewport_0_0value) !== (value))) - { - this._metaViewport_0_flag = AttributeUpdaterFlag.UPDATE - this._metaViewport_0_0value = value - } else - { - this._metaViewport_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPageEnd(value: ((value0: OnPageEndEvent) => void) | undefined): this { - if (((this._onPageEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPageEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._onPageEnd_0_0value = value - } else - { - this._onPageEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPageBegin(value: ((value0: OnPageBeginEvent) => void) | undefined): this { - if (((this._onPageBegin_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPageBegin_0_flag = AttributeUpdaterFlag.UPDATE - this._onPageBegin_0_0value = value - } else - { - this._onPageBegin_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onProgressChange(value: ((value0: OnProgressChangeEvent) => void) | undefined): this { - if (((this._onProgressChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onProgressChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onProgressChange_0_0value = value - } else - { - this._onProgressChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTitleReceive(value: ((value0: OnTitleReceiveEvent) => void) | undefined): this { - if (((this._onTitleReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTitleReceive_0_flag = AttributeUpdaterFlag.UPDATE - this._onTitleReceive_0_0value = value - } else - { - this._onTitleReceive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onGeolocationHide(value: (() => void) | undefined): this { - if (((this._onGeolocationHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onGeolocationHide_0_flag = AttributeUpdaterFlag.UPDATE - this._onGeolocationHide_0_0value = value - } else - { - this._onGeolocationHide_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onGeolocationShow(value: ((value0: OnGeolocationShowEvent) => void) | undefined): this { - if (((this._onGeolocationShow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onGeolocationShow_0_flag = AttributeUpdaterFlag.UPDATE - this._onGeolocationShow_0_0value = value - } else - { - this._onGeolocationShow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onRequestSelected(value: (() => void) | undefined): this { - if (((this._onRequestSelected_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRequestSelected_0_flag = AttributeUpdaterFlag.UPDATE - this._onRequestSelected_0_0value = value - } else - { - this._onRequestSelected_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAlert(value: ((value0: OnAlertEvent) => boolean) | undefined): this { - if (((this._onAlert_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAlert_0_flag = AttributeUpdaterFlag.UPDATE - this._onAlert_0_0value = value - } else - { - this._onAlert_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onBeforeUnload(value: ((value0: OnBeforeUnloadEvent) => boolean) | undefined): this { - if (((this._onBeforeUnload_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onBeforeUnload_0_flag = AttributeUpdaterFlag.UPDATE - this._onBeforeUnload_0_0value = value - } else - { - this._onBeforeUnload_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onConfirm(value: ((value0: OnConfirmEvent) => boolean) | undefined): this { - if (((this._onConfirm_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onConfirm_0_flag = AttributeUpdaterFlag.UPDATE - this._onConfirm_0_0value = value - } else - { - this._onConfirm_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPrompt(value: ((value0: OnPromptEvent) => boolean) | undefined): this { - if (((this._onPrompt_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPrompt_0_flag = AttributeUpdaterFlag.UPDATE - this._onPrompt_0_0value = value - } else - { - this._onPrompt_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onConsole(value: ((value0: OnConsoleEvent) => boolean) | undefined): this { - if (((this._onConsole_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onConsole_0_flag = AttributeUpdaterFlag.UPDATE - this._onConsole_0_0value = value - } else - { - this._onConsole_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onErrorReceive(value: ((value0: OnErrorReceiveEvent) => void) | undefined): this { - if (((this._onErrorReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onErrorReceive_0_flag = AttributeUpdaterFlag.UPDATE - this._onErrorReceive_0_0value = value - } else - { - this._onErrorReceive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onHttpErrorReceive(value: ((value0: OnHttpErrorReceiveEvent) => void) | undefined): this { - if (((this._onHttpErrorReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.UPDATE - this._onHttpErrorReceive_0_0value = value - } else - { - this._onHttpErrorReceive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDownloadStart(value: ((value0: OnDownloadStartEvent) => void) | undefined): this { - if (((this._onDownloadStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDownloadStart_0_flag = AttributeUpdaterFlag.UPDATE - this._onDownloadStart_0_0value = value - } else - { - this._onDownloadStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onRefreshAccessedHistory(value: ((value0: OnRefreshAccessedHistoryEvent) => void) | undefined): this { - if (((this._onRefreshAccessedHistory_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.UPDATE - this._onRefreshAccessedHistory_0_0value = value - } else - { - this._onRefreshAccessedHistory_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onRenderExited(value: ((value0: OnRenderExitedEvent) => void) | undefined): this { - if (((this._onRenderExited_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRenderExited_0_flag = AttributeUpdaterFlag.UPDATE - this._onRenderExited_0_0value = value - } else - { - this._onRenderExited_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onShowFileSelector(value: ((value0: OnShowFileSelectorEvent) => boolean) | undefined): this { - if (((this._onShowFileSelector_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onShowFileSelector_0_flag = AttributeUpdaterFlag.UPDATE - this._onShowFileSelector_0_0value = value - } else - { - this._onShowFileSelector_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onResourceLoad(value: ((value0: OnResourceLoadEvent) => void) | undefined): this { - if (((this._onResourceLoad_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onResourceLoad_0_flag = AttributeUpdaterFlag.UPDATE - this._onResourceLoad_0_0value = value - } else - { - this._onResourceLoad_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFullScreenExit(value: (() => void) | undefined): this { - if (((this._onFullScreenExit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFullScreenExit_0_flag = AttributeUpdaterFlag.UPDATE - this._onFullScreenExit_0_0value = value - } else - { - this._onFullScreenExit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFullScreenEnter(value: OnFullScreenEnterCallback | undefined): this { - if (((this._onFullScreenEnter_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.UPDATE - this._onFullScreenEnter_0_0value = value - } else - { - this._onFullScreenEnter_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScaleChange(value: ((value0: OnScaleChangeEvent) => void) | undefined): this { - if (((this._onScaleChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScaleChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onScaleChange_0_0value = value - } else - { - this._onScaleChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onHttpAuthRequest(value: ((value0: OnHttpAuthRequestEvent) => boolean) | undefined): this { - if (((this._onHttpAuthRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.UPDATE - this._onHttpAuthRequest_0_0value = value - } else - { - this._onHttpAuthRequest_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onInterceptRequest(value: ((value0: OnInterceptRequestEvent) => WebResourceResponse) | undefined): this { - if (((this._onInterceptRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onInterceptRequest_0_flag = AttributeUpdaterFlag.UPDATE - this._onInterceptRequest_0_0value = value - } else - { - this._onInterceptRequest_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPermissionRequest(value: ((value0: OnPermissionRequestEvent) => void) | undefined): this { - if (((this._onPermissionRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPermissionRequest_0_flag = AttributeUpdaterFlag.UPDATE - this._onPermissionRequest_0_0value = value - } else - { - this._onPermissionRequest_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScreenCaptureRequest(value: ((value0: OnScreenCaptureRequestEvent) => void) | undefined): this { - if (((this._onScreenCaptureRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.UPDATE - this._onScreenCaptureRequest_0_0value = value - } else - { - this._onScreenCaptureRequest_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onContextMenuShow(value: ((value0: OnContextMenuShowEvent) => boolean) | undefined): this { - if (((this._onContextMenuShow_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onContextMenuShow_0_flag = AttributeUpdaterFlag.UPDATE - this._onContextMenuShow_0_0value = value - } else - { - this._onContextMenuShow_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onContextMenuHide(value: OnContextMenuHideCallback | undefined): this { - if (((this._onContextMenuHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onContextMenuHide_0_flag = AttributeUpdaterFlag.UPDATE - this._onContextMenuHide_0_0value = value - } else - { - this._onContextMenuHide_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - mediaPlayGestureAccess(value: boolean | undefined): this { - if (((this._mediaPlayGestureAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._mediaPlayGestureAccess_0_0value) !== (value))) - { - this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._mediaPlayGestureAccess_0_0value = value - } else - { - this._mediaPlayGestureAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSearchResultReceive(value: ((value0: OnSearchResultReceiveEvent) => void) | undefined): this { - if (((this._onSearchResultReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.UPDATE - this._onSearchResultReceive_0_0value = value - } else - { - this._onSearchResultReceive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onScroll(value: ((value0: OnScrollEvent) => void) | undefined): this { - if (((this._onScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onScroll_0_0value = value - } else - { - this._onScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSslErrorEventReceive(value: ((value0: OnSslErrorEventReceiveEvent) => void) | undefined): this { - if (((this._onSslErrorEventReceive_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.UPDATE - this._onSslErrorEventReceive_0_0value = value - } else - { - this._onSslErrorEventReceive_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSslErrorEvent(value: OnSslErrorEventCallback | undefined): this { - if (((this._onSslErrorEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.UPDATE - this._onSslErrorEvent_0_0value = value - } else - { - this._onSslErrorEvent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onClientAuthenticationRequest(value: ((value0: OnClientAuthenticationEvent) => void) | undefined): this { - if (((this._onClientAuthenticationRequest_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.UPDATE - this._onClientAuthenticationRequest_0_0value = value - } else - { - this._onClientAuthenticationRequest_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWindowNew(value: ((value0: OnWindowNewEvent) => void) | undefined): this { - if (((this._onWindowNew_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWindowNew_0_flag = AttributeUpdaterFlag.UPDATE - this._onWindowNew_0_0value = value - } else - { - this._onWindowNew_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onWindowExit(value: (() => void) | undefined): this { - if (((this._onWindowExit_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onWindowExit_0_flag = AttributeUpdaterFlag.UPDATE - this._onWindowExit_0_0value = value - } else - { - this._onWindowExit_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - multiWindowAccess(value: boolean | undefined): this { - if (((this._multiWindowAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._multiWindowAccess_0_0value) !== (value))) - { - this._multiWindowAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._multiWindowAccess_0_0value = value - } else - { - this._multiWindowAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onInterceptKeyEvent(value: ((event: KeyEvent) => boolean) | undefined): this { - if (((this._onInterceptKeyEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.UPDATE - this._onInterceptKeyEvent_0_0value = value - } else - { - this._onInterceptKeyEvent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - webStandardFont(value: string | undefined): this { - if (((this._webStandardFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webStandardFont_0_0value) !== (value))) - { - this._webStandardFont_0_flag = AttributeUpdaterFlag.UPDATE - this._webStandardFont_0_0value = value - } else - { - this._webStandardFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - webSerifFont(value: string | undefined): this { - if (((this._webSerifFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webSerifFont_0_0value) !== (value))) - { - this._webSerifFont_0_flag = AttributeUpdaterFlag.UPDATE - this._webSerifFont_0_0value = value - } else - { - this._webSerifFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - webSansSerifFont(value: string | undefined): this { - if (((this._webSansSerifFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webSansSerifFont_0_0value) !== (value))) - { - this._webSansSerifFont_0_flag = AttributeUpdaterFlag.UPDATE - this._webSansSerifFont_0_0value = value - } else - { - this._webSansSerifFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - webFixedFont(value: string | undefined): this { - if (((this._webFixedFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webFixedFont_0_0value) !== (value))) - { - this._webFixedFont_0_flag = AttributeUpdaterFlag.UPDATE - this._webFixedFont_0_0value = value - } else - { - this._webFixedFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - webFantasyFont(value: string | undefined): this { - if (((this._webFantasyFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webFantasyFont_0_0value) !== (value))) - { - this._webFantasyFont_0_flag = AttributeUpdaterFlag.UPDATE - this._webFantasyFont_0_0value = value - } else - { - this._webFantasyFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - webCursiveFont(value: string | undefined): this { - if (((this._webCursiveFont_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._webCursiveFont_0_0value) !== (value))) - { - this._webCursiveFont_0_flag = AttributeUpdaterFlag.UPDATE - this._webCursiveFont_0_0value = value - } else - { - this._webCursiveFont_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - defaultFixedFontSize(value: int32 | undefined): this { - if (((this._defaultFixedFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultFixedFontSize_0_0value) !== (value))) - { - this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._defaultFixedFontSize_0_0value = value - } else - { - this._defaultFixedFontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - defaultFontSize(value: int32 | undefined): this { - if (((this._defaultFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultFontSize_0_0value) !== (value))) - { - this._defaultFontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._defaultFontSize_0_0value = value - } else - { - this._defaultFontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minFontSize(value: int32 | undefined): this { - if (((this._minFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._minFontSize_0_0value) !== (value))) - { - this._minFontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._minFontSize_0_0value = value - } else - { - this._minFontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minLogicalFontSize(value: int32 | undefined): this { - if (((this._minLogicalFontSize_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._minLogicalFontSize_0_0value) !== (value))) - { - this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.UPDATE - this._minLogicalFontSize_0_0value = value - } else - { - this._minLogicalFontSize_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - defaultTextEncodingFormat(value: string | undefined): this { - if (((this._defaultTextEncodingFormat_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._defaultTextEncodingFormat_0_0value) !== (value))) - { - this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.UPDATE - this._defaultTextEncodingFormat_0_0value = value - } else - { - this._defaultTextEncodingFormat_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - forceDisplayScrollBar(value: boolean | undefined): this { - if (((this._forceDisplayScrollBar_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._forceDisplayScrollBar_0_0value) !== (value))) - { - this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.UPDATE - this._forceDisplayScrollBar_0_0value = value - } else - { - this._forceDisplayScrollBar_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - blockNetwork(value: boolean | undefined): this { - if (((this._blockNetwork_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._blockNetwork_0_0value) !== (value))) - { - this._blockNetwork_0_flag = AttributeUpdaterFlag.UPDATE - this._blockNetwork_0_0value = value - } else - { - this._blockNetwork_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - horizontalScrollBarAccess(value: boolean | undefined): this { - if (((this._horizontalScrollBarAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._horizontalScrollBarAccess_0_0value) !== (value))) - { - this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._horizontalScrollBarAccess_0_0value = value - } else - { - this._horizontalScrollBarAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - verticalScrollBarAccess(value: boolean | undefined): this { - if (((this._verticalScrollBarAccess_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._verticalScrollBarAccess_0_0value) !== (value))) - { - this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.UPDATE - this._verticalScrollBarAccess_0_0value = value - } else - { - this._verticalScrollBarAccess_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onTouchIconUrlReceived(value: ((value0: OnTouchIconUrlReceivedEvent) => void) | undefined): this { - if (((this._onTouchIconUrlReceived_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.UPDATE - this._onTouchIconUrlReceived_0_0value = value - } else - { - this._onTouchIconUrlReceived_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFaviconReceived(value: ((value0: OnFaviconReceivedEvent) => void) | undefined): this { - if (((this._onFaviconReceived_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFaviconReceived_0_flag = AttributeUpdaterFlag.UPDATE - this._onFaviconReceived_0_0value = value - } else - { - this._onFaviconReceived_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onPageVisible(value: ((value0: OnPageVisibleEvent) => void) | undefined): this { - if (((this._onPageVisible_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onPageVisible_0_flag = AttributeUpdaterFlag.UPDATE - this._onPageVisible_0_0value = value - } else - { - this._onPageVisible_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDataResubmitted(value: ((value0: OnDataResubmittedEvent) => void) | undefined): this { - if (((this._onDataResubmitted_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDataResubmitted_0_flag = AttributeUpdaterFlag.UPDATE - this._onDataResubmitted_0_0value = value - } else - { - this._onDataResubmitted_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - pinchSmooth(value: boolean | undefined): this { - if (((this._pinchSmooth_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._pinchSmooth_0_0value) !== (value))) - { - this._pinchSmooth_0_flag = AttributeUpdaterFlag.UPDATE - this._pinchSmooth_0_0value = value - } else - { - this._pinchSmooth_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - allowWindowOpenMethod(value: boolean | undefined): this { - if (((this._allowWindowOpenMethod_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._allowWindowOpenMethod_0_0value) !== (value))) - { - this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.UPDATE - this._allowWindowOpenMethod_0_0value = value - } else - { - this._allowWindowOpenMethod_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAudioStateChanged(value: ((value0: OnAudioStateChangedEvent) => void) | undefined): this { - if (((this._onAudioStateChanged_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.UPDATE - this._onAudioStateChanged_0_0value = value - } else - { - this._onAudioStateChanged_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFirstContentfulPaint(value: ((value0: OnFirstContentfulPaintEvent) => void) | undefined): this { - if (((this._onFirstContentfulPaint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.UPDATE - this._onFirstContentfulPaint_0_0value = value - } else - { - this._onFirstContentfulPaint_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onFirstMeaningfulPaint(value: OnFirstMeaningfulPaintCallback | undefined): this { - if (((this._onFirstMeaningfulPaint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.UPDATE - this._onFirstMeaningfulPaint_0_0value = value - } else - { - this._onFirstMeaningfulPaint_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onLargestContentfulPaint(value: OnLargestContentfulPaintCallback | undefined): this { - if (((this._onLargestContentfulPaint_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.UPDATE - this._onLargestContentfulPaint_0_0value = value - } else - { - this._onLargestContentfulPaint_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onLoadIntercept(value: ((value0: OnLoadInterceptEvent) => boolean) | undefined): this { - if (((this._onLoadIntercept_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onLoadIntercept_0_flag = AttributeUpdaterFlag.UPDATE - this._onLoadIntercept_0_0value = value - } else - { - this._onLoadIntercept_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onControllerAttached(value: (() => void) | undefined): this { - if (((this._onControllerAttached_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onControllerAttached_0_flag = AttributeUpdaterFlag.UPDATE - this._onControllerAttached_0_0value = value - } else - { - this._onControllerAttached_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onOverScroll(value: ((value0: OnOverScrollEvent) => void) | undefined): this { - if (((this._onOverScroll_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onOverScroll_0_flag = AttributeUpdaterFlag.UPDATE - this._onOverScroll_0_0value = value - } else - { - this._onOverScroll_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onSafeBrowsingCheckResult(value: OnSafeBrowsingCheckResultCallback | undefined): this { - if (((this._onSafeBrowsingCheckResult_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.UPDATE - this._onSafeBrowsingCheckResult_0_0value = value - } else - { - this._onSafeBrowsingCheckResult_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onNavigationEntryCommitted(value: OnNavigationEntryCommittedCallback | undefined): this { - if (((this._onNavigationEntryCommitted_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.UPDATE - this._onNavigationEntryCommitted_0_0value = value - } else - { - this._onNavigationEntryCommitted_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onIntelligentTrackingPreventionResult(value: OnIntelligentTrackingPreventionCallback | undefined): this { - if (((this._onIntelligentTrackingPreventionResult_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.UPDATE - this._onIntelligentTrackingPreventionResult_0_0value = value - } else - { - this._onIntelligentTrackingPreventionResult_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - javaScriptOnDocumentStart(value: Array | undefined): this { - if (((this._javaScriptOnDocumentStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.UPDATE - this._javaScriptOnDocumentStart_0_0value = value - } else - { - this._javaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - javaScriptOnDocumentEnd(value: Array | undefined): this { - if (((this._javaScriptOnDocumentEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._javaScriptOnDocumentEnd_0_0value = value - } else - { - this._javaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - layoutMode(value: WebLayoutMode | undefined): this { - if (((this._layoutMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._layoutMode_0_flag = AttributeUpdaterFlag.UPDATE - this._layoutMode_0_0value = value - } else - { - this._layoutMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt | 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 - } - enableNativeEmbedMode(value: boolean | undefined): this { - if (((this._enableNativeEmbedMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableNativeEmbedMode_0_0value) !== (value))) - { - this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.UPDATE - this._enableNativeEmbedMode_0_0value = value - } else - { - this._enableNativeEmbedMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onNativeEmbedLifecycleChange(value: ((event: NativeEmbedDataInfo) => void) | undefined): this { - if (((this._onNativeEmbedLifecycleChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onNativeEmbedLifecycleChange_0_0value = value - } else - { - this._onNativeEmbedLifecycleChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onNativeEmbedVisibilityChange(value: OnNativeEmbedVisibilityChangeCallback | undefined): this { - if (((this._onNativeEmbedVisibilityChange_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.UPDATE - this._onNativeEmbedVisibilityChange_0_0value = value - } else - { - this._onNativeEmbedVisibilityChange_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onNativeEmbedGestureEvent(value: ((event: NativeEmbedTouchInfo) => void) | undefined): this { - if (((this._onNativeEmbedGestureEvent_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.UPDATE - this._onNativeEmbedGestureEvent_0_0value = value - } else - { - this._onNativeEmbedGestureEvent_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - copyOptions(value: CopyOptions | undefined): this { - if (((this._copyOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._copyOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._copyOptions_0_0value = value - } else - { - this._copyOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onOverrideUrlLoading(value: OnOverrideUrlLoadingCallback | undefined): this { - if (((this._onOverrideUrlLoading_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.UPDATE - this._onOverrideUrlLoading_0_0value = value - } else - { - this._onOverrideUrlLoading_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - textAutosizing(value: boolean | undefined): this { - if (((this._textAutosizing_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._textAutosizing_0_0value) !== (value))) - { - this._textAutosizing_0_flag = AttributeUpdaterFlag.UPDATE - this._textAutosizing_0_0value = value - } else - { - this._textAutosizing_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableNativeMediaPlayer(value: NativeMediaPlayerConfig | undefined): this { - if (((this._enableNativeMediaPlayer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.UPDATE - this._enableNativeMediaPlayer_0_0value = value - } else - { - this._enableNativeMediaPlayer_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onRenderProcessNotResponding(value: OnRenderProcessNotRespondingCallback | undefined): this { - if (((this._onRenderProcessNotResponding_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.UPDATE - this._onRenderProcessNotResponding_0_0value = value - } else - { - this._onRenderProcessNotResponding_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onRenderProcessResponding(value: OnRenderProcessRespondingCallback | undefined): this { - if (((this._onRenderProcessResponding_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.UPDATE - this._onRenderProcessResponding_0_0value = value - } else - { - this._onRenderProcessResponding_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onViewportFitChanged(value: OnViewportFitChangedCallback | undefined): this { - if (((this._onViewportFitChanged_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.UPDATE - this._onViewportFitChanged_0_0value = value - } else - { - this._onViewportFitChanged_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onInterceptKeyboardAttach(value: WebKeyboardCallback | undefined): this { - if (((this._onInterceptKeyboardAttach_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.UPDATE - this._onInterceptKeyboardAttach_0_0value = value - } else - { - this._onInterceptKeyboardAttach_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onAdsBlocked(value: OnAdsBlockedCallback | undefined): this { - if (((this._onAdsBlocked_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onAdsBlocked_0_flag = AttributeUpdaterFlag.UPDATE - this._onAdsBlocked_0_0value = value - } else - { - this._onAdsBlocked_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - keyboardAvoidMode(value: WebKeyboardAvoidMode | undefined): this { - if (((this._keyboardAvoidMode_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.UPDATE - this._keyboardAvoidMode_0_0value = value - } else - { - this._keyboardAvoidMode_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - editMenuOptions(value: EditMenuOptions | undefined): this { - if (((this._editMenuOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._editMenuOptions_0_0value = value - } else - { - this._editMenuOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableHapticFeedback(value: boolean | undefined): this { - if (((this._enableHapticFeedback_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableHapticFeedback_0_0value) !== (value))) - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.UPDATE - this._enableHapticFeedback_0_0value = value - } else - { - this._enableHapticFeedback_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - optimizeParserBudget(value: boolean | undefined): this { - if (((this._optimizeParserBudget_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._optimizeParserBudget_0_0value) !== (value))) - { - this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.UPDATE - this._optimizeParserBudget_0_0value = value - } else - { - this._optimizeParserBudget_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableFollowSystemFontWeight(value: boolean | undefined): this { - if (((this._enableFollowSystemFontWeight_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableFollowSystemFontWeight_0_0value) !== (value))) - { - this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.UPDATE - this._enableFollowSystemFontWeight_0_0value = value - } else - { - this._enableFollowSystemFontWeight_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableWebAVSession(value: boolean | undefined): this { - if (((this._enableWebAVSession_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableWebAVSession_0_0value) !== (value))) - { - this._enableWebAVSession_0_flag = AttributeUpdaterFlag.UPDATE - this._enableWebAVSession_0_0value = value - } else - { - this._enableWebAVSession_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - runJavaScriptOnDocumentStart(value: Array | undefined): this { - if (((this._runJavaScriptOnDocumentStart_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.UPDATE - this._runJavaScriptOnDocumentStart_0_0value = value - } else - { - this._runJavaScriptOnDocumentStart_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - runJavaScriptOnDocumentEnd(value: Array | undefined): this { - if (((this._runJavaScriptOnDocumentEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._runJavaScriptOnDocumentEnd_0_0value = value - } else - { - this._runJavaScriptOnDocumentEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - runJavaScriptOnHeadEnd(value: Array | undefined): this { - if (((this._runJavaScriptOnHeadEnd_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.UPDATE - this._runJavaScriptOnHeadEnd_0_0value = value - } else - { - this._runJavaScriptOnHeadEnd_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - nativeEmbedOptions(value: EmbedOptions | undefined): this { - if (((this._nativeEmbedOptions_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.UPDATE - this._nativeEmbedOptions_0_0value = value - } else - { - this._nativeEmbedOptions_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - registerNativeEmbedRule(tag: string | undefined, type: string | undefined): this { - if (((this._registerNativeEmbedRule_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._registerNativeEmbedRule_0_0value) !== (tag)) || ((this._registerNativeEmbedRule_0_1value) !== (type))) - { - this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.UPDATE - this._registerNativeEmbedRule_0_0value = tag - this._registerNativeEmbedRule_0_1value = type - } else - { - this._registerNativeEmbedRule_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - bindSelectionMenu(elementType: WebElementType | undefined, content: CustomBuilder | undefined, responseType: WebResponseType | undefined, options?: SelectionMenuOptionsExt): this { - if (((this._bindSelectionMenu_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || (true) || (true) || (true)) - { - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.UPDATE - this._bindSelectionMenu_0_0value = elementType - this._bindSelectionMenu_0_1value = content - this._bindSelectionMenu_0_2value = responseType - this._bindSelectionMenu_0_3value = options - } else - { - this._bindSelectionMenu_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class ClientAuthenticationHandler_serializer { public static write(buffer: SerializerBase, value: ClientAuthenticationHandler): void { let valueSerializer : SerializerBase = buffer @@ -11496,7 +6281,7 @@ export class OnSslErrorEventReceiveEvent_serializer { const valueHolderForCertChainDataTmpValue = valueHolderForCertChainData! valueSerializer.writeInt32((valueHolderForCertChainDataTmpValue.length).toInt()) for (let valueHolderForCertChainDataTmpValueCounterI = 0; valueHolderForCertChainDataTmpValueCounterI < valueHolderForCertChainDataTmpValue.length; valueHolderForCertChainDataTmpValueCounterI++) { - const valueHolderForCertChainDataTmpValueTmpElement : NativeBuffer = valueHolderForCertChainDataTmpValue[valueHolderForCertChainDataTmpValueCounterI] + const valueHolderForCertChainDataTmpValueTmpElement : ArrayBuffer = valueHolderForCertChainDataTmpValue[valueHolderForCertChainDataTmpValueCounterI] valueSerializer.writeBuffer(valueHolderForCertChainDataTmpValueTmpElement) } } else { @@ -11508,16 +6293,16 @@ export class OnSslErrorEventReceiveEvent_serializer { const handlerTmpResult : SslErrorHandler = (SslErrorHandler_serializer.read(valueDeserializer) as SslErrorHandler) const errorTmpResult : SslError = TypeChecker.SslError_FromNumeric(valueDeserializer.readInt32()) const certChainDataTmpBuf_runtimeType = valueDeserializer.readInt8().toInt() - let certChainDataTmpBuf : Array | undefined + let certChainDataTmpBuf : Array | undefined if ((certChainDataTmpBuf_runtimeType) != (RuntimeType.UNDEFINED)) { const certChainDataTmpBuf_Length : int32 = valueDeserializer.readInt32() - let certChainDataTmpBuf_ : Array = new Array(certChainDataTmpBuf_Length) + let certChainDataTmpBuf_ : Array = new Array(certChainDataTmpBuf_Length) for (let certChainDataTmpBuf_BufCounterI = 0; certChainDataTmpBuf_BufCounterI < certChainDataTmpBuf_Length; certChainDataTmpBuf_BufCounterI++) { - certChainDataTmpBuf_[certChainDataTmpBuf_BufCounterI] = (valueDeserializer.readBuffer() as NativeBuffer) + certChainDataTmpBuf_[certChainDataTmpBuf_BufCounterI] = (valueDeserializer.readBuffer() as ArrayBuffer) } certChainDataTmpBuf = certChainDataTmpBuf_ } - const certChainDataTmpResult : Array | undefined = certChainDataTmpBuf + const certChainDataTmpResult : Array | undefined = certChainDataTmpBuf let value : OnSslErrorEventReceiveEvent = ({handler: handlerTmpResult, error: errorTmpResult, certChainData: certChainDataTmpResult} as OnSslErrorEventReceiveEvent) return value } diff --git a/arkoala-arkts/arkui/src/component/windowScene.ets b/arkoala-arkts/arkui/generated/component/windowScene.ets similarity index 64% rename from arkoala-arkts/arkui/src/component/windowScene.ets rename to arkoala-arkts/arkui/generated/component/windowScene.ets index 43ed8a8ecedc6a9471ba0a8f912673f37851d919..06914776def3a55d496728bfb8cee010e296d1c5 100644 --- a/arkoala-arkts/arkui/src/component/windowScene.ets +++ b/arkoala-arkts/arkui/generated/component/windowScene.ets @@ -22,15 +22,14 @@ 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 { Resource } from "./../generated/resource" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" +import { AttributeModifier, AttributeUpdater } from "#handwritten" +import { Resource } from "global.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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkWindowScenePeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -132,64 +131,3 @@ export function WindowScene( }) } -export class WindowSceneModifier extends CommonMethodModifier implements WindowSceneAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _attractionEffect_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _attractionEffect_0_0value?: Position | undefined - _attractionEffect_0_1value?: number | undefined - applyModifierPatch(peer: ArkWindowScenePeer): void { - super.applyModifierPatch(peer) - if (this._attractionEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._attractionEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setAttractionEffectAttribute((this._attractionEffect_0_0value as Position | undefined), (this._attractionEffect_0_1value as number | undefined)); - this._attractionEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._attractionEffect_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._attractionEffect_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setAttractionEffectAttribute((undefined as Position | undefined), (undefined as number | undefined)); - } - } - } - } - mergeModifier(modifier: WindowSceneModifier): void { - super.mergeModifier(modifier) - if (modifier._attractionEffect_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._attractionEffect_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.attractionEffect(modifier._attractionEffect_0_0value, modifier._attractionEffect_0_1value); - break; - } - default: { - this.attractionEffect((undefined as Position | undefined), (undefined as number | undefined)); - } - } - } - } - attractionEffect(destination: Position | undefined, fraction: number | undefined): this { - if (((this._attractionEffect_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true) || ((this._attractionEffect_0_1value) !== (fraction))) - { - this._attractionEffect_0_flag = AttributeUpdaterFlag.UPDATE - this._attractionEffect_0_0value = destination - this._attractionEffect_0_1value = fraction - } else - { - this._attractionEffect_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} diff --git a/arkoala-arkts/arkui/src/component/withTheme.ets b/arkoala-arkts/arkui/generated/component/withTheme.ets similarity index 88% rename from arkoala-arkts/arkui/src/component/withTheme.ets rename to arkoala-arkts/arkui/generated/component/withTheme.ets index 7dba359b93b8951324e451d1197fc8b19d35b49f..656050e035df10d1da856271b1a72fe6cf7a3ca8 100644 --- a/arkoala-arkts/arkui/src/component/withTheme.ets +++ b/arkoala-arkts/arkui/generated/component/withTheme.ets @@ -21,15 +21,14 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { CustomTheme, CustomTheme_serializer } from "./../framework/ohos.arkui.theme" import { ThemeColorMode } from "./common" -import { UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class ArkWithThemePeer extends PeerNode { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) @@ -103,19 +102,6 @@ export function WithTheme( }) } -export class WithThemeModifier implements WithThemeAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - applyModifierPatch(peer: ArkWithThemePeer): void { - } - mergeModifier(modifier: WithThemeModifier): void { - } - public attributeModifier(value: AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class WithThemeOptions_serializer { public static write(buffer: SerializerBase, value: WithThemeOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/component/xcomponent.ets b/arkoala-arkts/arkui/generated/component/xcomponent.ets similarity index 74% rename from arkoala-arkts/arkui/src/component/xcomponent.ets rename to arkoala-arkts/arkui/generated/component/xcomponent.ets index 4d8b7564b7c8b054289bf709e43b464eaa9344d5..8a568988b5fc85b9597cdd913cdde36a4727a3c4 100644 --- a/arkoala-arkts/arkui/src/component/xcomponent.ets +++ b/arkoala-arkts/arkui/generated/component/xcomponent.ets @@ -23,15 +23,14 @@ import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, CommonMethodModifier } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { CallbackKind } from "./../generated/peers/CallbackKind" +import { AttributeModifier, AttributeUpdater, extractors } from "#handwritten" +import { CallbackKind } from "./../framework/peers/CallbackKind" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { XComponentType } from "./enums" import { NodeAttach, remember } from "@koalaui/runtime" -import { AttributeUpdaterFlag } from "./../generated/AttributeUpdater" export class XComponentControllerInternal { public static fromPtr(ptr: KPointer): XComponentController { return new XComponentController(ptr) @@ -527,285 +526,6 @@ export function XComponent( }) } -export class XComponentModifier extends CommonMethodModifier implements XComponentAttribute { - _instanceId: number = -1; - setInstanceId(instanceId: number): void { - this._instanceId = instanceId - } - _onLoad_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onLoad_0_0value?: OnNativeLoadCallback | undefined - _onDestroy_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _onDestroy_0_0value?: VoidCallback | undefined - _enableAnalyzer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableAnalyzer_0_0value?: boolean | undefined - _enableSecure_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableSecure_0_0value?: boolean | undefined - _hdrBrightness_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _hdrBrightness_0_0value?: number | undefined - _enableTransparentLayer_0_flag: AttributeUpdaterFlag = AttributeUpdaterFlag.INITIAL - _enableTransparentLayer_0_0value?: boolean | undefined - applyModifierPatch(peer: ArkXComponentPeer): void { - super.applyModifierPatch(peer) - if (this._onLoad_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onLoad_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnLoadAttribute((this._onLoad_0_0value as OnNativeLoadCallback | undefined)); - this._onLoad_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onLoad_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onLoad_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnLoadAttribute((undefined as OnNativeLoadCallback | undefined)); - } - } - } - if (this._onDestroy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._onDestroy_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setOnDestroyAttribute((this._onDestroy_0_0value as VoidCallback | undefined)); - this._onDestroy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._onDestroy_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._onDestroy_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setOnDestroyAttribute((undefined as VoidCallback | undefined)); - } - } - } - if (this._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableAnalyzer_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableAnalyzerAttribute((this._enableAnalyzer_0_0value as boolean | undefined)); - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableAnalyzerAttribute((undefined as boolean | undefined)); - } - } - } - if (this._enableSecure_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableSecure_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableSecureAttribute((this._enableSecure_0_0value as boolean | undefined)); - this._enableSecure_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableSecure_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableSecure_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableSecureAttribute((undefined as boolean | undefined)); - } - } - } - if (this._hdrBrightness_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._hdrBrightness_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setHdrBrightnessAttribute((this._hdrBrightness_0_0value as number | undefined)); - this._hdrBrightness_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._hdrBrightness_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._hdrBrightness_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setHdrBrightnessAttribute((undefined as number | undefined)); - } - } - } - if (this._enableTransparentLayer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (this._enableTransparentLayer_0_flag) { - case AttributeUpdaterFlag.UPDATE: { - peer.setEnableTransparentLayerAttribute((this._enableTransparentLayer_0_0value as boolean | undefined)); - this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.INITIAL; - peer.setEnableTransparentLayerAttribute((undefined as boolean | undefined)); - } - } - } - } - mergeModifier(modifier: XComponentModifier): void { - super.mergeModifier(modifier) - if (modifier._onLoad_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onLoad_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onLoad(modifier._onLoad_0_0value); - break; - } - default: { - this.onLoad((undefined as OnNativeLoadCallback | undefined)); - } - } - } - if (modifier._onDestroy_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._onDestroy_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDestroy(modifier._onDestroy_0_0value); - break; - } - default: { - this.onDestroy((undefined as VoidCallback | undefined)); - } - } - } - if (modifier._enableAnalyzer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableAnalyzer_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableAnalyzer(modifier._enableAnalyzer_0_0value); - break; - } - default: { - this.enableAnalyzer((undefined as boolean | undefined)); - } - } - } - if (modifier._enableSecure_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableSecure_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableSecure(modifier._enableSecure_0_0value); - break; - } - default: { - this.enableSecure((undefined as boolean | undefined)); - } - } - } - if (modifier._hdrBrightness_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._hdrBrightness_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hdrBrightness(modifier._hdrBrightness_0_0value); - break; - } - default: { - this.hdrBrightness((undefined as number | undefined)); - } - } - } - if (modifier._enableTransparentLayer_0_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._enableTransparentLayer_0_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enableTransparentLayer(modifier._enableTransparentLayer_0_0value); - break; - } - default: { - this.enableTransparentLayer((undefined as boolean | undefined)); - } - } - } - } - onLoad(value: OnNativeLoadCallback | undefined): this { - if (((this._onLoad_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onLoad_0_flag = AttributeUpdaterFlag.UPDATE - this._onLoad_0_0value = value - } else - { - this._onLoad_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - onDestroy(value: VoidCallback | undefined): this { - if (((this._onDestroy_0_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._onDestroy_0_flag = AttributeUpdaterFlag.UPDATE - this._onDestroy_0_0value = value - } else - { - this._onDestroy_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableAnalyzer(value: boolean | undefined): this { - if (((this._enableAnalyzer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableAnalyzer_0_0value) !== (value))) - { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.UPDATE - this._enableAnalyzer_0_0value = value - } else - { - this._enableAnalyzer_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableSecure(value: boolean | undefined): this { - if (((this._enableSecure_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableSecure_0_0value) !== (value))) - { - this._enableSecure_0_flag = AttributeUpdaterFlag.UPDATE - this._enableSecure_0_0value = value - } else - { - this._enableSecure_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - hdrBrightness(value: number | undefined): this { - if (((this._hdrBrightness_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._hdrBrightness_0_0value) !== (value))) - { - this._hdrBrightness_0_flag = AttributeUpdaterFlag.UPDATE - this._hdrBrightness_0_0value = value - } else - { - this._hdrBrightness_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - enableTransparentLayer(value: boolean | undefined): this { - if (((this._enableTransparentLayer_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._enableTransparentLayer_0_0value) !== (value))) - { - this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.UPDATE - this._enableTransparentLayer_0_0value = value - } else - { - this._enableTransparentLayer_0_flag = AttributeUpdaterFlag.SKIP - } - return this - } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } -} export class SurfaceRect_serializer { public static write(buffer: SerializerBase, value: SurfaceRect): void { let valueSerializer : SerializerBase = buffer 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 99% rename from arkoala-arkts/arkui/src/generated/GlobalScope.ets rename to arkoala-arkts/arkui/generated/framework/GlobalScope.ets index 1cbe0e17db5a7df9be5544d1c2adc381d4bb311b..01d121971afb60e01ccd959a9a2c65ba4732b050 100644 --- a/arkoala-arkts/arkui/src/generated/GlobalScope.ets +++ b/arkoala-arkts/arkui/generated/framework/GlobalScope.ets @@ -18,16 +18,17 @@ import { Edges_serializer, BorderRadiuses_serializer, Edges, Dimension, BorderRadiuses, Length } from "./../component/units" import { SerializerBase, DeserializerBase, NativeBuffer, Finalizable, runtimeType, RuntimeType, MaterializedBase, KPointer, toPeerPtr } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./resource" +import { Resource_serializer } from "./resource" import { AnimateParam_serializer, AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./../component/common" import { ComponentInfo_serializer, ComponentInfo, Offset_componentutils, TranslateResult, ScaleResult, RotateResult, Matrix4Result } from "./../component/idlize" import { uiEffect_BrightnessBlenderParam_serializer, uiEffect_BrightnessBlender_serializer, uiEffect } from "./ohos.graphics.uiEffect" import { text_FontDescriptor_serializer, text } from "./ohos.graphics.text" import { font_UIFontConfig_serializer, font } from "./ohos.font" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" +import { Resource } from "global.resource" import { BorderStyle, PlayMode } from "./../component/enums" import { curves } from "./ohos.curves" -import { Size } from "./arkui.Graphics" +import { Size } from "./../Graphics" import { pointer } from "./ohos.multimodalInput.pointer" import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/application.BaseContext.ets b/arkoala-arkts/arkui/generated/framework/application.BaseContext.ets similarity index 98% rename from arkoala-arkts/arkui/src/generated/application.BaseContext.ets rename to arkoala-arkts/arkui/generated/framework/application.BaseContext.ets index 17d79c6e04406707240f1710e06354d9e0cc880e..518a2411319a84d1819652812bb15a516cef2441 100644 --- a/arkoala-arkts/arkui/src/generated/application.BaseContext.ets +++ b/arkoala-arkts/arkui/generated/framework/application.BaseContext.ets @@ -20,6 +20,7 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" +import { extractors } from "#handwritten" export class BaseContextInternal { public static fromPtr(ptr: KPointer): BaseContext { return new BaseContext(ptr) diff --git a/arkoala-arkts/arkui/src/generated/application.Context.ets b/arkoala-arkts/arkui/generated/framework/application.Context.ets similarity index 98% rename from arkoala-arkts/arkui/src/generated/application.Context.ets rename to arkoala-arkts/arkui/generated/framework/application.Context.ets index 2e981d5331d0a5c04d94767c5f9702d185fa6be8..760cc1d5edb1b405990a39648432ba2e39ead836 100644 --- a/arkoala-arkts/arkui/src/generated/application.Context.ets +++ b/arkoala-arkts/arkui/generated/framework/application.Context.ets @@ -20,6 +20,7 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" +import { extractors } from "#handwritten" export interface Context { } export class ContextInternal implements MaterializedBase,Context { diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ets b/arkoala-arkts/arkui/generated/framework/arkts/ArkUIGeneratedNativeModule.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ets rename to arkoala-arkts/arkui/generated/framework/arkts/ArkUIGeneratedNativeModule.ets index 97c2ce2c7c448aa4680f0fc37cf1274ba4dca5a3..7602b38f5752e6ea1f71b1a449cd8409e7ce02d1 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ets +++ b/arkoala-arkts/arkui/generated/framework/arkts/ArkUIGeneratedNativeModule.ets @@ -529,8 +529,6 @@ export class ArkUIGeneratedNativeModule { @ani.unsafe.Direct native static _CommonMethod_setRenderFit(ptr: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void @ani.unsafe.Direct - native static _CommonMethod_setGestureModifier(ptr: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void - @ani.unsafe.Direct native static _CommonMethod_setBackgroundBrightness(ptr: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void @ani.unsafe.Direct native static _CommonMethod_setOnGestureJudgeBegin(ptr: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void @@ -4627,12 +4625,6 @@ export class ArkUIGeneratedNativeModule { @ani.unsafe.Direct native static _GestureGroupInterface_onCancel(ptr: KPointer, thisArray: KSerializerBuffer, thisLength: int32): KPointer @ani.unsafe.Direct - native static _GestureModifier_construct(): KPointer - @ani.unsafe.Direct - native static _GestureModifier_getFinalizer(): KPointer - @ani.unsafe.Direct - native static _GestureModifier_applyGesture(ptr: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void - @ani.unsafe.Direct native static _GestureRecognizer_construct(): KPointer @ani.unsafe.Direct native static _GestureRecognizer_getFinalizer(): KPointer 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 96% rename from arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ets rename to arkoala-arkts/arkui/generated/framework/arkts/TestNativeModule.ets index 2d197d5794e68f2f36d0b9c69af6131496cd91f6..a8cfaf973f7dc7985c753c282941a56c5cacd229 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ets +++ b/arkoala-arkts/arkui/generated/framework/arkts/TestNativeModule.ets @@ -26,7 +26,7 @@ export class TestNativeModule { native static _TestCallIntRecursiveCallback(arg0: int32, arr: KSerializerBuffer, arg2: int32): int32 native static _TestCallIntMemory(arg0: int32, arg1: int32): int32 @ani.unsafe.Quick - native static _TestWithBuffer(buffer: NativeBuffer): void + native static _TestWithBuffer(buffer: ArrayBuffer): void @ani.unsafe.Direct native static _TestGetManagedCaller(kind: int32): KPointer @ani.unsafe.Direct 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 98% rename from arkoala-arkts/arkui/src/generated/arkts/type_check.ets rename to arkoala-arkts/arkui/generated/framework/arkts/type_check.ets index 632f59a7429d050dd2949335129757300fcf0c0b..cb4ed48d183edcc2be02fc56c3ba28e9a0bb3a1d 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/type_check.ets +++ b/arkoala-arkts/arkui/generated/framework/arkts/type_check.ets @@ -16,14 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { KBoolean, KStringPtr, NativeBuffer, MaterializedBase } from "@koalaui/interop" +import { KBoolean, KStringPtr, MaterializedBase } from "@koalaui/interop" import { int32 } from "@koalaui/common" import { AccessibilityHoverType, Alignment, AnimationStatus, AppRotation, ArrowPointPosition, Axis, AxisAction, AxisModel, BarState, BorderStyle, CheckBoxShape, Color, ClickEffectLevel, ColoringStrategy, CopyOptions, CrownAction, CrownSensitivity, DialogButtonStyle, Direction, DividerMode, Edge, EdgeEffect, EllipsisMode, EmbeddedType, FillMode, FlexAlign, FlexDirection, FlexWrap, FocusDrawLevel, FoldStatus, FontStyle, FontWeight, FunctionKey, GradientDirection, HeightBreakpoint, HitTestMode, HorizontalAlign, HoverEffect, IlluminatedType, ImageFit, ImageRepeat, ImageSize, ImageSpanAlignment, InteractionHand, ItemAlign, KeySource, KeyType, LineBreakStrategy, LineCapStyle, LineJoinStyle, MarqueeUpdateStrategy, ModifierKey, MouseAction, MouseButton, NestedScrollMode, ObscuredReasons, OptionWidthMode, PageFlipMode, PixelRoundCalcPolicy, PixelRoundMode, Placement, PlayMode, RelateType, RenderFit, ResponseType, ScrollSource, SharedTransitionEffectType, TextAlign, TextCase, TextContentStyle, TextDecorationStyle, TextDecorationType, TextHeightAdaptivePolicy, TextOverflow, TextSelectableMode, TitleHeight, TouchType, TransitionType, WidthBreakpoint, VerticalAlign, Visibility, Week, WordBreak, XComponentType } from "./../../component/enums" -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 { AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, TouchEvent, ChainStyle, ContentClipMode, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, 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 { AttributeUpdaterFlag } from "./../AttributeUpdater" +import { AttributeModifier, ContentModifier, GestureModifier, UIGestureEvent, CustomStyles } from "#handwritten" +import { AttributeUpdaterFlag } from "./../../AttributeUpdater" import { AudioSessionType, BlurOnKeyboardHideMode, CacheMode, ClientAuthenticationHandler, ConsoleMessage, MessageLevel, ContextMenuEditStateFlags, ContextMenuInputFieldType, ContextMenuMediaType, ContextMenuSourceType, ControllerHandler, DataResubmissionHandler, EventResult, FileSelectorMode, FileSelectorParam, FileSelectorResult, FullScreenExitHandler, HitTestType, HttpAuthHandler, JsGeolocation, JsResult, MixedMode, NativeEmbedStatus, NativeMediaPlayerConfig, OnAudioStateChangedEvent, OnConsoleEvent, OnDataResubmittedEvent, OnFaviconReceivedEvent, OnFirstContentfulPaintEvent, OnOverScrollEvent, OnProgressChangeEvent, OnScaleChangeEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnShowFileSelectorEvent, OverScrollMode, PermissionRequest, ProtectedResourceType, RenderExitReason, RenderMode, RenderProcessNotRespondingReason, ScreenCaptureHandler, ScreenCaptureConfig, SslError, SslErrorHandler, ThreatType, ViewportFit, WebCaptureMode, WebContextMenuParam, WebContextMenuResult, WebCookie, WebDarkMode, WebElementType, WebKeyboardAvoidMode, WebKeyboardController, WebLayoutMode, WebNavigationType, WebResourceError, Header, WebResourceRequest, WebResourceResponse, WebResponseType, AdsBlockedDetails, EmbedOptions, FirstMeaningfulPaint, FullScreenEnterEvent, IntelligentTrackingPreventionDetails, JavaScriptProxy, LargestContentfulPaint, LoadCommittedDetails, NativeEmbedVisibilityInfo, NestedScrollOptionsExt, OnAlertEvent, OnBeforeUnloadEvent, OnClientAuthenticationEvent, OnConfirmEvent, OnContextMenuShowEvent, OnDownloadStartEvent, OnErrorReceiveEvent, OnGeolocationShowEvent, OnHttpAuthRequestEvent, OnHttpErrorReceiveEvent, OnInterceptRequestEvent, OnLoadInterceptEvent, OnPageBeginEvent, OnPageEndEvent, OnPageVisibleEvent, OnPermissionRequestEvent, OnPromptEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnResourceLoadEvent, OnScreenCaptureRequestEvent, OnSslErrorEventReceiveEvent, OnTitleReceiveEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, RenderProcessNotRespondingData, ScriptItem, SelectionMenuOptionsExt, SslErrorEvent, WebKeyboardCallbackInfo, WebKeyboardOptions, WebMediaOptions, WebOptions, NativeEmbedInfo, NativeEmbedDataInfo, NativeEmbedTouchInfo } from "./../../component/web" 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" @@ -32,7 +32,7 @@ import { BarStyle, LaunchMode, NavBarPosition, NavigationMode, NavigationOperati import { BaseContext } from "./../application.BaseContext" import { BaseShape, BuilderNodeOps, BuilderNodeOptions, CommonShape, Offset_componentutils, PerfMonitorActionType, PerfMonitorSourceType, RotateResult, ScaleResult, Scene, TranslateResult, WorkerEventListener, Event, DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish, ErrorEvent, MessageEvents, PostMessageOptions, SnapshotOptions, WorkerOptions, ComponentInfo, Matrix4Result, RestrictedWorker, RestrictedWorker_onexit_Callback, RestrictedWorker_onerror_Callback, RestrictedWorker_onmessage_Callback } from "./../../component/idlize" import { Length, SizeOptions, Position, ResourceColor, ColorFilter, ConstraintSizeOptions, ResourceStr, VoidCallback, AccessibilityOptions, Bias, ChainWeightOptions, DirectionalEdgesT, EdgeOutlineStyles, EdgeStyles, VP, DividerStyleOptions, EdgeColors, LengthConstrain, Dimension, LocalizedBorderRadiuses, LocalizedEdgeColors, LocalizedEdges, LocalizedEdgeWidths, LocalizedPadding, LocalizedPosition, Offset, BorderRadiuses, EdgeOutlineWidths, Edges, EdgeWidths, Font, PX, LPX, MarkStyle, OutlineRadiuses, Padding, Area, BorderOptions, OutlineOptions } from "./../../component/units" -import { Resource } from "./../resource" +import { Resource } from "global.resource" import { BreakpointsReference, GridRowDirection, BreakPoints, GridRowColumnOption, GridRowSizeOption, GutterOption, GridRowOptions } from "./../../component/gridRow" import { ButtonRole, ButtonStyleMode, ButtonType, ControlSize, ButtonConfiguration, ButtonTriggerClickCallback, ButtonOptions, ButtonLabelStyle } from "./../../component/button" import { CalendarAlign, CalendarPickerDialog, CalendarDialogOptions, CalendarOptions } from "./../../component/calendarPicker" @@ -43,9 +43,9 @@ import { ChainEdgeEffect, ListItemAlign, ListItemGroupArea, ListScroller, CloseS import { CircleOptions } from "./../../component/circle" import { CircleShape, ShapeSize, EllipseShape, PathShape, PathShapeOptions, RectShape, RectShapeOptions, RoundRectShapeOptions } from "./../ohos.arkui.shape" import { ColorContent, DynamicRangeMode, ImageContent, ImageInterpolation, ImageRenderMode, ImageRotateOrientation, ImageCompleteEvent, ImageSourceSize, ImageError, ResizableOptions } from "./../../component/image" -import { ColorMetrics, CornerRadius, DrawContext, Size, LengthMetricsUnit, LengthUnit, ShapeClip, RoundRect, Circle, CommandPath, ShapeMask, Vector2, Vector3, LengthMetrics, Frame } from "./../arkui.Graphics" +import { ColorMetrics, CornerRadius, DrawContext, Size, LengthMetricsUnit, LengthUnit, ShapeClip, RoundRect, Circle, CommandPath, ShapeMask, Vector2, Vector3, LengthMetrics, Frame } from "./../../Graphics" import { ColorMode, LayoutDirection } from "./../../component/stateManagement" -import { ComponentContent } from "./../arkui.ComponentContent" +import { ComponentContent } from "./../../ComponentContent" import { ContentType, EnterKeyType, InputType, SubmitEvent, TextInputController, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../../component/textInput" import { Context } from "./../application.Context" import { webview } from "./../ohos.web.webview" @@ -69,7 +69,7 @@ import { UIContext, PromptAction, TargetInfo, TextMenuController } from "./../oh import { uiObserver } from "./../ohos.arkui.observer" import { FocusPriority, KeyProcessingMode, FocusBoxStyle } from "./../../component/focus" import { FormDimension, FormRenderingMode, FormShape, FormSize, ErrorInformation, FormCallbackInfo, FormInfo } from "./../../component/formComponent" -import { FrameNode, CrossLanguageOptions, LayoutConstraint } from "./../arkui.FrameNode" +import { FrameNode, CrossLanguageOptions, LayoutConstraint } from "./../../FrameNode" import { FrictionMotion, ScrollMotion, SpringProp, SpringMotion } from "./../../component/animator" import { FullscreenInfo, PlaybackInfo, PlaybackSpeed, PreparedInfo, SeekMode, VideoController, PosterOptions, VideoOptions } from "./../../component/video" import { GestureGroupInterface, LongPressGestureInterface, GestureInterface, LongPressGestureInterface_Invoke_Literal, PanGestureInterface, PanGestureInterface_Invoke_Literal, PinchGestureInterface, PinchGestureInterface_Invoke_Literal, TapGestureInterface } from "./../../component/gesture.extra" @@ -94,8 +94,8 @@ import { MarqueeStartPolicy, MarqueeState, TextController, TextOptions, TextOver import { matrix4 } from "./../ohos.matrix4" import { NavDestinationActiveReason, NavDestinationMode, NavigationSystemTransitionType, NavDestinationTransition, NavDestinationContext, NestedScrollInfo, RouteMapConfig, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../../component/navDestination" import { NavigationType } from "./../../component/navigator" -import { NodeContent } from "./../arkui.nodecontent" -import { Content } from "./../arkui.Content" +import { NodeContent } from "./../../NodeContent" +import { Content } from "./../../Content" import { NodeController } from "./../ohos.arkui.node" import { OnFoldStatusChangeInfo, FolderStackOptions, HoverEventParam } from "./../../component/folderStack" import { PasteButtonOnClickResult, PasteDescription, PasteIconStyle } from "./../../component/pasteButton" @@ -122,11 +122,11 @@ import { SideBarContainerType, SideBarPosition, ButtonIconOptions, ButtonStyle } import { SliderBlockType, SliderChangeMode, SliderInteraction, SliderStyle, SlideRange, SliderConfiguration, SliderTriggerChangeCallback, SliderBlockStyle, SliderOptions } from "./../../component/slider" import { SubMenuExpandingMode } from "./../../component/menu" import { SwiperAnimationEvent, SwiperAnimationMode, SwiperContentTransitionProxy, SwiperContentWillScrollResult, SwiperController, SwiperDisplayMode, SwiperNestedScrollMode, AutoPlayOptions, SwiperAutoFill, SwiperContentAnimatedTransition, ArrowStyle, DotIndicator, Indicator, DigitIndicator } from "./../../component/swiper" -import { SymbolGlyphModifier } from "./../arkui.SymbolGlyphModifier" +import { SymbolGlyphModifier } from "./../../SymbolGlyphModifier" import { text } from "./../ohos.graphics.text" import { TextAreaController, TextAreaType, TextAreaOptions } from "./../../component/textArea" import { TextClockConfiguration, TextClockController, TextClockOptions } from "./../../component/textClock" -import { TextModifier } from "./../arkui.TextModifier" +import { TextModifier } from "./../../TextModifier" import { TextPickerDialog, TextPickerDialogOptions, TextCascadePickerRangeContent, TextPickerRangeContent, TextPickerResult, DividerOptions, TextPickerOptions, TextPickerTextStyle } from "./../../component/textPicker" import { TextTimerConfiguration, TextTimerController, TextTimerOptions } from "./../../component/textTimer" import { ThemeControl, CustomTheme, Colors } from "./../ohos.arkui.theme" @@ -139,7 +139,7 @@ import { uniformTypeDescriptor } from "./../ohos.data.uniformTypeDescriptor" import { WaterFlowLayoutMode, SectionOptions, WaterFlowSections, WaterFlowOptions, GetItemMainSizeByIndex } from "./../../component/waterFlow" import { window } from "./../ohos.window" import { ASTCResource } from "./../../component/mediaCachedImage" -import { BorderRadiuses_graphics, RenderNode } from "./../arkui.RenderNode" +import { BorderRadiuses_graphics, RenderNode } from "./../../RenderNode" import { BusinessError } from "./../ohos.base" import { CheckBoxConfiguration, CheckboxOptions } from "./../../component/checkbox" import { ColumnOptionsV2, ColumnOptions, SpaceType } from "./../../component/column" @@ -174,7 +174,7 @@ export class TypeChecker { return value as T } static isNativeBuffer(value: Object): boolean { - return value instanceof NativeBuffer + return value instanceof ArrayBuffer } static isAccessibilityHoverEvent(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { return value instanceof AccessibilityHoverEvent diff --git a/arkoala-arkts/arkui/src/generated/base.ets b/arkoala-arkts/arkui/generated/framework/base.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/base.ets rename to arkoala-arkts/arkui/generated/framework/base.ets index 5b4db628f1700ed69fab9ec70307436600ef3c96..6b0c747edea100246ac43d981f44e237e400a7d2 100644 --- a/arkoala-arkts/arkui/src/generated/base.ets +++ b/arkoala-arkts/arkui/generated/framework/base.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export interface BusinessError { name: string; message: string; diff --git a/arkoala-arkts/arkui/src/generated/index.ets b/arkoala-arkts/arkui/generated/framework/index.ets similarity index 59% rename from arkoala-arkts/arkui/src/generated/index.ets rename to arkoala-arkts/arkui/generated/framework/index.ets index f132bc778b190e3b7f9cf1028495c7150bb36b32..d13cd5a1bf7deb9392c2e4b5e6b5b9b6c22bd230 100644 --- a/arkoala-arkts/arkui/src/generated/index.ets +++ b/arkoala-arkts/arkui/generated/framework/index.ets @@ -16,6 +16,112 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +export * from "./../AlphabetIndexerModifier" +export * from "./../AnimatorModifier" +export * from "./../BadgeModifier" +export * from "./../BaseSpanModifier" +export * from "./../BlankModifier" +export * from "./../ButtonModifier" +export * from "./../CalendarPickerModifier" +export * from "./../CanvasModifier" +export * from "./../CheckboxGroupModifier" +export * from "./../CheckboxModifier" +export * from "./../CircleModifier" +export * from "./../ColumnModifier" +export * from "./../ColumnSplitModifier" +export * from "./../CommonMethodModifier" +export * from "./../CommonShapeMethodModifier" +export * from "./../ComponentRootModifier" +export * from "./../ContainerSpanModifier" +export * from "./../CounterModifier" +export * from "./../CustomLayoutRootModifier" +export * from "./../DataPanelModifier" +export * from "./../DatePickerModifier" +export * from "./../DividerModifier" +export * from "./../EffectComponentModifier" +export * from "./../EllipseModifier" +export * from "./../EmbeddedComponentModifier" +export * from "./../FlexModifier" +export * from "./../FlowItemModifier" +export * from "./../FolderStackModifier" +export * from "./../FormComponentModifier" +export * from "./../FormLinkModifier" +export * from "./../GaugeModifier" +export * from "./../GridColModifier" +export * from "./../GridItemModifier" +export * from "./../GridModifier" +export * from "./../GridRowModifier" +export * from "./../HyperlinkModifier" +export * from "./../ImageAnimatorModifier" +export * from "./../ImageModifier" +export * from "./../ImageSpanModifier" +export * from "./../IndicatorComponentModifier" +export * from "./../LineModifier" +export * from "./../LinearIndicatorModifier" +export * from "./../ListItemGroupModifier" +export * from "./../ListItemModifier" +export * from "./../ListModifier" +export * from "./../LoadingProgressModifier" +export * from "./../MarqueeModifier" +export * from "./../MediaCachedImageModifier" +export * from "./../MenuItemGroupModifier" +export * from "./../MenuItemModifier" +export * from "./../MenuModifier" +export * from "./../NavDestinationModifier" +export * from "./../NavigationModifier" +export * from "./../NodeContainerModifier" +export * from "./../PathModifier" +export * from "./../PatternLockModifier" +export * from "./../PluginComponentModifier" +export * from "./../PolygonModifier" +export * from "./../PolylineModifier" +export * from "./../ProgressModifier" +export * from "./../QRCodeModifier" +export * from "./../RadioModifier" +export * from "./../RatingModifier" +export * from "./../RectModifier" +export * from "./../RefreshModifier" +export * from "./../RelativeContainerModifier" +export * from "./../RemoteWindowModifier" +export * from "./../RichEditorModifier" +export * from "./../RichTextModifier" +export * from "./../RootModifier" +export * from "./../RootSceneModifier" +export * from "./../RowModifier" +export * from "./../RowSplitModifier" +export * from "./../ScreenModifier" +export * from "./../ScrollBarModifier" +export * from "./../ScrollModifier" +export * from "./../ScrollableCommonMethodModifier" +export * from "./../SearchModifier" +export * from "./../SelectModifier" +export * from "./../ShapeModifier" +export * from "./../SideBarContainerModifier" +export * from "./../SliderModifier" +export * from "./../SpanModifier" +export * from "./../StackModifier" +export * from "./../StepperItemModifier" +export * from "./../StepperModifier" +export * from "./../SwiperModifier" +export * from "./../SymbolGlyphModifier" +export * from "./../SymbolSpanModifier" +export * from "./../TabContentModifier" +export * from "./../TabsModifier" +export * from "./../TextAreaModifier" +export * from "./../TextClockModifier" +export * from "./../TextInputModifier" +export * from "./../TextModifier" +export * from "./../TextPickerModifier" +export * from "./../TextTimerModifier" +export * from "./../TimePickerModifier" +export * from "./../ToggleModifier" +export * from "./../UIExtensionComponentModifier" +export * from "./../VideoModifier" +export * from "./../WaterFlowModifier" +export * from "./../WebModifier" +export * from "./../WindowSceneModifier" +export * from "./../WithThemeModifier" +export * from "./../XComponentModifier" export * from "./../component/actionSheet" export * from "./../component/alertDialog" export * from "./../component/alphabetIndexer" 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 99% rename from arkoala-arkts/arkui/src/generated/ohos.app.ability.Want.ets rename to arkoala-arkts/arkui/generated/framework/ohos.app.ability.Want.ets index f96b8b8b3cae80edca98a193ad4078e5526b6f7b..d5677ff857bfd990886992bad73949a75faf4814 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.app.ability.Want.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.app.ability.Want.ets @@ -19,7 +19,8 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" export interface Want { 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 99% rename from arkoala-arkts/arkui/src/generated/ohos.app.ability.common.ets rename to arkoala-arkts/arkui/generated/framework/ohos.app.ability.common.ets index fd8744b31b4c79c29bd16d314d9da490562c5844..5ce2756233639852d97e92005a816dd16b5841d1 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.app.ability.common.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.app.ability.common.ets @@ -19,7 +19,8 @@ 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, Finalizable } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { BaseContext, BaseContextInternal } from "./application.BaseContext" diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.UIContext.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.UIContext.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.UIContext.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.UIContext.ets index 2277d88dc81b6cfaffe4c0b750284b06d084657e..fbba08c0a89fe1c2965aca24f89fa6a70fadf47a 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.arkui.UIContext.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.arkui.UIContext.ets @@ -18,18 +18,19 @@ import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { PopupCommonOptions_serializer, MenuOptions_serializer, PopupCommonOptions, MenuOptions, AnimateParam_serializer, SheetOptions_serializer, AnimateParam, SheetOptions } from "./../component/common" -import { ComponentContent, ComponentContentInternal } from "./arkui.ComponentContent" +import { ComponentContent, ComponentContentInternal } from "./../ComponentContent" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" import { TextMenuOptions_serializer, TextMenuOptions } from "./../component/textCommon" import { TextPickerDialogOptions_serializer, TextPickerDialogOptions } from "./../component/textPicker" -import { FrameNode_serializer, FrameNode, FrameNodeInternal } from "./arkui.FrameNode" +import { FrameNode_serializer, FrameNode, FrameNodeInternal } from "./../FrameNode" import { common_Context_serializer, common } from "./ohos.app.ability.common" import { drawing } from "./ohos.graphics.drawing" import { WidthBreakpoint, HeightBreakpoint } from "./../component/enums" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" export class PromptActionInternal { public static fromPtr(ptr: KPointer): PromptAction { return new PromptAction(ptr) diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.drawableDescriptor.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.drawableDescriptor.ets similarity index 98% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.drawableDescriptor.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.drawableDescriptor.ets index c6b4b5852ae6c5f28c1f69457cdabe9ee59c5898..943813d6f5f4336999e8ecf924b57736ff0e546d 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.arkui.drawableDescriptor.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.arkui.drawableDescriptor.ets @@ -21,6 +21,7 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" import { CallbackTransformer } from "./../CallbackTransformer" +import { extractors } from "#handwritten" export class DrawableDescriptorInternal { public static fromPtr(ptr: KPointer): DrawableDescriptor { return new DrawableDescriptor(ptr) diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.node.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.node.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.node.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.node.ets index b1550311b106fa00bab0a8ab2aaace79adfe5454..9727a8433c600aa72ae48e987190336ad064c0f0 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.arkui.node.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.arkui.node.ets @@ -19,7 +19,8 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" export interface Content { diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.observer.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.observer.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.observer.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.observer.ets index b96e42c9db035178ef288eb9e93974d979e14bdc..cd53772766294bcf495df177acab9f60b9ac842f 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.arkui.observer.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.arkui.observer.ets @@ -18,14 +18,16 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, Finalizable, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { NavPathStack_serializer, NavPathStack, NavigationOperation, NavBar } from "./../component/navigation" -import { Resource_serializer, Resource } from "./resource" +import { Resource_serializer } from "./resource" import { ResourceStr } from "./../component/units" import { UIContext, UIContextInternal } from "./ohos.arkui.UIContext" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" export class uiObserver_DensityInfo_serializer { public static write(buffer: SerializerBase, value: uiObserver.DensityInfo): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.shape.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.shape.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.shape.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.shape.ets index f499df052a38c998e3e3971b27d1f61cfe23e80b..b5b0ce9374bf4a5fdce12ce4477255f19b98393a 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.arkui.shape.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.arkui.shape.ets @@ -18,13 +18,15 @@ import { SerializerBase, DeserializerBase, Finalizable, runtimeType, RuntimeType, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, KInt, KBoolean, KStringPtr, CallbackResource, InteropNativeModule, Tags, nullptr, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" import { Position_serializer, SizeOptions_serializer, Position, ResourceColor, Length, SizeOptions } from "./../component/units" -import { Resource_serializer, Resource } from "./resource" +import { Resource_serializer } from "./resource" import { Color } from "./../component/enums" +import { Resource } from "global.resource" 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" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" export class CircleShapeInternal { public static fromPtr(ptr: KPointer): CircleShape { return new CircleShape(false, ptr) diff --git a/arkoala-arkts/arkui/src/generated/ohos.arkui.theme.ets b/arkoala-arkts/arkui/generated/framework/ohos.arkui.theme.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.arkui.theme.ets rename to arkoala-arkts/arkui/generated/framework/ohos.arkui.theme.ets index f76a242c3749db3ad232720428135f87c750cf5f..cb7bed79e5ae8c83d90515d6ded999fc28ec10d0 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.arkui.theme.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.arkui.theme.ets @@ -21,10 +21,12 @@ 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" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceColor } from "./../component/units" import { Color } from "./../component/enums" -import { Resource, Resource_serializer } from "./resource" +import { Resource } from "global.resource" +import { extractors } from "#handwritten" +import { Resource_serializer } from "./resource" export class ThemeControlInternal { public static fromPtr(ptr: KPointer): ThemeControl { return new ThemeControl(ptr) diff --git a/arkoala-arkts/arkui/src/generated/ohos.base.ets b/arkoala-arkts/arkui/generated/framework/ohos.base.ets similarity index 96% rename from arkoala-arkts/arkui/src/generated/ohos.base.ets rename to arkoala-arkts/arkui/generated/framework/ohos.base.ets index ffd39008bf356161fb6d51b64e9227fbe69f495d..d4b2aab63762de83a663093dc36e11c40fbbd705 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.base.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.base.ets @@ -19,7 +19,8 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" export type ErrorCallback = (error: BusinessError) => void; diff --git a/arkoala-arkts/arkui/src/generated/ohos.curves.ets b/arkoala-arkts/arkui/generated/framework/ohos.curves.ets similarity index 97% rename from arkoala-arkts/arkui/src/generated/ohos.curves.ets rename to arkoala-arkts/arkui/generated/framework/ohos.curves.ets index 16ae8b8e65dc5e51917d3aaac73e5587d07e5fad..8ebf689fe170b2cfdbc6c759d67f901ab7a413b7 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.curves.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.curves.ets @@ -18,10 +18,11 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, Finalizable, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { GlobalScope } from "./GlobalScope" export class curves_ICurve_serializer { public static write(buffer: SerializerBase, value: curves.ICurve): void { diff --git a/arkoala-arkts/arkui/src/generated/ohos.data.unifiedDataChannel.ets b/arkoala-arkts/arkui/generated/framework/ohos.data.unifiedDataChannel.ets similarity index 98% rename from arkoala-arkts/arkui/src/generated/ohos.data.unifiedDataChannel.ets rename to arkoala-arkts/arkui/generated/framework/ohos.data.unifiedDataChannel.ets index 70683f4bf371010fbce13d460f5a29f7f170ccc4..f64b8e1bd0eb8696667774e694224a59d91ed56f 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.data.unifiedDataChannel.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.data.unifiedDataChannel.ets @@ -18,10 +18,11 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, Finalizable, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class unifiedDataChannel_UnifiedData_serializer { public static write(buffer: SerializerBase, value: unifiedDataChannel.UnifiedData): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/generated/ohos.data.uniformTypeDescriptor.ets b/arkoala-arkts/arkui/generated/framework/ohos.data.uniformTypeDescriptor.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.data.uniformTypeDescriptor.ets rename to arkoala-arkts/arkui/generated/framework/ohos.data.uniformTypeDescriptor.ets index aad03a014cf2ec710ea07d562c01bad4505a2d88..013f97140dbd2eeac55d08087b0f0b9a7adff9a1 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.data.uniformTypeDescriptor.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.data.uniformTypeDescriptor.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export namespace uniformTypeDescriptor { export enum UniformDataType { ENTITY = "general.entity", diff --git a/arkoala-arkts/arkui/src/generated/ohos.font.ets b/arkoala-arkts/arkui/generated/framework/ohos.font.ets similarity index 98% rename from arkoala-arkts/arkui/src/generated/ohos.font.ets rename to arkoala-arkts/arkui/generated/framework/ohos.font.ets index 12c1cd2abb8b27b1f01da1e3246ba2e98ac03ead..a5382c856456b3e7a2cef1f13abdc5828289225a 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.font.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.font.ets @@ -19,10 +19,12 @@ 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 { Resource, Resource_serializer } from "./resource" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" +import { extractors } from "#handwritten" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" +import { Resource_serializer } from "./resource" import { GlobalScope } from "./GlobalScope" export interface FontOptions { familyName: string | Resource; diff --git a/arkoala-arkts/arkui/src/generated/ohos.graphics.common2D.ets b/arkoala-arkts/arkui/generated/framework/ohos.graphics.common2D.ets similarity index 98% rename from arkoala-arkts/arkui/src/generated/ohos.graphics.common2D.ets rename to arkoala-arkts/arkui/generated/framework/ohos.graphics.common2D.ets index fce1685f606774ea71f0baf80125d4f6e6c2ee52..07a9a4898a15ae5e977d0123752b54f780f6042e 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.graphics.common2D.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.graphics.common2D.ets @@ -18,10 +18,11 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class common2D_Color_serializer { public static write(buffer: SerializerBase, value: common2D.Color): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/generated/ohos.graphics.drawing.ets b/arkoala-arkts/arkui/generated/framework/ohos.graphics.drawing.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.graphics.drawing.ets rename to arkoala-arkts/arkui/generated/framework/ohos.graphics.drawing.ets index fde975c31da891faacf21399357fcd08a0c0c2be..b1a8fc7c70747def5c3a8c4e6ba605e461accf00 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.graphics.drawing.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.graphics.drawing.ets @@ -18,12 +18,13 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, Finalizable, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { common2D_Color_serializer, common2D, common2D_Rect_serializer, common2D_Point3d_serializer, common2D_Point_serializer } from "./ohos.graphics.common2D" import { image } from "./ohos.multimedia.image" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class drawing_Brush_serializer { public static write(buffer: SerializerBase, value: drawing.Brush): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/generated/ohos.graphics.text.ets b/arkoala-arkts/arkui/generated/framework/ohos.graphics.text.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.graphics.text.ets rename to arkoala-arkts/arkui/generated/framework/ohos.graphics.text.ets index 29fd2e9e6339163739fec50c58b9662b7bc16cdd..4fad7f0f729e1d68cbe0e6ef24d47430a5e97f7e 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.graphics.text.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.graphics.text.ets @@ -18,13 +18,15 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, Finalizable, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { common2D_Color_serializer, common2D, common2D_Rect_serializer, common2D_Point_serializer } from "./ohos.graphics.common2D" import { drawing_FontMetrics_serializer, drawing } from "./ohos.graphics.drawing" -import { Resource_serializer, Resource } from "./resource" +import { Resource_serializer } from "./resource" +import { Resource } from "global.resource" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { GlobalScope } from "./GlobalScope" export class text_FontCollection_serializer { public static write(buffer: SerializerBase, value: text.FontCollection): void { diff --git a/arkoala-arkts/arkui/src/generated/ohos.graphics.uiEffect.ets b/arkoala-arkts/arkui/generated/framework/ohos.graphics.uiEffect.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.graphics.uiEffect.ets rename to arkoala-arkts/arkui/generated/framework/ohos.graphics.uiEffect.ets index 233cbbb3ac4881221f90f929e2713cd4a8498fd6..db2ba9ab29e051cb67446ade43c68a60b0fa4747 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.graphics.uiEffect.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.graphics.uiEffect.ets @@ -18,10 +18,11 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, Finalizable, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { GlobalScope } from "./GlobalScope" export class uiEffect_Filter_serializer { public static write(buffer: SerializerBase, value: uiEffect.Filter): void { diff --git a/arkoala-arkts/arkui/src/generated/ohos.intl.ets b/arkoala-arkts/arkui/generated/framework/ohos.intl.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.intl.ets rename to arkoala-arkts/arkui/generated/framework/ohos.intl.ets index 95cb36aa1d58d351cf3537b523547546cf0b4a82..d25161998e8140923a23fd5b0409e4ad5f50f080 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.intl.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.intl.ets @@ -18,10 +18,11 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class intl_DateTimeOptions_serializer { public static write(buffer: SerializerBase, value: intl.DateTimeOptions): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/generated/ohos.matrix4.ets b/arkoala-arkts/arkui/generated/framework/ohos.matrix4.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.matrix4.ets rename to arkoala-arkts/arkui/generated/framework/ohos.matrix4.ets index bed4857301cd5a78b1738eb86afcf8759095cf05..e8b86f76845c1c112257a9d20d723be951408b83 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.matrix4.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.matrix4.ets @@ -18,12 +18,13 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, Finalizable, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { common2D_Point_serializer, common2D } from "./ohos.graphics.common2D" import { TranslateOptions_serializer, ScaleOptions_serializer, RotateOptions_serializer, TranslateOptions, ScaleOptions, RotateOptions } from "./../component/common" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class matrix4_Matrix4Transit_serializer { public static write(buffer: SerializerBase, value: matrix4.Matrix4Transit): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/generated/ohos.measure.ets b/arkoala-arkts/arkui/generated/framework/ohos.measure.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/ohos.measure.ets rename to arkoala-arkts/arkui/generated/framework/ohos.measure.ets index 25bd367ca6faf01028ffe6e4cf429b0eec9945e8..b2a8bb60f1059cd610dba811490e31232420fab8 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.measure.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.measure.ets @@ -19,10 +19,12 @@ 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 { Resource, Resource_serializer } from "./resource" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" import { FontStyle, FontWeight, TextOverflow, TextCase } from "./../component/enums" import { text } from "./ohos.graphics.text" +import { Resource_serializer } from "./resource" +import { extractors } from "#handwritten" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" export interface MeasureOptions { diff --git a/arkoala-arkts/arkui/src/generated/ohos.multimedia.image.ets b/arkoala-arkts/arkui/generated/framework/ohos.multimedia.image.ets similarity index 88% rename from arkoala-arkts/arkui/src/generated/ohos.multimedia.image.ets rename to arkoala-arkts/arkui/generated/framework/ohos.multimedia.image.ets index 3c168d7538df1783d140fe6aff57a1b76de963c2..124c3f12140d1fe0eaa122f5462b409418b706c7 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.multimedia.image.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.multimedia.image.ets @@ -18,10 +18,11 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, Finalizable, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class image_PixelMap_serializer { public static write(buffer: SerializerBase, value: image.PixelMap): void { let valueSerializer : SerializerBase = buffer @@ -37,8 +38,8 @@ export namespace image { export interface PixelMap { isEditable: boolean isStrideAlignment: boolean - readPixelsToBufferSync(dst: NativeBuffer): void - writeBufferToPixels(src: NativeBuffer): void + readPixelsToBufferSync(dst: ArrayBuffer): void + writeBufferToPixels(src: ArrayBuffer): void } export class PixelMapInternal implements MaterializedBase,PixelMap { peer?: Finalizable | undefined = undefined @@ -65,13 +66,13 @@ export namespace image { public static fromPtr(ptr: KPointer): PixelMapInternal { return new PixelMapInternal(ptr) } - public readPixelsToBufferSync(dst: NativeBuffer): void { - const dst_casted = dst as (NativeBuffer) + public readPixelsToBufferSync(dst: ArrayBuffer): void { + const dst_casted = dst as (ArrayBuffer) this.readPixelsToBufferSync_serialize(dst_casted) return } - public writeBufferToPixels(src: NativeBuffer): void { - const src_casted = src as (NativeBuffer) + public writeBufferToPixels(src: ArrayBuffer): void { + const src_casted = src as (ArrayBuffer) this.writeBufferToPixels_serialize(src_casted) return } @@ -81,13 +82,13 @@ export namespace image { private getIsStrideAlignment(): boolean { return this.getIsStrideAlignment_serialize() } - private readPixelsToBufferSync_serialize(dst: NativeBuffer): void { + private readPixelsToBufferSync_serialize(dst: ArrayBuffer): void { const thisSerializer : SerializerBase = SerializerBase.hold() thisSerializer.writeBuffer(dst) ArkUIGeneratedNativeModule._image_PixelMap_readPixelsToBufferSync(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) thisSerializer.release() } - private writeBufferToPixels_serialize(src: NativeBuffer): void { + private writeBufferToPixels_serialize(src: ArrayBuffer): void { const thisSerializer : SerializerBase = SerializerBase.hold() thisSerializer.writeBuffer(src) ArkUIGeneratedNativeModule._image_PixelMap_writeBufferToPixels(this.peer!.ptr, thisSerializer.asBuffer(), thisSerializer.length()) diff --git a/arkoala-arkts/arkui/src/generated/ohos.multimodalInput.intentionCode.ets b/arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.intentionCode.ets similarity index 95% rename from arkoala-arkts/arkui/src/generated/ohos.multimodalInput.intentionCode.ets rename to arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.intentionCode.ets index 76757611d85f38b80f526157bfe7cddbd77b85d9..75b693d3f296e6cfb4098c655e8b690e77201eb6 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.multimodalInput.intentionCode.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.intentionCode.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum IntentionCode { INTENTION_UNKNOWN = -1, INTENTION_UP = 1, diff --git a/arkoala-arkts/arkui/src/generated/ohos.multimodalInput.pointer.ets b/arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.pointer.ets similarity index 97% rename from arkoala-arkts/arkui/src/generated/ohos.multimodalInput.pointer.ets rename to arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.pointer.ets index 96ecc31eb35aa29105775e59773535dab28dc3f2..4d62bc31d20674a7f22ace653eb5a076fd4d442c 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.multimodalInput.pointer.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.multimodalInput.pointer.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export namespace pointer { export enum PointerStyle { DEFAULT = 0, diff --git a/arkoala-arkts/arkui/src/generated/ohos.promptAction.ets b/arkoala-arkts/arkui/generated/framework/ohos.promptAction.ets similarity index 96% rename from arkoala-arkts/arkui/src/generated/ohos.promptAction.ets rename to arkoala-arkts/arkui/generated/framework/ohos.promptAction.ets index da58a11b9bec1acdc312a24894a35387b8066585..506760751c3fca58d9f71d7482d671fe64af66ae 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.promptAction.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.promptAction.ets @@ -21,7 +21,8 @@ import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { extractors } from "#handwritten" export class LevelOrderInternal { public static fromPtr(ptr: KPointer): LevelOrder { return new LevelOrder(ptr) diff --git a/arkoala-arkts/arkui/src/generated/ohos.web.webview.ets b/arkoala-arkts/arkui/generated/framework/ohos.web.webview.ets similarity index 96% rename from arkoala-arkts/arkui/src/generated/ohos.web.webview.ets rename to arkoala-arkts/arkui/generated/framework/ohos.web.webview.ets index 2cb2e935b6b8fd27d65b2cd033a2ab0c6aee7599..89b2a7ca8c0d138497b5e44be02223c9589a0296 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.web.webview.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.web.webview.ets @@ -18,11 +18,13 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, Finalizable, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" -import { Resource_serializer, Resource } from "./resource" +import { Resource_serializer } from "./resource" +import { Resource } from "global.resource" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class webview_WebHeader_serializer { public static write(buffer: SerializerBase, value: webview.WebHeader): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/generated/ohos.window.ets b/arkoala-arkts/arkui/generated/framework/ohos.window.ets similarity index 96% rename from arkoala-arkts/arkui/src/generated/ohos.window.ets rename to arkoala-arkts/arkui/generated/framework/ohos.window.ets index 6fc37fcb638307832ec66fe4423443f693446dee..58dd94b8fae7c90bd8a115f55d4a84f07faf7605 100644 --- a/arkoala-arkts/arkui/src/generated/ohos.window.ets +++ b/arkoala-arkts/arkui/generated/framework/ohos.window.ets @@ -18,10 +18,11 @@ import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { int32, int64, float32, unsafeCast } from "@koalaui/common" +import { extractors } from "#handwritten" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class window_SystemBarStyle_serializer { public static write(buffer: SerializerBase, value: window.SystemBarStyle): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ets b/arkoala-arkts/arkui/generated/framework/peers/CallbackDeserializeCall.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ets rename to arkoala-arkts/arkui/generated/framework/peers/CallbackDeserializeCall.ets index ba08b8af533975d638b54aef3c2ea62f784fe523..817809d324de7556793fa1f4c8cff0d27e506610 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ets +++ b/arkoala-arkts/arkui/generated/framework/peers/CallbackDeserializeCall.ets @@ -26,7 +26,7 @@ import { CopyEvent_serializer, CutEvent_serializer, RichEditorChangeValue_serial import { CustomSpanMeasureInfo_serializer, CustomSpanMetrics_serializer, CustomSpanDrawInfo_serializer, StyledString_serializer, UserDataSpan_serializer, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledString, UserDataSpan, StyledStringMarshallCallback, StyledStringUnmarshallCallback } from "./../../component/styledString" import { uiObserver_DensityInfo_serializer, uiObserver_NavDestinationInfo_serializer, uiObserver_NavDestinationSwitchInfo_serializer, uiObserver_RouterPageInfo_serializer, uiObserver_ScrollEventInfo_serializer, uiObserver_TabContentInfo_serializer, uiObserver } from "./../ohos.arkui.observer" import { DismissDialogAction_serializer, DismissDialogAction } from "./../../component/actionSheet" -import { DrawContext_serializer, DrawContext } from "./../arkui.Graphics" +import { DrawContext_serializer, DrawContext } from "./../../Graphics" import { ErrorInformation_serializer, FormCallbackInfo_serializer, ErrorInformation, FormCallbackInfo } from "./../../component/formComponent" import { FullscreenInfo_serializer, PlaybackInfo_serializer, PreparedInfo_serializer, FullscreenInfo, PlaybackInfo, PreparedInfo } from "./../../component/video" import { GestureEvent_serializer, GestureInfo_serializer, BaseGestureEvent_serializer, GestureRecognizer_serializer, RotationGesture_serializer, SwipeGesture_serializer, GestureEvent, GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureRecognizer, RotationGesture, SwipeGesture } from "./../../component/gesture" @@ -38,7 +38,7 @@ import { Scene_serializer, ErrorEvent_serializer, MessageEvents_serializer, Call import { TabContentAnimatedTransition_serializer, TabContentTransitionProxy_serializer, TabsAnimationEvent_serializer, TabContentAnimatedTransition, TabContentTransitionProxy, OnTabsAnimationEndCallback, TabsAnimationEvent, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback } from "./../../component/tabs" import { SurfaceRect_serializer, SurfaceRect, OnNativeLoadCallback } from "./../../component/xcomponent" import { SwiperContentTransitionProxy_serializer, SwiperContentWillScrollResult_serializer, SwiperAnimationEvent_serializer, SwiperContentTransitionProxy, ContentDidScrollCallback, ContentWillScrollCallback, SwiperContentWillScrollResult, OnSwiperAnimationEndCallback, SwiperAnimationEvent, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback } from "./../../component/swiper" -import { Resource_serializer, Resource } from "./../resource" +import { Resource_serializer } from "./../resource" import { TextPickerResult_serializer, TextPickerResult, OnTextPickerChangeCallback, TextPickerEnterSelectedAreaCallback, TextPickerScrollStopCallback } from "./../../component/textPicker" import { TimePickerResult_serializer, TimePickerResult, OnTimePickerChangeCallback } from "./../../component/timePicker" import { UIExtensionProxy_serializer, UIExtensionProxy } from "./../../component/uiExtensionComponent" @@ -72,6 +72,7 @@ import { MarqueeState } from "./../../component/text" import { CustomBuilder, PageMapBuilder } from "./../../component/builder" import { RefreshStatus } from "./../../component/refresh" import { SwipeActionState } from "./../../component/listItem" +import { Resource } from "global.resource" import { Context_getGroupDir_Callback } from "./../ohos.app.ability.common" import { GetItemMainSizeByIndex } from "./../../component/waterFlow" import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback } from "./../../component/alphabetIndexer" @@ -236,8 +237,8 @@ export function deserializeAndCallCallback_Boolean_Void(thisDeserializer: Deseri } export function deserializeAndCallCallback_Buffer_Void(thisDeserializer: DeserializerBase): void { const _resourceId : int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((value: NativeBuffer) => void)) - let value : NativeBuffer = (thisDeserializer.readBuffer() as NativeBuffer) + const _call = (ResourceHolder.instance().get(_resourceId) as ((value: ArrayBuffer) => void)) + let value : ArrayBuffer = (thisDeserializer.readBuffer() as ArrayBuffer) _call(value) } export function deserializeAndCallCallback_ClickEvent_PasteButtonOnClickResult_Void(thisDeserializer: DeserializerBase): void { @@ -3176,7 +3177,7 @@ export function deserializeAndCallStyledStringMarshallCallback(thisDeserializer: const continuationBufferBufResource : CallbackResource = thisDeserializer.readCallbackResource() const continuationBufferBufCall : KPointer = thisDeserializer.readPointer() const continuationBufferBufCallSync : KPointer = thisDeserializer.readPointer() - let continuationResult : ((value: NativeBuffer) => void) = (value: NativeBuffer):void => { + let continuationResult : ((value: ArrayBuffer) => void) = (value: ArrayBuffer):void => { const continuationBufferBufArgsSerializer : SerializerBase = SerializerBase.hold(); continuationBufferBufArgsSerializer.writeInt32(continuationBufferBufResource.resourceId); continuationBufferBufArgsSerializer.writePointer(continuationBufferBufCall); @@ -3192,7 +3193,7 @@ export function deserializeAndCallStyledStringMarshallCallback(thisDeserializer: export function deserializeAndCallStyledStringUnmarshallCallback(thisDeserializer: DeserializerBase): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as StyledStringUnmarshallCallback) - let buf : NativeBuffer = (thisDeserializer.readBuffer() as NativeBuffer) + let buf : ArrayBuffer = (thisDeserializer.readBuffer() as ArrayBuffer) const continuationBufferBufResource : CallbackResource = thisDeserializer.readCallbackResource() const continuationBufferBufCall : KPointer = thisDeserializer.readPointer() const continuationBufferBufCallSync : KPointer = thisDeserializer.readPointer() 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 88% rename from arkoala-arkts/arkui/src/generated/resource.ets rename to arkoala-arkts/arkui/generated/framework/resource.ets index 360050e2434fffaf974b07b32724a8ab077ae26b..0746663f9b2870ce9ca6d0dad8d4c304b74cefc8 100644 --- a/arkoala-arkts/arkui/src/generated/resource.ets +++ b/arkoala-arkts/arkui/generated/framework/resource.ets @@ -16,19 +16,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { Resource } from "global.resource" +import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" 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 { extractors } from "#handwritten" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../CallbackTransformer" -export interface Resource { - bundleName: string; - moduleName: string; - id: int64; - params?: Array; - type?: int32; -} export class Resource_serializer { public static write(buffer: SerializerBase, value: Resource): void { let valueSerializer : SerializerBase = buffer diff --git a/arkoala-arkts/arkui/src/generated/searchOps.ets b/arkoala-arkts/arkui/generated/framework/searchOps.ets similarity index 96% rename from arkoala-arkts/arkui/src/generated/searchOps.ets rename to arkoala-arkts/arkui/generated/framework/searchOps.ets index 3326d78eb55947ca05ff4889913d1522d36117d9..89f0b483bb01f19045c9bf3db0d05b81ea6c84b1 100644 --- a/arkoala-arkts/arkui/src/generated/searchOps.ets +++ b/arkoala-arkts/arkui/generated/framework/searchOps.ets @@ -21,7 +21,7 @@ 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" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class SearchOps { private static registerSearchValueCallback_serialize(node: KPointer, value: string, callback: SearchValueCallback): KPointer { const thisSerializer : SerializerBase = SerializerBase.hold() diff --git a/arkoala-arkts/arkui/src/generated/textFieldOps.ets b/arkoala-arkts/arkui/generated/framework/textFieldOps.ets similarity index 99% rename from arkoala-arkts/arkui/src/generated/textFieldOps.ets rename to arkoala-arkts/arkui/generated/framework/textFieldOps.ets index aa820413e1933ebe79a46973992753cb3ab2efc9..4cb216fd1142f65f7b3396cb7cfd1fb4d0161a2a 100644 --- a/arkoala-arkts/arkui/src/generated/textFieldOps.ets +++ b/arkoala-arkts/arkui/generated/framework/textFieldOps.ets @@ -17,15 +17,16 @@ // 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 } from "@koalaui/interop" -import { Resource_serializer, Resource } from "./resource" +import { Resource_serializer } from "./resource" import { LayoutPolicy_serializer, LayoutPolicy, LayoutPolicyInternal } from "./../component/common" import { Padding_serializer, LocalizedPadding_serializer, BorderOptions_serializer, EdgeWidths_serializer, LocalizedEdgeWidths_serializer, EdgeColors_serializer, LocalizedEdgeColors_serializer, EdgeStyles_serializer, BorderRadiuses_serializer, LocalizedBorderRadiuses_serializer, ResourceStr, Length, Padding, LocalizedPadding, BorderOptions, EdgeWidths, LocalizedEdgeWidths, ResourceColor, EdgeColors, LocalizedEdgeColors, EdgeStyles, BorderRadiuses, LocalizedBorderRadiuses } from "./../component/units" +import { Resource } from "global.resource" import { Color, BorderStyle } from "./../component/enums" 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" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" export class TextFieldOps { private static registerTextFieldValueCallback_serialize(node: KPointer, value: ResourceStr, callback: TextFieldValueCallback): KPointer { const thisSerializer : SerializerBase = SerializerBase.hold() diff --git a/arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorConsume.ets b/arkoala-arkts/arkui/generated/stateManagement.decorators.decoratorConsume.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorConsume.ets rename to arkoala-arkts/arkui/generated/stateManagement.decorators.decoratorConsume.ets index 759351bba8d80c6cd95be697e8ac3adf7a7da568..7f1c6f06ce311802f36d23184bb4189b3c6c6dee 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorConsume.ets +++ b/arkoala-arkts/arkui/generated/stateManagement.decorators.decoratorConsume.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export interface ConsumeDecoratedVariable { } diff --git a/arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorProvide.ets b/arkoala-arkts/arkui/generated/stateManagement.decorators.decoratorProvide.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorProvide.ets rename to arkoala-arkts/arkui/generated/stateManagement.decorators.decoratorProvide.ets index 420ea67fd3fb6a1ef22239ed496793d79272ad1b..af8cb4e2a6465399cf6881aba1d194c3670d2e65 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorProvide.ets +++ b/arkoala-arkts/arkui/generated/stateManagement.decorators.decoratorProvide.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export interface ProvideDecoratedVariable { } diff --git a/arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorWatch.ets b/arkoala-arkts/arkui/generated/stateManagement.decorators.decoratorWatch.ets similarity index 93% rename from arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorWatch.ets rename to arkoala-arkts/arkui/generated/stateManagement.decorators.decoratorWatch.ets index 3538fb6e7585a73f999129a23a98e1edd226f99d..674c3c2e17eeb8df553f137e66a971e4510cc4b7 100644 --- a/arkoala-arkts/arkui/src/generated/arkui.stateManagement.decorators.decoratorWatch.ets +++ b/arkoala-arkts/arkui/generated/stateManagement.decorators.decoratorWatch.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export interface WatchFuncType { } diff --git a/arkoala-arkts/arkui/src/generated/stateManagement.ets b/arkoala-arkts/arkui/generated/stateManagement.ets similarity index 98% rename from arkoala-arkts/arkui/src/generated/stateManagement.ets rename to arkoala-arkts/arkui/generated/stateManagement.ets index a3cb5f326cc44815c28f9e8c39af13d7fcd6b8f4..8a29733e2a735bdff7ebab89e7805e12555161a8 100644 --- a/arkoala-arkts/arkui/src/generated/stateManagement.ets +++ b/arkoala-arkts/arkui/generated/stateManagement.ets @@ -19,7 +19,7 @@ import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, runtimeType, RuntimeType, SerializerBase, DeserializerBase, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { CallbackTransformer } from "./../CallbackTransformer" +import { CallbackTransformer } from "./CallbackTransformer" export class EnvironmentBackend { private static isAccessibilityEnabled_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._EnvironmentBackend_isAccessibilityEnabled() 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/generated/AttributeUpdater.ets b/arkoala-arkts/arkui/sdk/AttributeUpdater.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/AttributeUpdater.ets rename to arkoala-arkts/arkui/sdk/AttributeUpdater.ets index efa6eac832a772f9beda294ff31ac876ca3b8805..ee2b688368dc24e3f3df40f6c100d917c27a9de2 100644 --- a/arkoala-arkts/arkui/sdk/generated/AttributeUpdater.ets +++ b/arkoala-arkts/arkui/sdk/AttributeUpdater.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum AttributeUpdaterFlag { INITIAL = 0, UPDATE = 1, diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.CommonModifier.ets b/arkoala-arkts/arkui/sdk/CommonModifier.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/arkui.CommonModifier.ets rename to arkoala-arkts/arkui/sdk/CommonModifier.ets index eaed3d813ffab11499df7125e557b187cd80e754..90afc189feeee055a1c54063fa6ff3b137be11bc 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.CommonModifier.ets +++ b/arkoala-arkts/arkui/sdk/CommonModifier.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface CommonModifier { } diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.ComponentContent.ets b/arkoala-arkts/arkui/sdk/ComponentContent.ets similarity index 94% rename from arkoala-arkts/arkui/sdk/generated/arkui.ComponentContent.ets rename to arkoala-arkts/arkui/sdk/ComponentContent.ets index e48bd2f286b494f745138b3372923320ce6fe3d4..3c19882f8a4f55841e4214352696baf889f73d6f 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.ComponentContent.ets +++ b/arkoala-arkts/arkui/sdk/ComponentContent.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare class ComponentContent { update(args: Object): void reuse(param?: Object): void diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.Content.ets b/arkoala-arkts/arkui/sdk/Content.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/arkui.Content.ets rename to arkoala-arkts/arkui/sdk/Content.ets index 0e25612dfb7cfda566b1b2ab0e8b80117ea993d3..e9587c4c883bc5b6e3d60158ce9dc0afe5d25c0a 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.Content.ets +++ b/arkoala-arkts/arkui/sdk/Content.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface Content { } diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.FrameNode.ets b/arkoala-arkts/arkui/sdk/FrameNode.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/arkui.FrameNode.ets rename to arkoala-arkts/arkui/sdk/FrameNode.ets index 16176290149ba587a35dc5ff70eeab8c8344a73d..10c572c0693a8b3fe5d0f592939e0fd3243c287e 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.FrameNode.ets +++ b/arkoala-arkts/arkui/sdk/FrameNode.ets @@ -19,10 +19,10 @@ 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 { Size } from "./arkui.Graphics" -import { UIContext } from "./ohos.arkui.UIContext" -import { Position } from "./../component/units" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Size } from "./Graphics" +import { UIContext } from "./framework/ohos.arkui.UIContext" +import { Position } from "./component/units" export declare interface CrossLanguageOptions { attributeSetting?: boolean; } diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.Graphics.ets b/arkoala-arkts/arkui/sdk/Graphics.ets similarity index 91% rename from arkoala-arkts/arkui/sdk/generated/arkui.Graphics.ets rename to arkoala-arkts/arkui/sdk/Graphics.ets index 8b1797e1e74890124faac6cf12efb84388d501eb..fb060f7d46eff93aa238d8dbec255d3555ee7ad0 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.Graphics.ets +++ b/arkoala-arkts/arkui/sdk/Graphics.ets @@ -19,12 +19,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 { drawing } from "./ohos.graphics.drawing" -import { Resource } from "./resource" -import { ResourceColor } from "./../component/units" -import { Color } from "./../component/enums" -import { common2D } from "./ohos.graphics.common2D" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { drawing } from "./framework/ohos.graphics.drawing" +import { Resource } from "global.resource" +import { ResourceColor } from "./component/units" +import { Color } from "./component/enums" +import { common2D } from "./framework/ohos.graphics.common2D" export declare interface Size { width: number; height: number; diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.nodecontent.ets b/arkoala-arkts/arkui/sdk/NodeContent.ets similarity index 87% rename from arkoala-arkts/arkui/sdk/generated/arkui.nodecontent.ets rename to arkoala-arkts/arkui/sdk/NodeContent.ets index e57b1be56fb716417277a147d9b3a04337476608..19bfdd9b09b185aede0247e0a5346ac90a4c9519 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.nodecontent.ets +++ b/arkoala-arkts/arkui/sdk/NodeContent.ets @@ -19,9 +19,9 @@ 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 "./arkui.Content" -import { FrameNode } from "./arkui.FrameNode" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Content } from "./Content" +import { FrameNode } from "./FrameNode" export declare class NodeContent implements Content { constructor() addFrameNode(node: FrameNode): void diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.NodeController.ets b/arkoala-arkts/arkui/sdk/NodeController.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/arkui.NodeController.ets rename to arkoala-arkts/arkui/sdk/NodeController.ets index d629e65b4d09ec63468bd242494238876432ffa2..235201bf21583aed0d5439e628643cf70d73150b 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.NodeController.ets +++ b/arkoala-arkts/arkui/sdk/NodeController.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface NodeController { } diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.RenderNode.ets b/arkoala-arkts/arkui/sdk/RenderNode.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/arkui.RenderNode.ets rename to arkoala-arkts/arkui/sdk/RenderNode.ets index b1f71e40e51d3fa7c934bf288372fa5dedd7b03c..e90be6c1e90bb3a3902e70baa9b8a5802f6a7e82 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.RenderNode.ets +++ b/arkoala-arkts/arkui/sdk/RenderNode.ets @@ -19,9 +19,9 @@ 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 { Vector2, Size, Frame, Vector3, ShapeMask, ShapeClip, LengthMetricsUnit, DrawContext } from "./arkui.Graphics" -import { EdgeStyles, Edges } from "./../component/units" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Vector2, Size, Frame, Vector3, ShapeMask, ShapeClip, LengthMetricsUnit, DrawContext } from "./Graphics" +import { EdgeStyles, Edges } from "./component/units" export type Offset_graphics = Vector2; export declare interface BorderRadiuses_graphics { topLeft: number; diff --git a/arkoala-arkts/arkui/src/handwritten/index.ets b/arkoala-arkts/arkui/sdk/SymbolGlyphModifier.ets similarity index 56% rename from arkoala-arkts/arkui/src/handwritten/index.ets rename to arkoala-arkts/arkui/sdk/SymbolGlyphModifier.ets index e7008e3837eb7b75763574567d079bd8eedc3f38..b03ba629abf8aaaaccabb662b98580be02025cef 100644 --- a/arkoala-arkts/arkui/src/handwritten/index.ets +++ b/arkoala-arkts/arkui/sdk/SymbolGlyphModifier.ets @@ -13,17 +13,4 @@ * 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" +export interface SymbolGlyphModifier {} diff --git a/arkoala-arkts/arkui/sdk/TextModifier.ets b/arkoala-arkts/arkui/sdk/TextModifier.ets new file mode 100644 index 0000000000000000000000000000000000000000..99ba01c7f459bb81f586383e28b1a8028c683b2f --- /dev/null +++ b/arkoala-arkts/arkui/sdk/TextModifier.ets @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export interface TextModifier {} diff --git a/arkoala-arkts/arkui/sdk/component/actionSheet.ets b/arkoala-arkts/arkui/sdk/component/actionSheet.ets index fd23400350542ac119a07570200b44504b35630c..0faf6ce72fe6df060fd098cdc06aac4c2914520d 100644 --- a/arkoala-arkts/arkui/sdk/component/actionSheet.ets +++ b/arkoala-arkts/arkui/sdk/component/actionSheet.ets @@ -19,13 +19,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 { Resource } from "./../generated/resource" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.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..7d2cbc5c96797dcbb7738fb40a34894d16c2fef3 100644 --- a/arkoala-arkts/arkui/sdk/component/alertDialog.ets +++ b/arkoala-arkts/arkui/sdk/component/alertDialog.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } 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 "global.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..b94a29d35f6218cb680ee6e26e66cf4dac021193 100644 --- a/arkoala-arkts/arkui/sdk/component/alphabetIndexer.ets +++ b/arkoala-arkts/arkui/sdk/component/alphabetIndexer.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } 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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum IndexerAlign { LEFT = 0, Left = 0, diff --git a/arkoala-arkts/arkui/sdk/component/animator.ets b/arkoala-arkts/arkui/sdk/component/animator.ets index 3a99ef6569c1f496c916d2ecf097ca3a40327512..b90495def3b057343893cc72f88fc4dbd37ad56d 100644 --- a/arkoala-arkts/arkui/sdk/component/animator.ets +++ b/arkoala-arkts/arkui/sdk/component/animator.ets @@ -19,11 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AnimationStatus, FillMode, PlayMode } from "./enums" -import { curves } from "./../generated/ohos.curves" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { curves } from "./../framework/ohos.curves" +import { AttributeModifier, 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..ebdf23046d50f8fe7359b333b49aafe86497b16d 100644 --- a/arkoala-arkts/arkui/sdk/component/badge.ets +++ b/arkoala-arkts/arkui/sdk/component/badge.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceColor, ResourceStr, Length, Position } from "./units" import { Color, FontWeight } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum BadgePosition { RIGHT_TOP = 0, RightTop = 0, diff --git a/arkoala-arkts/arkui/sdk/component/blank.ets b/arkoala-arkts/arkui/sdk/component/blank.ets index d5e5feb62e886f4723bb551f2f226066bd7dbef4..80cd2123cb9a470678ff43aee66a0bc73ac107b5 100644 --- a/arkoala-arkts/arkui/sdk/component/blank.ets +++ b/arkoala-arkts/arkui/sdk/component/blank.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceColor } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface BlankAttribute extends CommonMethod { color(value: ResourceColor | undefined): this { throw new Error("Unimplemented method color") diff --git a/arkoala-arkts/arkui/sdk/component/builder.ets b/arkoala-arkts/arkui/sdk/component/builder.ets index 5920200a9c00c310e7145609a81ac864371083d2..834d63cc2aa15d4ae6f9b87f4c63d437e2dc1d6d 100644 --- a/arkoala-arkts/arkui/sdk/component/builder.ets +++ b/arkoala-arkts/arkui/sdk/component/builder.ets @@ -19,9 +19,8 @@ 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" -export type CustomBuilder = -@memo -() => void; -export type CustomBuilderT = (t: T) => void; -export type PageMapBuilder = (name: string, param: Object | undefined) => void; +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" + +export type CustomBuilder = @Builder () => void; +export type CustomBuilderT = @Builder (t: T) => void; +export type PageMapBuilder = @Builder (name: string, param: Object | undefined) => void; diff --git a/arkoala-arkts/arkui/sdk/component/button.ets b/arkoala-arkts/arkui/sdk/component/button.ets index f6ab79aa2fbfd7e8917cbbb40ebd72dbe61e14cd..e2c83701a385b96799f4d8e470cade2141655b3d 100644 --- a/arkoala-arkts/arkui/sdk/component/button.ets +++ b/arkoala-arkts/arkui/sdk/component/button.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } 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 { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export enum ButtonType { CAPSULE = 0, Capsule = 0, diff --git a/arkoala-arkts/arkui/sdk/component/calendarPicker.ets b/arkoala-arkts/arkui/sdk/component/calendarPicker.ets index b126d4c49127b1092a4471e96f696f2a20c830ba..3fae68beda6c70e2445fc2715d2baaf3305a1120 100644 --- a/arkoala-arkts/arkui/sdk/component/calendarPicker.ets +++ b/arkoala-arkts/arkui/sdk/component/calendarPicker.ets @@ -19,10 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" import { DateRange, CommonMethod, PickerTextStyle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" import { Offset, VoidCallback, ResourceColor } from "./units" import { Color } from "./enums" export enum CalendarAlign { diff --git a/arkoala-arkts/arkui/sdk/component/canvas.ets b/arkoala-arkts/arkui/sdk/component/canvas.ets index d55251afaf04cedcde7d5feb70dfa5580b7f380f..253f2be4b1bd5d36299a60730714ff05d3614e2c 100644 --- a/arkoala-arkts/arkui/sdk/component/canvas.ets +++ b/arkoala-arkts/arkui/sdk/component/canvas.ets @@ -19,15 +19,15 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetricsUnit, LengthMetrics, Size } from "./../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 "./../FrameNode" import { ImageAnalyzerConfig, ImageAIOptions } from "./imageCommon" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export type CanvasFillRule = string; export type CanvasLineCap = string; export type CanvasLineJoin = string; @@ -85,8 +85,8 @@ export declare class ImageBitmap { close(): void } export declare class ImageData { - constructor(width: number, height: number, data: NativeBuffer | undefined, unit: LengthMetricsUnit | undefined) - get data():NativeBuffer; + constructor(width: number, height: number, data: ArrayBuffer | undefined, unit: LengthMetricsUnit | undefined) + get data():ArrayBuffer; get height():number; get width():number; } diff --git a/arkoala-arkts/arkui/sdk/component/checkbox.ets b/arkoala-arkts/arkui/sdk/component/checkbox.ets index 2f6858a6090dd06ea1cd698f8de511b98dbb211b..74611304c1c7bc7c654607e3146cc6a32c46c430 100644 --- a/arkoala-arkts/arkui/sdk/component/checkbox.ets +++ b/arkoala-arkts/arkui/sdk/component/checkbox.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" 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 { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface CheckboxOptions { name?: string; group?: string; diff --git a/arkoala-arkts/arkui/sdk/component/checkboxgroup.ets b/arkoala-arkts/arkui/sdk/component/checkboxgroup.ets index b4f474f1145be234808a2e14e6eb8385832782cf..5f0e7d990e0e093004e3f0fc766f18bd41acbcb4 100644 --- a/arkoala-arkts/arkui/sdk/component/checkboxgroup.ets +++ b/arkoala-arkts/arkui/sdk/component/checkboxgroup.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } 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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum SelectStatus { ALL = 0, All = 0, diff --git a/arkoala-arkts/arkui/sdk/component/circle.ets b/arkoala-arkts/arkui/sdk/component/circle.ets index 4a6b803b4e3a8ac9dd5cde2d2f06b0c438976be4..3e2ed3826eb5d5adc28e4894a210df7e0e6563af 100644 --- a/arkoala-arkts/arkui/sdk/component/circle.ets +++ b/arkoala-arkts/arkui/sdk/component/circle.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface CircleOptions { } export interface CircleAttribute extends CommonShapeMethod { diff --git a/arkoala-arkts/arkui/sdk/component/column.ets b/arkoala-arkts/arkui/sdk/component/column.ets index 194eac71390d2254517bd0063827a6ab322d5fa2..8881e46b13f4219e718addf6f697bb7f966f028a 100644 --- a/arkoala-arkts/arkui/sdk/component/column.ets +++ b/arkoala-arkts/arkui/sdk/component/column.ets @@ -19,11 +19,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 { Resource } from "./../generated/resource" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" import { CommonMethod, PointLightStyle, ArkCommonMethodStyle } from "./common" import { HorizontalAlign, FlexAlign } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export type SpaceType = string | number | Resource; export declare interface ColumnOptions { space?: SpaceType; diff --git a/arkoala-arkts/arkui/sdk/component/columnSplit.ets b/arkoala-arkts/arkui/sdk/component/columnSplit.ets index 386785beec02745695e90d6991bff85f79a11013..75e7ccbe86a1a7c01424b0617beed748b9a5768e 100644 --- a/arkoala-arkts/arkui/sdk/component/columnSplit.ets +++ b/arkoala-arkts/arkui/sdk/component/columnSplit.ets @@ -19,11 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Dimension } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface ColumnSplitDividerStyle { startMargin?: Dimension; endMargin?: Dimension; diff --git a/arkoala-arkts/arkui/sdk/component/common.ets b/arkoala-arkts/arkui/sdk/component/common.ets index 79787b1a6e44fbee98e1f9346d2841a8f267d0d1..92dbe21762a0aa67a0fff49a3859e99d03d82a1a 100644 --- a/arkoala-arkts/arkui/sdk/component/common.ets +++ b/arkoala-arkts/arkui/sdk/component/common.ets @@ -19,36 +19,36 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" +import { Context } from "./../framework/application.Context" +import { curves } from "./../framework/ohos.curves" +import { DrawContext, LengthMetrics } from "./../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 { CustomStyles, ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { BaseGestureEvent, GestureRecognizer, GestureJudgeResult, GestureInfo, GestureType, Gesture, GestureMask } from "./gesture" +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, GestureModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" +import { SymbolGlyphModifier } from "./../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 "./../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 "./../Graphics" export type VisualEffect = uiEffect.VisualEffect; export type Filter = uiEffect.Filter; export type Blender = uiEffect.Blender; @@ -2896,11 +2896,6 @@ export declare interface UICommonEvent { setOnSizeChange(callback_: SizeChangeCallback | undefined): void setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event: VisibleAreaChangeCallback | undefined): void } -export declare interface UIGestureEvent { -} -export declare interface GestureModifier { - applyGesture(event: UIGestureEvent): void -} export declare interface SelectionOptions { menuPolicy?: MenuPolicy; } diff --git a/arkoala-arkts/arkui/sdk/component/containerSpan.ets b/arkoala-arkts/arkui/sdk/component/containerSpan.ets index 48a02bf42fd6dec89fe85fbd8e482b2c72feacb4..3145f44af78e77948f44664334a83a5be3bcbdb2 100644 --- a/arkoala-arkts/arkui/sdk/component/containerSpan.ets +++ b/arkoala-arkts/arkui/sdk/component/containerSpan.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { TextBackgroundStyle } from "./span" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface ContainerSpanAttribute { textBackgroundStyle(value: TextBackgroundStyle | undefined): this { throw new Error("Unimplemented method textBackgroundStyle") diff --git a/arkoala-arkts/arkui/sdk/component/contentSlot.ets b/arkoala-arkts/arkui/sdk/component/contentSlot.ets index 13ab3689deeb17dca2aa0b90e146c1cafe1b516b..3b03a2a7b2a6286dccc76d46f9ab772b640baf08 100644 --- a/arkoala-arkts/arkui/sdk/component/contentSlot.ets +++ b/arkoala-arkts/arkui/sdk/component/contentSlot.ets @@ -19,8 +19,8 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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/counter.ets b/arkoala-arkts/arkui/sdk/component/counter.ets index d51bde53d0741271bab031ec978084731ef477e3..9886e38ea60389cf7bd565e787081d912798babe 100644 --- a/arkoala-arkts/arkui/sdk/component/counter.ets +++ b/arkoala-arkts/arkui/sdk/component/counter.ets @@ -19,10 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface CounterAttribute extends CommonMethod { onInc(value: VoidCallback | undefined): this { throw new Error("Unimplemented method onInc") diff --git a/arkoala-arkts/arkui/sdk/component/customComponent.ets b/arkoala-arkts/arkui/sdk/component/customComponent.ets index 7041b886f2f1f8ddfeebf42411080763d1a3ee5c..8b14d108c353dd9bbf718b30f565a0ef56cef724 100644 --- a/arkoala-arkts/arkui/sdk/component/customComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/customComponent.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { GeometryInfo, Layoutable, Measurable, SizeResult } from "./common" import { ConstraintSizeOptions } from "./units" export declare interface PageLifeCycle { diff --git a/arkoala-arkts/arkui/sdk/component/customDialogController.ets b/arkoala-arkts/arkui/sdk/component/customDialogController.ets index 436da0cc7ba0ff6ee1ca3238126fb2bae04f81e3..6cdcc5429d6e5bc1fbe605e4ab2ab6c7bab9305c 100644 --- a/arkoala-arkts/arkui/sdk/component/customDialogController.ets +++ b/arkoala-arkts/arkui/sdk/component/customDialogController.ets @@ -19,17 +19,17 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { DismissDialogAction } from "./actionSheet" import { CustomBuilder } from "./builder" 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 "global.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 "./../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..a7bd168a43a74d185b9ff55960303be32bcabf06 100644 --- a/arkoala-arkts/arkui/sdk/component/dataPanel.ets +++ b/arkoala-arkts/arkui/sdk/component/dataPanel.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceColor, Length } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { MultiShadowOptions, CommonConfiguration, CommonMethod, ArkCommonMethodStyle } from "./common" -import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export enum DataPanelType { LINE = 0, Line = 0, diff --git a/arkoala-arkts/arkui/sdk/component/datePicker.ets b/arkoala-arkts/arkui/sdk/component/datePicker.ets index 44d946a5317a05e0c3032fe66f63dfd733ebb524..866bfb39cf377a592e84180bc951b4ae587e09cf 100644 --- a/arkoala-arkts/arkui/sdk/component/datePicker.ets +++ b/arkoala-arkts/arkui/sdk/component/datePicker.ets @@ -19,14 +19,14 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Bindable, CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodStyle } from "./common" import { CrownSensitivity, Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" import { ResourceColor, Offset, VoidCallback } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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..eaea25487b16fa807f36dc149a7beadd8e3a8d8c 100644 --- a/arkoala-arkts/arkui/sdk/component/divider.ets +++ b/arkoala-arkts/arkui/sdk/component/divider.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceColor } from "./units" import { Color, LineCapStyle } from "./enums" -import { Resource } from "./../generated/resource" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface DividerAttribute extends CommonMethod { vertical(value: boolean | undefined): this { throw new Error("Unimplemented method vertical") diff --git a/arkoala-arkts/arkui/sdk/component/effectComponent.ets b/arkoala-arkts/arkui/sdk/component/effectComponent.ets index b1a8b983b8c9c1237efcef8a067b7816cef33a91..d55f133c82b8b67eb9276aabe8a50a125f3c0a38 100644 --- a/arkoala-arkts/arkui/sdk/component/effectComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/effectComponent.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface EffectComponentAttribute extends CommonMethod { attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { throw new Error("Unimplemented method attributeModifier") diff --git a/arkoala-arkts/arkui/sdk/component/ellipse.ets b/arkoala-arkts/arkui/sdk/component/ellipse.ets index ca1d9184e991a722af14d424f5b4b0149a6aa8e7..d8fbed13998ded0b949bb1262c0af47607964f99 100644 --- a/arkoala-arkts/arkui/sdk/component/ellipse.ets +++ b/arkoala-arkts/arkui/sdk/component/ellipse.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface EllipseOptions { } export interface EllipseAttribute extends CommonShapeMethod { diff --git a/arkoala-arkts/arkui/sdk/component/embeddedComponent.ets b/arkoala-arkts/arkui/sdk/component/embeddedComponent.ets index a24a61ef4cf46768fe836617e7358a8e373a36e6..19e31f0c951b10e9d1b1fbfd5c03a0a83c83ff20 100644 --- a/arkoala-arkts/arkui/sdk/component/embeddedComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/embeddedComponent.ets @@ -19,11 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { TerminationInfo, CommonMethod, ArkCommonMethodStyle } from "./common" -import { ErrorCallback, BusinessError } from "./../generated/ohos.base" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { Want } from "./../generated/ohos.app.ability.Want" +import { ErrorCallback, BusinessError } from "./../framework/ohos.base" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" +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..430526e069ce5094f4facbdd9419e5ee8ade4e87 100644 --- a/arkoala-arkts/arkui/sdk/component/enums.ets +++ b/arkoala-arkts/arkui/sdk/component/enums.ets @@ -19,8 +19,8 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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..4a7c4c5f8a178e3a504ce2e7995deca30cf32269 100644 --- a/arkoala-arkts/arkui/sdk/component/extendableComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/extendableComponent.ets @@ -19,13 +19,14 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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..4fb8ef9481d2a44eef2a6f97d387771216c34f65 100644 --- a/arkoala-arkts/arkui/sdk/component/flex.ets +++ b/arkoala-arkts/arkui/sdk/component/flex.ets @@ -19,11 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { FlexDirection, FlexWrap, FlexAlign, ItemAlign } from "./enums" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics } from "./../Graphics" import { CommonMethod, PointLightStyle, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface FlexOptions { direction?: FlexDirection; wrap?: FlexWrap; diff --git a/arkoala-arkts/arkui/sdk/component/flowItem.ets b/arkoala-arkts/arkui/sdk/component/flowItem.ets index fbfeb1d4d10aa904baf851e2bf0ff60096ff7779..7592b77b6fbc10950660b7ccbfee1f2957685449 100644 --- a/arkoala-arkts/arkui/sdk/component/flowItem.ets +++ b/arkoala-arkts/arkui/sdk/component/flowItem.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface FlowItemAttribute extends CommonMethod { attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { throw new Error("Unimplemented method attributeModifier") diff --git a/arkoala-arkts/arkui/sdk/component/focus.ets b/arkoala-arkts/arkui/sdk/component/focus.ets index 9e0471ef5664f68a6937450e8f037dfefad19651..ace01bbe8cfd1dc8da85c1d377f5c06614b04061 100644 --- a/arkoala-arkts/arkui/sdk/component/focus.ets +++ b/arkoala-arkts/arkui/sdk/component/focus.ets @@ -19,8 +19,8 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetrics, ColorMetrics } from "./../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..fc034226ecf1f26baa33c1a24dae99a4888aaafa 100644 --- a/arkoala-arkts/arkui/sdk/component/folderStack.ets +++ b/arkoala-arkts/arkui/sdk/component/folderStack.ets @@ -19,11 +19,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 { window } from "./../generated/ohos.window" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { window } from "./../framework/ohos.window" import { FoldStatus, Alignment, AppRotation } from "./enums" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export type WindowStatusType = window.WindowStatusType; export declare interface FolderStackOptions { upperItems?: Array; diff --git a/arkoala-arkts/arkui/sdk/component/formComponent.ets b/arkoala-arkts/arkui/sdk/component/formComponent.ets index ad3d2d6e32b9222f48353a965b07a4dd16990e91..f20a91bd6a1fa38e8e628f229c87674d3d3f84f3 100644 --- a/arkoala-arkts/arkui/sdk/component/formComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/formComponent.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Want } from "./../framework/ohos.app.ability.Want" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { Visibility } from "./enums" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum FormDimension { DIMENSION_1_2 = 0, Dimension_1_2 = 0, diff --git a/arkoala-arkts/arkui/sdk/component/formLink.ets b/arkoala-arkts/arkui/sdk/component/formLink.ets index 67acf1f8715ae21946b6a6356a5a04f84dbc7356..3493b98da4ce7fa9c6ea636cb50bf2a53cf7212d 100644 --- a/arkoala-arkts/arkui/sdk/component/formLink.ets +++ b/arkoala-arkts/arkui/sdk/component/formLink.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface FormLinkOptions { action: string; moduleName?: string; diff --git a/arkoala-arkts/arkui/sdk/component/gauge.ets b/arkoala-arkts/arkui/sdk/component/gauge.ets index 840fbec3e8837347fe093150ce07c0db4812af50..6323b2f8a1e625859cbedb07d7f24e1e68717131 100644 --- a/arkoala-arkts/arkui/sdk/component/gauge.ets +++ b/arkoala-arkts/arkui/sdk/component/gauge.ets @@ -19,14 +19,14 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" import { Color } from "./enums" import { LinearGradient } from "./dataPanel" import { CustomBuilder } from "./builder" -import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface GaugeOptions { value: number; min?: number; diff --git a/arkoala-arkts/arkui/sdk/component/gesture.ets b/arkoala-arkts/arkui/sdk/component/gesture.ets index 7e87f06a53e0e772e85cd6169f6ce6d574258ff7..bb5d74b75d5d39cb48d7f07ef02dd7324e1b1148 100644 --- a/arkoala-arkts/arkui/sdk/component/gesture.ets +++ b/arkoala-arkts/arkui/sdk/component/gesture.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { InteractionHand } from "./enums" import { BaseEvent, SourceTool } from "./common" export enum PanDirection { diff --git a/arkoala-arkts/arkui/sdk/component/gesture.extra.ets b/arkoala-arkts/arkui/sdk/component/gesture.extra.ets index 63cc8086573c1c48896a8d910eaf189dd7960085..312999a42bfae4fb692fe92046c05e27e9c08b0e 100644 --- a/arkoala-arkts/arkui/sdk/component/gesture.extra.ets +++ b/arkoala-arkts/arkui/sdk/component/gesture.extra.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { SourceTool } from "./common" import { GestureEvent, TapGestureParameters, LongPressGestureHandlerOptions, PanDirection, PanGestureOptions, PanGestureHandlerOptions, PinchGestureHandlerOptions, GestureMode, GestureType, Gesture } from "./gesture" export declare interface GestureInterface { diff --git a/arkoala-arkts/arkui/sdk/component/grid.ets b/arkoala-arkts/arkui/sdk/component/grid.ets index 2c128b0dd59601a8b999a3c67a14e808c2e4b5a3..3af36f9afe1b86dceb0dff469dda38c2bd426ef7 100644 --- a/arkoala-arkts/arkui/sdk/component/grid.ets +++ b/arkoala-arkts/arkui/sdk/component/grid.ets @@ -19,14 +19,14 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" import { OnScrollFrameBeginCallback, Scroller } from "./scroll" import { ScrollState } from "./list" import { ScrollSource } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface GridLayoutOptions { regularSize: [ number, number ]; irregularIndexes?: Array; diff --git a/arkoala-arkts/arkui/sdk/component/gridCol.ets b/arkoala-arkts/arkui/sdk/component/gridCol.ets index ba4f4046b2c62c326f3af8902b30807efacc27a1..a0f0e296c16d62975e9f0c44ef450b1d51884718 100644 --- a/arkoala-arkts/arkui/sdk/component/gridCol.ets +++ b/arkoala-arkts/arkui/sdk/component/gridCol.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface GridColColumnOption { xs?: number; sm?: number; diff --git a/arkoala-arkts/arkui/sdk/component/gridItem.ets b/arkoala-arkts/arkui/sdk/component/gridItem.ets index 8830129fca45968c05e4980dcc7d1acf2d65cae5..227d6e9dec31f070ecfb0f862b926d207a22fc1d 100644 --- a/arkoala-arkts/arkui/sdk/component/gridItem.ets +++ b/arkoala-arkts/arkui/sdk/component/gridItem.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, Bindable, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum GridItemStyle { NONE = 0, PLAIN = 1 diff --git a/arkoala-arkts/arkui/sdk/component/gridRow.ets b/arkoala-arkts/arkui/sdk/component/gridRow.ets index cad55fe60d06dd027c4e28d5a23e684631d4291e..81c03c8358adf7d8345be620575a5665a4992bc8 100644 --- a/arkoala-arkts/arkui/sdk/component/gridRow.ets +++ b/arkoala-arkts/arkui/sdk/component/gridRow.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ItemAlign } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface GridRowSizeOption { xs?: Length; sm?: Length; diff --git a/arkoala-arkts/arkui/sdk/component/hyperlink.ets b/arkoala-arkts/arkui/sdk/component/hyperlink.ets index 517bbb5bc9b26c0fd60f8b24854fdb39df2e587a..3b57d712eade10a7de109fd43aadbeb482268d5e 100644 --- a/arkoala-arkts/arkui/sdk/component/hyperlink.ets +++ b/arkoala-arkts/arkui/sdk/component/hyperlink.ets @@ -19,11 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { Color } from "./enums" -import { Resource } from "./../generated/resource" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface HyperlinkAttribute extends CommonMethod { color(value: Color | number | string | Resource | undefined): this { throw new Error("Unimplemented method color") diff --git a/arkoala-arkts/arkui/sdk/component/idlize.ets b/arkoala-arkts/arkui/sdk/component/idlize.ets index 5f4f653f9a6db4071a67634b9fa7e030021e447f..31c5f00c6ddc5ce9fc9d5266edfbcc8c97346ec8 100644 --- a/arkoala-arkts/arkui/sdk/component/idlize.ets +++ b/arkoala-arkts/arkui/sdk/component/idlize.ets @@ -19,10 +19,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 { curves } from "./../generated/ohos.curves" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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 "./../Graphics" import { ButtonConfiguration } from "./button" import { CheckBoxConfiguration } from "./checkbox" import { DataPanelConfiguration } from "./dataPanel" @@ -36,15 +36,15 @@ import { SliderConfiguration } from "./slider" import { TextClockConfiguration } from "./textClock" import { TextTimerConfiguration } from "./textTimer" import { ToggleConfiguration } from "./toggle" -import { ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" import { CustomDialogController } from "./customDialogController" import { CustomBuilder } from "./builder" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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; @@ -259,9 +259,9 @@ export declare class RestrictedWorker { onerror?: RestrictedWorker_onerror_Callback; onmessage?: RestrictedWorker_onmessage_Callback; onmessageerror?: RestrictedWorker_onmessage_Callback; - postMessage(message: Object, transfer: Array): void + postMessage(message: Object, transfer: Array): void postMessage(message: Object, options?: PostMessageOptions): void - postMessageWithSharedSendable(message: Object, transfer?: Array): void + postMessageWithSharedSendable(message: Object, transfer?: Array): void on(Type: string, listener: WorkerEventListener): void once(Type: string, listener: WorkerEventListener): void off(Type: string, listener?: WorkerEventListener): void diff --git a/arkoala-arkts/arkui/sdk/component/image.ets b/arkoala-arkts/arkui/sdk/component/image.ets index d8d8850bb44a614221fa1a18c54ba197bc8f8b86..4737c5f5624addea3f65ea9469dbd5058c4e4cc2 100644 --- a/arkoala-arkts/arkui/sdk/component/image.ets +++ b/arkoala-arkts/arkui/sdk/component/image.ets @@ -19,19 +19,19 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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 "global.resource" import { ResourceColor, ColorFilter, EdgeWidths, ResourceStr } from "./units" import { Color, ImageFit, ImageRepeat, CopyOptions } from "./enums" -import { ColorMetrics } from "./../generated/arkui.Graphics" +import { ColorMetrics } from "./../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 { AttributeModifier, AttributeUpdater } from "./../handwritten" +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..d7a6b7f153b1c58797084b8d8423ea8f677e9f87 100644 --- a/arkoala-arkts/arkui/sdk/component/imageAnimator.ets +++ b/arkoala-arkts/arkui/sdk/component/imageAnimator.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" +import { image } from "./../framework/ohos.multimedia.image" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { AnimationStatus, FillMode } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface ImageFrameInfo { src: string | Resource | image.PixelMap; width?: number | string; diff --git a/arkoala-arkts/arkui/sdk/component/imageCommon.ets b/arkoala-arkts/arkui/sdk/component/imageCommon.ets index 4bd1195ea72d07c18d99d987ddb038b20cce1a6e..469480e8c4ab09540380fb0eadd1e55228f7add8 100644 --- a/arkoala-arkts/arkui/sdk/component/imageCommon.ets +++ b/arkoala-arkts/arkui/sdk/component/imageCommon.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum ImageAnalyzerType { SUBJECT = 0, TEXT = 1, diff --git a/arkoala-arkts/arkui/sdk/component/imageSpan.ets b/arkoala-arkts/arkui/sdk/component/imageSpan.ets index 12d76ff1508a132538fbaae54fcc15ff523ae3a2..8ef825cb5515153b5900d92a05dc118899758da7 100644 --- a/arkoala-arkts/arkui/sdk/component/imageSpan.ets +++ b/arkoala-arkts/arkui/sdk/component/imageSpan.ets @@ -19,16 +19,16 @@ 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 { ComponentBuilder, Builder } 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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { image } from "./../framework/ohos.multimedia.image" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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/indicatorcomponent.ets b/arkoala-arkts/arkui/sdk/component/indicatorcomponent.ets index c4883b2802627f12e1e30cda4c9241673f7a9dbb..52d280e67be7e92f9bc1c862a77e1423858b3386 100644 --- a/arkoala-arkts/arkui/sdk/component/indicatorcomponent.ets +++ b/arkoala-arkts/arkui/sdk/component/indicatorcomponent.ets @@ -19,10 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { DotIndicator, DigitIndicator } from "./swiper" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare class IndicatorComponentController { constructor() showNext(): void diff --git a/arkoala-arkts/arkui/sdk/component/inspector.ets b/arkoala-arkts/arkui/sdk/component/inspector.ets index 6bbb57dfa7ec6e7426e88138459be7773ae99c76..0f99bb5e5fdd0da22a7eef53cf4f9a1532a4e299 100644 --- a/arkoala-arkts/arkui/sdk/component/inspector.ets +++ b/arkoala-arkts/arkui/sdk/component/inspector.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace Profiler { } diff --git a/arkoala-arkts/arkui/sdk/component/lazyForEach.ets b/arkoala-arkts/arkui/sdk/component/lazyForEach.ets index ec429612a71f66d59fa7c43b2a3569804aaf38ce..99d74ac67442c1d92aeb99a47eee14dca2a0dba5 100644 --- a/arkoala-arkts/arkui/sdk/component/lazyForEach.ets +++ b/arkoala-arkts/arkui/sdk/component/lazyForEach.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum DataOperationType { ADD = "'add'", DELETE = "'delete'", diff --git a/arkoala-arkts/arkui/sdk/component/lazyGridLayout.ets b/arkoala-arkts/arkui/sdk/component/lazyGridLayout.ets index 8aa2f019fb249476485bbf6f91df86ed41055ac7..388a4e494a7b25615ff8fd8bea3c357acb385aab 100644 --- a/arkoala-arkts/arkui/sdk/component/lazyGridLayout.ets +++ b/arkoala-arkts/arkui/sdk/component/lazyGridLayout.ets @@ -19,4 +19,4 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" diff --git a/arkoala-arkts/arkui/sdk/component/line.ets b/arkoala-arkts/arkui/sdk/component/line.ets index e640ba473a3cc778970182e91f8c3463c852925c..9ca4403c33a1002780cd9d4f52bd17eb5af326eb 100644 --- a/arkoala-arkts/arkui/sdk/component/line.ets +++ b/arkoala-arkts/arkui/sdk/component/line.ets @@ -19,11 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export type ShapePoint = [ Length, Length diff --git a/arkoala-arkts/arkui/sdk/component/linearindicator.ets b/arkoala-arkts/arkui/sdk/component/linearindicator.ets index 657eda0bb9656251a2f5d26497cac855b43009fe..d2949447701d4df4ed25e17c963c1d2350cdfa0c 100644 --- a/arkoala-arkts/arkui/sdk/component/linearindicator.ets +++ b/arkoala-arkts/arkui/sdk/component/linearindicator.ets @@ -19,10 +19,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, ColorMetrics } from "./../generated/arkui.Graphics" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetrics, ColorMetrics } from "./../Graphics" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare class LinearIndicatorController { constructor() setProgress(index: number, progress: number): void diff --git a/arkoala-arkts/arkui/sdk/component/list.ets b/arkoala-arkts/arkui/sdk/component/list.ets index a60c6b086565a660e7501fcecd391ab660f44e09..d5b8ffaafeb92309b765191e1761fd502f4ac5ba 100644 --- a/arkoala-arkts/arkui/sdk/component/list.ets +++ b/arkoala-arkts/arkui/sdk/component/list.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Length, ResourceColor, LengthConstrain, Dimension } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum ScrollState { IDLE = 0, Idle = 0, diff --git a/arkoala-arkts/arkui/sdk/component/listItem.ets b/arkoala-arkts/arkui/sdk/component/listItem.ets index 35951e88214f284d0d9de90c47a4704ab7146b87..244f9b7ca9506a4a0d5775c5fa77f71731fdc7ec 100644 --- a/arkoala-arkts/arkui/sdk/component/listItem.ets +++ b/arkoala-arkts/arkui/sdk/component/listItem.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent } from "./../generated/arkui.ComponentContent" +import { ComponentContent } from "./../ComponentContent" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CommonMethod, Bindable, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum SwipeEdgeEffect { SPRING = 0, Spring = 0, diff --git a/arkoala-arkts/arkui/sdk/component/listItemGroup.ets b/arkoala-arkts/arkui/sdk/component/listItemGroup.ets index 5f5f4c7597a7e56b617a785290a461fbe62e40fa..27c41636ae9f19f851b6b7dcfb4cec0f23528db8 100644 --- a/arkoala-arkts/arkui/sdk/component/listItemGroup.ets +++ b/arkoala-arkts/arkui/sdk/component/listItemGroup.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { ComponentContent } from "./../generated/arkui.ComponentContent" +import { ComponentContent } from "./../ComponentContent" import { CommonMethod, ChildrenMainSize, ArkCommonMethodStyle } from "./common" import { ListDividerOptions } from "./list" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum ListItemGroupStyle { NONE = 0, CARD = 1 diff --git a/arkoala-arkts/arkui/sdk/component/loadingProgress.ets b/arkoala-arkts/arkui/sdk/component/loadingProgress.ets index d31a1f4aa6ccd02d490a54bc01a7610a9074c3ce..04f038829f796288ca6e5d574392149de28dc935 100644 --- a/arkoala-arkts/arkui/sdk/component/loadingProgress.ets +++ b/arkoala-arkts/arkui/sdk/component/loadingProgress.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, CommonConfiguration, ArkCommonMethodStyle } from "./common" import { ResourceColor } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" -import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export enum LoadingProgressStyle { DEFAULT = 0, Default = 0, diff --git a/arkoala-arkts/arkui/sdk/component/marquee.ets b/arkoala-arkts/arkui/sdk/component/marquee.ets index fe5985a9d371f85fcdd81a8f1baecea1deebb6eb..486fd223e2f674028aee1c217f1c67ce90e6ecbe 100644 --- a/arkoala-arkts/arkui/sdk/component/marquee.ets +++ b/arkoala-arkts/arkui/sdk/component/marquee.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } 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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface MarqueeOptions { start: boolean; step?: number; diff --git a/arkoala-arkts/arkui/sdk/component/matrix2d.ets b/arkoala-arkts/arkui/sdk/component/matrix2d.ets index 988491f9da006d7d9aedc985aeefb1bdc2f151a3..5cf62ca0612417439640777d76304f465eccd139 100644 --- a/arkoala-arkts/arkui/sdk/component/matrix2d.ets +++ b/arkoala-arkts/arkui/sdk/component/matrix2d.ets @@ -19,8 +19,8 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetricsUnit } from "./../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..4d987a3381fb85e2bab326d82b65d90bd7436aa7 100644 --- a/arkoala-arkts/arkui/sdk/component/mediaCachedImage.ets +++ b/arkoala-arkts/arkui/sdk/component/mediaCachedImage.ets @@ -19,14 +19,14 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ImageAttribute, ArkImageStyle } from "./image" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, 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 "global.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..b6a7174ea8c0dda91266efae7b06e96fe74fbd97 100644 --- a/arkoala-arkts/arkui/sdk/component/menu.ets +++ b/arkoala-arkts/arkui/sdk/component/menu.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } 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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum SubMenuExpandingMode { SIDE_EXPAND = 0, EMBEDDED_EXPAND = 1, diff --git a/arkoala-arkts/arkui/sdk/component/menuItem.ets b/arkoala-arkts/arkui/sdk/component/menuItem.ets index d30413c386f0f6ff87c1cd6d8afbf9da1bf4c58c..df6c8069f446e9215352d87a802899818defee6b 100644 --- a/arkoala-arkts/arkui/sdk/component/menuItem.ets +++ b/arkoala-arkts/arkui/sdk/component/menuItem.ets @@ -19,14 +19,14 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceStr, Font, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { Resource } from "global.resource" +import { SymbolGlyphModifier } from "./../SymbolGlyphModifier" import { CustomBuilder } from "./builder" import { CommonMethod, Bindable, ArkCommonMethodStyle } from "./common" import { Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface MenuItemOptions { startIcon?: ResourceStr; symbolStartIcon?: SymbolGlyphModifier; diff --git a/arkoala-arkts/arkui/sdk/component/menuItemGroup.ets b/arkoala-arkts/arkui/sdk/component/menuItemGroup.ets index fdd50eb151fe2f1a2a199d96930e1109c614062d..f4c2207629308647ff3cc703c7982f2a1bf01527 100644 --- a/arkoala-arkts/arkui/sdk/component/menuItemGroup.ets +++ b/arkoala-arkts/arkui/sdk/component/menuItemGroup.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceStr } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CustomBuilder } from "./builder" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface MenuItemGroupOptions { header?: ResourceStr | CustomBuilder; footer?: ResourceStr | CustomBuilder; diff --git a/arkoala-arkts/arkui/sdk/component/navDestination.ets b/arkoala-arkts/arkui/sdk/component/navDestination.ets index b08a5817ec9c96a771c493f64d8e6871ec51af64..e45c4c9ca4e9ee22c25579188a4e56bc3c86c472 100644 --- a/arkoala-arkts/arkui/sdk/component/navDestination.ets +++ b/arkoala-arkts/arkui/sdk/component/navDestination.ets @@ -19,19 +19,19 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { image } from "./../framework/ohos.multimedia.image" +import { SymbolGlyphModifier } from "./../SymbolGlyphModifier" +import { window } from "./../framework/ohos.window" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export type Orientation = object; export declare interface NavDestinationCommonTitle { main: string | Resource; diff --git a/arkoala-arkts/arkui/sdk/component/navigation.ets b/arkoala-arkts/arkui/sdk/component/navigation.ets index 76c495dce20c3d59dbaa0e640b18439955bc88fa..63b5b4d9c0b29d4ac56a945c41591376c6d2e1ed 100644 --- a/arkoala-arkts/arkui/sdk/component/navigation.ets +++ b/arkoala-arkts/arkui/sdk/component/navigation.ets @@ -19,19 +19,19 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { window } from "./../framework/ohos.window" +import { Resource } from "global.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 "./../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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { LengthMetrics } from "./../Graphics" +import { TextModifier } from "./../TextModifier" +import { image } from "./../framework/ohos.multimedia.image" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export type SystemBarStyle = window.SystemBarStyle; export declare interface NavigationCommonTitle { main: string | Resource; diff --git a/arkoala-arkts/arkui/sdk/component/navigator.ets b/arkoala-arkts/arkui/sdk/component/navigator.ets index 1c1e51cf79546e8a63ff8504fa3f5f396c12cc32..69105dc24ad8c3c0b22a4aaf833065a766a3281b 100644 --- a/arkoala-arkts/arkui/sdk/component/navigator.ets +++ b/arkoala-arkts/arkui/sdk/component/navigator.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum NavigationType { PUSH = 0, BACK = 1, diff --git a/arkoala-arkts/arkui/sdk/component/nodeContainer.ets b/arkoala-arkts/arkui/sdk/component/nodeContainer.ets index bc3962086f593e0d6122bbea12d36940ce018041..9220d081a838003c5145a0cffc7ad7a585ec08f2 100644 --- a/arkoala-arkts/arkui/sdk/component/nodeContainer.ets +++ b/arkoala-arkts/arkui/sdk/component/nodeContainer.ets @@ -19,10 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { NodeController } from "./../generated/ohos.arkui.node" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" +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..e47cf145f183a3fe59e2cc8e7b7c223d02f457a7 100644 --- a/arkoala-arkts/arkui/sdk/component/pageTransition.ets +++ b/arkoala-arkts/arkui/sdk/component/pageTransition.ets @@ -19,8 +19,8 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +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..08f05d51d68c4ae2b3e6a8dad26c70e02b0aad79 100644 --- a/arkoala-arkts/arkui/sdk/component/particle.ets +++ b/arkoala-arkts/arkui/sdk/component/particle.ets @@ -19,12 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { VP, Dimension, ResourceStr, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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 "./../Graphics" export declare interface VelocityOptions { speed: [ number, number ]; angle: [ number, number ]; diff --git a/arkoala-arkts/arkui/sdk/component/pasteButton.ets b/arkoala-arkts/arkui/sdk/component/pasteButton.ets index 4eb846c39ac5b377197d85c2dd75e308e37e7fc4..f5cd5766afa83a748a4e189ac361ebb97a1018d4 100644 --- a/arkoala-arkts/arkui/sdk/component/pasteButton.ets +++ b/arkoala-arkts/arkui/sdk/component/pasteButton.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ButtonType } from "./button" import { ClickEvent } from "./common" import { SecurityComponentMethod } from "./securityComponent" diff --git a/arkoala-arkts/arkui/sdk/component/path.ets b/arkoala-arkts/arkui/sdk/component/path.ets index 4944a05e2f249f3675eef9a4af97af7496ee9506..c0bdd4ab82ea911f3b6417655d8dcac62ff75e1a 100644 --- a/arkoala-arkts/arkui/sdk/component/path.ets +++ b/arkoala-arkts/arkui/sdk/component/path.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface PathOptions { } export interface PathAttribute extends CommonShapeMethod { diff --git a/arkoala-arkts/arkui/sdk/component/patternLock.ets b/arkoala-arkts/arkui/sdk/component/patternLock.ets index 8e5d71f9e9f0db268ad9bd0bb456907b778fc4b5..b7a4d8faa89504b0e837977bfc0cac3c502e250f 100644 --- a/arkoala-arkts/arkui/sdk/component/patternLock.ets +++ b/arkoala-arkts/arkui/sdk/component/patternLock.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } 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 "global.resource" +import { LengthMetrics } from "./../Graphics" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum PatternLockChallengeResult { CORRECT = 1, WRONG = 2 diff --git a/arkoala-arkts/arkui/sdk/component/pluginComponent.ets b/arkoala-arkts/arkui/sdk/component/pluginComponent.ets index aef54086a3fe5ba7e3dfee4382f87d11d07504e4..cc030660ac8cd026f47e30021571d265bc75fcfa 100644 --- a/arkoala-arkts/arkui/sdk/component/pluginComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/pluginComponent.ets @@ -19,10 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface PluginComponentTemplate { source: string; bundleName: string; diff --git a/arkoala-arkts/arkui/sdk/component/polygon.ets b/arkoala-arkts/arkui/sdk/component/polygon.ets index 0d51bfc2b656ab5f6af722a3b3fdf1f225db090d..e727afa8ddbf8d011ac450e6309f94af1d261523 100644 --- a/arkoala-arkts/arkui/sdk/component/polygon.ets +++ b/arkoala-arkts/arkui/sdk/component/polygon.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" import { ShapePoint } from "./line" import { Length } from "./units" -import { Resource } from "./../generated/resource" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface PolygonOptions { } export interface PolygonAttribute extends CommonShapeMethod { diff --git a/arkoala-arkts/arkui/sdk/component/polyline.ets b/arkoala-arkts/arkui/sdk/component/polyline.ets index 4d4023d269ddd525c1a910458944e5a914148924..79085ee324a19e14c43e0b1ec86af396afff19ec 100644 --- a/arkoala-arkts/arkui/sdk/component/polyline.ets +++ b/arkoala-arkts/arkui/sdk/component/polyline.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" import { ShapePoint } from "./line" import { Length } from "./units" -import { Resource } from "./../generated/resource" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface PolylineOptions { } export interface PolylineAttribute extends CommonShapeMethod { diff --git a/arkoala-arkts/arkui/sdk/component/progress.ets b/arkoala-arkts/arkui/sdk/component/progress.ets index c20d95dad1216ce2bd65c3eba3ed3ab35c3f1172..ca7b3f87e31ea68e4ca1a50b8264921990b22b39 100644 --- a/arkoala-arkts/arkui/sdk/component/progress.ets +++ b/arkoala-arkts/arkui/sdk/component/progress.ets @@ -19,14 +19,14 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Length, PX, VP, LPX, ResourceColor, Font } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { Color } from "./enums" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics } from "./../Graphics" import { CommonMethod, CommonConfiguration, ArkCommonMethodStyle } from "./common" import { LinearGradient } from "./dataPanel" -import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface ProgressOptions { value: number; total?: number; diff --git a/arkoala-arkts/arkui/sdk/component/qrcode.ets b/arkoala-arkts/arkui/sdk/component/qrcode.ets index 0d754db34af5cb0fa7eca141baf5880511a2febb..8a46cd35f5da26dfe2cf1fb85d572ed74baa570f 100644 --- a/arkoala-arkts/arkui/sdk/component/qrcode.ets +++ b/arkoala-arkts/arkui/sdk/component/qrcode.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceColor, ResourceStr } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface QRCodeAttribute extends CommonMethod { color(value: ResourceColor | undefined): this { throw new Error("Unimplemented method color") diff --git a/arkoala-arkts/arkui/sdk/component/radio.ets b/arkoala-arkts/arkui/sdk/component/radio.ets index 7d7acaf221e0055bbac07b0ba37b6d7209130c40..0f31edc35e5b02ab2d981f025e6c1386f80d5ab2 100644 --- a/arkoala-arkts/arkui/sdk/component/radio.ets +++ b/arkoala-arkts/arkui/sdk/component/radio.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" import { ResourceColor } from "./units" import { Color } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CommonMethod, Bindable, CommonConfiguration, ArkCommonMethodStyle } from "./common" -import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export enum RadioIndicatorType { TICK = 0, DOT = 1, diff --git a/arkoala-arkts/arkui/sdk/component/rating.ets b/arkoala-arkts/arkui/sdk/component/rating.ets index d066a00b09793d499fe57450420642e0d50525dd..6c9c7f284876319248de8cb51fc5289c78d67018 100644 --- a/arkoala-arkts/arkui/sdk/component/rating.ets +++ b/arkoala-arkts/arkui/sdk/component/rating.ets @@ -19,11 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Bindable, CommonConfiguration, CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceStr } from "./units" -import { Resource } from "./../generated/resource" -import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface RatingOptions { rating: number | Bindable | undefined; indicator?: boolean; diff --git a/arkoala-arkts/arkui/sdk/component/rect.ets b/arkoala-arkts/arkui/sdk/component/rect.ets index ac68a8a21f393007c8f013e7da47d08ee0275073..1858cd2bf3c8b743c7dddf15cbb185369f929714 100644 --- a/arkoala-arkts/arkui/sdk/component/rect.ets +++ b/arkoala-arkts/arkui/sdk/component/rect.ets @@ -19,11 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CommonShapeMethod, CommonMethod, ArkCommonShapeMethodStyle, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export type RadiusItem = [ Length, Length diff --git a/arkoala-arkts/arkui/sdk/component/refresh.ets b/arkoala-arkts/arkui/sdk/component/refresh.ets index 76167acaceca5bb23fffc2b9d54c0eb917be3597..de3ba692305161e0214fbb291b0eb7b7e7e32be7 100644 --- a/arkoala-arkts/arkui/sdk/component/refresh.ets +++ b/arkoala-arkts/arkui/sdk/component/refresh.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Bindable, CommonMethod, ArkCommonMethodStyle } from "./common" import { ResourceStr } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CustomBuilder } from "./builder" -import { ComponentContent } from "./../generated/arkui.ComponentContent" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ComponentContent } from "./../ComponentContent" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum RefreshStatus { INACTIVE = 0, Inactive = 0, diff --git a/arkoala-arkts/arkui/sdk/component/relativeContainer.ets b/arkoala-arkts/arkui/sdk/component/relativeContainer.ets index 1100e6c7f20357f7267e09a2f21cb005522abd0b..7904cfe960c08817e7028ad1725d72b49b27d8bb 100644 --- a/arkoala-arkts/arkui/sdk/component/relativeContainer.ets +++ b/arkoala-arkts/arkui/sdk/component/relativeContainer.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Dimension } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { Axis } from "./enums" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface GuideLinePosition { start?: Dimension; end?: Dimension; diff --git a/arkoala-arkts/arkui/sdk/component/remoteWindow.ets b/arkoala-arkts/arkui/sdk/component/remoteWindow.ets index f8e46442722be8335018eda0e001b6860f764b35..46ba0435dce94c670a7fc1ce549dca0489c6b148 100644 --- a/arkoala-arkts/arkui/sdk/component/remoteWindow.ets +++ b/arkoala-arkts/arkui/sdk/component/remoteWindow.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface RRect { left: number; top: number; diff --git a/arkoala-arkts/arkui/sdk/component/repeat.ets b/arkoala-arkts/arkui/sdk/component/repeat.ets index c04cda68ce73cd503d7c1f22b6c1d1133ee95ec7..62d367db742e73fe6c287fe157769d567cbddb4d 100644 --- a/arkoala-arkts/arkui/sdk/component/repeat.ets +++ b/arkoala-arkts/arkui/sdk/component/repeat.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export type RepeatArray = Array; export type OnLazyLoadingFunc = (index: number) => void; export type KeyGeneratorFunc = (item: T, index: number) => string; diff --git a/arkoala-arkts/arkui/sdk/component/richEditor.ets b/arkoala-arkts/arkui/sdk/component/richEditor.ets index 98afb1a53eb0270e6b3579cd8ac7f91a83dc4b17..d2446e73e5002e9f1fd64207a26babd19d36af02 100644 --- a/arkoala-arkts/arkui/sdk/component/richEditor.ets +++ b/arkoala-arkts/arkui/sdk/component/richEditor.ets @@ -19,21 +19,21 @@ 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 { ComponentBuilder, Builder } 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 "global.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 "./../Graphics" import { CustomBuilder } from "./builder" import { EnterKeyType, SubmitEvent } from "./textInput" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum RichEditorDeleteDirection { BACKWARD = 0, FORWARD = 1 diff --git a/arkoala-arkts/arkui/sdk/component/richText.ets b/arkoala-arkts/arkui/sdk/component/richText.ets index 8893e294afd3a33db0beb33e98c0dfef5945014c..45befc8c8844843a347c3b36bacd092502ff6bf2 100644 --- a/arkoala-arkts/arkui/sdk/component/richText.ets +++ b/arkoala-arkts/arkui/sdk/component/richText.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface RichTextAttribute extends CommonMethod { onStart(value: (() => void) | undefined): this { throw new Error("Unimplemented method onStart") diff --git a/arkoala-arkts/arkui/sdk/component/rootScene.ets b/arkoala-arkts/arkui/sdk/component/rootScene.ets index 39cf58df0398a0f4b7013735f1922a0dc8f0fa82..bc4430d4df7cc9e3d41786ccd51519fe94d6c362 100644 --- a/arkoala-arkts/arkui/sdk/component/rootScene.ets +++ b/arkoala-arkts/arkui/sdk/component/rootScene.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface RootSceneSession { } export interface RootSceneAttribute extends CommonMethod { diff --git a/arkoala-arkts/arkui/sdk/component/row.ets b/arkoala-arkts/arkui/sdk/component/row.ets index e1f5634c6a4864974e879094f8b728d718ff001c..442c44996032315ecad98dc88d3ca098dcdb2f04 100644 --- a/arkoala-arkts/arkui/sdk/component/row.ets +++ b/arkoala-arkts/arkui/sdk/component/row.ets @@ -19,10 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, PointLightStyle, ArkCommonMethodStyle } from "./common" import { VerticalAlign, FlexAlign } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface RowOptions { space?: string | number; } diff --git a/arkoala-arkts/arkui/sdk/component/rowSplit.ets b/arkoala-arkts/arkui/sdk/component/rowSplit.ets index 4c415fdc95d26357f816057d32a6638ea4ddb28b..3c829bd10d4161184f76af9aad761e676f5d77f3 100644 --- a/arkoala-arkts/arkui/sdk/component/rowSplit.ets +++ b/arkoala-arkts/arkui/sdk/component/rowSplit.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface RowSplitAttribute extends CommonMethod { resizeable(value: boolean | undefined): this { throw new Error("Unimplemented method resizeable") diff --git a/arkoala-arkts/arkui/sdk/component/saveButton.ets b/arkoala-arkts/arkui/sdk/component/saveButton.ets index b23348996f18d02de6ce26e645a0ec1114ae721a..3541311d4e0fb5565adfb0a01d0ddd0afc4ea776 100644 --- a/arkoala-arkts/arkui/sdk/component/saveButton.ets +++ b/arkoala-arkts/arkui/sdk/component/saveButton.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ButtonType } from "./button" import { ClickEvent } from "./common" import { SecurityComponentMethod } from "./securityComponent" diff --git a/arkoala-arkts/arkui/sdk/component/screen.ets b/arkoala-arkts/arkui/sdk/component/screen.ets index db2d246c1cee29e94f44805986e02447bec23930..75b41202652f36e4d6472a750063029801e325dc 100644 --- a/arkoala-arkts/arkui/sdk/component/screen.ets +++ b/arkoala-arkts/arkui/sdk/component/screen.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface ScreenAttribute extends CommonMethod { attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { throw new Error("Unimplemented method attributeModifier") diff --git a/arkoala-arkts/arkui/sdk/component/scroll.ets b/arkoala-arkts/arkui/sdk/component/scroll.ets index 2b0380bd45525037fa88fa451bdd17ef070ea968..c9cda4889680306a3951a2b54597cb7d76e97ec7 100644 --- a/arkoala-arkts/arkui/sdk/component/scroll.ets +++ b/arkoala-arkts/arkui/sdk/component/scroll.ets @@ -19,15 +19,15 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { LengthMetrics } from "./../Graphics" +import { curves } from "./../framework/ohos.curves" import { Dimension, Length, VoidCallback } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { Edge, ScrollSource, BarState, Color, EdgeEffect } from "./enums" import { RectResult, ScrollableCommonMethod, NestedScrollOptions, CommonMethod, EdgeEffectOptions, ArkScrollableCommonMethodStyle, ArkCommonMethodStyle } from "./common" import { ScrollSnapAlign, ScrollState } from "./list" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum ScrollDirection { VERTICAL = 0, Vertical = 0, diff --git a/arkoala-arkts/arkui/sdk/component/scrollBar.ets b/arkoala-arkts/arkui/sdk/component/scrollBar.ets index f654f7929cc88d30d86eba5db503f9a570c3d411..18c07f3e0e243de475a7e6438a4a648be480bc48 100644 --- a/arkoala-arkts/arkui/sdk/component/scrollBar.ets +++ b/arkoala-arkts/arkui/sdk/component/scrollBar.ets @@ -19,11 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Scroller } from "./scroll" import { BarState } from "./enums" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum ScrollBarDirection { VERTICAL = 0, Vertical = 0, diff --git a/arkoala-arkts/arkui/sdk/component/search.ets b/arkoala-arkts/arkui/sdk/component/search.ets index 953b28c81e3c204fc8847d818a533a714ff5df1d..f6c425eb02ea8a002822f7f82b7dace6880ad795 100644 --- a/arkoala-arkts/arkui/sdk/component/search.ets +++ b/arkoala-arkts/arkui/sdk/component/search.ets @@ -19,16 +19,16 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" import { Color, CopyOptions, TextAlign } from "./enums" -import { SymbolGlyphModifier } from "./../generated/arkui.SymbolGlyphModifier" +import { SymbolGlyphModifier } from "./../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" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" import { CustomBuilder } from "./builder" export declare class SearchController extends TextContentControllerBase { constructor() diff --git a/arkoala-arkts/arkui/sdk/component/securityComponent.ets b/arkoala-arkts/arkui/sdk/component/securityComponent.ets index b14b14778ba727943da3554ea369724f5e8cd6fa..1e8d1570c6cac55ff1bf618f2f4fadeb05cec28e 100644 --- a/arkoala-arkts/arkui/sdk/component/securityComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/securityComponent.ets @@ -19,9 +19,9 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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..c10729f92687e409c1fc38197316ca21105c23ce 100644 --- a/arkoala-arkts/arkui/sdk/component/select.ets +++ b/arkoala-arkts/arkui/sdk/component/select.ets @@ -19,16 +19,16 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" +import { SymbolGlyphModifier } from "./../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 { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" import { DividerOptions } from "./textPicker" -import { TextModifier } from "./../generated/arkui.TextModifier" +import { TextModifier } from "./../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..44838ede7ac0505b0802f50580cea0a804147015 100644 --- a/arkoala-arkts/arkui/sdk/component/shape.ets +++ b/arkoala-arkts/arkui/sdk/component/shape.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Length, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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 { AttributeModifier, AttributeUpdater } from "./../handwritten" +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..2037c66f2f79087be2f724fdaeba013960f465cd 100644 --- a/arkoala-arkts/arkui/sdk/component/sidebar.ets +++ b/arkoala-arkts/arkui/sdk/component/sidebar.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { image } from "./../framework/ohos.multimedia.image" +import { Resource } from "global.resource" import { CommonMethod, Bindable, DividerStyle, ArkCommonMethodStyle } from "./common" import { Length, Dimension } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum SideBarContainerType { EMBED = 0, Embed = 0, diff --git a/arkoala-arkts/arkui/sdk/component/slider.ets b/arkoala-arkts/arkui/sdk/component/slider.ets index ffa4a38a5d36947eec1ba6c26d7f6bc6cf6ef47a..418e99944c9b5426c5a3eec46a6f2527cda489fd 100644 --- a/arkoala-arkts/arkui/sdk/component/slider.ets +++ b/arkoala-arkts/arkui/sdk/component/slider.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } 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 "global.resource" import { LinearGradient } from "./dataPanel" -import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export enum SliderStyle { OUT_SET = 0, OutSet = 0, diff --git a/arkoala-arkts/arkui/sdk/component/span.ets b/arkoala-arkts/arkui/sdk/component/span.ets index 97b60d5d80a6955caa2c62299856328d4f31a4b6..fb04d1a942051e11395c589d0b65bdc98118183c 100644 --- a/arkoala-arkts/arkui/sdk/component/span.ets +++ b/arkoala-arkts/arkui/sdk/component/span.ets @@ -19,14 +19,14 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" import { CommonMethod, ShadowOptions, ArkCommonMethodStyle } from "./common" -import { LengthMetrics } from "./../generated/arkui.Graphics" +import { LengthMetrics } from "./../Graphics" import { DecorationStyleInterface } from "./styledString" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface TextBackgroundStyle { color?: ResourceColor; radius?: Dimension | BorderRadiuses; diff --git a/arkoala-arkts/arkui/sdk/component/stack.ets b/arkoala-arkts/arkui/sdk/component/stack.ets index 6721c9e69db34fdf42a70bd8e29f6a4cc08efd69..05dac281ad05454daf907d0fb302ebd7e4ff02d2 100644 --- a/arkoala-arkts/arkui/sdk/component/stack.ets +++ b/arkoala-arkts/arkui/sdk/component/stack.ets @@ -19,10 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Alignment } from "./enums" import { CommonMethod, PointLightStyle, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface StackOptions { alignContent?: Alignment; } diff --git a/arkoala-arkts/arkui/sdk/component/stateManagement.ets b/arkoala-arkts/arkui/sdk/component/stateManagement.ets index 720727c328abf869c6003c4ed17668f506da5f4d..0de995ece7f0904aec10ad56c03543abf1e7137e 100644 --- a/arkoala-arkts/arkui/sdk/component/stateManagement.ets +++ b/arkoala-arkts/arkui/sdk/component/stateManagement.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum ColorMode { LIGHT = 0, DARK = 1 diff --git a/arkoala-arkts/arkui/sdk/component/stepper.ets b/arkoala-arkts/arkui/sdk/component/stepper.ets index 6814869db30acc239ee03591c317b193656eb27e..a78cad62ae1da737bfab9298b5fdbb5e3e43ab49 100644 --- a/arkoala-arkts/arkui/sdk/component/stepper.ets +++ b/arkoala-arkts/arkui/sdk/component/stepper.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Bindable, CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface StepperOptions { index?: number | Bindable; } diff --git a/arkoala-arkts/arkui/sdk/component/stepperItem.ets b/arkoala-arkts/arkui/sdk/component/stepperItem.ets index 8b2133bffc8f2c3f7ae13b02012ba86280988c96..1b773af05fc309a166e3adab5d0265c353c31820 100644 --- a/arkoala-arkts/arkui/sdk/component/stepperItem.ets +++ b/arkoala-arkts/arkui/sdk/component/stepperItem.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum ItemState { NORMAL = 0, Normal = 0, diff --git a/arkoala-arkts/arkui/sdk/component/styledString.ets b/arkoala-arkts/arkui/sdk/component/styledString.ets index 405e59652f280af0b7e3044771bf42588ae97ac7..eb559fe3ce2b4e8b0cd2c9c861b3c8f6ea67a742 100644 --- a/arkoala-arkts/arkui/sdk/component/styledString.ets +++ b/arkoala-arkts/arkui/sdk/component/styledString.ets @@ -19,20 +19,20 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" +import { LengthMetrics, DrawContext } from "./../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; +export type StyledStringMarshallCallback = (marshallableVal: UserDataSpan) => ArrayBuffer; +export type StyledStringUnmarshallCallback = (buf: ArrayBuffer) => UserDataSpan; export declare class StyledString { constructor(value: string | ImageAttachment | CustomSpan, styles: Array | undefined) readonly length: number; @@ -42,8 +42,8 @@ export declare class StyledString { subStyledString(start: number, length?: number): StyledString static fromHtml(html: string): Promise static toHtml(styledString: StyledString): string - static marshalling(styledString: StyledString, callback_?: StyledStringMarshallCallback): NativeBuffer - static unmarshalling(buffer: NativeBuffer, callback_?: StyledStringUnmarshallCallback): Promise + static marshalling(styledString: StyledString, callback_?: StyledStringMarshallCallback): ArrayBuffer + static unmarshalling(buffer: ArrayBuffer, callback_?: StyledStringUnmarshallCallback): Promise } export declare interface StyleOptions { start?: number; diff --git a/arkoala-arkts/arkui/sdk/component/swiper.ets b/arkoala-arkts/arkui/sdk/component/swiper.ets index fd2ecf5b2e27a024ffe47021c79adcde4d9a374c..ad333d7f880e24d536ca29891f34bfe9d01ee4fc 100644 --- a/arkoala-arkts/arkui/sdk/component/swiper.ets +++ b/arkoala-arkts/arkui/sdk/component/swiper.ets @@ -19,15 +19,15 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" +import { LengthMetrics } from "./../Graphics" import { Color, EdgeEffect, PageFlipMode } from "./enums" import { CommonMethod, Bindable, ArkCommonMethodStyle } from "./common" import { IndicatorComponentController } from "./indicatorcomponent" -import { curves } from "./../generated/ohos.curves" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { curves } from "./../framework/ohos.curves" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare class SwiperController { constructor() showNext(): void diff --git a/arkoala-arkts/arkui/sdk/component/symbolSpan.ets b/arkoala-arkts/arkui/sdk/component/symbolSpan.ets index ef26b1ad603e1d7e01bef51025b7c4c2480d7596..1d9eaa3ae661c7e3939192c625aabe8e7d6b6213 100644 --- a/arkoala-arkts/arkui/sdk/component/symbolSpan.ets +++ b/arkoala-arkts/arkui/sdk/component/symbolSpan.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { ResourceColor } from "./units" import { Color, FontWeight } from "./enums" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./symbolglyph" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export interface SymbolSpanAttribute extends CommonMethod { fontSize(value: number | string | Resource | undefined): this { throw new Error("Unimplemented method fontSize") diff --git a/arkoala-arkts/arkui/sdk/component/symbolglyph.ets b/arkoala-arkts/arkui/sdk/component/symbolglyph.ets index 293da7a5e2434b82b5d857994518a253ece27052..14b897b35907b5fdfa4bee3a2928bf0f42d2bcff 100644 --- a/arkoala-arkts/arkui/sdk/component/symbolglyph.ets +++ b/arkoala-arkts/arkui/sdk/component/symbolglyph.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { ResourceColor } from "./units" import { Color, FontWeight } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum SymbolRenderingStrategy { SINGLE = 0, MULTIPLE_COLOR = 1, diff --git a/arkoala-arkts/arkui/sdk/component/tabContent.ets b/arkoala-arkts/arkui/sdk/component/tabContent.ets index 67d96ba0962956377c9b6ee0786785c49808fae2..3f4ee3d6ccba01d5a0f6d6cd707c74ed5f567aef 100644 --- a/arkoala-arkts/arkui/sdk/component/tabContent.ets +++ b/arkoala-arkts/arkui/sdk/component/tabContent.ets @@ -19,15 +19,15 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" +import { SymbolGlyphModifier } from "./../SymbolGlyphModifier" +import { ComponentContent } from "./../ComponentContent" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { CustomBuilder } from "./builder" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum SelectedMode { INDICATOR = 0, BOARD = 1 diff --git a/arkoala-arkts/arkui/sdk/component/tabs.ets b/arkoala-arkts/arkui/sdk/component/tabs.ets index cfd3b872ec4325c32f03646cf899f3458ed03ec5..7507165f6529a306cce73c28b64957662376e135 100644 --- a/arkoala-arkts/arkui/sdk/component/tabs.ets +++ b/arkoala-arkts/arkui/sdk/component/tabs.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" import { EdgeEffect, Color, PageFlipMode } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum BarMode { SCROLLABLE = 0, Scrollable = 0, diff --git a/arkoala-arkts/arkui/sdk/component/text.ets b/arkoala-arkts/arkui/sdk/component/text.ets index 9dabc878c71e334dd46983ce9dcbcbd56859aedd..2d89678f31c4c65c2d38423669bb9d535b5a93fe 100644 --- a/arkoala-arkts/arkui/sdk/component/text.ets +++ b/arkoala-arkts/arkui/sdk/component/text.ets @@ -19,15 +19,15 @@ 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 { ComponentBuilder, Builder } 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 "global.resource" +import { LengthMetrics } from "./../Graphics" import { DecorationStyleInterface, StyledString } from "./styledString" import { TextDataDetectorConfig, EditMenuOptions, FontSettingOptions, LayoutManager } from "./textCommon" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" import { CustomBuilder } from "./builder" import { SelectionMenuOptions } from "./richEditor" export declare interface TextOverflowOptions { diff --git a/arkoala-arkts/arkui/sdk/component/textArea.ets b/arkoala-arkts/arkui/sdk/component/textArea.ets index 90dd124f9ab4feb6573bb2c2999c7c0c790239e3..ef323932f3b0f5854acadac537f2f8e9d4c1625d 100644 --- a/arkoala-arkts/arkui/sdk/component/textArea.ets +++ b/arkoala-arkts/arkui/sdk/component/textArea.ets @@ -19,16 +19,16 @@ 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 { ComponentBuilder, Builder } 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 "global.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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { LengthMetrics } from "./../Graphics" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" import { CustomBuilder } from "./builder" export declare class TextAreaController extends TextContentControllerBase { constructor() diff --git a/arkoala-arkts/arkui/sdk/component/textClock.ets b/arkoala-arkts/arkui/sdk/component/textClock.ets index 1161000d1901c860011951e4efa39993747d4fd0..c64be14a1450227922c01205e3ce7300b601f9d3 100644 --- a/arkoala-arkts/arkui/sdk/component/textClock.ets +++ b/arkoala-arkts/arkui/sdk/component/textClock.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonConfiguration, CommonMethod, ShadowOptions, ArkCommonMethodStyle } from "./common" import { ResourceStr, ResourceColor, Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { Color, FontStyle, FontWeight } from "./enums" -import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { intl } from "./../generated/ohos.intl" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" +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..e9aca5005ea61f372b92c4b72c789a5e885eda10 100644 --- a/arkoala-arkts/arkui/sdk/component/textCommon.ets +++ b/arkoala-arkts/arkui/sdk/component/textCommon.ets @@ -19,10 +19,10 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceColor, Length, ResourceStr } from "./units" import { Color, TextDecorationType, TextDecorationStyle } from "./enums" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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..0962e194baa9458c8eb79bed9f8adecdfac8f4d6 100644 --- a/arkoala-arkts/arkui/sdk/component/textInput.ets +++ b/arkoala-arkts/arkui/sdk/component/textInput.ets @@ -19,16 +19,16 @@ 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 { ComponentBuilder, Builder } 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 "global.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" import { CustomBuilder } from "./builder" import { CancelButtonOptions, CancelButtonSymbolOptions } from "./search" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum InputType { NORMAL = 0, Normal = 0, diff --git a/arkoala-arkts/arkui/sdk/component/textPicker.ets b/arkoala-arkts/arkui/sdk/component/textPicker.ets index 4bf5a07dd257f0ba34986020978cca1544db3e05..af7012dbef528ed6af3705a4efc06822fabd7ece 100644 --- a/arkoala-arkts/arkui/sdk/component/textPicker.ets +++ b/arkoala-arkts/arkui/sdk/component/textPicker.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.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 "./../Graphics" import { Color, TextOverflow, CrownSensitivity } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" import { DialogAlignment } from "./alertDialog" export declare interface TextPickerRangeContent { icon: string | Resource; diff --git a/arkoala-arkts/arkui/sdk/component/textTimer.ets b/arkoala-arkts/arkui/sdk/component/textTimer.ets index 4d888f4f5d80546f8c223fedc7dcfc7dfbf5d655..d136376361cc4f21c482790cb780de9cb4af9a35 100644 --- a/arkoala-arkts/arkui/sdk/component/textTimer.ets +++ b/arkoala-arkts/arkui/sdk/component/textTimer.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } 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 { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { Resource } from "global.resource" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export declare class TextTimerController { constructor() start(): void diff --git a/arkoala-arkts/arkui/sdk/component/timePicker.ets b/arkoala-arkts/arkui/sdk/component/timePicker.ets index ea68819a3e538d2d1de6e759179276d34b86d818..693fe7c5d0dfcbf8ed3c3cd55b98f382e565a25d 100644 --- a/arkoala-arkts/arkui/sdk/component/timePicker.ets +++ b/arkoala-arkts/arkui/sdk/component/timePicker.ets @@ -19,14 +19,14 @@ 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 { ComponentBuilder, Builder } 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 { AttributeModifier, AttributeUpdater } from "./../handwritten" import { DialogAlignment } from "./alertDialog" import { Offset, ResourceColor } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.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..18baab63450d48396fd779937986a0036b9e1492 100644 --- a/arkoala-arkts/arkui/sdk/component/toggle.ets +++ b/arkoala-arkts/arkui/sdk/component/toggle.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" import { ResourceColor } from "./units" import { Color } from "./enums" import { CommonConfiguration, Bindable, CommonMethod, ArkCommonMethodStyle } from "./common" -import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, AttributeUpdater } from "./../handwritten" export enum ToggleType { CHECKBOX = 0, Checkbox = 0, diff --git a/arkoala-arkts/arkui/sdk/component/uiExtensionComponent.ets b/arkoala-arkts/arkui/sdk/component/uiExtensionComponent.ets index a2de528e69170d59fdb779fc646fb4523369147c..fb42cea3829bf60250c5195cfb92038d59f1e3c7 100644 --- a/arkoala-arkts/arkui/sdk/component/uiExtensionComponent.ets +++ b/arkoala-arkts/arkui/sdk/component/uiExtensionComponent.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { ComponentContent } from "./../ComponentContent" import { TerminationInfo, CommonMethod, ArkCommonMethodStyle } from "./common" -import { ErrorCallback, BusinessError } from "./../generated/ohos.base" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" -import { Want } from "./../generated/ohos.app.ability.Want" +import { ErrorCallback, BusinessError } from "./../framework/ohos.base" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" +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..258318fa3366449d6fdf32e0382f12fac5ba57b2 100644 --- a/arkoala-arkts/arkui/sdk/component/units.ets +++ b/arkoala-arkts/arkui/sdk/component/units.ets @@ -19,12 +19,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 { LengthMetrics, LengthMetricsUnit, ColorMetrics } from "./../generated/arkui.Graphics" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" +import { LengthMetrics, LengthMetricsUnit, ColorMetrics } from "./../Graphics" import { Color, BorderStyle, FontWeight, FontStyle, DividerMode } from "./enums" import { OutlineStyle } from "./common" -export { Resource } from "./../generated/resource" +export { Resource } from "global.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 "./../Graphics" +export { LengthMetrics } from "./../Graphics" +export { ColorMetrics } from "./../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..e56119c479a6b3114087ba0a64494e1b169249de 100644 --- a/arkoala-arkts/arkui/sdk/component/video.ets +++ b/arkoala-arkts/arkui/sdk/component/video.ets @@ -19,15 +19,15 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.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 { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ColorMetrics } from "./../Graphics" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export enum SeekMode { PREVIOUS_KEYFRAME = 0, PreviousKeyframe = 0, diff --git a/arkoala-arkts/arkui/sdk/component/waterFlow.ets b/arkoala-arkts/arkui/sdk/component/waterFlow.ets index 577831a260cc8ab4a06a0440f1c32613c24968e2..bafed6f6688d236057d9b85e79dca8860448b6dd 100644 --- a/arkoala-arkts/arkui/sdk/component/waterFlow.ets +++ b/arkoala-arkts/arkui/sdk/component/waterFlow.ets @@ -19,16 +19,16 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Dimension, Padding, ConstraintSizeOptions, Length } from "./units" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { CustomBuilder } from "./builder" -import { ComponentContent } from "./../generated/arkui.ComponentContent" +import { ComponentContent } from "./../ComponentContent" import { Scroller, OnScrollFrameBeginCallback } from "./scroll" import { ScrollableCommonMethod, OnWillScrollCallback, OnScrollCallback, CommonMethod, ArkScrollableCommonMethodStyle, ArkCommonMethodStyle } from "./common" import { FlexDirection, ScrollSource } from "./enums" import { ScrollState } from "./list" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export type GetItemMainSizeByIndex = (index: number) => number; export declare interface SectionOptions { itemsCount: number; diff --git a/arkoala-arkts/arkui/sdk/component/web.ets b/arkoala-arkts/arkui/sdk/component/web.ets index fa0831a11ec53764f3461f82fa4eee79b3a4e5bc..fab460605246de41266bad3bcc8258e335c7a27d 100644 --- a/arkoala-arkts/arkui/sdk/component/web.ets +++ b/arkoala-arkts/arkui/sdk/component/web.ets @@ -19,16 +19,16 @@ 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 { webview } from "./../generated/ohos.web.webview" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { webview } from "./../framework/ohos.web.webview" import { CustomBuilder } from "./builder" -import { Resource } from "./../generated/resource" +import { Resource } from "global.resource" import { Position } from "./units" import { TouchEvent, KeyEvent, CommonMethod, NestedScrollOptions, ArkCommonMethodStyle } from "./common" -import { image } from "./../generated/ohos.multimedia.image" +import { image } from "./../framework/ohos.multimedia.image" import { MenuType, EditMenuOptions } from "./textCommon" import { CopyOptions, NestedScrollMode } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare class WebCookie { setCookie(): void saveCookie(): void @@ -371,13 +371,13 @@ export declare class WebResourceRequest { export declare class WebResourceResponse { constructor() getResponseData(): string - getResponseDataEx(): string | number | NativeBuffer | Resource | undefined + getResponseDataEx(): string | number | ArrayBuffer | Resource | undefined getResponseEncoding(): string getResponseMimeType(): string getReasonMessage(): string getResponseHeader(): Array
getResponseCode(): number - setResponseData(data: string | number | Resource | NativeBuffer): void + setResponseData(data: string | number | Resource | ArrayBuffer): void setResponseEncoding(encoding: string): void setResponseMimeType(mimeType: string): void setReasonMessage(reason: string): void @@ -571,7 +571,7 @@ export declare interface OnScrollEvent { export declare interface OnSslErrorEventReceiveEvent { handler: SslErrorHandler; error: SslError; - certChainData?: Array; + certChainData?: Array; } export declare interface OnClientAuthenticationEvent { handler: ClientAuthenticationHandler; diff --git a/arkoala-arkts/arkui/sdk/component/windowScene.ets b/arkoala-arkts/arkui/sdk/component/windowScene.ets index 74f4addd2cd3b93d04221d8eb0d64949485dd7fe..d8607d188918bbbe99976d76eb0679c57d68fcd6 100644 --- a/arkoala-arkts/arkui/sdk/component/windowScene.ets +++ b/arkoala-arkts/arkui/sdk/component/windowScene.ets @@ -19,9 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { CommonMethod, ArkCommonMethodStyle } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" import { Position } from "./units" export interface WindowSceneAttribute extends CommonMethod { attractionEffect(destination: Position | undefined, fraction: number | undefined): this { diff --git a/arkoala-arkts/arkui/sdk/component/withTheme.ets b/arkoala-arkts/arkui/sdk/component/withTheme.ets index 04b450b12e9c1c798da2cb834939d33192dc1d8a..e02281ab0bd834704a49f3f3bb3efb8b7b5a2246 100644 --- a/arkoala-arkts/arkui/sdk/component/withTheme.ets +++ b/arkoala-arkts/arkui/sdk/component/withTheme.ets @@ -19,10 +19,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 { CustomTheme } from "./../generated/ohos.arkui.theme" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { CustomTheme } from "./../framework/ohos.arkui.theme" import { ThemeColorMode } from "./common" -import { UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface WithThemeOptions { theme?: CustomTheme; colorMode?: ThemeColorMode; diff --git a/arkoala-arkts/arkui/sdk/component/xcomponent.ets b/arkoala-arkts/arkui/sdk/component/xcomponent.ets index 31eed6d303f483f77ac97db964b9feda5d5c27c7..7f3c068b0787c0c3ede964e46914027632e57312 100644 --- a/arkoala-arkts/arkui/sdk/component/xcomponent.ets +++ b/arkoala-arkts/arkui/sdk/component/xcomponent.ets @@ -19,12 +19,12 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ImageAnalyzerConfig, ImageAIOptions } from "./imageCommon" import { XComponentType } from "./enums" import { CommonMethod, ArkCommonMethodStyle } from "./common" import { VoidCallback } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface SurfaceRect { offsetX?: number; offsetY?: number; diff --git a/arkoala-arkts/arkui/sdk/generated/application.BaseContext.ets b/arkoala-arkts/arkui/sdk/framework/application.BaseContext.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/application.BaseContext.ets rename to arkoala-arkts/arkui/sdk/framework/application.BaseContext.ets index 12059e1fdf53d699742d2018e3c695d803c5bbd8..d27ae4351b2d87249ee63597cb41a4fa349e5deb 100644 --- a/arkoala-arkts/arkui/sdk/generated/application.BaseContext.ets +++ b/arkoala-arkts/arkui/sdk/framework/application.BaseContext.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare class BaseContext { constructor() } diff --git a/arkoala-arkts/arkui/sdk/generated/application.Context.ets b/arkoala-arkts/arkui/sdk/framework/application.Context.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/application.Context.ets rename to arkoala-arkts/arkui/sdk/framework/application.Context.ets index a77729e09126e9bb6975f3d9777cb17f543647ca..b3041ff83993597482156dbb7183722b6218cb52 100644 --- a/arkoala-arkts/arkui/sdk/generated/application.Context.ets +++ b/arkoala-arkts/arkui/sdk/framework/application.Context.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface Context { } diff --git a/arkoala-arkts/arkui/sdk/generated/base.ets b/arkoala-arkts/arkui/sdk/framework/base.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/base.ets rename to arkoala-arkts/arkui/sdk/framework/base.ets index ec5319d399a3e77c1e816f7b4ac0691d7474e00a..0c9a10560fbb8ba11f3269d027229fcc4b635c02 100644 --- a/arkoala-arkts/arkui/sdk/generated/base.ets +++ b/arkoala-arkts/arkui/sdk/framework/base.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface BusinessError { name: string; message: string; diff --git a/arkoala-arkts/arkui/sdk/generated/index.ets b/arkoala-arkts/arkui/sdk/framework/index.ets similarity index 100% rename from arkoala-arkts/arkui/sdk/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 94% rename from arkoala-arkts/arkui/sdk/generated/ohos.app.ability.Want.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.app.ability.Want.ets index 4194e4f7fa5b1b7644a01ee4a76ccc721709fe14..dadeb84433c2b3636de8c0313bc7215bc76a4883 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.app.ability.Want.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.app.ability.Want.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface Want { bundleName?: string; abilityName?: string; 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 96% rename from arkoala-arkts/arkui/sdk/generated/ohos.app.ability.common.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.app.ability.common.ets index 229bd89ea6bf2c5b0ad7ce842558acd0ab38cebf..c78be5cdd80febfdf65a7b762776f47f2242cd08 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.app.ability.common.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.app.ability.common.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { BaseContext } from "./application.BaseContext" export type Context_getGroupDir_Callback = (result: string) => void; export declare namespace common { diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.UIContext.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.UIContext.ets similarity index 95% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.UIContext.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.UIContext.ets index 5d1789d379c80768a88afc321013dd58e40bc405..7d286d5f27a062616643f9fe3c1308aa3a55f62b 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.UIContext.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.UIContext.ets @@ -19,12 +19,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 { ComponentContent } from "./arkui.ComponentContent" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { ComponentContent } from "./../ComponentContent" import { PopupCommonOptions, MenuOptions, AnimateParam, SheetOptions } from "./../component/common" import { drawing } from "./ohos.graphics.drawing" import { TextPickerDialogOptions } from "./../component/textPicker" -import { FrameNode } from "./arkui.FrameNode" +import { FrameNode } from "./../FrameNode" import { common } from "./ohos.app.ability.common" import { WidthBreakpoint, HeightBreakpoint } from "./../component/enums" import { TextMenuOptions } from "./../component/textCommon" diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.drawableDescriptor.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.drawableDescriptor.ets similarity index 94% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.drawableDescriptor.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.drawableDescriptor.ets index e60e187e0d297c1735cc234bda0c4b5837730775..d2bafbfe2a5aee422e06f33af31032db83ff4fcc 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.drawableDescriptor.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.drawableDescriptor.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { image } from "./ohos.multimedia.image" export declare class DrawableDescriptor { constructor() diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.node.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.node.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.node.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.node.ets index b5efa3484ff414c9b5b9965af7fe4b178972d195..ce0bfeb92fae481279d55b5a96e4fcaa6d321997 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.node.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.node.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface Content { } export declare interface NodeController { diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.observer.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.observer.ets similarity index 96% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.observer.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.observer.ets index 704490140ed2135689bcc2699f96302297b5e10f..025465e43a916de080d2fdf2f5ae1b04b5ae3729 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.observer.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.observer.ets @@ -19,9 +19,9 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceStr } from "./../component/units" -import { Resource } from "./resource" +import { Resource } from "global.resource" import { NavPathStack, NavBar, NavigationOperation } from "./../component/navigation" import { UIContext } from "./ohos.arkui.UIContext" export declare namespace uiObserver { diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.shape.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.shape.ets similarity index 96% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.shape.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.shape.ets index e29759216afddd3ec34890b223b91b6014cfc298..a3df80a474a2b14e36e294c7334e47a8f3cbc8ec 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.shape.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.shape.ets @@ -19,10 +19,10 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { Position, ResourceColor, Length, SizeOptions } from "./../component/units" import { Color } from "./../component/enums" -import { Resource } from "./resource" +import { Resource } from "global.resource" export declare class CircleShape { constructor(options: ShapeSize | undefined) offset(offset: Position): CircleShape diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.theme.ets b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.theme.ets similarity index 96% rename from arkoala-arkts/arkui/sdk/generated/ohos.arkui.theme.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.arkui.theme.ets index ccff4e3575e578c54b86974a5d45e3dfe8ba1eea..ce052242cedba58c056a2a36d78600e8f57fcb75 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.arkui.theme.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.arkui.theme.ets @@ -19,10 +19,10 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceColor } from "./../component/units" import { Color } from "./../component/enums" -import { Resource } from "./resource" +import { Resource } from "global.resource" export declare interface Theme { colors: Colors; } diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.base.ets b/arkoala-arkts/arkui/sdk/framework/ohos.base.ets similarity index 94% rename from arkoala-arkts/arkui/sdk/generated/ohos.base.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.base.ets index 7105fc3ec2bd178353bffe1af4eaf73896f29419..1cc06fba84b9a5337a7b2b33d657d1f913087aad 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.base.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.base.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export type ErrorCallback = (error: BusinessError) => void; export declare interface BusinessError { name: string; diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.curves.ets b/arkoala-arkts/arkui/sdk/framework/ohos.curves.ets similarity index 96% rename from arkoala-arkts/arkui/sdk/generated/ohos.curves.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.curves.ets index 4602215c7ea57f3e4d6ba389e47c02d718ba1942..677798a282cb686095c27ba72a827c6a9880a042 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.curves.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.curves.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace curves { export enum Curve { LINEAR = 0, diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.data.unifiedDataChannel.ets b/arkoala-arkts/arkui/sdk/framework/ohos.data.unifiedDataChannel.ets similarity index 94% rename from arkoala-arkts/arkui/sdk/generated/ohos.data.unifiedDataChannel.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.data.unifiedDataChannel.ets index 81d6eab2918fed5131a618ba31710c4e6627b2a5..e28d31c9de53f5de3c63eb191bfd971b3deadf5f 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.data.unifiedDataChannel.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.data.unifiedDataChannel.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace unifiedDataChannel { export interface Summary { summary: Map; diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.data.uniformTypeDescriptor.ets b/arkoala-arkts/arkui/sdk/framework/ohos.data.uniformTypeDescriptor.ets similarity index 99% rename from arkoala-arkts/arkui/sdk/generated/ohos.data.uniformTypeDescriptor.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.data.uniformTypeDescriptor.ets index 3a22e71386950204b610553e88176545ec092cbd..098e85c569ddbeaad7e0a9c02e083264906a95ab 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.data.uniformTypeDescriptor.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.data.uniformTypeDescriptor.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace uniformTypeDescriptor { export enum UniformDataType { ENTITY = "general.entity", diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.font.ets b/arkoala-arkts/arkui/sdk/framework/ohos.font.ets similarity index 94% rename from arkoala-arkts/arkui/sdk/generated/ohos.font.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.font.ets index 13f77fe9742dafde0fec2c7c183f4be98ff26d6b..65af4606439421ad552e41e55e927271f2f8f2d3 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.font.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.font.ets @@ -19,8 +19,8 @@ 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 "./resource" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" export declare interface FontOptions { familyName: string | Resource; familySrc: string | Resource; diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.common2D.ets b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.common2D.ets similarity index 95% rename from arkoala-arkts/arkui/sdk/generated/ohos.graphics.common2D.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.graphics.common2D.ets index 673d22af5f78b585e895b3642ec11acd4dd82c41..08ef71ac8bd85002fc2f66a14cd2d22c44bc6064 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.common2D.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.common2D.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace common2D { export interface Color { alpha: number; diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.drawing.ets b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.drawing.ets similarity index 99% rename from arkoala-arkts/arkui/sdk/generated/ohos.graphics.drawing.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.graphics.drawing.ets index 5c955112931cf35c57a1e14349712eeb14cd48fe..6374f84fa0f0983c27a7fe55789f579924e47cf4 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.drawing.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.drawing.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { common2D } from "./ohos.graphics.common2D" import { image } from "./ohos.multimedia.image" export declare namespace drawing { diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.text.ets b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.text.ets similarity index 98% rename from arkoala-arkts/arkui/sdk/generated/ohos.graphics.text.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.graphics.text.ets index 82cd7da50b1ffe0e2229ce7a03b928525a89f9ff..759530c10cb9f93af5e71a7213f648fe70878fc2 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.text.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.text.ets @@ -19,9 +19,9 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { common2D } from "./ohos.graphics.common2D" -import { Resource } from "./resource" +import { Resource } from "global.resource" import { drawing } from "./ohos.graphics.drawing" export declare namespace text { export enum TextAlign { diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.uiEffect.ets b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.uiEffect.ets similarity index 96% rename from arkoala-arkts/arkui/sdk/generated/ohos.graphics.uiEffect.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.graphics.uiEffect.ets index e44330e5414fe6e3c63963f3538caa3ca34f4ecc..ea138626abc6bf3102903453582b2c0c0ead9a9e 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.graphics.uiEffect.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.graphics.uiEffect.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace uiEffect { export interface Filter { } diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.intl.ets b/arkoala-arkts/arkui/sdk/framework/ohos.intl.ets similarity index 95% rename from arkoala-arkts/arkui/sdk/generated/ohos.intl.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.intl.ets index c296c59c6d3edf12c7c8eb0c31859d33729e886e..02700bd621fc352b82073d662ec7c56b738f9b11 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.intl.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.intl.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace intl { export interface DateTimeOptions { locale?: string; diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.matrix4.ets b/arkoala-arkts/arkui/sdk/framework/ohos.matrix4.ets similarity index 96% rename from arkoala-arkts/arkui/sdk/generated/ohos.matrix4.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.matrix4.ets index f011a5c81eabba36668c835fe52bdf546450a50d..712f7c418e70d332ea366c41c046540b1ddb0b23 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.matrix4.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.matrix4.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { common2D } from "./ohos.graphics.common2D" import { TranslateOptions, ScaleOptions, RotateOptions } from "./../component/common" export declare namespace matrix4 { diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.measure.ets b/arkoala-arkts/arkui/sdk/framework/ohos.measure.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/ohos.measure.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.measure.ets index f0567067c748283fd63ff74a0a68346a7bf967fa..927635eb99c61ab10340631aa7c67867ff4df8b9 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.measure.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.measure.ets @@ -19,8 +19,8 @@ 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 "./resource" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" import { FontStyle, FontWeight, TextOverflow, TextCase } from "./../component/enums" import { text } from "./ohos.graphics.text" export declare interface MeasureOptions { diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.multimedia.image.ets b/arkoala-arkts/arkui/sdk/framework/ohos.multimedia.image.ets similarity index 86% rename from arkoala-arkts/arkui/sdk/generated/ohos.multimedia.image.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.multimedia.image.ets index 469c4863fd98edb3e926888cb1c27a2beacb38d9..615b2d5fbe6ef0841065fc2b055555b32f772861 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.multimedia.image.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.multimedia.image.ets @@ -19,13 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace image { export interface PixelMap { readonly isEditable: boolean; readonly isStrideAlignment: boolean; - readPixelsToBufferSync(dst: NativeBuffer): void - writeBufferToPixels(src: NativeBuffer): void + readPixelsToBufferSync(dst: ArrayBuffer): void + writeBufferToPixels(src: ArrayBuffer): void } export enum ResolutionQuality { LOW = 1, diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.intentionCode.ets b/arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.intentionCode.ets similarity index 95% rename from arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.intentionCode.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.intentionCode.ets index 09fa7c63573c4c7b483290db7a2be03dcaf7ab82..a4a1f5e1e970167614f38fb1249afbe3d35e3ff3 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.intentionCode.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.intentionCode.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum IntentionCode { INTENTION_UNKNOWN = -1, INTENTION_UP = 1, diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.pointer.ets b/arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.pointer.ets similarity index 97% rename from arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.pointer.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.pointer.ets index 39e46e5cec3508202b528c47fd4a7c95c146c1de..13c524d8015b9eaa8791ea1fc23e28df0184669e 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.multimodalInput.pointer.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.multimodalInput.pointer.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace pointer { export enum PointerStyle { DEFAULT = 0, diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.promptAction.ets b/arkoala-arkts/arkui/sdk/framework/ohos.promptAction.ets similarity index 94% rename from arkoala-arkts/arkui/sdk/generated/ohos.promptAction.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.promptAction.ets index 051e590df4ebda784a2ba77d68ca5efcd7594c5c..5474e606569bb03d0d2b9dfc0287b026dd860572 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.promptAction.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.promptAction.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export enum LevelMode { OVERLAY = 0, EMBEDDED = 1 diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.web.webview.ets b/arkoala-arkts/arkui/sdk/framework/ohos.web.webview.ets similarity index 91% rename from arkoala-arkts/arkui/sdk/generated/ohos.web.webview.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.web.webview.ets index 036ba1e822177704a448b07c6d3622081550073a..27e0f171c3f0afe6538ef87db889a2b811d0115f 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.web.webview.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.web.webview.ets @@ -19,8 +19,8 @@ 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 "./resource" +import { ComponentBuilder, Builder } from "@koalaui/builderLambda" +import { Resource } from "global.resource" export declare namespace webview { export interface WebHeader { headerKey: string; diff --git a/arkoala-arkts/arkui/sdk/generated/ohos.window.ets b/arkoala-arkts/arkui/sdk/framework/ohos.window.ets similarity index 94% rename from arkoala-arkts/arkui/sdk/generated/ohos.window.ets rename to arkoala-arkts/arkui/sdk/framework/ohos.window.ets index bcc33d59f76aa9e8b4996ad813051037d4f2e49d..8bc85e1c936a5467c28652e06a7bcd1b08dd412d 100644 --- a/arkoala-arkts/arkui/sdk/generated/ohos.window.ets +++ b/arkoala-arkts/arkui/sdk/framework/ohos.window.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare namespace window { export enum WindowStatusType { UNDEFINED = 0, diff --git a/arkoala-arkts/arkui/sdk/generated/searchOps.ets b/arkoala-arkts/arkui/sdk/framework/searchOps.ets similarity index 94% rename from arkoala-arkts/arkui/sdk/generated/searchOps.ets rename to arkoala-arkts/arkui/sdk/framework/searchOps.ets index e15a194630cf26b8eb8a412fa06896f79c053141..630251989508d83ae45cc44d2bdabffed65daef3 100644 --- a/arkoala-arkts/arkui/sdk/generated/searchOps.ets +++ b/arkoala-arkts/arkui/sdk/framework/searchOps.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export type SearchValueCallback = (value: string) => void; export declare class SearchOps { static registerSearchValueCallback(node: KPointer, value: string, callback_: SearchValueCallback): KPointer diff --git a/arkoala-arkts/arkui/sdk/generated/textFieldOps.ets b/arkoala-arkts/arkui/sdk/framework/textFieldOps.ets similarity index 95% rename from arkoala-arkts/arkui/sdk/generated/textFieldOps.ets rename to arkoala-arkts/arkui/sdk/framework/textFieldOps.ets index ee4a3b08c83837bc10b4e699cb7d636c3403f6f9..3ff336812ed13ca02dcfa31b1662c31641408343 100644 --- a/arkoala-arkts/arkui/sdk/generated/textFieldOps.ets +++ b/arkoala-arkts/arkui/sdk/framework/textFieldOps.ets @@ -19,9 +19,9 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" import { ResourceStr, Length, Padding, LocalizedPadding, BorderOptions, EdgeWidths, LocalizedEdgeWidths, ResourceColor, EdgeColors, LocalizedEdgeColors, EdgeStyles, BorderRadiuses, LocalizedBorderRadiuses } from "./../component/units" -import { Resource } from "./resource" +import { Resource } from "global.resource" import { LayoutPolicy } from "./../component/common" import { Color, BorderStyle } from "./../component/enums" export type TextFieldValueCallback = (value: ResourceStr) => void; diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.SymbolGlyphModifier.ets b/arkoala-arkts/arkui/sdk/generated/arkui.SymbolGlyphModifier.ets deleted file mode 100644 index 7d424034260c43b7f523f606da7035934b7928b8..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/sdk/generated/arkui.SymbolGlyphModifier.ets +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { 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" -export declare interface SymbolGlyphModifier { -} 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..f54bd3ae66c220e6a1df990b040c2a95e2dee843 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/AttributeUpdater.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/AttributeUpdater.ets @@ -12,10 +12,11 @@ * 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"; -import { AttributeModifier } from "./component/base"; +import { AttributeModifier } from "./component/common"; export class AttributeUpdater implements AttributeModifier { isUpdater(): boolean { return true } 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..74c600b92d1d7789cea0b771265d594b46fb11ab 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/TestComponent.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/TestComponent.ets @@ -12,12 +12,12 @@ * 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" import { BuilderLambda } from "@koalaui/builderLambda" -import { AttributeModifier } from "./component/base" +import { AttributeModifier } from "./component/common" import { AttributeUpdater } from "./AttributeUpdater" export declare interface TestComponentAttribute extends CommonMethod { diff --git a/arkoala-arkts/arkui/sdk/handwritten/component/base.ets b/arkoala-arkts/arkui/sdk/handwritten/component/base.ets index b060dd0c35228bfb04662a52fc50b1317c0cc92b..a3d44b291ca3ab0a0f22da689f49f2686ca9c94c 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 @@ -28,15 +29,6 @@ export function $rawfile(arg: string): string { return arg } -export declare 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 declare interface UICommonBase { @memo __applyStyle( diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.ImageModifier.ets b/arkoala-arkts/arkui/sdk/handwritten/component/common.ets similarity index 54% rename from arkoala-arkts/arkui/sdk/generated/arkui.ImageModifier.ets rename to arkoala-arkts/arkui/sdk/handwritten/component/common.ets index 09628f125011e3f51cc5c6bca9cb66dd6ee0ad75..4353c84af6e2714f65f0bec7c0e504cf4a918f06 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.ImageModifier.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/component/common.ets @@ -1,9 +1,9 @@ /* - * 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 - * +* * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software @@ -11,14 +11,18 @@ * 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! +package arkui.component.common; -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" -export declare interface ImageModifier { +export declare 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 GestureModifier {} +export interface UIGestureEvent {} 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/index.ets b/arkoala-arkts/arkui/sdk/handwritten/index.ets index 2ea167f5eca4df3e060c6e1e05a03fd68794c85a..36d9cff543d13e56d4f2dd47d231eef59a23a186 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/index.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/index.ets @@ -22,4 +22,5 @@ export * from "./Router" export * from "./ForeignFunctions" export * from "./resources" export * from "./component/base" +export * from "./component/common" export * from "./ContentModifierHooks" diff --git a/arkoala-arkts/arkui/sdk/handwritten/resources.ets b/arkoala-arkts/arkui/sdk/handwritten/resources.ets index 030bc2bafeca9a10d850899a4c0bbeae6c9e6dfa..42a95e7f53bd3ab68aaef794226bacc97ff88448 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/resources.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/resources.ets @@ -13,11 +13,12 @@ * limitations under the License. */ -import { Resource } from "../generated/resource"; +package arkui.resources; +import { Resource } from "global.resource"; export function _r(bundleName: string, moduleName: string, name: string): Resource { throw new Error("stub") } export function _rawfile(bundleName: string, moduleName: string, name: string): Resource { throw new Error("stub") -} \ No newline at end of file +} diff --git a/arkoala-arkts/arkui/sdk/index.ets b/arkoala-arkts/arkui/sdk/index.ets index 5033e48fd2fa058ef25d1d570fd1b2853c8f57f6..096b9abdf5ea1cfd143124a105a6c865a2d62366 100644 --- a/arkoala-arkts/arkui/sdk/index.ets +++ b/arkoala-arkts/arkui/sdk/index.ets @@ -13,7 +13,7 @@ * limitations under the License. */ export * from "./annotations" -export * from "./generated" +export * from "./framework" export * from "./handwritten" export * from "./ohos/router" // Improve: do we need this @@ -27,3 +27,6 @@ export * from "./UserView" export * from "./CallbacksChecker" export * from "./Storage" export * from "./NativeLog" + +export * from "./TextModifier" +export * from "./SymbolGlyphModifier" diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorConsume.ets b/arkoala-arkts/arkui/sdk/stateManagement.decorators.decoratorConsume.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorConsume.ets rename to arkoala-arkts/arkui/sdk/stateManagement.decorators.decoratorConsume.ets index e3a3a4dd26a9cddb9a402e171ad3d665582f34ff..253fbc16628c05403705fcca3a89a876b4745104 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorConsume.ets +++ b/arkoala-arkts/arkui/sdk/stateManagement.decorators.decoratorConsume.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface ConsumeDecoratedVariable { } diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorProvide.ets b/arkoala-arkts/arkui/sdk/stateManagement.decorators.decoratorProvide.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorProvide.ets rename to arkoala-arkts/arkui/sdk/stateManagement.decorators.decoratorProvide.ets index f52df90e4c77c7037b24e72c4279a1ad1cc683e4..ae46cb33923169c366031e9f1fe7f9f00b3628af 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorProvide.ets +++ b/arkoala-arkts/arkui/sdk/stateManagement.decorators.decoratorProvide.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface ProvideDecoratedVariable { } diff --git a/arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorWatch.ets b/arkoala-arkts/arkui/sdk/stateManagement.decorators.decoratorWatch.ets similarity index 93% rename from arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorWatch.ets rename to arkoala-arkts/arkui/sdk/stateManagement.decorators.decoratorWatch.ets index 69a07d564138b6e024e4f07bde2a7913fb902671..31bd49a47298b2248bdcdc6c960d5667841bdea3 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.stateManagement.decorators.decoratorWatch.ets +++ b/arkoala-arkts/arkui/sdk/stateManagement.decorators.decoratorWatch.ets @@ -19,6 +19,6 @@ 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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare interface WatchFuncType { } diff --git a/arkoala-arkts/arkui/sdk/generated/stateManagement.ets b/arkoala-arkts/arkui/sdk/stateManagement.ets similarity index 95% rename from arkoala-arkts/arkui/sdk/generated/stateManagement.ets rename to arkoala-arkts/arkui/sdk/stateManagement.ets index 2132d8c0f03ff508bbecfe934ef49cc448dd24fd..b6ca320e9823e3a8ab07d0e33d32c3fb346b58d6 100644 --- a/arkoala-arkts/arkui/sdk/generated/stateManagement.ets +++ b/arkoala-arkts/arkui/sdk/stateManagement.ets @@ -19,7 +19,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 { ComponentBuilder, Builder } from "@koalaui/builderLambda" export declare class PersistentStorageBackend { static get(key: string): string | undefined static has(key: string): boolean 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 80626f7981a839e46e9ddf6e78034d30a782af33..db3884e2968e203e553e4295137a4069a03add90 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 95% rename from arkoala-arkts/arkui/src/handwritten/AttributeUpdater.ets rename to arkoala-arkts/arkui/src/AttributeUpdater.ets index 57c881a30eab4a7d4c53b652c90ce8286ed48871..69dd0d0076930adc1cb40e3bdf29b36919facd02 100644 --- a/arkoala-arkts/arkui/src/handwritten/AttributeUpdater.ets +++ b/arkoala-arkts/arkui/src/AttributeUpdater.ets @@ -15,11 +15,11 @@ 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/common"; export type Initializer = () => T; export class AttributeUpdater> implements AttributeModifier { - isUpdater(): boolean { return true } + isUpdater: () => boolean = () => true applyPressedAttribute(instance: T): void { InteropNativeModule._NativeLog("AttributeUpdater.applyPressedAttribute") } 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/Storage.ets b/arkoala-arkts/arkui/src/Storage.ets index d55dc78479f155b8c06fae3129cdebfccc2c9a8b..706819483ff1ec4b589d7f593ef084b9069b359a 100644 --- a/arkoala-arkts/arkui/src/Storage.ets +++ b/arkoala-arkts/arkui/src/Storage.ets @@ -339,7 +339,7 @@ export class Environment { * @crossplatform * @since 10 */ -declare interface PersistPropsOptions { +interface PersistPropsOptions { /** * Property name * 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..1ff48203bb0e1d983a7c58db7078d25d0b61d45a 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/common" 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..cca53e86b19f37e61f0a48fa76772c5efd3140b0 100644 --- a/arkoala-arkts/arkui/src/component/builder.ets +++ b/arkoala-arkts/arkui/src/component/builder.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,15 +13,15 @@ * limitations under the License. */ +import { memo } from "@koalaui/runtime/annotations" -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +export class WrappedBuilder { + @memo builder: T; + constructor(t: T) { + this.builder = t; + } +} -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 eadf28205c9b881e08137e55f0f6db625085d335..d8b94a02e8f364293ab017e4b2c49a6323a87ead 100644 --- a/arkoala-arkts/arkui/src/component/common.ets +++ b/arkoala-arkts/arkui/src/component/common.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,33057 +13,30 @@ * 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 ContentModifier { + applyContent(): WrappedBuilder>; } -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 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 UIGestureEvent {} + 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) - } + applyGesture(event: UIGestureEvent): void; } + +export function hookGestureModifier( + node: ArkCommonMethodComponent /* this type generated in the same file */, + modifier: GestureModifier | undefined +) {} diff --git a/arkoala-arkts/arkui/src/component/customComponent.ets b/arkoala-arkts/arkui/src/component/customComponent.ets index ad0908e48f1db4190e504c94b91a85ce57c01e09..63ae15a233cff21cdd695e9de7b1a0e90c8baff3 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,242 @@ * 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 } from './extendableComponent' +import { UIContext } from "../framework/ohos.arkui.UIContext" -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +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/sdk/generated/arkui.TextModifier.ets b/arkoala-arkts/arkui/src/extractors.ets similarity index 55% rename from arkoala-arkts/arkui/sdk/generated/arkui.TextModifier.ets rename to arkoala-arkts/arkui/src/extractors.ets index 019fa97b6fd1d711b6595ac816aa0920e58bf2cc..4d1a3c5eacdb3e2e8026e64354280786e54e7f37 100644 --- a/arkoala-arkts/arkui/sdk/generated/arkui.TextModifier.ets +++ b/arkoala-arkts/arkui/src/extractors.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,12 +13,6 @@ * limitations under the License. */ - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { int32, int64, float32 } from "@koalaui/common" -import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" -import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" -export declare interface TextModifier { +export namespace extractors { } + diff --git a/arkoala-arkts/arkui/src/generated/arkui.ImageModifier.ets b/arkoala-arkts/arkui/src/generated/arkui.ImageModifier.ets deleted file mode 100644 index 7dc097bfa660f876748b54104a162908fdf32233..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/generated/arkui.ImageModifier.ets +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { 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 interface ImageModifier { -} diff --git a/arkoala-arkts/arkui/src/generated/arkui.SymbolGlyphModifier.ets b/arkoala-arkts/arkui/src/generated/arkui.SymbolGlyphModifier.ets deleted file mode 100644 index 014e06d01d08d6f15ed24d36fcb809470790cf45..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/generated/arkui.SymbolGlyphModifier.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { 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 { TypeChecker } from "#components" -import { CallbackTransformer } from "./../CallbackTransformer" -export interface SymbolGlyphModifier { -} -export class SymbolGlyphModifier_serializer { - public static write(buffer: SerializerBase, value: SymbolGlyphModifier): void { - } - public static read(buffer: DeserializerBase): SymbolGlyphModifier { - let value : SymbolGlyphModifier = ({} as SymbolGlyphModifier) - return value - } -} 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 8cabaa44f2ec677e4e7f0d21d8b1099581d9b584..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/handwritten/component/base.ets +++ /dev/null @@ -1,273 +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) - } -} - -// 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 c96112a677890a60f48c2686feb1bca9b6f2e10e..9a3135809f5a0a61a3295501ef21c125fc05d360 100644 --- a/arkoala-arkts/arkui/src/index.ets +++ b/arkoala-arkts/arkui/src/index.ets @@ -12,9 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export * from "./generated" -export * from "./handwritten" export * from "./annotations" +export * from "./framework" export * from "./ArkState" export * from "./ArkStateProperties" @@ -27,3 +26,16 @@ 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" + +export * from "./extractors" diff --git a/arkoala-arkts/arkui/src/ohos.arkui.UIContext.ets b/arkoala-arkts/arkui/src/ohos.arkui.UIContext.ets index b76bafa94d2648c86a8814fa1729d0e2f6579cc4..99968233189ac800bc1eb8b8d895a07c1b5b6022 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/../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..93e53e6f5e661183ca2b402177ba4955a3738ba6 100644 --- a/arkoala-arkts/arkui/src/ohos.measure.ets +++ b/arkoala-arkts/arkui/src/ohos.measure.ets @@ -13,7 +13,8 @@ * limitations under the License. */ -import { GlobalScope_ohos_measure_utils, MeasureOptions } from "./generated"; +import { MeasureOptions } from "#generated/ohos.measure"; +import { GlobalScope_ohos_measure_utils } from "./component/idlize" 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 7e46b2b8188de86441c8e6a55a6d5d60f0a87ffc..14d6969d3a853ad82ff0e30af1496a8e28c5f4ec 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 "global.resource"; import { int32, int64 } from "@koalaui/common"; import { SerializerBase } from "@koalaui/interop"; import { ArkUIGeneratedNativeModule } from "#components"; @@ -85,4 +85,4 @@ export function _rawfile(bundleName: string, moduleName: string, name: string): "bundleName": bundleName, "moduleName": moduleName } as Resource -} \ No newline at end of file +} 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 4fd4703cbe683f2a859585243a044c3136a0aca7..1ccc8751b398eef41a7178a673e21af0c90ccb91 100644 --- a/arkoala-arkts/arkui/ui2abcconfig.json +++ b/arkoala-arkts/arkui/ui2abcconfig.json @@ -2,11 +2,14 @@ "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"], + "global.resource": ["../../modules/global.resource/src/resource"], "@ohos.arkui.stateManagement": ["./stateManagement"], "@koalaui/interop": ["../../../interop/src/arkts"], "@koalaui/common": ["../../../incremental/common/src"], @@ -29,12 +32,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/cats/user/ui2abcconfig.json b/arkoala-arkts/cats/user/ui2abcconfig.json index cb7516b34e02022ffe43ce03c389874cfb6bc38c..45801a7cc0327bba96fc8ae90c7906e0a77f6b73 100644 --- a/arkoala-arkts/cats/user/ui2abcconfig.json +++ b/arkoala-arkts/cats/user/ui2abcconfig.json @@ -5,6 +5,14 @@ "baseUrl": ".", "paths": { "arkui": ["../../arkui/sdk/"], + "@ohos.arkui.component": ["../../arkui/@ohos.arkui.component"], + "global.resource": ["../../modules/global.resource/src/resource"], + "@ohos.arkui.stateManagement": ["../../arkui/@ohos.arkui.stateManagement"], + "@ohos.arkui.inspector": ["../../arkui/@ohos.arkui.inspector"], + "@ohos.arkui.theme": ["../../arkui/@ohos.arkui.theme"], + "@ohos.arkui.node": ["../../arkui/@ohos.arkui.node"], + "@ohos.arkui.dragController": ["../../arkui/@ohos.arkui.dragController"], + "@ohos.arkui.UIContext": ["../../arkui/@ohos.arkui.UIContext"], "@ohos.arkui": ["../../arkui/@ohos.arkui"], "@ohos.router": ["../../arkui/sdk/ohos/router.ets"], "@koalaui/builderLambda": ["../../arkui/sdk/annotations"], diff --git a/arkoala-arkts/framework/native/src/generated/Serializers.h b/arkoala-arkts/framework/native/src/generated/Serializers.h index e22bf576ab7f2bb125c82cd3f14a528e86fc4c18..6083811f4e6c6056146e42c1fd471b08b77edd6a 100644 --- a/arkoala-arkts/framework/native/src/generated/Serializers.h +++ b/arkoala-arkts/framework/native/src/generated/Serializers.h @@ -63479,11 +63479,6 @@ class GestureGroupInterface_serializer { static void write(SerializerBase& buffer, Ark_GestureGroupInterface value); static Ark_GestureGroupInterface read(DeserializerBase& buffer); }; -class GestureModifier_serializer { - public: - static void write(SerializerBase& buffer, Ark_GestureModifier value); - static Ark_GestureModifier read(DeserializerBase& buffer); -}; class GestureRecognizer_serializer { public: static void write(SerializerBase& buffer, Ark_GestureRecognizer value); @@ -64224,11 +64219,6 @@ class UIExtensionProxy_serializer { static void write(SerializerBase& buffer, Ark_UIExtensionProxy value); static Ark_UIExtensionProxy read(DeserializerBase& buffer); }; -class UIGestureEvent_serializer { - public: - static void write(SerializerBase& buffer, Ark_UIGestureEvent value); - static Ark_UIGestureEvent read(DeserializerBase& buffer); -}; class uiObserver_DensityInfo_serializer { public: static void write(SerializerBase& buffer, Ark_uiObserver_DensityInfo value); @@ -67679,17 +67669,6 @@ inline Ark_GestureGroupInterface GestureGroupInterface_serializer::read(Deserial Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } -inline void GestureModifier_serializer::write(SerializerBase& buffer, Ark_GestureModifier value) -{ - SerializerBase& valueSerializer = buffer; - valueSerializer.writePointer(value); -} -inline Ark_GestureModifier GestureModifier_serializer::read(DeserializerBase& buffer) -{ - DeserializerBase& valueDeserializer = buffer; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); -} inline void GestureRecognizer_serializer::write(SerializerBase& buffer, Ark_GestureRecognizer value) { SerializerBase& valueSerializer = buffer; @@ -69626,14 +69605,6 @@ inline Ark_UIExtensionProxy UIExtensionProxy_serializer::read(DeserializerBase& Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } -inline void UIGestureEvent_serializer::write(SerializerBase& buffer, Ark_UIGestureEvent value) -{ -} -inline Ark_UIGestureEvent UIGestureEvent_serializer::read(DeserializerBase& buffer) -{ - Ark_UIGestureEvent value = {}; - return value; -} inline void uiObserver_DensityInfo_serializer::write(SerializerBase& buffer, Ark_uiObserver_DensityInfo value) { SerializerBase& valueSerializer = buffer; diff --git a/arkoala-arkts/framework/native/src/generated/arkoala_api_generated.h b/arkoala-arkts/framework/native/src/generated/arkoala_api_generated.h index 675a615427ad14f0f3b5652157ef6f8472724860..1e4123de6a8dd75b1efe1eb22a5023d0d6c15c15 100644 --- a/arkoala-arkts/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala-arkts/framework/native/src/generated/arkoala_api_generated.h @@ -79,7 +79,7 @@ typedef enum InteropRuntimeType typedef float InteropFloat32; typedef double InteropFloat64; typedef int32_t InteropInt32; -typedef unsigned int InteropUInt32; // TODO: update unsigned int +typedef unsigned int InteropUInt32; // Improve: update unsigned int typedef int64_t InteropInt64; typedef uint64_t InteropUInt64; typedef int8_t InteropInt8; @@ -122,15 +122,6 @@ typedef struct InteropNumber { }; } InteropNumber; -// Binary layout of InteropLength must match that of KLength. -typedef struct InteropLength -{ - InteropInt8 type; - InteropFloat32 value; - InteropInt32 unit; - InteropInt32 resource; -} InteropLength; - typedef struct InteropCustomObject { char kind[20]; InteropInt32 id; @@ -21144,8 +21135,6 @@ typedef struct GENERATED_ArkUICommonMethodModifier { const Opt_ReuseOptions* value); void (*setRenderFit)(Ark_NativePointer node, const Opt_RenderFit* value); - void (*setGestureModifier)(Ark_NativePointer node, - const Opt_GestureModifier* value); void (*setBackgroundBrightness)(Ark_NativePointer node, const Opt_BackgroundBrightnessOptions* value); void (*setOnGestureJudgeBegin)(Ark_NativePointer node, @@ -25854,14 +25843,6 @@ typedef struct GENERATED_ArkUIGestureGroupInterfaceAccessor { const Callback_Void* event); } GENERATED_ArkUIGestureGroupInterfaceAccessor; -typedef struct GENERATED_ArkUIGestureModifierAccessor { - void (*destroyPeer)(Ark_GestureModifier peer); - Ark_GestureModifier (*construct)(); - Ark_NativePointer (*getFinalizer)(); - void (*applyGesture)(Ark_GestureModifier peer, - const Ark_UIGestureEvent* event); -} GENERATED_ArkUIGestureModifierAccessor; - typedef struct GENERATED_ArkUIGestureRecognizerAccessor { void (*destroyPeer)(Ark_GestureRecognizer peer); Ark_GestureRecognizer (*construct)(); @@ -28652,7 +28633,6 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIGestureAccessor* (*getGestureAccessor)(); const GENERATED_ArkUIGestureEventAccessor* (*getGestureEventAccessor)(); const GENERATED_ArkUIGestureGroupInterfaceAccessor* (*getGestureGroupInterfaceAccessor)(); - const GENERATED_ArkUIGestureModifierAccessor* (*getGestureModifierAccessor)(); const GENERATED_ArkUIGestureRecognizerAccessor* (*getGestureRecognizerAccessor)(); const GENERATED_ArkUIGestureStyleAccessor* (*getGestureStyleAccessor)(); const GENERATED_ArkUIGlobalScope_ohos_arkui_componentSnapshotAccessor* (*getGlobalScope_ohos_arkui_componentSnapshotAccessor)(); diff --git a/arkoala-arkts/framework/native/src/generated/bridge_generated.cc b/arkoala-arkts/framework/native/src/generated/bridge_generated.cc index 1ad4a58a50ebdcfec46c12f11fef0cbce989350d..0535b94f248a095cc00ad57620b42cee0cdf389b 100644 --- a/arkoala-arkts/framework/native/src/generated/bridge_generated.cc +++ b/arkoala-arkts/framework/native/src/generated/bridge_generated.cc @@ -4308,19 +4308,6 @@ void impl_CommonMethod_setRenderFit(Ark_NativePointer thisPtr, KSerializerBuffer GetNodeModifiers()->getCommonMethodModifier()->setRenderFit(self, static_cast(&valueValueTemp)); } KOALA_INTEROP_DIRECT_V3(CommonMethod_setRenderFit, Ark_NativePointer, KSerializerBuffer, int32_t) -void impl_CommonMethod_setGestureModifier(Ark_NativePointer thisPtr, KSerializerBuffer thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - DeserializerBase thisDeserializer(thisArray, thisLength); - const auto valueValueTempTmpBuf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_GestureModifier valueValueTempTmpBuf = {}; - valueValueTempTmpBuf.tag = valueValueTempTmpBuf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((valueValueTempTmpBuf_runtimeType) != (INTEROP_RUNTIME_UNDEFINED)) { - valueValueTempTmpBuf.value = static_cast(GestureModifier_serializer::read(thisDeserializer)); - } - Opt_GestureModifier valueValueTemp = valueValueTempTmpBuf;; - GetNodeModifiers()->getCommonMethodModifier()->setGestureModifier(self, static_cast(&valueValueTemp)); -} -KOALA_INTEROP_DIRECT_V3(CommonMethod_setGestureModifier, Ark_NativePointer, KSerializerBuffer, int32_t) void impl_CommonMethod_setBackgroundBrightness(Ark_NativePointer thisPtr, KSerializerBuffer thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); DeserializerBase thisDeserializer(thisArray, thisLength); @@ -30152,21 +30139,6 @@ Ark_NativePointer impl_GestureGroupInterface_onCancel(Ark_NativePointer thisPtr, return GetAccessors()->getGestureGroupInterfaceAccessor()->onCancel(self, static_cast(&eventValueTemp)); } KOALA_INTEROP_DIRECT_3(GestureGroupInterface_onCancel, Ark_NativePointer, Ark_NativePointer, KSerializerBuffer, int32_t) -Ark_NativePointer impl_GestureModifier_construct() { - return GetAccessors()->getGestureModifierAccessor()->construct(); -} -KOALA_INTEROP_DIRECT_0(GestureModifier_construct, Ark_NativePointer) -Ark_NativePointer impl_GestureModifier_getFinalizer() { - return GetAccessors()->getGestureModifierAccessor()->getFinalizer(); -} -KOALA_INTEROP_DIRECT_0(GestureModifier_getFinalizer, Ark_NativePointer) -void impl_GestureModifier_applyGesture(Ark_NativePointer thisPtr, KSerializerBuffer thisArray, int32_t thisLength) { - Ark_GestureModifier self = reinterpret_cast(thisPtr); - DeserializerBase thisDeserializer(thisArray, thisLength); - Ark_UIGestureEvent eventValueTemp = UIGestureEvent_serializer::read(thisDeserializer);; - GetAccessors()->getGestureModifierAccessor()->applyGesture(self, static_cast(&eventValueTemp)); -} -KOALA_INTEROP_DIRECT_V3(GestureModifier_applyGesture, Ark_NativePointer, KSerializerBuffer, int32_t) Ark_NativePointer impl_GestureRecognizer_construct() { return GetAccessors()->getGestureRecognizerAccessor()->construct(); } diff --git a/arkoala-arkts/framework/native/src/generated/dummy_impl.cc b/arkoala-arkts/framework/native/src/generated/dummy_impl.cc index bb9dfb6b4251a649d0b46e4920c5bd0acea68ecb..3cfe95647544c7d02b19e50be0f41b87e1ee171b 100644 --- a/arkoala-arkts/framework/native/src/generated/dummy_impl.cc +++ b/arkoala-arkts/framework/native/src/generated/dummy_impl.cc @@ -4264,18 +4264,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetGestureModifierImpl(Ark_NativePointer node, - const Opt_GestureModifier* value) - { - if (!needGroupedLog(1)) - { - return; - } - string out("setGestureModifier("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } void SetBackgroundBrightnessImpl(Ark_NativePointer node, const Opt_BackgroundBrightnessOptions* value) { @@ -20515,7 +20503,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { CommonMethodModifier::SetReuseIdImpl, CommonMethodModifier::SetReuseImpl, CommonMethodModifier::SetRenderFitImpl, - CommonMethodModifier::SetGestureModifierImpl, CommonMethodModifier::SetBackgroundBrightnessImpl, CommonMethodModifier::SetOnGestureJudgeBeginImpl, CommonMethodModifier::SetOnGestureRecognizerJudgeBegin0Impl, @@ -34402,54 +34389,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { return reinterpret_cast(300); } } // GestureGroupInterfaceAccessor - namespace GestureModifierAccessor { - void DestroyPeerImpl(Ark_GestureModifier peer) - { - if (!needGroupedLog(1)) - { - return; - } - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_GestureModifier ConstructImpl() - { - if (!needGroupedLog(1)) - { - return reinterpret_cast(100); - } - string out("new GestureModifier("); - out.append(") \n"); - out.append("[return reinterpret_cast(100)] \n"); - appendGroupedLog(1, out); - return reinterpret_cast(100); - } - Ark_NativePointer GetFinalizerImpl() - { - if (!needGroupedLog(1)) - { - return fnPtr(dummyClassFinalizer); - } - string out("getFinalizer("); - out.append(") \n"); - out.append("[return fnPtr(dummyClassFinalizer)] \n"); - appendGroupedLog(1, out); - return fnPtr(dummyClassFinalizer); - } - void ApplyGestureImpl(Ark_GestureModifier peer, - const Ark_UIGestureEvent* event) - { - if (!needGroupedLog(1)) - { - return; - } - string out("applyGesture("); - WriteToString(&out, event); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // GestureModifierAccessor namespace GestureRecognizerAccessor { void DestroyPeerImpl(Ark_GestureRecognizer peer) { @@ -53521,20 +53460,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureGroupInterfacePeer { virtual ~GestureGroupInterfacePeer() = default; }; - const GENERATED_ArkUIGestureModifierAccessor* GetGestureModifierAccessor() - { - static const GENERATED_ArkUIGestureModifierAccessor GestureModifierAccessorImpl { - GestureModifierAccessor::DestroyPeerImpl, - GestureModifierAccessor::ConstructImpl, - GestureModifierAccessor::GetFinalizerImpl, - GestureModifierAccessor::ApplyGestureImpl, - }; - return &GestureModifierAccessorImpl; - } - - struct GestureModifierPeer { - virtual ~GestureModifierPeer() = default; - }; const GENERATED_ArkUIGestureRecognizerAccessor* GetGestureRecognizerAccessor() { static const GENERATED_ArkUIGestureRecognizerAccessor GestureRecognizerAccessorImpl { @@ -56496,7 +56421,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetGestureAccessor, GetGestureEventAccessor, GetGestureGroupInterfaceAccessor, - GetGestureModifierAccessor, GetGestureRecognizerAccessor, GetGestureStyleAccessor, GetGlobalScope_ohos_arkui_componentSnapshotAccessor, diff --git a/arkoala-arkts/framework/native/src/generated/real_impl.cc b/arkoala-arkts/framework/native/src/generated/real_impl.cc index bdc2762249af2b59ac7d8ca9fb0eeab6ba093d90..c8064d03a115203b97f7da5110a58f046439e1df 100644 --- a/arkoala-arkts/framework/native/src/generated/real_impl.cc +++ b/arkoala-arkts/framework/native/src/generated/real_impl.cc @@ -2167,10 +2167,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_RenderFit* value) { } - void SetGestureModifierImpl(Ark_NativePointer node, - const Opt_GestureModifier* value) - { - } void SetBackgroundBrightnessImpl(Ark_NativePointer node, const Opt_BackgroundBrightnessOptions* value) { @@ -8121,7 +8117,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { CommonMethodModifier::SetReuseIdImpl, CommonMethodModifier::SetReuseImpl, CommonMethodModifier::SetRenderFitImpl, - CommonMethodModifier::SetGestureModifierImpl, CommonMethodModifier::SetBackgroundBrightnessImpl, CommonMethodModifier::SetOnGestureJudgeBeginImpl, CommonMethodModifier::SetOnGestureRecognizerJudgeBegin0Impl, @@ -14533,27 +14528,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { return {}; } } // GestureGroupInterfaceAccessor - namespace GestureModifierAccessor { - void DestroyPeerImpl(Ark_GestureModifier peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_GestureModifier ConstructImpl() - { - return {}; - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } - void ApplyGestureImpl(Ark_GestureModifier peer, - const Ark_UIGestureEvent* event) - { - } - } // GestureModifierAccessor namespace GestureRecognizerAccessor { void DestroyPeerImpl(Ark_GestureRecognizer peer) { @@ -22795,20 +22769,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureGroupInterfacePeer { virtual ~GestureGroupInterfacePeer() = default; }; - const GENERATED_ArkUIGestureModifierAccessor* GetGestureModifierAccessor() - { - static const GENERATED_ArkUIGestureModifierAccessor GestureModifierAccessorImpl { - GestureModifierAccessor::DestroyPeerImpl, - GestureModifierAccessor::ConstructImpl, - GestureModifierAccessor::GetFinalizerImpl, - GestureModifierAccessor::ApplyGestureImpl, - }; - return &GestureModifierAccessorImpl; - } - - struct GestureModifierPeer { - virtual ~GestureModifierPeer() = default; - }; const GENERATED_ArkUIGestureRecognizerAccessor* GetGestureRecognizerAccessor() { static const GENERATED_ArkUIGestureRecognizerAccessor GestureRecognizerAccessorImpl { @@ -25770,7 +25730,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetGestureAccessor, GetGestureEventAccessor, GetGestureGroupInterfaceAccessor, - GetGestureModifierAccessor, GetGestureRecognizerAccessor, GetGestureStyleAccessor, GetGlobalScope_ohos_arkui_componentSnapshotAccessor, diff --git a/arkoala-arkts/modules/global.resource/arktsconfig.json b/arkoala-arkts/modules/global.resource/arktsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..4c98f46d1240b6fbacfbef071fba26001c62d3d9 --- /dev/null +++ b/arkoala-arkts/modules/global.resource/arktsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "package": "global", + "baseUrl": "./src", + "outDir": "build", + "paths": { + } + }, + "include": ["./src/*.ets"] +} + diff --git a/arkoala-arkts/modules/global.resource/src/index.ets b/arkoala-arkts/modules/global.resource/src/index.ets new file mode 100644 index 0000000000000000000000000000000000000000..210ed6c60bef1f91d0f94bb3e67365e4f92d558e --- /dev/null +++ b/arkoala-arkts/modules/global.resource/src/index.ets @@ -0,0 +1,21 @@ +/* + * 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 + */ + +export * from "./resource" + diff --git a/arkoala-arkts/arkui/sdk/generated/resource.ets b/arkoala-arkts/modules/global.resource/src/resource.ets similarity index 45% rename from arkoala-arkts/arkui/sdk/generated/resource.ets rename to arkoala-arkts/modules/global.resource/src/resource.ets index fb5b03d5393b1a7ac17b0f3a924b7745f1ec7fdb..4aa104234e91431c30f2634af92506d423d9af8a 100644 --- a/arkoala-arkts/arkui/sdk/generated/resource.ets +++ b/arkoala-arkts/modules/global.resource/src/resource.ets @@ -1,10 +1,10 @@ /* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * 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 + * 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, @@ -12,18 +12,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/** + * @file + * @kit ArkUI + */ +export interface Resource { -// 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 } from "@koalaui/interop" -import { memo, memo_stable } from "@koalaui/runtime/annotations" -import { ComponentBuilder } from "@koalaui/builderLambda" -export declare interface Resource { bundleName: string; moduleName: string; - id: int64; - params?: Array; - type?: int32; + id: long; + params?: Array | undefined; + type?: int; } + diff --git a/arkoala-arkts/package.json b/arkoala-arkts/package.json index 3d9610d2a09a44805d21f2066f285cbb04787a5a..587fc549f2cac12e07102beaf4ed103885c0653e 100644 --- a/arkoala-arkts/package.json +++ b/arkoala-arkts/package.json @@ -130,8 +130,9 @@ "previewer:list-remote": "node scripts/previewer-cli.mjs list-remote", "previewer:set-active": "node scripts/previewer-cli.mjs set-active", - "link": "mkdir -p build/bootPandaFiles && ../incremental/tools/panda/arkts/arklink --output build/bootPandaFiles/arkoala.abc -- ../incremental/runtime/build/incremental.abc ../interop/build/interop.abc ./arkui/build/arkui.abc", - "build": "npm run build --prefix ../incremental && npm run build --prefix ../interop && npm run build --prefix arkui && npm run link" + "link": "mkdir -p build/bootPandaFiles && ../incremental/tools/panda/arkts/arklink --output build/bootPandaFiles/arkoala.abc -- ../incremental/runtime/build/incremental.abc ../interop/build/interop.abc ./arkui/build/arkui.abc ./modules/global.resource/build/src/resource.abc", + "build:modules": "../incremental/tools/panda/arkts/arktsc --arktsconfig ./modules/global.resource/arktsconfig.json", + "build": "npm run build --prefix ../incremental && npm run build --prefix ../interop && npm run build --prefix arkui && npm run build:modules && npm run link" } } diff --git a/arkoala-arkts/shopping/user/ui2abcconfig.json b/arkoala-arkts/shopping/user/ui2abcconfig.json index e9e030767915c3c969259e04d473d65886a21b46..ac17d2b941eb62b8ada0b449e850cdce3a8dfc4a 100644 --- a/arkoala-arkts/shopping/user/ui2abcconfig.json +++ b/arkoala-arkts/shopping/user/ui2abcconfig.json @@ -5,6 +5,14 @@ "baseUrl": ".", "paths": { "arkui": ["../../arkui/sdk/"], + "@ohos.arkui.component": ["../../arkui/@ohos.arkui.component"], + "global.resource": ["../../modules/global.resource/src/resource"], + "@ohos.arkui.stateManagement": ["../../arkui/@ohos.arkui.stateManagement"], + "@ohos.arkui.inspector": ["../../arkui/@ohos.arkui.inspector"], + "@ohos.arkui.theme": ["../../arkui/@ohos.arkui.theme"], + "@ohos.arkui.node": ["../../arkui/@ohos.arkui.node"], + "@ohos.arkui.dragController": ["../../arkui/@ohos.arkui.dragController"], + "@ohos.arkui.UIContext": ["../../arkui/@ohos.arkui.UIContext"], "@ohos.arkui": ["../../arkui/@ohos.arkui"], "@ohos.router": ["../../arkui/sdk/ohos/router.ets"], "@koalaui/builderLambda": ["../../arkui/sdk/annotations"], diff --git a/arkoala-arkts/tools/peer-generator/config-arkui.json b/arkoala-arkts/tools/peer-generator/config-arkui.json new file mode 100644 index 0000000000000000000000000000000000000000..c130fd6e1cc8ce2c8ffb0a5a28f49e57d1cbad9a --- /dev/null +++ b/arkoala-arkts/tools/peer-generator/config-arkui.json @@ -0,0 +1,43 @@ +{ + "moduleName": "arkui", + "modules": { + "global.resource": { + "name": "global.resource", + "external": true, + "packages": ["global.resource"] + }, + "arkui": { + "name": "arkui", + "packages": [ + "api.internal.component.ets", + "application", + "arkui", + "arkui.component", + "arkui.stateManagement.decorators", + "ohos.app.ability", + "ohos.arkui", + "ohos.base", + "ohos.curves", + "ohos.data", + "ohos.font", + "ohos.graphics", + "ohos.intl", + "ohos.matrix4", + "ohos.measure", + "ohos.multimodalInput", + "ohos.promptAction", + "ohos.window", + "ohos.multimedia.image", + "ohos.web.webview", + "idlize.stdlib", + "idlize.internal" + ] + } + }, + "libraryNameMapping": { + "global.resource": { + "TS": "global.resource", + "ArkTS": "global.resource" + } + } +} diff --git a/arkoala-arkts/tools/peer-generator/package.json b/arkoala-arkts/tools/peer-generator/package.json index 97770612c0d1e09d60e0be45620a9d685ac63641..3212a1a6ea14671504fa96047e9b4b030ea24f39 100644 --- a/arkoala-arkts/tools/peer-generator/package.json +++ b/arkoala-arkts/tools/peer-generator/package.json @@ -12,10 +12,10 @@ "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", + "generate:arkts": "npm run clean:arkts && cd ../../../../ && npm run compile --prefix ./runner && node ./runner m3 sdk-patched-arkts external --language arkts --options-file external/arkoala-arkts/tools/peer-generator/config-arkui.json", "generate:all": "npm run generate:ts && npm run generate:arkts" }, "dependencies": { 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/arkoala-arkts/trivial/user/ui2abcconfig.json b/arkoala-arkts/trivial/user/ui2abcconfig.json index e9e030767915c3c969259e04d473d65886a21b46..e50e7032647380df801ae8b38359c349fa71f60e 100644 --- a/arkoala-arkts/trivial/user/ui2abcconfig.json +++ b/arkoala-arkts/trivial/user/ui2abcconfig.json @@ -5,6 +5,15 @@ "baseUrl": ".", "paths": { "arkui": ["../../arkui/sdk/"], + "@ohos.arkui.component": ["../../arkui/@ohos.arkui.component"], + "global": ["../../modules/global.resource/src"], + "global.resource": ["../../modules/global.resource/src/resource"], + "@ohos.arkui.stateManagement": ["../../arkui/@ohos.arkui.stateManagement"], + "@ohos.arkui.inspector": ["../../arkui/@ohos.arkui.inspector"], + "@ohos.arkui.theme": ["../../arkui/@ohos.arkui.theme"], + "@ohos.arkui.node": ["../../arkui/@ohos.arkui.node"], + "@ohos.arkui.dragController": ["../../arkui/@ohos.arkui.dragController"], + "@ohos.arkui.UIContext": ["../../arkui/@ohos.arkui.UIContext"], "@ohos.arkui": ["../../arkui/@ohos.arkui"], "@ohos.router": ["../../arkui/sdk/ohos/router.ets"], "@koalaui/builderLambda": ["../../arkui/sdk/annotations"], diff --git a/ets-tests/golden-test-ui2abcconfig.json b/ets-tests/golden-test-ui2abcconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..010b92994bb1d8a7d122f85d4a5f0f3c507a0880 --- /dev/null +++ b/ets-tests/golden-test-ui2abcconfig.json @@ -0,0 +1,61 @@ +{ + "compilerOptions": { + "package": "@arkui.tests", + "outDir": "build/ets/abc", + "baseUrl": ".", + "paths": { + "arkui": ["../arkoala-arkts/arkui/sdk/"], + "@ohos.arkui.component": ["../arkoala-arkts/arkui/@ohos.arkui.component"], + "global.resource": ["../arkoala-arkts/modules/global.resource/src/resource"], + "@ohos.arkui.stateManagement": ["../arkoala-arkts/arkui/@ohos.arkui.stateManagement"], + "@ohos.arkui.inspector": ["../arkoala-arkts/arkui/@ohos.arkui.inspector"], + "@ohos.arkui.theme": ["../arkoala-arkts/arkui/@ohos.arkui.theme"], + "@ohos.arkui.node": ["../arkoala-arkts/arkui/@ohos.arkui.node"], + "@ohos.arkui.dragController": ["../arkoala-arkts/arkui/@ohos.arkui.dragController"], + "@ohos.arkui.UIContext": ["../arkoala-arkts/arkui/@ohos.arkui.UIContext"], + "@ohos.arkui": ["../arkoala-arkts/arkui/@ohos.arkui"], + "@ohos.router": ["../arkoala-arkts/arkui/@ohos.router"], + "@koalaui/builderLambda": ["../arkoala-arkts/arkui/sdk/stateAnnotations"], + "@koalaui/interop": ["../interop/src/arkts"], + "@koalaui/harness": ["../incremental/harness/src/arkts"], + "@koalaui/compat": [ "../incremental/compat/src/arkts" ], + "#platform": [ "../incremental/compat/src/arkts" ], + "@koalaui/common": [ "../incremental/common/src" ], + "@koalaui/runtime": [ "../incremental/runtime/ets" ], + "@koalaui/runtime/annotations": [ "../incremental/runtime/annotations" ], + "@test/pages": [ "./ets/golden-tests/Pages.ets" ] + }, + "plugins": [ + { + "transform": "@koalaui/ui-plugins", + "state": "parsed", + "name": "ui" + }, + { + "transform": "@koalaui/memo-plugin", + "state": "parsed", + "name": "memo" + }, + { + "transform": "@koalaui/ui-plugins", + "state": "checked", + "name": "ui" + }, + { + "transform": "@koalaui/memo-plugin", + "state": "checked", + "name": "memo" + } + ] + }, + "include": [ + "./ets/golden-tests/pages/**/*.ets", + "./ets/golden-tests/suites/*.ets", + "./ets/golden-tests/*.ets", + "./ets/*.ets" + ], + "exclude": [ + "./ets/environment-tests/**/*.ets", + "./ets/environment-tests/*.ets" + ] +} diff --git a/ets-tests/ui2abcconfig.json b/ets-tests/ui2abcconfig.json index 0a8506a03be0a82cf53690f80ed9591bdd3095ea..d9abdcd90437da4cb5c7a3648b08599525b35988 100644 --- a/ets-tests/ui2abcconfig.json +++ b/ets-tests/ui2abcconfig.json @@ -5,6 +5,14 @@ "baseUrl": ".", "paths": { "arkui": ["../arkoala-arkts/arkui/sdk/"], + "@ohos.arkui.component": ["../arkoala-arkts/arkui/@ohos.arkui.component"], + "global.resource": ["../arkoala-arkts/modules/global.resource/src/resource"], + "@ohos.arkui.stateManagement": ["../arkoala-arkts/arkui/@ohos.arkui.stateManagement"], + "@ohos.arkui.inspector": ["../arkoala-arkts/arkui/@ohos.arkui.inspector"], + "@ohos.arkui.theme": ["../arkoala-arkts/arkui/@ohos.arkui.theme"], + "@ohos.arkui.node": ["../arkoala-arkts/arkui/@ohos.arkui.node"], + "@ohos.arkui.dragController": ["../arkoala-arkts/arkui/@ohos.arkui.dragController"], + "@ohos.arkui.UIContext": ["../arkoala-arkts/arkui/@ohos.arkui.UIContext"], "@ohos.arkui": ["../arkoala-arkts/arkui/@ohos.arkui"], "@ohos.router": ["../arkoala-arkts/arkui/sdk/ohos/router.ets"], "@koalaui/builderLambda": ["../arkoala-arkts/arkui/sdk/annotations"], diff --git a/interop/src/arkts/DeserializerBase.ts b/interop/src/arkts/DeserializerBase.ts index 2f6d36a368ca28ca26490d35c2613e03422454da..5388affb8487f62b7aaa2df9110bd01b9ac77790 100644 --- a/interop/src/arkts/DeserializerBase.ts +++ b/interop/src/arkts/DeserializerBase.ts @@ -224,12 +224,12 @@ export class DeserializerBase implements Disposable { return ResourceHolder.instance().get(resource.resourceId) } - final readBuffer(): NativeBuffer { + final readBuffer(): ArrayBuffer { const resource = this.readCallbackResource() const data = this.readPointer() const length = this.readInt64() InteropNativeModule._CallCallbackResourceHolder(resource.hold, resource.resourceId) - return new NativeBuffer(data, length, resource.release) + return InteropNativeModule._MaterializeBuffer(data, length, resource.resourceId, resource.hold, resource.release) } } diff --git a/interop/src/arkts/InteropNativeModule.ts b/interop/src/arkts/InteropNativeModule.ts index 2c1edb755657336704bcafe2070d56cee7909021..cee53ee0347d8f1087e865634ccfc779a9d811f1 100644 --- a/interop/src/arkts/InteropNativeModule.ts +++ b/interop/src/arkts/InteropNativeModule.ts @@ -75,5 +75,7 @@ export class InteropNativeModule { @ani.unsafe.Quick native static _CopyArray(data: KPointer, length: int64, args: KUint8ArrayPtr): void native static _ReportMemLeaks(): void + native static _MaterializeBuffer(data: KPointer, length: int64, resourceId: int32, hold: KPointer, release: KPointer): ArrayBuffer + native static _GetNativeBufferPointer(data: ArrayBuffer): KPointer } diff --git a/interop/src/arkts/SerializerBase.ts b/interop/src/arkts/SerializerBase.ts index 45ef751153aa0e75fdf458de0c3b3c6adc735460..1580a16095bd991ea53071b9d291bedbfc76219b 100644 --- a/interop/src/arkts/SerializerBase.ts +++ b/interop/src/arkts/SerializerBase.ts @@ -410,9 +410,10 @@ export class SerializerBase implements Disposable { unsafeMemory.writeInt32(pos, encodedLength + 1) this._position = pos + encodedLength + 4 + 1 } - final writeBuffer(value: NativeBuffer) { + final writeBuffer(value: ArrayBuffer) { this.holdAndWriteObject(value) - this.writePointer(value.data) - this.writeInt64(value.length) + const ptr = InteropNativeModule._GetNativeBufferPointer(value) + this.writePointer(ptr) + this.writeInt64(value.byteLength) } } 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/interop/src/cpp/ani/convertors-ani.h b/interop/src/cpp/ani/convertors-ani.h index 56273d80609b981f2a5582fa53ad79ff403a2b4d..948f08b1a7267f671374df7c5d683fbbd50942ec 100644 --- a/interop/src/cpp/ani/convertors-ani.h +++ b/interop/src/cpp/ani/convertors-ani.h @@ -152,7 +152,9 @@ struct InteropTypeConverter { return result; } static inline void release(ani_env* env, InteropType value, KInteropBuffer converted) { - delete [] (KByte*)converted.data; + if (converted.dispose) { + converted.dispose(converted.resourceId); + } } }; diff --git a/interop/src/cpp/common-interop.cc b/interop/src/cpp/common-interop.cc index 02025e4325a436a235d31b7636e970570c437cae..f7b46b279f28f1ddc146ea1d9f52e9ffd5f35837 100644 --- a/interop/src/cpp/common-interop.cc +++ b/interop/src/cpp/common-interop.cc @@ -52,7 +52,7 @@ using std::string; static std::atomic mallocCounter{0}; #endif -#ifdef KOALA_NAPI +#if defined(KOALA_NAPI) || defined(KOALA_ANI) // Callback dispatcher MOVED to convertors-napi.cc. // Let's keep platform-specific parts of the code together diff --git a/interop/src/interop/DeserializerBase.ts b/interop/src/interop/DeserializerBase.ts index efac031a6cf48fb953c12208bcb21c618ceed0d1..675299b3b0436a0ecc27cee5645a56421b7ab4f1 100644 --- a/interop/src/interop/DeserializerBase.ts +++ b/interop/src/interop/DeserializerBase.ts @@ -209,12 +209,11 @@ export class DeserializerBase { } return suffix } - readBuffer(): NativeBuffer { + readBuffer(): ArrayBuffer { const resource = this.readCallbackResource() const data = this.readPointer() const length = this.readInt64() - InteropNativeModule._CallCallbackResourceHolder(resource.hold, resource.resourceId) - return new NativeBuffer(data, length, resource.release) + return InteropNativeModule._MaterializeBuffer(data, BigInt(length), resource.resourceId, resource.hold, resource.release) } } diff --git a/interop/src/interop/SerializerBase.ts b/interop/src/interop/SerializerBase.ts index 3982565670af71672caf3e822c4acc15c54d9992..aa80556045253908148675517fe4959a646b615c 100644 --- a/interop/src/interop/SerializerBase.ts +++ b/interop/src/interop/SerializerBase.ts @@ -307,10 +307,11 @@ export class SerializerBase { this.view.setInt32(this.position, encodedLength, true) this.position += encodedLength + 4 } - writeBuffer(buffer: NativeBuffer) { + writeBuffer(buffer: ArrayBuffer) { this.holdAndWriteObject(buffer) - this.writePointer(buffer.data) - this.writeInt64(buffer.length) + const ptr = InteropNativeModule._GetNativeBufferPointer(buffer) + this.writePointer(ptr) + this.writeInt64(buffer.byteLength) } } 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 85% rename from subset/arkoala-arkts/arkui/src/handwritten/index.ets rename to subset/arkoala-arkts/arkui/generated/handwritten/index.ets index dacdd8a751514d9145ff6e8f30fe4dfacc5bcbf4..a231715bfae486b887c47e5abf23e3dbfb7876c4 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 {} @@ -119,5 +119,9 @@ export namespace extractors { } } +export interface GestureModifier {} +export interface UIGestureEvent {} +export function hookGestureModifier(receiver: CommonMethod, value: GestureModifier | undefined) {} + export function hookStateStyleImpl(receiver: CommonMethod, value: StateStyles | undefined) {} export type CustomStyles = (instance: CommonMethod) => void; diff --git a/subset/arkoala/arkui/src/CallbackTransformer.ts b/subset/arkoala/arkui/src/CallbackTransformer.ts new file mode 100644 index 0000000000000000000000000000000000000000..fc3473474dc51d1ed021ee6e539331af608ad448 --- /dev/null +++ b/subset/arkoala/arkui/src/CallbackTransformer.ts @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { KPointer } from "@koalaui/interop" +import { PeerNode } from "./PeerNode" +import { CustomBuilder } from "./framework" +import { createUiDetachedRoot } from "@koalaui/arkoala" +import { ArkComponentRootPeer } from "./framework" + +function componentRootPeerFactory(): PeerNode { + return ArkComponentRootPeer.create() +} + +export class CallbackTransformer { + static transformFromCustomBuilder(value: CustomBuilder): (parentNodeId: KPointer) => KPointer { + return (parentNodeId: KPointer): KPointer => { + const peer = createUiDetachedRoot(componentRootPeerFactory, value) + return peer.peer.ptr + } + } + static transformToCustomBuilder(value: (parentNodeId: KPointer) => KPointer): CustomBuilder { + throw new Error("Not implemented") + } +} \ No newline at end of file diff --git a/subset/arkoala/arkui/src/generated/shared/generated-utils.ts b/subset/arkoala/arkui/src/framework/shared/generated-utils.ts similarity index 100% rename from subset/arkoala/arkui/src/generated/shared/generated-utils.ts rename to subset/arkoala/arkui/src/framework/shared/generated-utils.ts diff --git a/subset/arkoala/arkui/src/handwritten/index.ts b/subset/arkoala/arkui/src/handwritten/index.ts index 5a8cefb9151aaa077a280e4ee2d183b70d308d61..fe44ce51035c36d528e4757c27c91f2042d841bd 100644 --- a/subset/arkoala/arkui/src/handwritten/index.ts +++ b/subset/arkoala/arkui/src/handwritten/index.ts @@ -79,3 +79,7 @@ export function hookStateStyleImpl(receiver: any, value: any) {} export function hookId(component: object, value?: string) {} export type CustomStyles = (instance: any) => void; + +export interface GestureModifier {} +export interface UIGestureEvent {} +export function hookGestureModifier(receiver: any, value: GestureModifier | undefined) {} diff --git a/subset/arkoala/arkui/src/main.ts b/subset/arkoala/arkui/src/main.ts index 068bafca8adc2de58d51ff63aa527f793b01acfa..e3e14ab8f95d0277d12060118b9210b54a7e121f 100644 --- a/subset/arkoala/arkui/src/main.ts +++ b/subset/arkoala/arkui/src/main.ts @@ -24,9 +24,9 @@ import { ArkButtonPeer, SubTabBarStyle, BottomTabBarStyle, ArkCommonMethodPeer, -} from "@arkoala/arkui/generated" +} from "@arkoala/arkui/framework" // Improve: It needs to be possible to use CanvasRenderingContext2D without import -import { CanvasRenderingContext2D, CanvasRenderingContext2D_serializer, CanvasRenderingContext2DInternal } from "@arkoala/arkui/generated" +import { CanvasRenderingContext2D, CanvasRenderingContext2D_serializer, CanvasRenderingContext2DInternal } from "@arkoala/arkui/framework" import { startPerformanceTest } from "@arkoala/arkui/test_performance" import { testLength_10_lpx } from "@arkoala/arkui/test_data" // imports required interfaces (now generation is disabled) @@ -46,9 +46,9 @@ import { stopNativeTest, } from "./test_utils" import { ArkUINativeModule, TestNativeModule } from "@koalaui/arkoala" -import { ArkUIGeneratedNativeModule } from "./generated/peers/ArkUIGeneratedNativeModule" +import { ArkUIGeneratedNativeModule } from "./framework/peers/ArkUIGeneratedNativeModule" import { mkdirSync, writeFileSync } from "fs" -import { CallbackKind } from "@arkoala/arkui/generated/peers/CallbackKind" +import { CallbackKind } from "@arkoala/arkui/framework/peers/CallbackKind" import { ResourceId, ResourceHolder } from "@koalaui/interop" if (!reportTestFailures) { @@ -617,14 +617,12 @@ function checkReadAndMutateBuffer() { uint8array[i] = i + 1 } const serializer = SerializerBase.hold() - const nativeBuffer = new NativeBuffer(uint8array.length) - InteropNativeModule._CopyArray(nativeBuffer.data, nativeBuffer.length, uint8array) - serializer.writeBuffer(nativeBuffer) + serializer.writeBuffer(buffer) TestNativeModule._TestReadAndMutateManagedBuffer(serializer.toArray(), serializer.length()) let isSame = true for (let i = 0; i < bufferSize; ++i) { - isSame = isSame && (i + 1) * 2 === nativeBuffer.readByte(i) + isSame = isSame && (i + 1) * 2 === uint8array[i] } serializer.release() assertTrue("Buffer mutated correctly", isSame) diff --git a/subset/arkoala/arkui/src/peer_events_checker.ts b/subset/arkoala/arkui/src/peer_events_checker.ts index d3193e084e2d09361ae8fcafd9d42e172f58699a..5ef87bf0a6ac7df0a9ffb20f5d67175173843cfe 100644 --- a/subset/arkoala/arkui/src/peer_events_checker.ts +++ b/subset/arkoala/arkui/src/peer_events_checker.ts @@ -1,6 +1,6 @@ import { DeserializerBase, InteropNativeModule, ResourceHolder } from "@koalaui/interop" import { setCustomEventsChecker } from "@koalaui/arkoala" -import { deserializeAndCallCallback } from "./generated/peers/CallbackDeserializeCall" +import { deserializeAndCallCallback } from "./framework/peers/CallbackDeserializeCall" enum CallbackEventKind { Event_CallCallback = 0, diff --git a/subset/arkoala/arkui/src/test_performance.ts b/subset/arkoala/arkui/src/test_performance.ts index d678b14031699cfbeff4b31988eb4aa79d45df66..ff27339b2eba5751e27740bddca0b6dc380acb60 100644 --- a/subset/arkoala/arkui/src/test_performance.ts +++ b/subset/arkoala/arkui/src/test_performance.ts @@ -23,7 +23,7 @@ import { testLength_number100, testNumber100 } from "@arkoala/arkui/test_data" import { withStringResult } from "@koalaui/interop" -import { ArkCommonMethodPeer } from "@arkoala/arkui/generated" +import { ArkCommonMethodPeer } from "@arkoala/arkui/framework" enum DumpOptions { TOTAL = 0, diff --git a/subset/subset.json b/subset/subset.json index f800dc862b792c03d392563653f0dd38959d4f9d..a5ab3573a3e713851c001f21bfc410ef79cc1b30 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", @@ -82,7 +82,7 @@ "arkoala/arkui/src/CallbackTransformer.ts", "arkoala/arkui/src/ComponentBase.ts", "arkoala/arkui/src/Events.ts", - "arkoala/arkui/src/generated/shared/generated-utils.ts", + "arkoala/arkui/src/framework/shared/generated-utils.ts", "arkoala/arkui/src/handwritten/index.ts", "arkoala/arkui/src/main.ts", "arkoala/arkui/src/peer_events_checker.ts", @@ -98,7 +98,7 @@ "arkoala-arkts/external/src/index.ts" ], "generatedSubset": [ - "arkoala-arkts/arkui/src/generated/arkts/index.ets", - "arkoala/arkui/src/generated/shared/generated-utils.ts" + "arkoala-arkts/arkui/generated/framework/arkts/index.ets", + "arkoala/arkui/src/framework/shared/generated-utils.ts" ] }